Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: dmi/hw_management_service.proto |
| 3 | |
| 4 | #include "dmi/hw_management_service.pb.h" |
| 5 | |
| 6 | #include <algorithm> |
| 7 | |
| 8 | #include <google/protobuf/stubs/common.h> |
| 9 | #include <google/protobuf/io/coded_stream.h> |
| 10 | #include <google/protobuf/extension_set.h> |
| 11 | #include <google/protobuf/wire_format_lite_inl.h> |
| 12 | #include <google/protobuf/descriptor.h> |
| 13 | #include <google/protobuf/generated_message_reflection.h> |
| 14 | #include <google/protobuf/reflection_ops.h> |
| 15 | #include <google/protobuf/wire_format.h> |
| 16 | // @@protoc_insertion_point(includes) |
| 17 | #include <google/protobuf/port_def.inc> |
| 18 | |
| 19 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto; |
| 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 22 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto; |
| 23 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto; |
| 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto; |
| 25 | namespace dmi { |
| 26 | class PhysicalInventoryRequestDefaultTypeInternal { |
| 27 | public: |
| 28 | ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryRequest> _instance; |
| 29 | } _PhysicalInventoryRequest_default_instance_; |
| 30 | class PhysicalInventoryResponseDefaultTypeInternal { |
| 31 | public: |
| 32 | ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryResponse> _instance; |
| 33 | } _PhysicalInventoryResponse_default_instance_; |
| 34 | class HWComponentInfoGetRequestDefaultTypeInternal { |
| 35 | public: |
| 36 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetRequest> _instance; |
| 37 | } _HWComponentInfoGetRequest_default_instance_; |
| 38 | class HWComponentInfoGetResponseDefaultTypeInternal { |
| 39 | public: |
| 40 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetResponse> _instance; |
| 41 | } _HWComponentInfoGetResponse_default_instance_; |
| 42 | class HWComponentInfoSetRequestDefaultTypeInternal { |
| 43 | public: |
| 44 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetRequest> _instance; |
| 45 | } _HWComponentInfoSetRequest_default_instance_; |
| 46 | class HWComponentInfoSetResponseDefaultTypeInternal { |
| 47 | public: |
| 48 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetResponse> _instance; |
| 49 | } _HWComponentInfoSetResponse_default_instance_; |
| 50 | class StartManagingDeviceResponseDefaultTypeInternal { |
| 51 | public: |
| 52 | ::google::protobuf::internal::ExplicitlyConstructed<StartManagingDeviceResponse> _instance; |
| 53 | } _StartManagingDeviceResponse_default_instance_; |
| 54 | class StopManagingDeviceRequestDefaultTypeInternal { |
| 55 | public: |
| 56 | ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceRequest> _instance; |
| 57 | } _StopManagingDeviceRequest_default_instance_; |
| 58 | class StopManagingDeviceResponseDefaultTypeInternal { |
| 59 | public: |
| 60 | ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceResponse> _instance; |
| 61 | } _StopManagingDeviceResponse_default_instance_; |
| 62 | class ManagedDeviceInfoDefaultTypeInternal { |
| 63 | public: |
| 64 | ::google::protobuf::internal::ExplicitlyConstructed<ManagedDeviceInfo> _instance; |
| 65 | } _ManagedDeviceInfo_default_instance_; |
| 66 | class ManagedDevicesResponseDefaultTypeInternal { |
| 67 | public: |
| 68 | ::google::protobuf::internal::ExplicitlyConstructed<ManagedDevicesResponse> _instance; |
| 69 | } _ManagedDevicesResponse_default_instance_; |
| 70 | class SetLoggingEndpointRequestDefaultTypeInternal { |
| 71 | public: |
| 72 | ::google::protobuf::internal::ExplicitlyConstructed<SetLoggingEndpointRequest> _instance; |
| 73 | } _SetLoggingEndpointRequest_default_instance_; |
| 74 | class SetRemoteEndpointResponseDefaultTypeInternal { |
| 75 | public: |
| 76 | ::google::protobuf::internal::ExplicitlyConstructed<SetRemoteEndpointResponse> _instance; |
| 77 | } _SetRemoteEndpointResponse_default_instance_; |
| 78 | class GetLoggingEndpointResponseDefaultTypeInternal { |
| 79 | public: |
| 80 | ::google::protobuf::internal::ExplicitlyConstructed<GetLoggingEndpointResponse> _instance; |
| 81 | } _GetLoggingEndpointResponse_default_instance_; |
| 82 | class SetMsgBusEndpointRequestDefaultTypeInternal { |
| 83 | public: |
| 84 | ::google::protobuf::internal::ExplicitlyConstructed<SetMsgBusEndpointRequest> _instance; |
| 85 | } _SetMsgBusEndpointRequest_default_instance_; |
| 86 | class GetMsgBusEndpointResponseDefaultTypeInternal { |
| 87 | public: |
| 88 | ::google::protobuf::internal::ExplicitlyConstructed<GetMsgBusEndpointResponse> _instance; |
| 89 | } _GetMsgBusEndpointResponse_default_instance_; |
| 90 | class EntitiesLogLevelDefaultTypeInternal { |
| 91 | public: |
| 92 | ::google::protobuf::internal::ExplicitlyConstructed<EntitiesLogLevel> _instance; |
| 93 | } _EntitiesLogLevel_default_instance_; |
| 94 | class SetLogLevelRequestDefaultTypeInternal { |
| 95 | public: |
| 96 | ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelRequest> _instance; |
| 97 | } _SetLogLevelRequest_default_instance_; |
| 98 | class SetLogLevelResponseDefaultTypeInternal { |
| 99 | public: |
| 100 | ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelResponse> _instance; |
| 101 | } _SetLogLevelResponse_default_instance_; |
| 102 | class GetLogLevelRequestDefaultTypeInternal { |
| 103 | public: |
| 104 | ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelRequest> _instance; |
| 105 | } _GetLogLevelRequest_default_instance_; |
| 106 | class GetLogLevelResponseDefaultTypeInternal { |
| 107 | public: |
| 108 | ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelResponse> _instance; |
| 109 | } _GetLogLevelResponse_default_instance_; |
| 110 | class GetLoggableEntitiesRequestDefaultTypeInternal { |
| 111 | public: |
| 112 | ::google::protobuf::internal::ExplicitlyConstructed<GetLoggableEntitiesRequest> _instance; |
| 113 | } _GetLoggableEntitiesRequest_default_instance_; |
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_; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 118 | class RebootDeviceRequestDefaultTypeInternal { |
| 119 | public: |
| 120 | ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceRequest> _instance; |
| 121 | } _RebootDeviceRequest_default_instance_; |
| 122 | class RebootDeviceResponseDefaultTypeInternal { |
| 123 | public: |
| 124 | ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceResponse> _instance; |
| 125 | } _RebootDeviceResponse_default_instance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 126 | } // namespace dmi |
| 127 | static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 128 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 129 | |
| 130 | { |
| 131 | void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_; |
| 132 | new (ptr) ::dmi::PhysicalInventoryRequest(); |
| 133 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 134 | } |
| 135 | ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance(); |
| 136 | } |
| 137 | |
| 138 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 139 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 140 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 141 | |
| 142 | static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 143 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 144 | |
| 145 | { |
| 146 | void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_; |
| 147 | new (ptr) ::dmi::PhysicalInventoryResponse(); |
| 148 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 149 | } |
| 150 | ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance(); |
| 151 | } |
| 152 | |
| 153 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 154 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 155 | &scc_info_Hardware_dmi_2fhw_2eproto.base,}}; |
| 156 | |
| 157 | static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 158 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 159 | |
| 160 | { |
| 161 | void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_; |
| 162 | new (ptr) ::dmi::HWComponentInfoGetRequest(); |
| 163 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 164 | } |
| 165 | ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance(); |
| 166 | } |
| 167 | |
| 168 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 169 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 170 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 171 | |
| 172 | static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 173 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 174 | |
| 175 | { |
| 176 | void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_; |
| 177 | new (ptr) ::dmi::HWComponentInfoGetResponse(); |
| 178 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 179 | } |
| 180 | ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance(); |
| 181 | } |
| 182 | |
| 183 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 184 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 185 | &scc_info_Component_dmi_2fhw_2eproto.base,}}; |
| 186 | |
| 187 | static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 188 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 189 | |
| 190 | { |
| 191 | void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_; |
| 192 | new (ptr) ::dmi::HWComponentInfoSetRequest(); |
| 193 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 194 | } |
| 195 | ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance(); |
| 196 | } |
| 197 | |
| 198 | ::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 199 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 200 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 201 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}}; |
| 202 | |
| 203 | static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 204 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 205 | |
| 206 | { |
| 207 | void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_; |
| 208 | new (ptr) ::dmi::HWComponentInfoSetResponse(); |
| 209 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 210 | } |
| 211 | ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance(); |
| 212 | } |
| 213 | |
| 214 | ::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 215 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 216 | |
| 217 | static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 218 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 219 | |
| 220 | { |
| 221 | void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_; |
| 222 | new (ptr) ::dmi::StartManagingDeviceResponse(); |
| 223 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 224 | } |
| 225 | ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance(); |
| 226 | } |
| 227 | |
| 228 | ::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 229 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 230 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 231 | |
| 232 | static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 233 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 234 | |
| 235 | { |
| 236 | void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_; |
| 237 | new (ptr) ::dmi::StopManagingDeviceRequest(); |
| 238 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 239 | } |
| 240 | ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance(); |
| 241 | } |
| 242 | |
| 243 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 244 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 245 | |
| 246 | static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 247 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 248 | |
| 249 | { |
| 250 | void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_; |
| 251 | new (ptr) ::dmi::StopManagingDeviceResponse(); |
| 252 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 253 | } |
| 254 | ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance(); |
| 255 | } |
| 256 | |
| 257 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 258 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 259 | |
| 260 | static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 261 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 262 | |
| 263 | { |
| 264 | void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_; |
| 265 | new (ptr) ::dmi::ManagedDeviceInfo(); |
| 266 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 267 | } |
| 268 | ::dmi::ManagedDeviceInfo::InitAsDefaultInstance(); |
| 269 | } |
| 270 | |
| 271 | ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 272 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 273 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base, |
| 274 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 275 | |
| 276 | static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 277 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 278 | |
| 279 | { |
| 280 | void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_; |
| 281 | new (ptr) ::dmi::ManagedDevicesResponse(); |
| 282 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 283 | } |
| 284 | ::dmi::ManagedDevicesResponse::InitAsDefaultInstance(); |
| 285 | } |
| 286 | |
| 287 | ::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 288 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 289 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 290 | |
| 291 | static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 292 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 293 | |
| 294 | { |
| 295 | void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_; |
| 296 | new (ptr) ::dmi::SetLoggingEndpointRequest(); |
| 297 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 298 | } |
| 299 | ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance(); |
| 300 | } |
| 301 | |
| 302 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 303 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 304 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 305 | |
| 306 | static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 307 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 308 | |
| 309 | { |
| 310 | void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_; |
| 311 | new (ptr) ::dmi::SetRemoteEndpointResponse(); |
| 312 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 313 | } |
| 314 | ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance(); |
| 315 | } |
| 316 | |
| 317 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 318 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 319 | |
| 320 | static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 321 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 322 | |
| 323 | { |
| 324 | void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_; |
| 325 | new (ptr) ::dmi::GetLoggingEndpointResponse(); |
| 326 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 327 | } |
| 328 | ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance(); |
| 329 | } |
| 330 | |
| 331 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 332 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 333 | |
| 334 | static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 335 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 336 | |
| 337 | { |
| 338 | void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_; |
| 339 | new (ptr) ::dmi::SetMsgBusEndpointRequest(); |
| 340 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 341 | } |
| 342 | ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance(); |
| 343 | } |
| 344 | |
| 345 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 346 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 347 | |
| 348 | static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 349 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 350 | |
| 351 | { |
| 352 | void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_; |
| 353 | new (ptr) ::dmi::GetMsgBusEndpointResponse(); |
| 354 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 355 | } |
| 356 | ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance(); |
| 357 | } |
| 358 | |
| 359 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 360 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 361 | |
| 362 | static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 363 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 364 | |
| 365 | { |
| 366 | void* ptr = &::dmi::_EntitiesLogLevel_default_instance_; |
| 367 | new (ptr) ::dmi::EntitiesLogLevel(); |
| 368 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 369 | } |
| 370 | ::dmi::EntitiesLogLevel::InitAsDefaultInstance(); |
| 371 | } |
| 372 | |
| 373 | ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 374 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 375 | |
| 376 | static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 377 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 378 | |
| 379 | { |
| 380 | void* ptr = &::dmi::_SetLogLevelRequest_default_instance_; |
| 381 | new (ptr) ::dmi::SetLogLevelRequest(); |
| 382 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 383 | } |
| 384 | ::dmi::SetLogLevelRequest::InitAsDefaultInstance(); |
| 385 | } |
| 386 | |
| 387 | ::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 388 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 389 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 390 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 391 | |
| 392 | static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 393 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 394 | |
| 395 | { |
| 396 | void* ptr = &::dmi::_SetLogLevelResponse_default_instance_; |
| 397 | new (ptr) ::dmi::SetLogLevelResponse(); |
| 398 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 399 | } |
| 400 | ::dmi::SetLogLevelResponse::InitAsDefaultInstance(); |
| 401 | } |
| 402 | |
| 403 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 404 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 405 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 406 | |
| 407 | static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 408 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 409 | |
| 410 | { |
| 411 | void* ptr = &::dmi::_GetLogLevelRequest_default_instance_; |
| 412 | new (ptr) ::dmi::GetLogLevelRequest(); |
| 413 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 414 | } |
| 415 | ::dmi::GetLogLevelRequest::InitAsDefaultInstance(); |
| 416 | } |
| 417 | |
| 418 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 419 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 420 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 421 | |
| 422 | static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 423 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 424 | |
| 425 | { |
| 426 | void* ptr = &::dmi::_GetLogLevelResponse_default_instance_; |
| 427 | new (ptr) ::dmi::GetLogLevelResponse(); |
| 428 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 429 | } |
| 430 | ::dmi::GetLogLevelResponse::InitAsDefaultInstance(); |
| 431 | } |
| 432 | |
| 433 | ::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 434 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 435 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 436 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 437 | |
| 438 | static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 439 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 440 | |
| 441 | { |
| 442 | void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_; |
| 443 | new (ptr) ::dmi::GetLoggableEntitiesRequest(); |
| 444 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 445 | } |
| 446 | ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance(); |
| 447 | } |
| 448 | |
| 449 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 450 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 451 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 452 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 453 | static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 454 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 455 | |
| 456 | { |
| 457 | void* ptr = &::dmi::_Heartbeat_default_instance_; |
| 458 | new (ptr) ::dmi::Heartbeat(); |
| 459 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 460 | } |
| 461 | ::dmi::Heartbeat::InitAsDefaultInstance(); |
| 462 | } |
| 463 | |
| 464 | ::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 465 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 466 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 467 | static void InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 468 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 469 | |
| 470 | { |
| 471 | void* ptr = &::dmi::_RebootDeviceRequest_default_instance_; |
| 472 | new (ptr) ::dmi::RebootDeviceRequest(); |
| 473 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 474 | } |
| 475 | ::dmi::RebootDeviceRequest::InitAsDefaultInstance(); |
| 476 | } |
| 477 | |
| 478 | ::google::protobuf::internal::SCCInfo<1> scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 479 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 480 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 481 | |
| 482 | static void InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 483 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 484 | |
| 485 | { |
| 486 | void* ptr = &::dmi::_RebootDeviceResponse_default_instance_; |
| 487 | new (ptr) ::dmi::RebootDeviceResponse(); |
| 488 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 489 | } |
| 490 | ::dmi::RebootDeviceResponse::InitAsDefaultInstance(); |
| 491 | } |
| 492 | |
| 493 | ::google::protobuf::internal::SCCInfo<0> scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 494 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 495 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 496 | void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 497 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 498 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 499 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 500 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 501 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 502 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 503 | ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 504 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 505 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 506 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 507 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 508 | ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 509 | ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 510 | ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 511 | ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 512 | ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 513 | ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 514 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 515 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 516 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 517 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 518 | ::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] | 519 | ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 520 | ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 521 | ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 522 | } |
| 523 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 524 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[25]; |
| 525 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[12]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 526 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr; |
| 527 | |
| 528 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 529 | ~0u, // no _has_bits_ |
| 530 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_), |
| 531 | ~0u, // no _extensions_ |
| 532 | ~0u, // no _oneof_case_ |
| 533 | ~0u, // no _weak_field_map_ |
| 534 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_), |
| 535 | ~0u, // no _has_bits_ |
| 536 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_), |
| 537 | ~0u, // no _extensions_ |
| 538 | ~0u, // no _oneof_case_ |
| 539 | ~0u, // no _weak_field_map_ |
| 540 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_), |
| 541 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_), |
| 542 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_), |
| 543 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_), |
| 544 | ~0u, // no _has_bits_ |
| 545 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_), |
| 546 | ~0u, // no _extensions_ |
| 547 | ~0u, // no _oneof_case_ |
| 548 | ~0u, // no _weak_field_map_ |
| 549 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_), |
| 550 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_), |
| 551 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_), |
| 552 | ~0u, // no _has_bits_ |
| 553 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_), |
| 554 | ~0u, // no _extensions_ |
| 555 | ~0u, // no _oneof_case_ |
| 556 | ~0u, // no _weak_field_map_ |
| 557 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_), |
| 558 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_), |
| 559 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_), |
| 560 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_), |
| 561 | ~0u, // no _has_bits_ |
| 562 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_), |
| 563 | ~0u, // no _extensions_ |
| 564 | ~0u, // no _oneof_case_ |
| 565 | ~0u, // no _weak_field_map_ |
| 566 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_), |
| 567 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_), |
| 568 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_), |
| 569 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_), |
| 570 | ~0u, // no _has_bits_ |
| 571 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_), |
| 572 | ~0u, // no _extensions_ |
| 573 | ~0u, // no _oneof_case_ |
| 574 | ~0u, // no _weak_field_map_ |
| 575 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_), |
| 576 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_), |
| 577 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_), |
| 578 | ~0u, // no _has_bits_ |
| 579 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_), |
| 580 | ~0u, // no _extensions_ |
| 581 | ~0u, // no _oneof_case_ |
| 582 | ~0u, // no _weak_field_map_ |
| 583 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_), |
| 584 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_), |
| 585 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_), |
| 586 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_), |
| 587 | ~0u, // no _has_bits_ |
| 588 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_), |
| 589 | ~0u, // no _extensions_ |
| 590 | ~0u, // no _oneof_case_ |
| 591 | ~0u, // no _weak_field_map_ |
| 592 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_), |
| 593 | ~0u, // no _has_bits_ |
| 594 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_), |
| 595 | ~0u, // no _extensions_ |
| 596 | ~0u, // no _oneof_case_ |
| 597 | ~0u, // no _weak_field_map_ |
| 598 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_), |
| 599 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_), |
| 600 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_), |
| 601 | ~0u, // no _has_bits_ |
| 602 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_), |
| 603 | ~0u, // no _extensions_ |
| 604 | ~0u, // no _oneof_case_ |
| 605 | ~0u, // no _weak_field_map_ |
| 606 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_), |
| 607 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_), |
| 608 | ~0u, // no _has_bits_ |
| 609 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_), |
| 610 | ~0u, // no _extensions_ |
| 611 | ~0u, // no _oneof_case_ |
| 612 | ~0u, // no _weak_field_map_ |
| 613 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_), |
| 614 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_), |
| 615 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_), |
| 616 | ~0u, // no _has_bits_ |
| 617 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_), |
| 618 | ~0u, // no _extensions_ |
| 619 | ~0u, // no _oneof_case_ |
| 620 | ~0u, // no _weak_field_map_ |
| 621 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_), |
| 622 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_), |
| 623 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_), |
| 624 | ~0u, // no _has_bits_ |
| 625 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_), |
| 626 | ~0u, // no _extensions_ |
| 627 | ~0u, // no _oneof_case_ |
| 628 | ~0u, // no _weak_field_map_ |
| 629 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_), |
| 630 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_), |
| 631 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_), |
| 632 | ~0u, // no _has_bits_ |
| 633 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_), |
| 634 | ~0u, // no _extensions_ |
| 635 | ~0u, // no _oneof_case_ |
| 636 | ~0u, // no _weak_field_map_ |
| 637 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_), |
| 638 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_), |
| 639 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_), |
| 640 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_), |
| 641 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_), |
| 642 | ~0u, // no _has_bits_ |
| 643 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_), |
| 644 | ~0u, // no _extensions_ |
| 645 | ~0u, // no _oneof_case_ |
| 646 | ~0u, // no _weak_field_map_ |
| 647 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_), |
| 648 | ~0u, // no _has_bits_ |
| 649 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_), |
| 650 | ~0u, // no _extensions_ |
| 651 | ~0u, // no _oneof_case_ |
| 652 | ~0u, // no _weak_field_map_ |
| 653 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_), |
| 654 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_), |
| 655 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_), |
| 656 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_), |
| 657 | ~0u, // no _has_bits_ |
| 658 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_), |
| 659 | ~0u, // no _extensions_ |
| 660 | ~0u, // no _oneof_case_ |
| 661 | ~0u, // no _weak_field_map_ |
| 662 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_), |
| 663 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_), |
| 664 | ~0u, // no _has_bits_ |
| 665 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_), |
| 666 | ~0u, // no _extensions_ |
| 667 | ~0u, // no _oneof_case_ |
| 668 | ~0u, // no _weak_field_map_ |
| 669 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_), |
| 670 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_), |
| 671 | ~0u, // no _has_bits_ |
| 672 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_), |
| 673 | ~0u, // no _extensions_ |
| 674 | ~0u, // no _oneof_case_ |
| 675 | ~0u, // no _weak_field_map_ |
| 676 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_), |
| 677 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_), |
| 678 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_), |
| 679 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_), |
| 680 | ~0u, // no _has_bits_ |
| 681 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_), |
| 682 | ~0u, // no _extensions_ |
| 683 | ~0u, // no _oneof_case_ |
| 684 | ~0u, // no _weak_field_map_ |
| 685 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_), |
| 686 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_), |
| 687 | ~0u, // no _has_bits_ |
| 688 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_), |
| 689 | ~0u, // no _extensions_ |
| 690 | ~0u, // no _oneof_case_ |
| 691 | ~0u, // no _weak_field_map_ |
| 692 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_), |
| 693 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_), |
| 694 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_), |
| 695 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_), |
| 696 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_), |
| 697 | ~0u, // no _has_bits_ |
| 698 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_), |
| 699 | ~0u, // no _extensions_ |
| 700 | ~0u, // no _oneof_case_ |
| 701 | ~0u, // no _weak_field_map_ |
| 702 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 703 | ~0u, // no _has_bits_ |
| 704 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_), |
| 705 | ~0u, // no _extensions_ |
| 706 | ~0u, // no _oneof_case_ |
| 707 | ~0u, // no _weak_field_map_ |
| 708 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_), |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 709 | ~0u, // no _has_bits_ |
| 710 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, _internal_metadata_), |
| 711 | ~0u, // no _extensions_ |
| 712 | ~0u, // no _oneof_case_ |
| 713 | ~0u, // no _weak_field_map_ |
| 714 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, device_uuid_), |
| 715 | ~0u, // no _has_bits_ |
| 716 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, _internal_metadata_), |
| 717 | ~0u, // no _extensions_ |
| 718 | ~0u, // no _oneof_case_ |
| 719 | ~0u, // no _weak_field_map_ |
| 720 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, status_), |
| 721 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_), |
| 722 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_detail_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 723 | }; |
| 724 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 725 | { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)}, |
| 726 | { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)}, |
| 727 | { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)}, |
| 728 | { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)}, |
| 729 | { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)}, |
| 730 | { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)}, |
| 731 | { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)}, |
| 732 | { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)}, |
| 733 | { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)}, |
| 734 | { 72, -1, sizeof(::dmi::ManagedDeviceInfo)}, |
| 735 | { 79, -1, sizeof(::dmi::ManagedDevicesResponse)}, |
| 736 | { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)}, |
| 737 | { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)}, |
| 738 | { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)}, |
| 739 | { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)}, |
| 740 | { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)}, |
| 741 | { 128, -1, sizeof(::dmi::EntitiesLogLevel)}, |
| 742 | { 135, -1, sizeof(::dmi::SetLogLevelRequest)}, |
| 743 | { 142, -1, sizeof(::dmi::SetLogLevelResponse)}, |
| 744 | { 151, -1, sizeof(::dmi::GetLogLevelRequest)}, |
| 745 | { 158, -1, sizeof(::dmi::GetLogLevelResponse)}, |
| 746 | { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)}, |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 747 | { 174, -1, sizeof(::dmi::Heartbeat)}, |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 748 | { 180, -1, sizeof(::dmi::RebootDeviceRequest)}, |
| 749 | { 186, -1, sizeof(::dmi::RebootDeviceResponse)}, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 750 | }; |
| 751 | |
| 752 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 753 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_), |
| 754 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_), |
| 755 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_), |
| 756 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_), |
| 757 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_), |
| 758 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_), |
| 759 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_), |
| 760 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_), |
| 761 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_), |
| 762 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_), |
| 763 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_), |
| 764 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_), |
| 765 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_), |
| 766 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_), |
| 767 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_), |
| 768 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_), |
| 769 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_), |
| 770 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_), |
| 771 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_), |
| 772 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_), |
| 773 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_), |
| 774 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 775 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_), |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 776 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceRequest_default_instance_), |
| 777 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceResponse_default_instance_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 778 | }; |
| 779 | |
| 780 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 781 | {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas, |
| 782 | file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets, |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 783 | file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 25, 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] | 784 | }; |
| 785 | |
| 786 | const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] = |
| 787 | "\n\037dmi/hw_management_service.proto\022\003dmi\032\021" |
| 788 | "dmi/commons.proto\032\014dmi/hw.proto\032\033google/" |
| 789 | "protobuf/empty.proto\":\n\030PhysicalInventor" |
| 790 | "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 791 | "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status" |
| 792 | "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm" |
| 793 | "i.PhysicalInventoryResponse.Reason\022 \n\tin" |
| 794 | "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d" |
| 795 | "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO" |
| 796 | "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO" |
| 797 | "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone" |
| 798 | "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t." |
| 799 | "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U" |
| 800 | "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon" |
| 801 | "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi" |
| 802 | ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen" |
| 803 | "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001" |
| 804 | "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001(" |
| 805 | "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK" |
| 806 | "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016" |
| 807 | "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004" |
| 808 | "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device" |
| 809 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid" |
| 810 | "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001(" |
| 811 | "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 812 | "nent\"\251\002\n\032HWComponentInfoSetResponse\022\033\n\006s" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 813 | "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016" |
| 814 | "2&.dmi.HWComponentInfoSetResponse.Reason" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 815 | "\022\025\n\rreason_detail\030\003 \001(\t\"\236\001\n\006Reason\022\024\n\020UN" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 816 | "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021" |
| 817 | "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022" |
| 818 | "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 819 | "E\020\005\022\023\n\017SET_UNSUPPORTED\020\006\"\347\002\n\033StartManagi" |
| 820 | "ngDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.S" |
| 821 | "tatus\0227\n\006reason\030\002 \001(\0162\'.dmi.StartManagin" |
| 822 | "gDeviceResponse.Reason\022\036\n\013device_uuid\030\003 " |
| 823 | "\001(\0132\t.dmi.Uuid\022\025\n\rreason_detail\030\004 \001(\t\"\272\001" |
| 824 | "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\032\n\026DEVICE" |
| 825 | "_ALREADY_MANAGED\020\001\022!\n\035OPERATION_ALREADY_" |
| 826 | "IN_PROGRESS\020\002\022\022\n\016INVALID_PARAMS\020\003\022\022\n\016INT" |
| 827 | "ERNAL_ERROR\020\004\022\032\n\026AUTHENTICATION_FAILURE\020" |
| 828 | "\005\022\027\n\023INCOMPATIBLE_DEVICE\020\006\")\n\031StopManagi" |
| 829 | "ngDeviceRequest\022\014\n\004name\030\001 \001(\t\"\274\001\n\032StopMa" |
| 830 | "nagingDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.d" |
| 831 | "mi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.StopMana" |
| 832 | "gingDeviceResponse.Reason\022\025\n\rreason_deta" |
| 833 | "il\030\003 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000" |
| 834 | "\022\022\n\016UNKNOWN_DEVICE\020\001\"[\n\021ManagedDeviceInf" |
| 835 | "o\022&\n\004info\030\001 \001(\0132\030.dmi.ModifiableComponen" |
| 836 | "t\022\036\n\013device_uuid\030\002 \001(\0132\t.dmi.Uuid\"\306\001\n\026Ma" |
| 837 | "nagedDevicesResponse\022\033\n\006status\030\001 \001(\0162\013.d" |
| 838 | "mi.Status\0222\n\006reason\030\002 \001(\0162\".dmi.ManagedD" |
| 839 | "evicesResponse.Reason\022\'\n\007devices\030\003 \003(\0132\026" |
| 840 | ".dmi.ManagedDeviceInfo\"2\n\006Reason\022\024\n\020UNDE" |
| 841 | "FINED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\"o\n\031Se" |
| 842 | "tLoggingEndpointRequest\022\036\n\013device_uuid\030\001" |
| 843 | " \001(\0132\t.dmi.Uuid\022\030\n\020logging_endpoint\030\002 \001(" |
| 844 | "\t\022\030\n\020logging_protocol\030\003 \001(\t\"\303\002\n\031SetRemot" |
| 845 | "eEndpointResponse\022\033\n\006status\030\001 \001(\0162\013.dmi." |
| 846 | "Status\0225\n\006reason\030\002 \001(\0162%.dmi.SetRemoteEn" |
| 847 | "dpointResponse.Reason\022\025\n\rreason_detail\030\003" |
| 848 | " \001(\t\"\272\001\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n" |
| 849 | "\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\032\n" |
| 850 | "\026LOGGING_ENDPOINT_ERROR\020\003\022#\n\037LOGGING_END" |
| 851 | "POINT_PROTOCOL_ERROR\020\004\022\031\n\025MSGBUS_ENDPOIN" |
| 852 | "T_ERROR\020\005\022\026\n\022DEVICE_UNREACHABLE\020\006\"\234\002\n\032Ge" |
| 853 | "tLoggingEndpointResponse\022\033\n\006status\030\001 \001(\016" |
| 854 | "2\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.GetL" |
| 855 | "oggingEndpointResponse.Reason\022\030\n\020logging" |
| 856 | "_endpoint\030\003 \001(\t\022\030\n\020logging_protocol\030\004 \001(" |
| 857 | "\t\022\025\n\rreason_detail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UN" |
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 858 | "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 859 | "INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003" |
| 860 | "\"3\n\030SetMsgBusEndpointRequest\022\027\n\017msgbus_e" |
| 861 | "ndpoint\030\001 \001(\t\"\353\001\n\031GetMsgBusEndpointRespo" |
| 862 | "nse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reas" |
| 863 | "on\030\002 \001(\0162%.dmi.GetMsgBusEndpointResponse" |
| 864 | ".Reason\022\027\n\017msgbus_endpoint\030\003 \001(\t\022\025\n\rreas" |
| 865 | "on_detail\030\004 \001(\t\"J\n\006Reason\022\024\n\020UNDEFINED_R" |
| 866 | "EASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\026\n\022DEVICE_UN" |
| 867 | "REACHABLE\020\002\"E\n\020EntitiesLogLevel\022\037\n\010logLe" |
| 868 | "vel\030\001 \001(\0162\r.dmi.LogLevel\022\020\n\010entities\030\002 \003" |
| 869 | "(\t\"^\n\022SetLogLevelRequest\022\036\n\013device_uuid\030" |
| 870 | "\001 \001(\0132\t.dmi.Uuid\022(\n\tloglevels\030\002 \003(\0132\025.dm" |
| 871 | "i.EntitiesLogLevel\"\222\002\n\023SetLogLevelRespon" |
| 872 | "se\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\033\n\006st" |
| 873 | "atus\030\002 \001(\0162\013.dmi.Status\022/\n\006reason\030\003 \001(\0162" |
| 874 | "\037.dmi.SetLogLevelResponse.Reason\022\025\n\rreas" |
| 875 | "on_detail\030\004 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_R" |
| 876 | "EASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_" |
| 877 | "ERROR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVIC" |
| 878 | "E_UNREACHABLE\020\004\"F\n\022GetLogLevelRequest\022\036\n" |
| 879 | "\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\020\n\010entitie" |
| 880 | "s\030\002 \003(\t\"\274\002\n\023GetLogLevelResponse\022\036\n\013devic" |
| 881 | "e_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tlogLevels\030\002 \003" |
| 882 | "(\0132\025.dmi.EntitiesLogLevel\022\033\n\006status\030\003 \001(" |
| 883 | "\0162\013.dmi.Status\022/\n\006reason\030\004 \001(\0162\037.dmi.Get" |
| 884 | "LogLevelResponse.Reason\022\025\n\rreason_detail" |
| 885 | "\030\005 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022" |
| 886 | "\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026" |
| 887 | "\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVICE_UNREACH" |
| 888 | "ABLE\020\004\"<\n\032GetLoggableEntitiesRequest\022\036\n\013" |
| 889 | "device_uuid\030\001 \001(\0132\t.dmi.Uuid\"(\n\tHeartbea" |
| 890 | "t\022\033\n\023heartbeat_signature\030\001 \001(\007\"5\n\023Reboot" |
| 891 | "DeviceRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi" |
| 892 | ".Uuid\"\334\001\n\024RebootDeviceResponse\022\033\n\006status" |
| 893 | "\030\003 \001(\0162\013.dmi.Status\0220\n\006reason\030\004 \001(\0162 .dm" |
| 894 | "i.RebootDeviceResponse.Reason\022\025\n\rreason_" |
| 895 | "detail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REAS" |
| 896 | "ON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERR" |
| 897 | "OR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\0032\256\t\n\031NativeH" |
| 898 | "WManagementService\022S\n\023StartManagingDevic" |
| 899 | "e\022\030.dmi.ModifiableComponent\032 .dmi.StartM" |
| 900 | "anagingDeviceResponse0\001\022U\n\022StopManagingD" |
| 901 | "evice\022\036.dmi.StopManagingDeviceRequest\032\037." |
| 902 | "dmi.StopManagingDeviceResponse\022H\n\021GetMan" |
| 903 | "agedDevices\022\026.google.protobuf.Empty\032\033.dm" |
| 904 | "i.ManagedDevicesResponse\022W\n\024GetPhysicalI" |
| 905 | "nventory\022\035.dmi.PhysicalInventoryRequest\032" |
| 906 | "\036.dmi.PhysicalInventoryResponse0\001\022W\n\022Get" |
| 907 | "HWComponentInfo\022\036.dmi.HWComponentInfoGet" |
| 908 | "Request\032\037.dmi.HWComponentInfoGetResponse" |
| 909 | "0\001\022U\n\022SetHWComponentInfo\022\036.dmi.HWCompone" |
| 910 | "ntInfoSetRequest\032\037.dmi.HWComponentInfoSe" |
| 911 | "tResponse\022T\n\022SetLoggingEndpoint\022\036.dmi.Se" |
| 912 | "tLoggingEndpointRequest\032\036.dmi.SetRemoteE" |
| 913 | "ndpointResponse\022F\n\022GetLoggingEndpoint\022\017." |
| 914 | "dmi.HardwareID\032\037.dmi.GetLoggingEndpointR" |
| 915 | "esponse\022R\n\021SetMsgBusEndpoint\022\035.dmi.SetMs" |
| 916 | "gBusEndpointRequest\032\036.dmi.SetRemoteEndpo" |
| 917 | "intResponse\022K\n\021GetMsgBusEndpoint\022\026.googl" |
| 918 | "e.protobuf.Empty\032\036.dmi.GetMsgBusEndpoint" |
| 919 | "Response\022P\n\023GetLoggableEntities\022\037.dmi.Ge" |
| 920 | "tLoggableEntitiesRequest\032\030.dmi.GetLogLev" |
| 921 | "elResponse\022@\n\013SetLogLevel\022\027.dmi.SetLogLe" |
| 922 | "velRequest\032\030.dmi.SetLogLevelResponse\022@\n\013" |
| 923 | "GetLogLevel\022\027.dmi.GetLogLevelRequest\032\030.d" |
| 924 | "mi.GetLogLevelResponse\0228\n\016HeartbeatCheck" |
| 925 | "\022\026.google.protobuf.Empty\032\016.dmi.Heartbeat" |
| 926 | "\022C\n\014RebootDevice\022\030.dmi.RebootDeviceReque" |
| 927 | "st\032\031.dmi.RebootDeviceResponseB;Z9github." |
| 928 | "com/opencord/device-management-interface" |
| 929 | "/v3/go/dmib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 930 | ; |
| 931 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 932 | false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| 933 | descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 934 | "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5698, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 935 | }; |
| 936 | |
| 937 | void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 938 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 939 | { |
| 940 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 941 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 942 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
| 943 | }; |
| 944 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3); |
| 945 | } |
| 946 | |
| 947 | // Force running AddDescriptors() at dynamic initialization time. |
| 948 | static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 949 | namespace dmi { |
| 950 | const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() { |
| 951 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 952 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0]; |
| 953 | } |
| 954 | bool PhysicalInventoryResponse_Reason_IsValid(int value) { |
| 955 | switch (value) { |
| 956 | case 0: |
| 957 | case 1: |
| 958 | case 2: |
| 959 | case 3: |
| 960 | return true; |
| 961 | default: |
| 962 | return false; |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 967 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON; |
| 968 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE; |
| 969 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR; |
| 970 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE; |
| 971 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN; |
| 972 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX; |
| 973 | const int PhysicalInventoryResponse::Reason_ARRAYSIZE; |
| 974 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 975 | const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() { |
| 976 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 977 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1]; |
| 978 | } |
| 979 | bool HWComponentInfoGetResponse_Reason_IsValid(int value) { |
| 980 | switch (value) { |
| 981 | case 0: |
| 982 | case 1: |
| 983 | case 2: |
| 984 | case 3: |
| 985 | case 4: |
| 986 | return true; |
| 987 | default: |
| 988 | return false; |
| 989 | } |
| 990 | } |
| 991 | |
| 992 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 993 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON; |
| 994 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE; |
| 995 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT; |
| 996 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR; |
| 997 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE; |
| 998 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN; |
| 999 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX; |
| 1000 | const int HWComponentInfoGetResponse::Reason_ARRAYSIZE; |
| 1001 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1002 | const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() { |
| 1003 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1004 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2]; |
| 1005 | } |
| 1006 | bool HWComponentInfoSetResponse_Reason_IsValid(int value) { |
| 1007 | switch (value) { |
| 1008 | case 0: |
| 1009 | case 1: |
| 1010 | case 2: |
| 1011 | case 3: |
| 1012 | case 4: |
| 1013 | case 5: |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1014 | case 6: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1015 | return true; |
| 1016 | default: |
| 1017 | return false; |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1022 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON; |
| 1023 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE; |
| 1024 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT; |
| 1025 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS; |
| 1026 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR; |
| 1027 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1028 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::SET_UNSUPPORTED; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1029 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN; |
| 1030 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX; |
| 1031 | const int HWComponentInfoSetResponse::Reason_ARRAYSIZE; |
| 1032 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1033 | const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() { |
| 1034 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1035 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3]; |
| 1036 | } |
| 1037 | bool StartManagingDeviceResponse_Reason_IsValid(int value) { |
| 1038 | switch (value) { |
| 1039 | case 0: |
| 1040 | case 1: |
| 1041 | case 2: |
| 1042 | case 3: |
| 1043 | case 4: |
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1044 | case 5: |
| 1045 | case 6: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1046 | return true; |
| 1047 | default: |
| 1048 | return false; |
| 1049 | } |
| 1050 | } |
| 1051 | |
| 1052 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1053 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON; |
| 1054 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED; |
| 1055 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 1056 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS; |
| 1057 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR; |
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1058 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE; |
| 1059 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1060 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN; |
| 1061 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX; |
| 1062 | const int StartManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1063 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1064 | const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() { |
| 1065 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1066 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4]; |
| 1067 | } |
| 1068 | bool StopManagingDeviceResponse_Reason_IsValid(int value) { |
| 1069 | switch (value) { |
| 1070 | case 0: |
| 1071 | case 1: |
| 1072 | return true; |
| 1073 | default: |
| 1074 | return false; |
| 1075 | } |
| 1076 | } |
| 1077 | |
| 1078 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1079 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON; |
| 1080 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE; |
| 1081 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN; |
| 1082 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX; |
| 1083 | const int StopManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1084 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1085 | const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() { |
| 1086 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1087 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5]; |
| 1088 | } |
| 1089 | bool ManagedDevicesResponse_Reason_IsValid(int value) { |
| 1090 | switch (value) { |
| 1091 | case 0: |
| 1092 | case 1: |
| 1093 | return true; |
| 1094 | default: |
| 1095 | return false; |
| 1096 | } |
| 1097 | } |
| 1098 | |
| 1099 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1100 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON; |
| 1101 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR; |
| 1102 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN; |
| 1103 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX; |
| 1104 | const int ManagedDevicesResponse::Reason_ARRAYSIZE; |
| 1105 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1106 | const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() { |
| 1107 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1108 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6]; |
| 1109 | } |
| 1110 | bool SetRemoteEndpointResponse_Reason_IsValid(int value) { |
| 1111 | switch (value) { |
| 1112 | case 0: |
| 1113 | case 1: |
| 1114 | case 2: |
| 1115 | case 3: |
| 1116 | case 4: |
| 1117 | case 5: |
| 1118 | case 6: |
| 1119 | return true; |
| 1120 | default: |
| 1121 | return false; |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1126 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON; |
| 1127 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE; |
| 1128 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR; |
| 1129 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR; |
| 1130 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR; |
| 1131 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR; |
| 1132 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE; |
| 1133 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN; |
| 1134 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX; |
| 1135 | const int SetRemoteEndpointResponse::Reason_ARRAYSIZE; |
| 1136 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1137 | const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() { |
| 1138 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1139 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7]; |
| 1140 | } |
| 1141 | bool GetLoggingEndpointResponse_Reason_IsValid(int value) { |
| 1142 | switch (value) { |
| 1143 | case 0: |
| 1144 | case 1: |
| 1145 | case 2: |
| 1146 | case 3: |
| 1147 | return true; |
| 1148 | default: |
| 1149 | return false; |
| 1150 | } |
| 1151 | } |
| 1152 | |
| 1153 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1154 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON; |
| 1155 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE; |
| 1156 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR; |
| 1157 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE; |
| 1158 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN; |
| 1159 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX; |
| 1160 | const int GetLoggingEndpointResponse::Reason_ARRAYSIZE; |
| 1161 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1162 | const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() { |
| 1163 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1164 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8]; |
| 1165 | } |
| 1166 | bool GetMsgBusEndpointResponse_Reason_IsValid(int value) { |
| 1167 | switch (value) { |
| 1168 | case 0: |
| 1169 | case 1: |
| 1170 | case 2: |
| 1171 | return true; |
| 1172 | default: |
| 1173 | return false; |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1178 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON; |
| 1179 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR; |
| 1180 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE; |
| 1181 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN; |
| 1182 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX; |
| 1183 | const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE; |
| 1184 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1185 | const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() { |
| 1186 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1187 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9]; |
| 1188 | } |
| 1189 | bool SetLogLevelResponse_Reason_IsValid(int value) { |
| 1190 | switch (value) { |
| 1191 | case 0: |
| 1192 | case 1: |
| 1193 | case 2: |
| 1194 | case 3: |
| 1195 | case 4: |
| 1196 | return true; |
| 1197 | default: |
| 1198 | return false; |
| 1199 | } |
| 1200 | } |
| 1201 | |
| 1202 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1203 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON; |
| 1204 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE; |
| 1205 | const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR; |
| 1206 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1207 | const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1208 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN; |
| 1209 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX; |
| 1210 | const int SetLogLevelResponse::Reason_ARRAYSIZE; |
| 1211 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1212 | const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() { |
| 1213 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1214 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10]; |
| 1215 | } |
| 1216 | bool GetLogLevelResponse_Reason_IsValid(int value) { |
| 1217 | switch (value) { |
| 1218 | case 0: |
| 1219 | case 1: |
| 1220 | case 2: |
| 1221 | case 3: |
| 1222 | case 4: |
| 1223 | return true; |
| 1224 | default: |
| 1225 | return false; |
| 1226 | } |
| 1227 | } |
| 1228 | |
| 1229 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1230 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON; |
| 1231 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE; |
| 1232 | const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR; |
| 1233 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1234 | const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1235 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN; |
| 1236 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX; |
| 1237 | const int GetLogLevelResponse::Reason_ARRAYSIZE; |
| 1238 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1239 | const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() { |
| 1240 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1241 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11]; |
| 1242 | } |
| 1243 | bool RebootDeviceResponse_Reason_IsValid(int value) { |
| 1244 | switch (value) { |
| 1245 | case 0: |
| 1246 | case 1: |
| 1247 | case 2: |
| 1248 | case 3: |
| 1249 | return true; |
| 1250 | default: |
| 1251 | return false; |
| 1252 | } |
| 1253 | } |
| 1254 | |
| 1255 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1256 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON; |
| 1257 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE; |
| 1258 | const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR; |
| 1259 | const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE; |
| 1260 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN; |
| 1261 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX; |
| 1262 | const int RebootDeviceResponse::Reason_ARRAYSIZE; |
| 1263 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1264 | |
| 1265 | // =================================================================== |
| 1266 | |
| 1267 | void PhysicalInventoryRequest::InitAsDefaultInstance() { |
| 1268 | ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1269 | ::dmi::Uuid::internal_default_instance()); |
| 1270 | } |
| 1271 | class PhysicalInventoryRequest::HasBitSetters { |
| 1272 | public: |
| 1273 | static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg); |
| 1274 | }; |
| 1275 | |
| 1276 | const ::dmi::Uuid& |
| 1277 | PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) { |
| 1278 | return *msg->device_uuid_; |
| 1279 | } |
| 1280 | void PhysicalInventoryRequest::clear_device_uuid() { |
| 1281 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1282 | delete device_uuid_; |
| 1283 | } |
| 1284 | device_uuid_ = nullptr; |
| 1285 | } |
| 1286 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1287 | const int PhysicalInventoryRequest::kDeviceUuidFieldNumber; |
| 1288 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1289 | |
| 1290 | PhysicalInventoryRequest::PhysicalInventoryRequest() |
| 1291 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1292 | SharedCtor(); |
| 1293 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest) |
| 1294 | } |
| 1295 | PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from) |
| 1296 | : ::google::protobuf::Message(), |
| 1297 | _internal_metadata_(nullptr) { |
| 1298 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1299 | if (from.has_device_uuid()) { |
| 1300 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1301 | } else { |
| 1302 | device_uuid_ = nullptr; |
| 1303 | } |
| 1304 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest) |
| 1305 | } |
| 1306 | |
| 1307 | void PhysicalInventoryRequest::SharedCtor() { |
| 1308 | ::google::protobuf::internal::InitSCC( |
| 1309 | &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1310 | device_uuid_ = nullptr; |
| 1311 | } |
| 1312 | |
| 1313 | PhysicalInventoryRequest::~PhysicalInventoryRequest() { |
| 1314 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest) |
| 1315 | SharedDtor(); |
| 1316 | } |
| 1317 | |
| 1318 | void PhysicalInventoryRequest::SharedDtor() { |
| 1319 | if (this != internal_default_instance()) delete device_uuid_; |
| 1320 | } |
| 1321 | |
| 1322 | void PhysicalInventoryRequest::SetCachedSize(int size) const { |
| 1323 | _cached_size_.Set(size); |
| 1324 | } |
| 1325 | const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() { |
| 1326 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1327 | return *internal_default_instance(); |
| 1328 | } |
| 1329 | |
| 1330 | |
| 1331 | void PhysicalInventoryRequest::Clear() { |
| 1332 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest) |
| 1333 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1334 | // Prevent compiler warnings about cached_has_bits being unused |
| 1335 | (void) cached_has_bits; |
| 1336 | |
| 1337 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1338 | delete device_uuid_; |
| 1339 | } |
| 1340 | device_uuid_ = nullptr; |
| 1341 | _internal_metadata_.Clear(); |
| 1342 | } |
| 1343 | |
| 1344 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1345 | const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1346 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1347 | auto msg = static_cast<PhysicalInventoryRequest*>(object); |
| 1348 | ::google::protobuf::int32 size; (void)size; |
| 1349 | int depth; (void)depth; |
| 1350 | ::google::protobuf::uint32 tag; |
| 1351 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1352 | auto ptr = begin; |
| 1353 | while (ptr < end) { |
| 1354 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1355 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1356 | switch (tag >> 3) { |
| 1357 | // .dmi.Uuid device_uuid = 1; |
| 1358 | case 1: { |
| 1359 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1360 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1361 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1362 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1363 | object = msg->mutable_device_uuid(); |
| 1364 | if (size > end - ptr) goto len_delim_till_end; |
| 1365 | ptr += size; |
| 1366 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1367 | {parser_till_end, object}, ptr - size, ptr)); |
| 1368 | break; |
| 1369 | } |
| 1370 | default: { |
| 1371 | handle_unusual: |
| 1372 | if ((tag & 7) == 4 || tag == 0) { |
| 1373 | ctx->EndGroup(tag); |
| 1374 | return ptr; |
| 1375 | } |
| 1376 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1377 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1378 | ptr = res.first; |
| 1379 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1380 | if (res.second) return ptr; |
| 1381 | } |
| 1382 | } // switch |
| 1383 | } // while |
| 1384 | return ptr; |
| 1385 | len_delim_till_end: |
| 1386 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1387 | {parser_till_end, object}, size); |
| 1388 | } |
| 1389 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1390 | bool PhysicalInventoryRequest::MergePartialFromCodedStream( |
| 1391 | ::google::protobuf::io::CodedInputStream* input) { |
| 1392 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1393 | ::google::protobuf::uint32 tag; |
| 1394 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest) |
| 1395 | for (;;) { |
| 1396 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1397 | tag = p.first; |
| 1398 | if (!p.second) goto handle_unusual; |
| 1399 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1400 | // .dmi.Uuid device_uuid = 1; |
| 1401 | case 1: { |
| 1402 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1403 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1404 | input, mutable_device_uuid())); |
| 1405 | } else { |
| 1406 | goto handle_unusual; |
| 1407 | } |
| 1408 | break; |
| 1409 | } |
| 1410 | |
| 1411 | default: { |
| 1412 | handle_unusual: |
| 1413 | if (tag == 0) { |
| 1414 | goto success; |
| 1415 | } |
| 1416 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1417 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1418 | break; |
| 1419 | } |
| 1420 | } |
| 1421 | } |
| 1422 | success: |
| 1423 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest) |
| 1424 | return true; |
| 1425 | failure: |
| 1426 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest) |
| 1427 | return false; |
| 1428 | #undef DO_ |
| 1429 | } |
| 1430 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1431 | |
| 1432 | void PhysicalInventoryRequest::SerializeWithCachedSizes( |
| 1433 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1434 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest) |
| 1435 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1436 | (void) cached_has_bits; |
| 1437 | |
| 1438 | // .dmi.Uuid device_uuid = 1; |
| 1439 | if (this->has_device_uuid()) { |
| 1440 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1441 | 1, HasBitSetters::device_uuid(this), output); |
| 1442 | } |
| 1443 | |
| 1444 | if (_internal_metadata_.have_unknown_fields()) { |
| 1445 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1446 | _internal_metadata_.unknown_fields(), output); |
| 1447 | } |
| 1448 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest) |
| 1449 | } |
| 1450 | |
| 1451 | ::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray( |
| 1452 | ::google::protobuf::uint8* target) const { |
| 1453 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest) |
| 1454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1455 | (void) cached_has_bits; |
| 1456 | |
| 1457 | // .dmi.Uuid device_uuid = 1; |
| 1458 | if (this->has_device_uuid()) { |
| 1459 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1460 | InternalWriteMessageToArray( |
| 1461 | 1, HasBitSetters::device_uuid(this), target); |
| 1462 | } |
| 1463 | |
| 1464 | if (_internal_metadata_.have_unknown_fields()) { |
| 1465 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1466 | _internal_metadata_.unknown_fields(), target); |
| 1467 | } |
| 1468 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest) |
| 1469 | return target; |
| 1470 | } |
| 1471 | |
| 1472 | size_t PhysicalInventoryRequest::ByteSizeLong() const { |
| 1473 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest) |
| 1474 | size_t total_size = 0; |
| 1475 | |
| 1476 | if (_internal_metadata_.have_unknown_fields()) { |
| 1477 | total_size += |
| 1478 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1479 | _internal_metadata_.unknown_fields()); |
| 1480 | } |
| 1481 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1482 | // Prevent compiler warnings about cached_has_bits being unused |
| 1483 | (void) cached_has_bits; |
| 1484 | |
| 1485 | // .dmi.Uuid device_uuid = 1; |
| 1486 | if (this->has_device_uuid()) { |
| 1487 | total_size += 1 + |
| 1488 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1489 | *device_uuid_); |
| 1490 | } |
| 1491 | |
| 1492 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1493 | SetCachedSize(cached_size); |
| 1494 | return total_size; |
| 1495 | } |
| 1496 | |
| 1497 | void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1498 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1499 | GOOGLE_DCHECK_NE(&from, this); |
| 1500 | const PhysicalInventoryRequest* source = |
| 1501 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>( |
| 1502 | &from); |
| 1503 | if (source == nullptr) { |
| 1504 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest) |
| 1505 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1506 | } else { |
| 1507 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest) |
| 1508 | MergeFrom(*source); |
| 1509 | } |
| 1510 | } |
| 1511 | |
| 1512 | void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) { |
| 1513 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1514 | GOOGLE_DCHECK_NE(&from, this); |
| 1515 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1516 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1517 | (void) cached_has_bits; |
| 1518 | |
| 1519 | if (from.has_device_uuid()) { |
| 1520 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1521 | } |
| 1522 | } |
| 1523 | |
| 1524 | void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1525 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1526 | if (&from == this) return; |
| 1527 | Clear(); |
| 1528 | MergeFrom(from); |
| 1529 | } |
| 1530 | |
| 1531 | void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) { |
| 1532 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1533 | if (&from == this) return; |
| 1534 | Clear(); |
| 1535 | MergeFrom(from); |
| 1536 | } |
| 1537 | |
| 1538 | bool PhysicalInventoryRequest::IsInitialized() const { |
| 1539 | return true; |
| 1540 | } |
| 1541 | |
| 1542 | void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) { |
| 1543 | if (other == this) return; |
| 1544 | InternalSwap(other); |
| 1545 | } |
| 1546 | void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) { |
| 1547 | using std::swap; |
| 1548 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1549 | swap(device_uuid_, other->device_uuid_); |
| 1550 | } |
| 1551 | |
| 1552 | ::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const { |
| 1553 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1554 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1555 | } |
| 1556 | |
| 1557 | |
| 1558 | // =================================================================== |
| 1559 | |
| 1560 | void PhysicalInventoryResponse::InitAsDefaultInstance() { |
| 1561 | ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>( |
| 1562 | ::dmi::Hardware::internal_default_instance()); |
| 1563 | } |
| 1564 | class PhysicalInventoryResponse::HasBitSetters { |
| 1565 | public: |
| 1566 | static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg); |
| 1567 | }; |
| 1568 | |
| 1569 | const ::dmi::Hardware& |
| 1570 | PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) { |
| 1571 | return *msg->inventory_; |
| 1572 | } |
| 1573 | void PhysicalInventoryResponse::clear_inventory() { |
| 1574 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1575 | delete inventory_; |
| 1576 | } |
| 1577 | inventory_ = nullptr; |
| 1578 | } |
| 1579 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1580 | const int PhysicalInventoryResponse::kStatusFieldNumber; |
| 1581 | const int PhysicalInventoryResponse::kReasonFieldNumber; |
| 1582 | const int PhysicalInventoryResponse::kInventoryFieldNumber; |
| 1583 | const int PhysicalInventoryResponse::kReasonDetailFieldNumber; |
| 1584 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1585 | |
| 1586 | PhysicalInventoryResponse::PhysicalInventoryResponse() |
| 1587 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1588 | SharedCtor(); |
| 1589 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse) |
| 1590 | } |
| 1591 | PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from) |
| 1592 | : ::google::protobuf::Message(), |
| 1593 | _internal_metadata_(nullptr) { |
| 1594 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1595 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1596 | if (from.reason_detail().size() > 0) { |
| 1597 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1598 | } |
| 1599 | if (from.has_inventory()) { |
| 1600 | inventory_ = new ::dmi::Hardware(*from.inventory_); |
| 1601 | } else { |
| 1602 | inventory_ = nullptr; |
| 1603 | } |
| 1604 | ::memcpy(&status_, &from.status_, |
| 1605 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 1606 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1607 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse) |
| 1608 | } |
| 1609 | |
| 1610 | void PhysicalInventoryResponse::SharedCtor() { |
| 1611 | ::google::protobuf::internal::InitSCC( |
| 1612 | &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1613 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1614 | ::memset(&inventory_, 0, static_cast<size_t>( |
| 1615 | reinterpret_cast<char*>(&reason_) - |
| 1616 | reinterpret_cast<char*>(&inventory_)) + sizeof(reason_)); |
| 1617 | } |
| 1618 | |
| 1619 | PhysicalInventoryResponse::~PhysicalInventoryResponse() { |
| 1620 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse) |
| 1621 | SharedDtor(); |
| 1622 | } |
| 1623 | |
| 1624 | void PhysicalInventoryResponse::SharedDtor() { |
| 1625 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1626 | if (this != internal_default_instance()) delete inventory_; |
| 1627 | } |
| 1628 | |
| 1629 | void PhysicalInventoryResponse::SetCachedSize(int size) const { |
| 1630 | _cached_size_.Set(size); |
| 1631 | } |
| 1632 | const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() { |
| 1633 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1634 | return *internal_default_instance(); |
| 1635 | } |
| 1636 | |
| 1637 | |
| 1638 | void PhysicalInventoryResponse::Clear() { |
| 1639 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse) |
| 1640 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1641 | // Prevent compiler warnings about cached_has_bits being unused |
| 1642 | (void) cached_has_bits; |
| 1643 | |
| 1644 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1645 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1646 | delete inventory_; |
| 1647 | } |
| 1648 | inventory_ = nullptr; |
| 1649 | ::memset(&status_, 0, static_cast<size_t>( |
| 1650 | reinterpret_cast<char*>(&reason_) - |
| 1651 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1652 | _internal_metadata_.Clear(); |
| 1653 | } |
| 1654 | |
| 1655 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1656 | const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 1657 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1658 | auto msg = static_cast<PhysicalInventoryResponse*>(object); |
| 1659 | ::google::protobuf::int32 size; (void)size; |
| 1660 | int depth; (void)depth; |
| 1661 | ::google::protobuf::uint32 tag; |
| 1662 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1663 | auto ptr = begin; |
| 1664 | while (ptr < end) { |
| 1665 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1666 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1667 | switch (tag >> 3) { |
| 1668 | // .dmi.Status status = 1; |
| 1669 | case 1: { |
| 1670 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 1671 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1672 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 1673 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1674 | break; |
| 1675 | } |
| 1676 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1677 | case 2: { |
| 1678 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 1679 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1680 | msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val)); |
| 1681 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1682 | break; |
| 1683 | } |
| 1684 | // .dmi.Hardware inventory = 3; |
| 1685 | case 3: { |
| 1686 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 1687 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1688 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1689 | parser_till_end = ::dmi::Hardware::_InternalParse; |
| 1690 | object = msg->mutable_inventory(); |
| 1691 | if (size > end - ptr) goto len_delim_till_end; |
| 1692 | ptr += size; |
| 1693 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1694 | {parser_till_end, object}, ptr - size, ptr)); |
| 1695 | break; |
| 1696 | } |
| 1697 | // string reason_detail = 4; |
| 1698 | case 4: { |
| 1699 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 1700 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1701 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1702 | ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail"); |
| 1703 | object = msg->mutable_reason_detail(); |
| 1704 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1705 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1706 | goto string_till_end; |
| 1707 | } |
| 1708 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1709 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1710 | ptr += size; |
| 1711 | break; |
| 1712 | } |
| 1713 | default: { |
| 1714 | handle_unusual: |
| 1715 | if ((tag & 7) == 4 || tag == 0) { |
| 1716 | ctx->EndGroup(tag); |
| 1717 | return ptr; |
| 1718 | } |
| 1719 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1720 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1721 | ptr = res.first; |
| 1722 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1723 | if (res.second) return ptr; |
| 1724 | } |
| 1725 | } // switch |
| 1726 | } // while |
| 1727 | return ptr; |
| 1728 | string_till_end: |
| 1729 | static_cast<::std::string*>(object)->clear(); |
| 1730 | static_cast<::std::string*>(object)->reserve(size); |
| 1731 | goto len_delim_till_end; |
| 1732 | len_delim_till_end: |
| 1733 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1734 | {parser_till_end, object}, size); |
| 1735 | } |
| 1736 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1737 | bool PhysicalInventoryResponse::MergePartialFromCodedStream( |
| 1738 | ::google::protobuf::io::CodedInputStream* input) { |
| 1739 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1740 | ::google::protobuf::uint32 tag; |
| 1741 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse) |
| 1742 | for (;;) { |
| 1743 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1744 | tag = p.first; |
| 1745 | if (!p.second) goto handle_unusual; |
| 1746 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1747 | // .dmi.Status status = 1; |
| 1748 | case 1: { |
| 1749 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 1750 | int value = 0; |
| 1751 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1752 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1753 | input, &value))); |
| 1754 | set_status(static_cast< ::dmi::Status >(value)); |
| 1755 | } else { |
| 1756 | goto handle_unusual; |
| 1757 | } |
| 1758 | break; |
| 1759 | } |
| 1760 | |
| 1761 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1762 | case 2: { |
| 1763 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 1764 | int value = 0; |
| 1765 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1766 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1767 | input, &value))); |
| 1768 | set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value)); |
| 1769 | } else { |
| 1770 | goto handle_unusual; |
| 1771 | } |
| 1772 | break; |
| 1773 | } |
| 1774 | |
| 1775 | // .dmi.Hardware inventory = 3; |
| 1776 | case 3: { |
| 1777 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 1778 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1779 | input, mutable_inventory())); |
| 1780 | } else { |
| 1781 | goto handle_unusual; |
| 1782 | } |
| 1783 | break; |
| 1784 | } |
| 1785 | |
| 1786 | // string reason_detail = 4; |
| 1787 | case 4: { |
| 1788 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 1789 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1790 | input, this->mutable_reason_detail())); |
| 1791 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1792 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1793 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1794 | "dmi.PhysicalInventoryResponse.reason_detail")); |
| 1795 | } else { |
| 1796 | goto handle_unusual; |
| 1797 | } |
| 1798 | break; |
| 1799 | } |
| 1800 | |
| 1801 | default: { |
| 1802 | handle_unusual: |
| 1803 | if (tag == 0) { |
| 1804 | goto success; |
| 1805 | } |
| 1806 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1807 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1808 | break; |
| 1809 | } |
| 1810 | } |
| 1811 | } |
| 1812 | success: |
| 1813 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse) |
| 1814 | return true; |
| 1815 | failure: |
| 1816 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse) |
| 1817 | return false; |
| 1818 | #undef DO_ |
| 1819 | } |
| 1820 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1821 | |
| 1822 | void PhysicalInventoryResponse::SerializeWithCachedSizes( |
| 1823 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1824 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse) |
| 1825 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1826 | (void) cached_has_bits; |
| 1827 | |
| 1828 | // .dmi.Status status = 1; |
| 1829 | if (this->status() != 0) { |
| 1830 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1831 | 1, this->status(), output); |
| 1832 | } |
| 1833 | |
| 1834 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1835 | if (this->reason() != 0) { |
| 1836 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1837 | 2, this->reason(), output); |
| 1838 | } |
| 1839 | |
| 1840 | // .dmi.Hardware inventory = 3; |
| 1841 | if (this->has_inventory()) { |
| 1842 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1843 | 3, HasBitSetters::inventory(this), output); |
| 1844 | } |
| 1845 | |
| 1846 | // string reason_detail = 4; |
| 1847 | if (this->reason_detail().size() > 0) { |
| 1848 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1849 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1850 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1851 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1852 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1853 | 4, this->reason_detail(), output); |
| 1854 | } |
| 1855 | |
| 1856 | if (_internal_metadata_.have_unknown_fields()) { |
| 1857 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1858 | _internal_metadata_.unknown_fields(), output); |
| 1859 | } |
| 1860 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse) |
| 1861 | } |
| 1862 | |
| 1863 | ::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray( |
| 1864 | ::google::protobuf::uint8* target) const { |
| 1865 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse) |
| 1866 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1867 | (void) cached_has_bits; |
| 1868 | |
| 1869 | // .dmi.Status status = 1; |
| 1870 | if (this->status() != 0) { |
| 1871 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1872 | 1, this->status(), target); |
| 1873 | } |
| 1874 | |
| 1875 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1876 | if (this->reason() != 0) { |
| 1877 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1878 | 2, this->reason(), target); |
| 1879 | } |
| 1880 | |
| 1881 | // .dmi.Hardware inventory = 3; |
| 1882 | if (this->has_inventory()) { |
| 1883 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1884 | InternalWriteMessageToArray( |
| 1885 | 3, HasBitSetters::inventory(this), target); |
| 1886 | } |
| 1887 | |
| 1888 | // string reason_detail = 4; |
| 1889 | if (this->reason_detail().size() > 0) { |
| 1890 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1891 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1892 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1893 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1894 | target = |
| 1895 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1896 | 4, this->reason_detail(), target); |
| 1897 | } |
| 1898 | |
| 1899 | if (_internal_metadata_.have_unknown_fields()) { |
| 1900 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1901 | _internal_metadata_.unknown_fields(), target); |
| 1902 | } |
| 1903 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse) |
| 1904 | return target; |
| 1905 | } |
| 1906 | |
| 1907 | size_t PhysicalInventoryResponse::ByteSizeLong() const { |
| 1908 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse) |
| 1909 | size_t total_size = 0; |
| 1910 | |
| 1911 | if (_internal_metadata_.have_unknown_fields()) { |
| 1912 | total_size += |
| 1913 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1914 | _internal_metadata_.unknown_fields()); |
| 1915 | } |
| 1916 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1917 | // Prevent compiler warnings about cached_has_bits being unused |
| 1918 | (void) cached_has_bits; |
| 1919 | |
| 1920 | // string reason_detail = 4; |
| 1921 | if (this->reason_detail().size() > 0) { |
| 1922 | total_size += 1 + |
| 1923 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1924 | this->reason_detail()); |
| 1925 | } |
| 1926 | |
| 1927 | // .dmi.Hardware inventory = 3; |
| 1928 | if (this->has_inventory()) { |
| 1929 | total_size += 1 + |
| 1930 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1931 | *inventory_); |
| 1932 | } |
| 1933 | |
| 1934 | // .dmi.Status status = 1; |
| 1935 | if (this->status() != 0) { |
| 1936 | total_size += 1 + |
| 1937 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 1938 | } |
| 1939 | |
| 1940 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1941 | if (this->reason() != 0) { |
| 1942 | total_size += 1 + |
| 1943 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 1944 | } |
| 1945 | |
| 1946 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1947 | SetCachedSize(cached_size); |
| 1948 | return total_size; |
| 1949 | } |
| 1950 | |
| 1951 | void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 1952 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1953 | GOOGLE_DCHECK_NE(&from, this); |
| 1954 | const PhysicalInventoryResponse* source = |
| 1955 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>( |
| 1956 | &from); |
| 1957 | if (source == nullptr) { |
| 1958 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse) |
| 1959 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1960 | } else { |
| 1961 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse) |
| 1962 | MergeFrom(*source); |
| 1963 | } |
| 1964 | } |
| 1965 | |
| 1966 | void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) { |
| 1967 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1968 | GOOGLE_DCHECK_NE(&from, this); |
| 1969 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1970 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1971 | (void) cached_has_bits; |
| 1972 | |
| 1973 | if (from.reason_detail().size() > 0) { |
| 1974 | |
| 1975 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1976 | } |
| 1977 | if (from.has_inventory()) { |
| 1978 | mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory()); |
| 1979 | } |
| 1980 | if (from.status() != 0) { |
| 1981 | set_status(from.status()); |
| 1982 | } |
| 1983 | if (from.reason() != 0) { |
| 1984 | set_reason(from.reason()); |
| 1985 | } |
| 1986 | } |
| 1987 | |
| 1988 | void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 1989 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse) |
| 1990 | if (&from == this) return; |
| 1991 | Clear(); |
| 1992 | MergeFrom(from); |
| 1993 | } |
| 1994 | |
| 1995 | void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) { |
| 1996 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse) |
| 1997 | if (&from == this) return; |
| 1998 | Clear(); |
| 1999 | MergeFrom(from); |
| 2000 | } |
| 2001 | |
| 2002 | bool PhysicalInventoryResponse::IsInitialized() const { |
| 2003 | return true; |
| 2004 | } |
| 2005 | |
| 2006 | void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) { |
| 2007 | if (other == this) return; |
| 2008 | InternalSwap(other); |
| 2009 | } |
| 2010 | void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) { |
| 2011 | using std::swap; |
| 2012 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2013 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2014 | GetArenaNoVirtual()); |
| 2015 | swap(inventory_, other->inventory_); |
| 2016 | swap(status_, other->status_); |
| 2017 | swap(reason_, other->reason_); |
| 2018 | } |
| 2019 | |
| 2020 | ::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const { |
| 2021 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2022 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2023 | } |
| 2024 | |
| 2025 | |
| 2026 | // =================================================================== |
| 2027 | |
| 2028 | void HWComponentInfoGetRequest::InitAsDefaultInstance() { |
| 2029 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2030 | ::dmi::Uuid::internal_default_instance()); |
| 2031 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2032 | ::dmi::Uuid::internal_default_instance()); |
| 2033 | } |
| 2034 | class HWComponentInfoGetRequest::HasBitSetters { |
| 2035 | public: |
| 2036 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg); |
| 2037 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg); |
| 2038 | }; |
| 2039 | |
| 2040 | const ::dmi::Uuid& |
| 2041 | HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) { |
| 2042 | return *msg->device_uuid_; |
| 2043 | } |
| 2044 | const ::dmi::Uuid& |
| 2045 | HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) { |
| 2046 | return *msg->component_uuid_; |
| 2047 | } |
| 2048 | void HWComponentInfoGetRequest::clear_device_uuid() { |
| 2049 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2050 | delete device_uuid_; |
| 2051 | } |
| 2052 | device_uuid_ = nullptr; |
| 2053 | } |
| 2054 | void HWComponentInfoGetRequest::clear_component_uuid() { |
| 2055 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2056 | delete component_uuid_; |
| 2057 | } |
| 2058 | component_uuid_ = nullptr; |
| 2059 | } |
| 2060 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2061 | const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber; |
| 2062 | const int HWComponentInfoGetRequest::kComponentUuidFieldNumber; |
| 2063 | const int HWComponentInfoGetRequest::kComponentNameFieldNumber; |
| 2064 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2065 | |
| 2066 | HWComponentInfoGetRequest::HWComponentInfoGetRequest() |
| 2067 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2068 | SharedCtor(); |
| 2069 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest) |
| 2070 | } |
| 2071 | HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from) |
| 2072 | : ::google::protobuf::Message(), |
| 2073 | _internal_metadata_(nullptr) { |
| 2074 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2075 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2076 | if (from.component_name().size() > 0) { |
| 2077 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2078 | } |
| 2079 | if (from.has_device_uuid()) { |
| 2080 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2081 | } else { |
| 2082 | device_uuid_ = nullptr; |
| 2083 | } |
| 2084 | if (from.has_component_uuid()) { |
| 2085 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 2086 | } else { |
| 2087 | component_uuid_ = nullptr; |
| 2088 | } |
| 2089 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest) |
| 2090 | } |
| 2091 | |
| 2092 | void HWComponentInfoGetRequest::SharedCtor() { |
| 2093 | ::google::protobuf::internal::InitSCC( |
| 2094 | &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2095 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2096 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 2097 | reinterpret_cast<char*>(&component_uuid_) - |
| 2098 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 2099 | } |
| 2100 | |
| 2101 | HWComponentInfoGetRequest::~HWComponentInfoGetRequest() { |
| 2102 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest) |
| 2103 | SharedDtor(); |
| 2104 | } |
| 2105 | |
| 2106 | void HWComponentInfoGetRequest::SharedDtor() { |
| 2107 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2108 | if (this != internal_default_instance()) delete device_uuid_; |
| 2109 | if (this != internal_default_instance()) delete component_uuid_; |
| 2110 | } |
| 2111 | |
| 2112 | void HWComponentInfoGetRequest::SetCachedSize(int size) const { |
| 2113 | _cached_size_.Set(size); |
| 2114 | } |
| 2115 | const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() { |
| 2116 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2117 | return *internal_default_instance(); |
| 2118 | } |
| 2119 | |
| 2120 | |
| 2121 | void HWComponentInfoGetRequest::Clear() { |
| 2122 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest) |
| 2123 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2124 | // Prevent compiler warnings about cached_has_bits being unused |
| 2125 | (void) cached_has_bits; |
| 2126 | |
| 2127 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2128 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2129 | delete device_uuid_; |
| 2130 | } |
| 2131 | device_uuid_ = nullptr; |
| 2132 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2133 | delete component_uuid_; |
| 2134 | } |
| 2135 | component_uuid_ = nullptr; |
| 2136 | _internal_metadata_.Clear(); |
| 2137 | } |
| 2138 | |
| 2139 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2140 | const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2141 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2142 | auto msg = static_cast<HWComponentInfoGetRequest*>(object); |
| 2143 | ::google::protobuf::int32 size; (void)size; |
| 2144 | int depth; (void)depth; |
| 2145 | ::google::protobuf::uint32 tag; |
| 2146 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2147 | auto ptr = begin; |
| 2148 | while (ptr < end) { |
| 2149 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2150 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2151 | switch (tag >> 3) { |
| 2152 | // .dmi.Uuid device_uuid = 1; |
| 2153 | case 1: { |
| 2154 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2155 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2156 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2157 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2158 | object = msg->mutable_device_uuid(); |
| 2159 | if (size > end - ptr) goto len_delim_till_end; |
| 2160 | ptr += size; |
| 2161 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2162 | {parser_till_end, object}, ptr - size, ptr)); |
| 2163 | break; |
| 2164 | } |
| 2165 | // .dmi.Uuid component_uuid = 2; |
| 2166 | case 2: { |
| 2167 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 2168 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2170 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2171 | object = msg->mutable_component_uuid(); |
| 2172 | if (size > end - ptr) goto len_delim_till_end; |
| 2173 | ptr += size; |
| 2174 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2175 | {parser_till_end, object}, ptr - size, ptr)); |
| 2176 | break; |
| 2177 | } |
| 2178 | // string component_name = 3; |
| 2179 | case 3: { |
| 2180 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2181 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2182 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2183 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name"); |
| 2184 | object = msg->mutable_component_name(); |
| 2185 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2186 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2187 | goto string_till_end; |
| 2188 | } |
| 2189 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2190 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2191 | ptr += size; |
| 2192 | break; |
| 2193 | } |
| 2194 | default: { |
| 2195 | handle_unusual: |
| 2196 | if ((tag & 7) == 4 || tag == 0) { |
| 2197 | ctx->EndGroup(tag); |
| 2198 | return ptr; |
| 2199 | } |
| 2200 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2201 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2202 | ptr = res.first; |
| 2203 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2204 | if (res.second) return ptr; |
| 2205 | } |
| 2206 | } // switch |
| 2207 | } // while |
| 2208 | return ptr; |
| 2209 | string_till_end: |
| 2210 | static_cast<::std::string*>(object)->clear(); |
| 2211 | static_cast<::std::string*>(object)->reserve(size); |
| 2212 | goto len_delim_till_end; |
| 2213 | len_delim_till_end: |
| 2214 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2215 | {parser_till_end, object}, size); |
| 2216 | } |
| 2217 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2218 | bool HWComponentInfoGetRequest::MergePartialFromCodedStream( |
| 2219 | ::google::protobuf::io::CodedInputStream* input) { |
| 2220 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2221 | ::google::protobuf::uint32 tag; |
| 2222 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest) |
| 2223 | for (;;) { |
| 2224 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2225 | tag = p.first; |
| 2226 | if (!p.second) goto handle_unusual; |
| 2227 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2228 | // .dmi.Uuid device_uuid = 1; |
| 2229 | case 1: { |
| 2230 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2231 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2232 | input, mutable_device_uuid())); |
| 2233 | } else { |
| 2234 | goto handle_unusual; |
| 2235 | } |
| 2236 | break; |
| 2237 | } |
| 2238 | |
| 2239 | // .dmi.Uuid component_uuid = 2; |
| 2240 | case 2: { |
| 2241 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 2242 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2243 | input, mutable_component_uuid())); |
| 2244 | } else { |
| 2245 | goto handle_unusual; |
| 2246 | } |
| 2247 | break; |
| 2248 | } |
| 2249 | |
| 2250 | // string component_name = 3; |
| 2251 | case 3: { |
| 2252 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2253 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2254 | input, this->mutable_component_name())); |
| 2255 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2256 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2257 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2258 | "dmi.HWComponentInfoGetRequest.component_name")); |
| 2259 | } else { |
| 2260 | goto handle_unusual; |
| 2261 | } |
| 2262 | break; |
| 2263 | } |
| 2264 | |
| 2265 | default: { |
| 2266 | handle_unusual: |
| 2267 | if (tag == 0) { |
| 2268 | goto success; |
| 2269 | } |
| 2270 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2271 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2272 | break; |
| 2273 | } |
| 2274 | } |
| 2275 | } |
| 2276 | success: |
| 2277 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest) |
| 2278 | return true; |
| 2279 | failure: |
| 2280 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest) |
| 2281 | return false; |
| 2282 | #undef DO_ |
| 2283 | } |
| 2284 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2285 | |
| 2286 | void HWComponentInfoGetRequest::SerializeWithCachedSizes( |
| 2287 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2288 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest) |
| 2289 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2290 | (void) cached_has_bits; |
| 2291 | |
| 2292 | // .dmi.Uuid device_uuid = 1; |
| 2293 | if (this->has_device_uuid()) { |
| 2294 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2295 | 1, HasBitSetters::device_uuid(this), output); |
| 2296 | } |
| 2297 | |
| 2298 | // .dmi.Uuid component_uuid = 2; |
| 2299 | if (this->has_component_uuid()) { |
| 2300 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2301 | 2, HasBitSetters::component_uuid(this), output); |
| 2302 | } |
| 2303 | |
| 2304 | // string component_name = 3; |
| 2305 | if (this->component_name().size() > 0) { |
| 2306 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2307 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2308 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2309 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2310 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2311 | 3, this->component_name(), output); |
| 2312 | } |
| 2313 | |
| 2314 | if (_internal_metadata_.have_unknown_fields()) { |
| 2315 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2316 | _internal_metadata_.unknown_fields(), output); |
| 2317 | } |
| 2318 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest) |
| 2319 | } |
| 2320 | |
| 2321 | ::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray( |
| 2322 | ::google::protobuf::uint8* target) const { |
| 2323 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest) |
| 2324 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2325 | (void) cached_has_bits; |
| 2326 | |
| 2327 | // .dmi.Uuid device_uuid = 1; |
| 2328 | if (this->has_device_uuid()) { |
| 2329 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2330 | InternalWriteMessageToArray( |
| 2331 | 1, HasBitSetters::device_uuid(this), target); |
| 2332 | } |
| 2333 | |
| 2334 | // .dmi.Uuid component_uuid = 2; |
| 2335 | if (this->has_component_uuid()) { |
| 2336 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2337 | InternalWriteMessageToArray( |
| 2338 | 2, HasBitSetters::component_uuid(this), target); |
| 2339 | } |
| 2340 | |
| 2341 | // string component_name = 3; |
| 2342 | if (this->component_name().size() > 0) { |
| 2343 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2344 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2345 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2346 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2347 | target = |
| 2348 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2349 | 3, this->component_name(), target); |
| 2350 | } |
| 2351 | |
| 2352 | if (_internal_metadata_.have_unknown_fields()) { |
| 2353 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2354 | _internal_metadata_.unknown_fields(), target); |
| 2355 | } |
| 2356 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest) |
| 2357 | return target; |
| 2358 | } |
| 2359 | |
| 2360 | size_t HWComponentInfoGetRequest::ByteSizeLong() const { |
| 2361 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest) |
| 2362 | size_t total_size = 0; |
| 2363 | |
| 2364 | if (_internal_metadata_.have_unknown_fields()) { |
| 2365 | total_size += |
| 2366 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2367 | _internal_metadata_.unknown_fields()); |
| 2368 | } |
| 2369 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2370 | // Prevent compiler warnings about cached_has_bits being unused |
| 2371 | (void) cached_has_bits; |
| 2372 | |
| 2373 | // string component_name = 3; |
| 2374 | if (this->component_name().size() > 0) { |
| 2375 | total_size += 1 + |
| 2376 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2377 | this->component_name()); |
| 2378 | } |
| 2379 | |
| 2380 | // .dmi.Uuid device_uuid = 1; |
| 2381 | if (this->has_device_uuid()) { |
| 2382 | total_size += 1 + |
| 2383 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2384 | *device_uuid_); |
| 2385 | } |
| 2386 | |
| 2387 | // .dmi.Uuid component_uuid = 2; |
| 2388 | if (this->has_component_uuid()) { |
| 2389 | total_size += 1 + |
| 2390 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2391 | *component_uuid_); |
| 2392 | } |
| 2393 | |
| 2394 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2395 | SetCachedSize(cached_size); |
| 2396 | return total_size; |
| 2397 | } |
| 2398 | |
| 2399 | void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2400 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2401 | GOOGLE_DCHECK_NE(&from, this); |
| 2402 | const HWComponentInfoGetRequest* source = |
| 2403 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>( |
| 2404 | &from); |
| 2405 | if (source == nullptr) { |
| 2406 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest) |
| 2407 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2408 | } else { |
| 2409 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest) |
| 2410 | MergeFrom(*source); |
| 2411 | } |
| 2412 | } |
| 2413 | |
| 2414 | void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) { |
| 2415 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2416 | GOOGLE_DCHECK_NE(&from, this); |
| 2417 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2418 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2419 | (void) cached_has_bits; |
| 2420 | |
| 2421 | if (from.component_name().size() > 0) { |
| 2422 | |
| 2423 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2424 | } |
| 2425 | if (from.has_device_uuid()) { |
| 2426 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2427 | } |
| 2428 | if (from.has_component_uuid()) { |
| 2429 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 2430 | } |
| 2431 | } |
| 2432 | |
| 2433 | void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2434 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2435 | if (&from == this) return; |
| 2436 | Clear(); |
| 2437 | MergeFrom(from); |
| 2438 | } |
| 2439 | |
| 2440 | void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) { |
| 2441 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2442 | if (&from == this) return; |
| 2443 | Clear(); |
| 2444 | MergeFrom(from); |
| 2445 | } |
| 2446 | |
| 2447 | bool HWComponentInfoGetRequest::IsInitialized() const { |
| 2448 | return true; |
| 2449 | } |
| 2450 | |
| 2451 | void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) { |
| 2452 | if (other == this) return; |
| 2453 | InternalSwap(other); |
| 2454 | } |
| 2455 | void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) { |
| 2456 | using std::swap; |
| 2457 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2458 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2459 | GetArenaNoVirtual()); |
| 2460 | swap(device_uuid_, other->device_uuid_); |
| 2461 | swap(component_uuid_, other->component_uuid_); |
| 2462 | } |
| 2463 | |
| 2464 | ::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const { |
| 2465 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2466 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2467 | } |
| 2468 | |
| 2469 | |
| 2470 | // =================================================================== |
| 2471 | |
| 2472 | void HWComponentInfoGetResponse::InitAsDefaultInstance() { |
| 2473 | ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>( |
| 2474 | ::dmi::Component::internal_default_instance()); |
| 2475 | } |
| 2476 | class HWComponentInfoGetResponse::HasBitSetters { |
| 2477 | public: |
| 2478 | static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg); |
| 2479 | }; |
| 2480 | |
| 2481 | const ::dmi::Component& |
| 2482 | HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) { |
| 2483 | return *msg->component_; |
| 2484 | } |
| 2485 | void HWComponentInfoGetResponse::clear_component() { |
| 2486 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2487 | delete component_; |
| 2488 | } |
| 2489 | component_ = nullptr; |
| 2490 | } |
| 2491 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2492 | const int HWComponentInfoGetResponse::kStatusFieldNumber; |
| 2493 | const int HWComponentInfoGetResponse::kReasonFieldNumber; |
| 2494 | const int HWComponentInfoGetResponse::kComponentFieldNumber; |
| 2495 | const int HWComponentInfoGetResponse::kReasonDetailFieldNumber; |
| 2496 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2497 | |
| 2498 | HWComponentInfoGetResponse::HWComponentInfoGetResponse() |
| 2499 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2500 | SharedCtor(); |
| 2501 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse) |
| 2502 | } |
| 2503 | HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from) |
| 2504 | : ::google::protobuf::Message(), |
| 2505 | _internal_metadata_(nullptr) { |
| 2506 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2507 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2508 | if (from.reason_detail().size() > 0) { |
| 2509 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2510 | } |
| 2511 | if (from.has_component()) { |
| 2512 | component_ = new ::dmi::Component(*from.component_); |
| 2513 | } else { |
| 2514 | component_ = nullptr; |
| 2515 | } |
| 2516 | ::memcpy(&status_, &from.status_, |
| 2517 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2518 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2519 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse) |
| 2520 | } |
| 2521 | |
| 2522 | void HWComponentInfoGetResponse::SharedCtor() { |
| 2523 | ::google::protobuf::internal::InitSCC( |
| 2524 | &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2525 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2526 | ::memset(&component_, 0, static_cast<size_t>( |
| 2527 | reinterpret_cast<char*>(&reason_) - |
| 2528 | reinterpret_cast<char*>(&component_)) + sizeof(reason_)); |
| 2529 | } |
| 2530 | |
| 2531 | HWComponentInfoGetResponse::~HWComponentInfoGetResponse() { |
| 2532 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse) |
| 2533 | SharedDtor(); |
| 2534 | } |
| 2535 | |
| 2536 | void HWComponentInfoGetResponse::SharedDtor() { |
| 2537 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2538 | if (this != internal_default_instance()) delete component_; |
| 2539 | } |
| 2540 | |
| 2541 | void HWComponentInfoGetResponse::SetCachedSize(int size) const { |
| 2542 | _cached_size_.Set(size); |
| 2543 | } |
| 2544 | const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() { |
| 2545 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2546 | return *internal_default_instance(); |
| 2547 | } |
| 2548 | |
| 2549 | |
| 2550 | void HWComponentInfoGetResponse::Clear() { |
| 2551 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse) |
| 2552 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2553 | // Prevent compiler warnings about cached_has_bits being unused |
| 2554 | (void) cached_has_bits; |
| 2555 | |
| 2556 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2557 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2558 | delete component_; |
| 2559 | } |
| 2560 | component_ = nullptr; |
| 2561 | ::memset(&status_, 0, static_cast<size_t>( |
| 2562 | reinterpret_cast<char*>(&reason_) - |
| 2563 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2564 | _internal_metadata_.Clear(); |
| 2565 | } |
| 2566 | |
| 2567 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2568 | const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2569 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2570 | auto msg = static_cast<HWComponentInfoGetResponse*>(object); |
| 2571 | ::google::protobuf::int32 size; (void)size; |
| 2572 | int depth; (void)depth; |
| 2573 | ::google::protobuf::uint32 tag; |
| 2574 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2575 | auto ptr = begin; |
| 2576 | while (ptr < end) { |
| 2577 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2578 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2579 | switch (tag >> 3) { |
| 2580 | // .dmi.Status status = 1; |
| 2581 | case 1: { |
| 2582 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2583 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2584 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2585 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2586 | break; |
| 2587 | } |
| 2588 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2589 | case 2: { |
| 2590 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2591 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2592 | msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val)); |
| 2593 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2594 | break; |
| 2595 | } |
| 2596 | // .dmi.Component component = 3; |
| 2597 | case 3: { |
| 2598 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2599 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2600 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2601 | parser_till_end = ::dmi::Component::_InternalParse; |
| 2602 | object = msg->mutable_component(); |
| 2603 | if (size > end - ptr) goto len_delim_till_end; |
| 2604 | ptr += size; |
| 2605 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2606 | {parser_till_end, object}, ptr - size, ptr)); |
| 2607 | break; |
| 2608 | } |
| 2609 | // string reason_detail = 4; |
| 2610 | case 4: { |
| 2611 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2612 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2613 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2614 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2615 | object = msg->mutable_reason_detail(); |
| 2616 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2617 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2618 | goto string_till_end; |
| 2619 | } |
| 2620 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2621 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2622 | ptr += size; |
| 2623 | break; |
| 2624 | } |
| 2625 | default: { |
| 2626 | handle_unusual: |
| 2627 | if ((tag & 7) == 4 || tag == 0) { |
| 2628 | ctx->EndGroup(tag); |
| 2629 | return ptr; |
| 2630 | } |
| 2631 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2632 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2633 | ptr = res.first; |
| 2634 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2635 | if (res.second) return ptr; |
| 2636 | } |
| 2637 | } // switch |
| 2638 | } // while |
| 2639 | return ptr; |
| 2640 | string_till_end: |
| 2641 | static_cast<::std::string*>(object)->clear(); |
| 2642 | static_cast<::std::string*>(object)->reserve(size); |
| 2643 | goto len_delim_till_end; |
| 2644 | len_delim_till_end: |
| 2645 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2646 | {parser_till_end, object}, size); |
| 2647 | } |
| 2648 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2649 | bool HWComponentInfoGetResponse::MergePartialFromCodedStream( |
| 2650 | ::google::protobuf::io::CodedInputStream* input) { |
| 2651 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2652 | ::google::protobuf::uint32 tag; |
| 2653 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse) |
| 2654 | for (;;) { |
| 2655 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2656 | tag = p.first; |
| 2657 | if (!p.second) goto handle_unusual; |
| 2658 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2659 | // .dmi.Status status = 1; |
| 2660 | case 1: { |
| 2661 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2662 | int value = 0; |
| 2663 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2664 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2665 | input, &value))); |
| 2666 | set_status(static_cast< ::dmi::Status >(value)); |
| 2667 | } else { |
| 2668 | goto handle_unusual; |
| 2669 | } |
| 2670 | break; |
| 2671 | } |
| 2672 | |
| 2673 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2674 | case 2: { |
| 2675 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2676 | int value = 0; |
| 2677 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2678 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2679 | input, &value))); |
| 2680 | set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value)); |
| 2681 | } else { |
| 2682 | goto handle_unusual; |
| 2683 | } |
| 2684 | break; |
| 2685 | } |
| 2686 | |
| 2687 | // .dmi.Component component = 3; |
| 2688 | case 3: { |
| 2689 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2690 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2691 | input, mutable_component())); |
| 2692 | } else { |
| 2693 | goto handle_unusual; |
| 2694 | } |
| 2695 | break; |
| 2696 | } |
| 2697 | |
| 2698 | // string reason_detail = 4; |
| 2699 | case 4: { |
| 2700 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2701 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2702 | input, this->mutable_reason_detail())); |
| 2703 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2704 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2705 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2706 | "dmi.HWComponentInfoGetResponse.reason_detail")); |
| 2707 | } else { |
| 2708 | goto handle_unusual; |
| 2709 | } |
| 2710 | break; |
| 2711 | } |
| 2712 | |
| 2713 | default: { |
| 2714 | handle_unusual: |
| 2715 | if (tag == 0) { |
| 2716 | goto success; |
| 2717 | } |
| 2718 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2719 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2720 | break; |
| 2721 | } |
| 2722 | } |
| 2723 | } |
| 2724 | success: |
| 2725 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse) |
| 2726 | return true; |
| 2727 | failure: |
| 2728 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse) |
| 2729 | return false; |
| 2730 | #undef DO_ |
| 2731 | } |
| 2732 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2733 | |
| 2734 | void HWComponentInfoGetResponse::SerializeWithCachedSizes( |
| 2735 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2736 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse) |
| 2737 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2738 | (void) cached_has_bits; |
| 2739 | |
| 2740 | // .dmi.Status status = 1; |
| 2741 | if (this->status() != 0) { |
| 2742 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2743 | 1, this->status(), output); |
| 2744 | } |
| 2745 | |
| 2746 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2747 | if (this->reason() != 0) { |
| 2748 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2749 | 2, this->reason(), output); |
| 2750 | } |
| 2751 | |
| 2752 | // .dmi.Component component = 3; |
| 2753 | if (this->has_component()) { |
| 2754 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2755 | 3, HasBitSetters::component(this), output); |
| 2756 | } |
| 2757 | |
| 2758 | // string reason_detail = 4; |
| 2759 | if (this->reason_detail().size() > 0) { |
| 2760 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2761 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2762 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2763 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2764 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2765 | 4, this->reason_detail(), output); |
| 2766 | } |
| 2767 | |
| 2768 | if (_internal_metadata_.have_unknown_fields()) { |
| 2769 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2770 | _internal_metadata_.unknown_fields(), output); |
| 2771 | } |
| 2772 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse) |
| 2773 | } |
| 2774 | |
| 2775 | ::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray( |
| 2776 | ::google::protobuf::uint8* target) const { |
| 2777 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse) |
| 2778 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2779 | (void) cached_has_bits; |
| 2780 | |
| 2781 | // .dmi.Status status = 1; |
| 2782 | if (this->status() != 0) { |
| 2783 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2784 | 1, this->status(), target); |
| 2785 | } |
| 2786 | |
| 2787 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2788 | if (this->reason() != 0) { |
| 2789 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2790 | 2, this->reason(), target); |
| 2791 | } |
| 2792 | |
| 2793 | // .dmi.Component component = 3; |
| 2794 | if (this->has_component()) { |
| 2795 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2796 | InternalWriteMessageToArray( |
| 2797 | 3, HasBitSetters::component(this), target); |
| 2798 | } |
| 2799 | |
| 2800 | // string reason_detail = 4; |
| 2801 | if (this->reason_detail().size() > 0) { |
| 2802 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2803 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2804 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2805 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2806 | target = |
| 2807 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2808 | 4, this->reason_detail(), target); |
| 2809 | } |
| 2810 | |
| 2811 | if (_internal_metadata_.have_unknown_fields()) { |
| 2812 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2813 | _internal_metadata_.unknown_fields(), target); |
| 2814 | } |
| 2815 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse) |
| 2816 | return target; |
| 2817 | } |
| 2818 | |
| 2819 | size_t HWComponentInfoGetResponse::ByteSizeLong() const { |
| 2820 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse) |
| 2821 | size_t total_size = 0; |
| 2822 | |
| 2823 | if (_internal_metadata_.have_unknown_fields()) { |
| 2824 | total_size += |
| 2825 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2826 | _internal_metadata_.unknown_fields()); |
| 2827 | } |
| 2828 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2829 | // Prevent compiler warnings about cached_has_bits being unused |
| 2830 | (void) cached_has_bits; |
| 2831 | |
| 2832 | // string reason_detail = 4; |
| 2833 | if (this->reason_detail().size() > 0) { |
| 2834 | total_size += 1 + |
| 2835 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2836 | this->reason_detail()); |
| 2837 | } |
| 2838 | |
| 2839 | // .dmi.Component component = 3; |
| 2840 | if (this->has_component()) { |
| 2841 | total_size += 1 + |
| 2842 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2843 | *component_); |
| 2844 | } |
| 2845 | |
| 2846 | // .dmi.Status status = 1; |
| 2847 | if (this->status() != 0) { |
| 2848 | total_size += 1 + |
| 2849 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2850 | } |
| 2851 | |
| 2852 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2853 | if (this->reason() != 0) { |
| 2854 | total_size += 1 + |
| 2855 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2856 | } |
| 2857 | |
| 2858 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2859 | SetCachedSize(cached_size); |
| 2860 | return total_size; |
| 2861 | } |
| 2862 | |
| 2863 | void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2864 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2865 | GOOGLE_DCHECK_NE(&from, this); |
| 2866 | const HWComponentInfoGetResponse* source = |
| 2867 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>( |
| 2868 | &from); |
| 2869 | if (source == nullptr) { |
| 2870 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse) |
| 2871 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2872 | } else { |
| 2873 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse) |
| 2874 | MergeFrom(*source); |
| 2875 | } |
| 2876 | } |
| 2877 | |
| 2878 | void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) { |
| 2879 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2880 | GOOGLE_DCHECK_NE(&from, this); |
| 2881 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2882 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2883 | (void) cached_has_bits; |
| 2884 | |
| 2885 | if (from.reason_detail().size() > 0) { |
| 2886 | |
| 2887 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2888 | } |
| 2889 | if (from.has_component()) { |
| 2890 | mutable_component()->::dmi::Component::MergeFrom(from.component()); |
| 2891 | } |
| 2892 | if (from.status() != 0) { |
| 2893 | set_status(from.status()); |
| 2894 | } |
| 2895 | if (from.reason() != 0) { |
| 2896 | set_reason(from.reason()); |
| 2897 | } |
| 2898 | } |
| 2899 | |
| 2900 | void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2901 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2902 | if (&from == this) return; |
| 2903 | Clear(); |
| 2904 | MergeFrom(from); |
| 2905 | } |
| 2906 | |
| 2907 | void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) { |
| 2908 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2909 | if (&from == this) return; |
| 2910 | Clear(); |
| 2911 | MergeFrom(from); |
| 2912 | } |
| 2913 | |
| 2914 | bool HWComponentInfoGetResponse::IsInitialized() const { |
| 2915 | return true; |
| 2916 | } |
| 2917 | |
| 2918 | void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) { |
| 2919 | if (other == this) return; |
| 2920 | InternalSwap(other); |
| 2921 | } |
| 2922 | void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) { |
| 2923 | using std::swap; |
| 2924 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2925 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2926 | GetArenaNoVirtual()); |
| 2927 | swap(component_, other->component_); |
| 2928 | swap(status_, other->status_); |
| 2929 | swap(reason_, other->reason_); |
| 2930 | } |
| 2931 | |
| 2932 | ::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const { |
| 2933 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2934 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2935 | } |
| 2936 | |
| 2937 | |
| 2938 | // =================================================================== |
| 2939 | |
| 2940 | void HWComponentInfoSetRequest::InitAsDefaultInstance() { |
| 2941 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2942 | ::dmi::Uuid::internal_default_instance()); |
| 2943 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2944 | ::dmi::Uuid::internal_default_instance()); |
| 2945 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>( |
| 2946 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 2947 | } |
| 2948 | class HWComponentInfoSetRequest::HasBitSetters { |
| 2949 | public: |
| 2950 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg); |
| 2951 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg); |
| 2952 | static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg); |
| 2953 | }; |
| 2954 | |
| 2955 | const ::dmi::Uuid& |
| 2956 | HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) { |
| 2957 | return *msg->device_uuid_; |
| 2958 | } |
| 2959 | const ::dmi::Uuid& |
| 2960 | HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) { |
| 2961 | return *msg->component_uuid_; |
| 2962 | } |
| 2963 | const ::dmi::ModifiableComponent& |
| 2964 | HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) { |
| 2965 | return *msg->changes_; |
| 2966 | } |
| 2967 | void HWComponentInfoSetRequest::clear_device_uuid() { |
| 2968 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2969 | delete device_uuid_; |
| 2970 | } |
| 2971 | device_uuid_ = nullptr; |
| 2972 | } |
| 2973 | void HWComponentInfoSetRequest::clear_component_uuid() { |
| 2974 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2975 | delete component_uuid_; |
| 2976 | } |
| 2977 | component_uuid_ = nullptr; |
| 2978 | } |
| 2979 | void HWComponentInfoSetRequest::clear_changes() { |
| 2980 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 2981 | delete changes_; |
| 2982 | } |
| 2983 | changes_ = nullptr; |
| 2984 | } |
| 2985 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2986 | const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber; |
| 2987 | const int HWComponentInfoSetRequest::kComponentUuidFieldNumber; |
| 2988 | const int HWComponentInfoSetRequest::kComponentNameFieldNumber; |
| 2989 | const int HWComponentInfoSetRequest::kChangesFieldNumber; |
| 2990 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2991 | |
| 2992 | HWComponentInfoSetRequest::HWComponentInfoSetRequest() |
| 2993 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2994 | SharedCtor(); |
| 2995 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest) |
| 2996 | } |
| 2997 | HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from) |
| 2998 | : ::google::protobuf::Message(), |
| 2999 | _internal_metadata_(nullptr) { |
| 3000 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3001 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3002 | if (from.component_name().size() > 0) { |
| 3003 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3004 | } |
| 3005 | if (from.has_device_uuid()) { |
| 3006 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3007 | } else { |
| 3008 | device_uuid_ = nullptr; |
| 3009 | } |
| 3010 | if (from.has_component_uuid()) { |
| 3011 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 3012 | } else { |
| 3013 | component_uuid_ = nullptr; |
| 3014 | } |
| 3015 | if (from.has_changes()) { |
| 3016 | changes_ = new ::dmi::ModifiableComponent(*from.changes_); |
| 3017 | } else { |
| 3018 | changes_ = nullptr; |
| 3019 | } |
| 3020 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest) |
| 3021 | } |
| 3022 | |
| 3023 | void HWComponentInfoSetRequest::SharedCtor() { |
| 3024 | ::google::protobuf::internal::InitSCC( |
| 3025 | &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3026 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3027 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3028 | reinterpret_cast<char*>(&changes_) - |
| 3029 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_)); |
| 3030 | } |
| 3031 | |
| 3032 | HWComponentInfoSetRequest::~HWComponentInfoSetRequest() { |
| 3033 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest) |
| 3034 | SharedDtor(); |
| 3035 | } |
| 3036 | |
| 3037 | void HWComponentInfoSetRequest::SharedDtor() { |
| 3038 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3039 | if (this != internal_default_instance()) delete device_uuid_; |
| 3040 | if (this != internal_default_instance()) delete component_uuid_; |
| 3041 | if (this != internal_default_instance()) delete changes_; |
| 3042 | } |
| 3043 | |
| 3044 | void HWComponentInfoSetRequest::SetCachedSize(int size) const { |
| 3045 | _cached_size_.Set(size); |
| 3046 | } |
| 3047 | const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() { |
| 3048 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3049 | return *internal_default_instance(); |
| 3050 | } |
| 3051 | |
| 3052 | |
| 3053 | void HWComponentInfoSetRequest::Clear() { |
| 3054 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest) |
| 3055 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3056 | // Prevent compiler warnings about cached_has_bits being unused |
| 3057 | (void) cached_has_bits; |
| 3058 | |
| 3059 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3060 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3061 | delete device_uuid_; |
| 3062 | } |
| 3063 | device_uuid_ = nullptr; |
| 3064 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 3065 | delete component_uuid_; |
| 3066 | } |
| 3067 | component_uuid_ = nullptr; |
| 3068 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 3069 | delete changes_; |
| 3070 | } |
| 3071 | changes_ = nullptr; |
| 3072 | _internal_metadata_.Clear(); |
| 3073 | } |
| 3074 | |
| 3075 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3076 | const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3077 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3078 | auto msg = static_cast<HWComponentInfoSetRequest*>(object); |
| 3079 | ::google::protobuf::int32 size; (void)size; |
| 3080 | int depth; (void)depth; |
| 3081 | ::google::protobuf::uint32 tag; |
| 3082 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3083 | auto ptr = begin; |
| 3084 | while (ptr < end) { |
| 3085 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3086 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3087 | switch (tag >> 3) { |
| 3088 | // .dmi.Uuid device_uuid = 1; |
| 3089 | case 1: { |
| 3090 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3091 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3092 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3093 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3094 | object = msg->mutable_device_uuid(); |
| 3095 | if (size > end - ptr) goto len_delim_till_end; |
| 3096 | ptr += size; |
| 3097 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3098 | {parser_till_end, object}, ptr - size, ptr)); |
| 3099 | break; |
| 3100 | } |
| 3101 | // .dmi.Uuid component_uuid = 2; |
| 3102 | case 2: { |
| 3103 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3104 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3105 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3106 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3107 | object = msg->mutable_component_uuid(); |
| 3108 | if (size > end - ptr) goto len_delim_till_end; |
| 3109 | ptr += size; |
| 3110 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3111 | {parser_till_end, object}, ptr - size, ptr)); |
| 3112 | break; |
| 3113 | } |
| 3114 | // string component_name = 3; |
| 3115 | case 3: { |
| 3116 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3117 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3118 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3119 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name"); |
| 3120 | object = msg->mutable_component_name(); |
| 3121 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3122 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3123 | goto string_till_end; |
| 3124 | } |
| 3125 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3126 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3127 | ptr += size; |
| 3128 | break; |
| 3129 | } |
| 3130 | // .dmi.ModifiableComponent changes = 4; |
| 3131 | case 4: { |
| 3132 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3133 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3134 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3135 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 3136 | object = msg->mutable_changes(); |
| 3137 | if (size > end - ptr) goto len_delim_till_end; |
| 3138 | ptr += size; |
| 3139 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3140 | {parser_till_end, object}, ptr - size, ptr)); |
| 3141 | break; |
| 3142 | } |
| 3143 | default: { |
| 3144 | handle_unusual: |
| 3145 | if ((tag & 7) == 4 || tag == 0) { |
| 3146 | ctx->EndGroup(tag); |
| 3147 | return ptr; |
| 3148 | } |
| 3149 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3150 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3151 | ptr = res.first; |
| 3152 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3153 | if (res.second) return ptr; |
| 3154 | } |
| 3155 | } // switch |
| 3156 | } // while |
| 3157 | return ptr; |
| 3158 | string_till_end: |
| 3159 | static_cast<::std::string*>(object)->clear(); |
| 3160 | static_cast<::std::string*>(object)->reserve(size); |
| 3161 | goto len_delim_till_end; |
| 3162 | len_delim_till_end: |
| 3163 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3164 | {parser_till_end, object}, size); |
| 3165 | } |
| 3166 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3167 | bool HWComponentInfoSetRequest::MergePartialFromCodedStream( |
| 3168 | ::google::protobuf::io::CodedInputStream* input) { |
| 3169 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3170 | ::google::protobuf::uint32 tag; |
| 3171 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest) |
| 3172 | for (;;) { |
| 3173 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3174 | tag = p.first; |
| 3175 | if (!p.second) goto handle_unusual; |
| 3176 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3177 | // .dmi.Uuid device_uuid = 1; |
| 3178 | case 1: { |
| 3179 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3180 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3181 | input, mutable_device_uuid())); |
| 3182 | } else { |
| 3183 | goto handle_unusual; |
| 3184 | } |
| 3185 | break; |
| 3186 | } |
| 3187 | |
| 3188 | // .dmi.Uuid component_uuid = 2; |
| 3189 | case 2: { |
| 3190 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3191 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3192 | input, mutable_component_uuid())); |
| 3193 | } else { |
| 3194 | goto handle_unusual; |
| 3195 | } |
| 3196 | break; |
| 3197 | } |
| 3198 | |
| 3199 | // string component_name = 3; |
| 3200 | case 3: { |
| 3201 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3202 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3203 | input, this->mutable_component_name())); |
| 3204 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3205 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3206 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3207 | "dmi.HWComponentInfoSetRequest.component_name")); |
| 3208 | } else { |
| 3209 | goto handle_unusual; |
| 3210 | } |
| 3211 | break; |
| 3212 | } |
| 3213 | |
| 3214 | // .dmi.ModifiableComponent changes = 4; |
| 3215 | case 4: { |
| 3216 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3217 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3218 | input, mutable_changes())); |
| 3219 | } else { |
| 3220 | goto handle_unusual; |
| 3221 | } |
| 3222 | break; |
| 3223 | } |
| 3224 | |
| 3225 | default: { |
| 3226 | handle_unusual: |
| 3227 | if (tag == 0) { |
| 3228 | goto success; |
| 3229 | } |
| 3230 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3231 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3232 | break; |
| 3233 | } |
| 3234 | } |
| 3235 | } |
| 3236 | success: |
| 3237 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest) |
| 3238 | return true; |
| 3239 | failure: |
| 3240 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest) |
| 3241 | return false; |
| 3242 | #undef DO_ |
| 3243 | } |
| 3244 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3245 | |
| 3246 | void HWComponentInfoSetRequest::SerializeWithCachedSizes( |
| 3247 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3248 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest) |
| 3249 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3250 | (void) cached_has_bits; |
| 3251 | |
| 3252 | // .dmi.Uuid device_uuid = 1; |
| 3253 | if (this->has_device_uuid()) { |
| 3254 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3255 | 1, HasBitSetters::device_uuid(this), output); |
| 3256 | } |
| 3257 | |
| 3258 | // .dmi.Uuid component_uuid = 2; |
| 3259 | if (this->has_component_uuid()) { |
| 3260 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3261 | 2, HasBitSetters::component_uuid(this), output); |
| 3262 | } |
| 3263 | |
| 3264 | // string component_name = 3; |
| 3265 | if (this->component_name().size() > 0) { |
| 3266 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3267 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3268 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3269 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3270 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3271 | 3, this->component_name(), output); |
| 3272 | } |
| 3273 | |
| 3274 | // .dmi.ModifiableComponent changes = 4; |
| 3275 | if (this->has_changes()) { |
| 3276 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3277 | 4, HasBitSetters::changes(this), output); |
| 3278 | } |
| 3279 | |
| 3280 | if (_internal_metadata_.have_unknown_fields()) { |
| 3281 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3282 | _internal_metadata_.unknown_fields(), output); |
| 3283 | } |
| 3284 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest) |
| 3285 | } |
| 3286 | |
| 3287 | ::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray( |
| 3288 | ::google::protobuf::uint8* target) const { |
| 3289 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest) |
| 3290 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3291 | (void) cached_has_bits; |
| 3292 | |
| 3293 | // .dmi.Uuid device_uuid = 1; |
| 3294 | if (this->has_device_uuid()) { |
| 3295 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3296 | InternalWriteMessageToArray( |
| 3297 | 1, HasBitSetters::device_uuid(this), target); |
| 3298 | } |
| 3299 | |
| 3300 | // .dmi.Uuid component_uuid = 2; |
| 3301 | if (this->has_component_uuid()) { |
| 3302 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3303 | InternalWriteMessageToArray( |
| 3304 | 2, HasBitSetters::component_uuid(this), target); |
| 3305 | } |
| 3306 | |
| 3307 | // string component_name = 3; |
| 3308 | if (this->component_name().size() > 0) { |
| 3309 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3310 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3311 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3312 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3313 | target = |
| 3314 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3315 | 3, this->component_name(), target); |
| 3316 | } |
| 3317 | |
| 3318 | // .dmi.ModifiableComponent changes = 4; |
| 3319 | if (this->has_changes()) { |
| 3320 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3321 | InternalWriteMessageToArray( |
| 3322 | 4, HasBitSetters::changes(this), target); |
| 3323 | } |
| 3324 | |
| 3325 | if (_internal_metadata_.have_unknown_fields()) { |
| 3326 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3327 | _internal_metadata_.unknown_fields(), target); |
| 3328 | } |
| 3329 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest) |
| 3330 | return target; |
| 3331 | } |
| 3332 | |
| 3333 | size_t HWComponentInfoSetRequest::ByteSizeLong() const { |
| 3334 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest) |
| 3335 | size_t total_size = 0; |
| 3336 | |
| 3337 | if (_internal_metadata_.have_unknown_fields()) { |
| 3338 | total_size += |
| 3339 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3340 | _internal_metadata_.unknown_fields()); |
| 3341 | } |
| 3342 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3343 | // Prevent compiler warnings about cached_has_bits being unused |
| 3344 | (void) cached_has_bits; |
| 3345 | |
| 3346 | // string component_name = 3; |
| 3347 | if (this->component_name().size() > 0) { |
| 3348 | total_size += 1 + |
| 3349 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3350 | this->component_name()); |
| 3351 | } |
| 3352 | |
| 3353 | // .dmi.Uuid device_uuid = 1; |
| 3354 | if (this->has_device_uuid()) { |
| 3355 | total_size += 1 + |
| 3356 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3357 | *device_uuid_); |
| 3358 | } |
| 3359 | |
| 3360 | // .dmi.Uuid component_uuid = 2; |
| 3361 | if (this->has_component_uuid()) { |
| 3362 | total_size += 1 + |
| 3363 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3364 | *component_uuid_); |
| 3365 | } |
| 3366 | |
| 3367 | // .dmi.ModifiableComponent changes = 4; |
| 3368 | if (this->has_changes()) { |
| 3369 | total_size += 1 + |
| 3370 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3371 | *changes_); |
| 3372 | } |
| 3373 | |
| 3374 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3375 | SetCachedSize(cached_size); |
| 3376 | return total_size; |
| 3377 | } |
| 3378 | |
| 3379 | void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3380 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3381 | GOOGLE_DCHECK_NE(&from, this); |
| 3382 | const HWComponentInfoSetRequest* source = |
| 3383 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>( |
| 3384 | &from); |
| 3385 | if (source == nullptr) { |
| 3386 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest) |
| 3387 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3388 | } else { |
| 3389 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest) |
| 3390 | MergeFrom(*source); |
| 3391 | } |
| 3392 | } |
| 3393 | |
| 3394 | void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) { |
| 3395 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3396 | GOOGLE_DCHECK_NE(&from, this); |
| 3397 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3398 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3399 | (void) cached_has_bits; |
| 3400 | |
| 3401 | if (from.component_name().size() > 0) { |
| 3402 | |
| 3403 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3404 | } |
| 3405 | if (from.has_device_uuid()) { |
| 3406 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3407 | } |
| 3408 | if (from.has_component_uuid()) { |
| 3409 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 3410 | } |
| 3411 | if (from.has_changes()) { |
| 3412 | mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes()); |
| 3413 | } |
| 3414 | } |
| 3415 | |
| 3416 | void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3417 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3418 | if (&from == this) return; |
| 3419 | Clear(); |
| 3420 | MergeFrom(from); |
| 3421 | } |
| 3422 | |
| 3423 | void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) { |
| 3424 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3425 | if (&from == this) return; |
| 3426 | Clear(); |
| 3427 | MergeFrom(from); |
| 3428 | } |
| 3429 | |
| 3430 | bool HWComponentInfoSetRequest::IsInitialized() const { |
| 3431 | return true; |
| 3432 | } |
| 3433 | |
| 3434 | void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) { |
| 3435 | if (other == this) return; |
| 3436 | InternalSwap(other); |
| 3437 | } |
| 3438 | void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) { |
| 3439 | using std::swap; |
| 3440 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3441 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3442 | GetArenaNoVirtual()); |
| 3443 | swap(device_uuid_, other->device_uuid_); |
| 3444 | swap(component_uuid_, other->component_uuid_); |
| 3445 | swap(changes_, other->changes_); |
| 3446 | } |
| 3447 | |
| 3448 | ::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const { |
| 3449 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3450 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3451 | } |
| 3452 | |
| 3453 | |
| 3454 | // =================================================================== |
| 3455 | |
| 3456 | void HWComponentInfoSetResponse::InitAsDefaultInstance() { |
| 3457 | } |
| 3458 | class HWComponentInfoSetResponse::HasBitSetters { |
| 3459 | public: |
| 3460 | }; |
| 3461 | |
| 3462 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3463 | const int HWComponentInfoSetResponse::kStatusFieldNumber; |
| 3464 | const int HWComponentInfoSetResponse::kReasonFieldNumber; |
| 3465 | const int HWComponentInfoSetResponse::kReasonDetailFieldNumber; |
| 3466 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3467 | |
| 3468 | HWComponentInfoSetResponse::HWComponentInfoSetResponse() |
| 3469 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3470 | SharedCtor(); |
| 3471 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse) |
| 3472 | } |
| 3473 | HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from) |
| 3474 | : ::google::protobuf::Message(), |
| 3475 | _internal_metadata_(nullptr) { |
| 3476 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3477 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3478 | if (from.reason_detail().size() > 0) { |
| 3479 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3480 | } |
| 3481 | ::memcpy(&status_, &from.status_, |
| 3482 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3483 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3484 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse) |
| 3485 | } |
| 3486 | |
| 3487 | void HWComponentInfoSetResponse::SharedCtor() { |
| 3488 | ::google::protobuf::internal::InitSCC( |
| 3489 | &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3490 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3491 | ::memset(&status_, 0, static_cast<size_t>( |
| 3492 | reinterpret_cast<char*>(&reason_) - |
| 3493 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3494 | } |
| 3495 | |
| 3496 | HWComponentInfoSetResponse::~HWComponentInfoSetResponse() { |
| 3497 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse) |
| 3498 | SharedDtor(); |
| 3499 | } |
| 3500 | |
| 3501 | void HWComponentInfoSetResponse::SharedDtor() { |
| 3502 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3503 | } |
| 3504 | |
| 3505 | void HWComponentInfoSetResponse::SetCachedSize(int size) const { |
| 3506 | _cached_size_.Set(size); |
| 3507 | } |
| 3508 | const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() { |
| 3509 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3510 | return *internal_default_instance(); |
| 3511 | } |
| 3512 | |
| 3513 | |
| 3514 | void HWComponentInfoSetResponse::Clear() { |
| 3515 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse) |
| 3516 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3517 | // Prevent compiler warnings about cached_has_bits being unused |
| 3518 | (void) cached_has_bits; |
| 3519 | |
| 3520 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3521 | ::memset(&status_, 0, static_cast<size_t>( |
| 3522 | reinterpret_cast<char*>(&reason_) - |
| 3523 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3524 | _internal_metadata_.Clear(); |
| 3525 | } |
| 3526 | |
| 3527 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3528 | const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3529 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3530 | auto msg = static_cast<HWComponentInfoSetResponse*>(object); |
| 3531 | ::google::protobuf::int32 size; (void)size; |
| 3532 | int depth; (void)depth; |
| 3533 | ::google::protobuf::uint32 tag; |
| 3534 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3535 | auto ptr = begin; |
| 3536 | while (ptr < end) { |
| 3537 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3538 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3539 | switch (tag >> 3) { |
| 3540 | // .dmi.Status status = 1; |
| 3541 | case 1: { |
| 3542 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3543 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3544 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3545 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3546 | break; |
| 3547 | } |
| 3548 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3549 | case 2: { |
| 3550 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3551 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3552 | msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val)); |
| 3553 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3554 | break; |
| 3555 | } |
| 3556 | // string reason_detail = 3; |
| 3557 | case 3: { |
| 3558 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3559 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3560 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3561 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3562 | object = msg->mutable_reason_detail(); |
| 3563 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3564 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3565 | goto string_till_end; |
| 3566 | } |
| 3567 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3568 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3569 | ptr += size; |
| 3570 | break; |
| 3571 | } |
| 3572 | default: { |
| 3573 | handle_unusual: |
| 3574 | if ((tag & 7) == 4 || tag == 0) { |
| 3575 | ctx->EndGroup(tag); |
| 3576 | return ptr; |
| 3577 | } |
| 3578 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3579 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3580 | ptr = res.first; |
| 3581 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3582 | if (res.second) return ptr; |
| 3583 | } |
| 3584 | } // switch |
| 3585 | } // while |
| 3586 | return ptr; |
| 3587 | string_till_end: |
| 3588 | static_cast<::std::string*>(object)->clear(); |
| 3589 | static_cast<::std::string*>(object)->reserve(size); |
| 3590 | goto len_delim_till_end; |
| 3591 | len_delim_till_end: |
| 3592 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3593 | {parser_till_end, object}, size); |
| 3594 | } |
| 3595 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3596 | bool HWComponentInfoSetResponse::MergePartialFromCodedStream( |
| 3597 | ::google::protobuf::io::CodedInputStream* input) { |
| 3598 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3599 | ::google::protobuf::uint32 tag; |
| 3600 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse) |
| 3601 | for (;;) { |
| 3602 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3603 | tag = p.first; |
| 3604 | if (!p.second) goto handle_unusual; |
| 3605 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3606 | // .dmi.Status status = 1; |
| 3607 | case 1: { |
| 3608 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3609 | int value = 0; |
| 3610 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3611 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3612 | input, &value))); |
| 3613 | set_status(static_cast< ::dmi::Status >(value)); |
| 3614 | } else { |
| 3615 | goto handle_unusual; |
| 3616 | } |
| 3617 | break; |
| 3618 | } |
| 3619 | |
| 3620 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3621 | case 2: { |
| 3622 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3623 | int value = 0; |
| 3624 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3625 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3626 | input, &value))); |
| 3627 | set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value)); |
| 3628 | } else { |
| 3629 | goto handle_unusual; |
| 3630 | } |
| 3631 | break; |
| 3632 | } |
| 3633 | |
| 3634 | // string reason_detail = 3; |
| 3635 | case 3: { |
| 3636 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3637 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3638 | input, this->mutable_reason_detail())); |
| 3639 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3640 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3641 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3642 | "dmi.HWComponentInfoSetResponse.reason_detail")); |
| 3643 | } else { |
| 3644 | goto handle_unusual; |
| 3645 | } |
| 3646 | break; |
| 3647 | } |
| 3648 | |
| 3649 | default: { |
| 3650 | handle_unusual: |
| 3651 | if (tag == 0) { |
| 3652 | goto success; |
| 3653 | } |
| 3654 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3655 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3656 | break; |
| 3657 | } |
| 3658 | } |
| 3659 | } |
| 3660 | success: |
| 3661 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse) |
| 3662 | return true; |
| 3663 | failure: |
| 3664 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse) |
| 3665 | return false; |
| 3666 | #undef DO_ |
| 3667 | } |
| 3668 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3669 | |
| 3670 | void HWComponentInfoSetResponse::SerializeWithCachedSizes( |
| 3671 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3672 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse) |
| 3673 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3674 | (void) cached_has_bits; |
| 3675 | |
| 3676 | // .dmi.Status status = 1; |
| 3677 | if (this->status() != 0) { |
| 3678 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3679 | 1, this->status(), output); |
| 3680 | } |
| 3681 | |
| 3682 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3683 | if (this->reason() != 0) { |
| 3684 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3685 | 2, this->reason(), output); |
| 3686 | } |
| 3687 | |
| 3688 | // string reason_detail = 3; |
| 3689 | if (this->reason_detail().size() > 0) { |
| 3690 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3691 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3692 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3693 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3694 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3695 | 3, this->reason_detail(), output); |
| 3696 | } |
| 3697 | |
| 3698 | if (_internal_metadata_.have_unknown_fields()) { |
| 3699 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3700 | _internal_metadata_.unknown_fields(), output); |
| 3701 | } |
| 3702 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse) |
| 3703 | } |
| 3704 | |
| 3705 | ::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray( |
| 3706 | ::google::protobuf::uint8* target) const { |
| 3707 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse) |
| 3708 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3709 | (void) cached_has_bits; |
| 3710 | |
| 3711 | // .dmi.Status status = 1; |
| 3712 | if (this->status() != 0) { |
| 3713 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3714 | 1, this->status(), target); |
| 3715 | } |
| 3716 | |
| 3717 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3718 | if (this->reason() != 0) { |
| 3719 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3720 | 2, this->reason(), target); |
| 3721 | } |
| 3722 | |
| 3723 | // string reason_detail = 3; |
| 3724 | if (this->reason_detail().size() > 0) { |
| 3725 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3726 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3727 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3728 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3729 | target = |
| 3730 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3731 | 3, this->reason_detail(), target); |
| 3732 | } |
| 3733 | |
| 3734 | if (_internal_metadata_.have_unknown_fields()) { |
| 3735 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3736 | _internal_metadata_.unknown_fields(), target); |
| 3737 | } |
| 3738 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse) |
| 3739 | return target; |
| 3740 | } |
| 3741 | |
| 3742 | size_t HWComponentInfoSetResponse::ByteSizeLong() const { |
| 3743 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse) |
| 3744 | size_t total_size = 0; |
| 3745 | |
| 3746 | if (_internal_metadata_.have_unknown_fields()) { |
| 3747 | total_size += |
| 3748 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3749 | _internal_metadata_.unknown_fields()); |
| 3750 | } |
| 3751 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3752 | // Prevent compiler warnings about cached_has_bits being unused |
| 3753 | (void) cached_has_bits; |
| 3754 | |
| 3755 | // string reason_detail = 3; |
| 3756 | if (this->reason_detail().size() > 0) { |
| 3757 | total_size += 1 + |
| 3758 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3759 | this->reason_detail()); |
| 3760 | } |
| 3761 | |
| 3762 | // .dmi.Status status = 1; |
| 3763 | if (this->status() != 0) { |
| 3764 | total_size += 1 + |
| 3765 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3766 | } |
| 3767 | |
| 3768 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3769 | if (this->reason() != 0) { |
| 3770 | total_size += 1 + |
| 3771 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3772 | } |
| 3773 | |
| 3774 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3775 | SetCachedSize(cached_size); |
| 3776 | return total_size; |
| 3777 | } |
| 3778 | |
| 3779 | void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3780 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3781 | GOOGLE_DCHECK_NE(&from, this); |
| 3782 | const HWComponentInfoSetResponse* source = |
| 3783 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>( |
| 3784 | &from); |
| 3785 | if (source == nullptr) { |
| 3786 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse) |
| 3787 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3788 | } else { |
| 3789 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse) |
| 3790 | MergeFrom(*source); |
| 3791 | } |
| 3792 | } |
| 3793 | |
| 3794 | void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) { |
| 3795 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3796 | GOOGLE_DCHECK_NE(&from, this); |
| 3797 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3798 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3799 | (void) cached_has_bits; |
| 3800 | |
| 3801 | if (from.reason_detail().size() > 0) { |
| 3802 | |
| 3803 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3804 | } |
| 3805 | if (from.status() != 0) { |
| 3806 | set_status(from.status()); |
| 3807 | } |
| 3808 | if (from.reason() != 0) { |
| 3809 | set_reason(from.reason()); |
| 3810 | } |
| 3811 | } |
| 3812 | |
| 3813 | void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3814 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3815 | if (&from == this) return; |
| 3816 | Clear(); |
| 3817 | MergeFrom(from); |
| 3818 | } |
| 3819 | |
| 3820 | void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) { |
| 3821 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3822 | if (&from == this) return; |
| 3823 | Clear(); |
| 3824 | MergeFrom(from); |
| 3825 | } |
| 3826 | |
| 3827 | bool HWComponentInfoSetResponse::IsInitialized() const { |
| 3828 | return true; |
| 3829 | } |
| 3830 | |
| 3831 | void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) { |
| 3832 | if (other == this) return; |
| 3833 | InternalSwap(other); |
| 3834 | } |
| 3835 | void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) { |
| 3836 | using std::swap; |
| 3837 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3838 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3839 | GetArenaNoVirtual()); |
| 3840 | swap(status_, other->status_); |
| 3841 | swap(reason_, other->reason_); |
| 3842 | } |
| 3843 | |
| 3844 | ::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const { |
| 3845 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3846 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3847 | } |
| 3848 | |
| 3849 | |
| 3850 | // =================================================================== |
| 3851 | |
| 3852 | void StartManagingDeviceResponse::InitAsDefaultInstance() { |
| 3853 | ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3854 | ::dmi::Uuid::internal_default_instance()); |
| 3855 | } |
| 3856 | class StartManagingDeviceResponse::HasBitSetters { |
| 3857 | public: |
| 3858 | static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg); |
| 3859 | }; |
| 3860 | |
| 3861 | const ::dmi::Uuid& |
| 3862 | StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) { |
| 3863 | return *msg->device_uuid_; |
| 3864 | } |
| 3865 | void StartManagingDeviceResponse::clear_device_uuid() { |
| 3866 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3867 | delete device_uuid_; |
| 3868 | } |
| 3869 | device_uuid_ = nullptr; |
| 3870 | } |
| 3871 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3872 | const int StartManagingDeviceResponse::kStatusFieldNumber; |
| 3873 | const int StartManagingDeviceResponse::kReasonFieldNumber; |
| 3874 | const int StartManagingDeviceResponse::kDeviceUuidFieldNumber; |
| 3875 | const int StartManagingDeviceResponse::kReasonDetailFieldNumber; |
| 3876 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3877 | |
| 3878 | StartManagingDeviceResponse::StartManagingDeviceResponse() |
| 3879 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3880 | SharedCtor(); |
| 3881 | // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse) |
| 3882 | } |
| 3883 | StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from) |
| 3884 | : ::google::protobuf::Message(), |
| 3885 | _internal_metadata_(nullptr) { |
| 3886 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3887 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3888 | if (from.reason_detail().size() > 0) { |
| 3889 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3890 | } |
| 3891 | if (from.has_device_uuid()) { |
| 3892 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3893 | } else { |
| 3894 | device_uuid_ = nullptr; |
| 3895 | } |
| 3896 | ::memcpy(&status_, &from.status_, |
| 3897 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3898 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3899 | // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse) |
| 3900 | } |
| 3901 | |
| 3902 | void StartManagingDeviceResponse::SharedCtor() { |
| 3903 | ::google::protobuf::internal::InitSCC( |
| 3904 | &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3905 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3906 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3907 | reinterpret_cast<char*>(&reason_) - |
| 3908 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 3909 | } |
| 3910 | |
| 3911 | StartManagingDeviceResponse::~StartManagingDeviceResponse() { |
| 3912 | // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse) |
| 3913 | SharedDtor(); |
| 3914 | } |
| 3915 | |
| 3916 | void StartManagingDeviceResponse::SharedDtor() { |
| 3917 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3918 | if (this != internal_default_instance()) delete device_uuid_; |
| 3919 | } |
| 3920 | |
| 3921 | void StartManagingDeviceResponse::SetCachedSize(int size) const { |
| 3922 | _cached_size_.Set(size); |
| 3923 | } |
| 3924 | const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() { |
| 3925 | ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3926 | return *internal_default_instance(); |
| 3927 | } |
| 3928 | |
| 3929 | |
| 3930 | void StartManagingDeviceResponse::Clear() { |
| 3931 | // @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse) |
| 3932 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3933 | // Prevent compiler warnings about cached_has_bits being unused |
| 3934 | (void) cached_has_bits; |
| 3935 | |
| 3936 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3937 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3938 | delete device_uuid_; |
| 3939 | } |
| 3940 | device_uuid_ = nullptr; |
| 3941 | ::memset(&status_, 0, static_cast<size_t>( |
| 3942 | reinterpret_cast<char*>(&reason_) - |
| 3943 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3944 | _internal_metadata_.Clear(); |
| 3945 | } |
| 3946 | |
| 3947 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3948 | const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3949 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3950 | auto msg = static_cast<StartManagingDeviceResponse*>(object); |
| 3951 | ::google::protobuf::int32 size; (void)size; |
| 3952 | int depth; (void)depth; |
| 3953 | ::google::protobuf::uint32 tag; |
| 3954 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3955 | auto ptr = begin; |
| 3956 | while (ptr < end) { |
| 3957 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3958 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3959 | switch (tag >> 3) { |
| 3960 | // .dmi.Status status = 1; |
| 3961 | case 1: { |
| 3962 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3963 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3964 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3965 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3966 | break; |
| 3967 | } |
| 3968 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 3969 | case 2: { |
| 3970 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3971 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3972 | msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val)); |
| 3973 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3974 | break; |
| 3975 | } |
| 3976 | // .dmi.Uuid device_uuid = 3; |
| 3977 | case 3: { |
| 3978 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3979 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3980 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3981 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3982 | object = msg->mutable_device_uuid(); |
| 3983 | if (size > end - ptr) goto len_delim_till_end; |
| 3984 | ptr += size; |
| 3985 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3986 | {parser_till_end, object}, ptr - size, ptr)); |
| 3987 | break; |
| 3988 | } |
| 3989 | // string reason_detail = 4; |
| 3990 | case 4: { |
| 3991 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3992 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3993 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3994 | ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail"); |
| 3995 | object = msg->mutable_reason_detail(); |
| 3996 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3997 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3998 | goto string_till_end; |
| 3999 | } |
| 4000 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4001 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4002 | ptr += size; |
| 4003 | break; |
| 4004 | } |
| 4005 | default: { |
| 4006 | handle_unusual: |
| 4007 | if ((tag & 7) == 4 || tag == 0) { |
| 4008 | ctx->EndGroup(tag); |
| 4009 | return ptr; |
| 4010 | } |
| 4011 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4012 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4013 | ptr = res.first; |
| 4014 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4015 | if (res.second) return ptr; |
| 4016 | } |
| 4017 | } // switch |
| 4018 | } // while |
| 4019 | return ptr; |
| 4020 | string_till_end: |
| 4021 | static_cast<::std::string*>(object)->clear(); |
| 4022 | static_cast<::std::string*>(object)->reserve(size); |
| 4023 | goto len_delim_till_end; |
| 4024 | len_delim_till_end: |
| 4025 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4026 | {parser_till_end, object}, size); |
| 4027 | } |
| 4028 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4029 | bool StartManagingDeviceResponse::MergePartialFromCodedStream( |
| 4030 | ::google::protobuf::io::CodedInputStream* input) { |
| 4031 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4032 | ::google::protobuf::uint32 tag; |
| 4033 | // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse) |
| 4034 | for (;;) { |
| 4035 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4036 | tag = p.first; |
| 4037 | if (!p.second) goto handle_unusual; |
| 4038 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4039 | // .dmi.Status status = 1; |
| 4040 | case 1: { |
| 4041 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4042 | int value = 0; |
| 4043 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4044 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4045 | input, &value))); |
| 4046 | set_status(static_cast< ::dmi::Status >(value)); |
| 4047 | } else { |
| 4048 | goto handle_unusual; |
| 4049 | } |
| 4050 | break; |
| 4051 | } |
| 4052 | |
| 4053 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4054 | case 2: { |
| 4055 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4056 | int value = 0; |
| 4057 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4058 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4059 | input, &value))); |
| 4060 | set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value)); |
| 4061 | } else { |
| 4062 | goto handle_unusual; |
| 4063 | } |
| 4064 | break; |
| 4065 | } |
| 4066 | |
| 4067 | // .dmi.Uuid device_uuid = 3; |
| 4068 | case 3: { |
| 4069 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4070 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4071 | input, mutable_device_uuid())); |
| 4072 | } else { |
| 4073 | goto handle_unusual; |
| 4074 | } |
| 4075 | break; |
| 4076 | } |
| 4077 | |
| 4078 | // string reason_detail = 4; |
| 4079 | case 4: { |
| 4080 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 4081 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4082 | input, this->mutable_reason_detail())); |
| 4083 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4084 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4085 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4086 | "dmi.StartManagingDeviceResponse.reason_detail")); |
| 4087 | } else { |
| 4088 | goto handle_unusual; |
| 4089 | } |
| 4090 | break; |
| 4091 | } |
| 4092 | |
| 4093 | default: { |
| 4094 | handle_unusual: |
| 4095 | if (tag == 0) { |
| 4096 | goto success; |
| 4097 | } |
| 4098 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4099 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4100 | break; |
| 4101 | } |
| 4102 | } |
| 4103 | } |
| 4104 | success: |
| 4105 | // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse) |
| 4106 | return true; |
| 4107 | failure: |
| 4108 | // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse) |
| 4109 | return false; |
| 4110 | #undef DO_ |
| 4111 | } |
| 4112 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4113 | |
| 4114 | void StartManagingDeviceResponse::SerializeWithCachedSizes( |
| 4115 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4116 | // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse) |
| 4117 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4118 | (void) cached_has_bits; |
| 4119 | |
| 4120 | // .dmi.Status status = 1; |
| 4121 | if (this->status() != 0) { |
| 4122 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4123 | 1, this->status(), output); |
| 4124 | } |
| 4125 | |
| 4126 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4127 | if (this->reason() != 0) { |
| 4128 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4129 | 2, this->reason(), output); |
| 4130 | } |
| 4131 | |
| 4132 | // .dmi.Uuid device_uuid = 3; |
| 4133 | if (this->has_device_uuid()) { |
| 4134 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4135 | 3, HasBitSetters::device_uuid(this), output); |
| 4136 | } |
| 4137 | |
| 4138 | // string reason_detail = 4; |
| 4139 | if (this->reason_detail().size() > 0) { |
| 4140 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4141 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4142 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4143 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4144 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4145 | 4, this->reason_detail(), output); |
| 4146 | } |
| 4147 | |
| 4148 | if (_internal_metadata_.have_unknown_fields()) { |
| 4149 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4150 | _internal_metadata_.unknown_fields(), output); |
| 4151 | } |
| 4152 | // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse) |
| 4153 | } |
| 4154 | |
| 4155 | ::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4156 | ::google::protobuf::uint8* target) const { |
| 4157 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse) |
| 4158 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4159 | (void) cached_has_bits; |
| 4160 | |
| 4161 | // .dmi.Status status = 1; |
| 4162 | if (this->status() != 0) { |
| 4163 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4164 | 1, this->status(), target); |
| 4165 | } |
| 4166 | |
| 4167 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4168 | if (this->reason() != 0) { |
| 4169 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4170 | 2, this->reason(), target); |
| 4171 | } |
| 4172 | |
| 4173 | // .dmi.Uuid device_uuid = 3; |
| 4174 | if (this->has_device_uuid()) { |
| 4175 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4176 | InternalWriteMessageToArray( |
| 4177 | 3, HasBitSetters::device_uuid(this), target); |
| 4178 | } |
| 4179 | |
| 4180 | // string reason_detail = 4; |
| 4181 | if (this->reason_detail().size() > 0) { |
| 4182 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4183 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4184 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4185 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4186 | target = |
| 4187 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4188 | 4, this->reason_detail(), target); |
| 4189 | } |
| 4190 | |
| 4191 | if (_internal_metadata_.have_unknown_fields()) { |
| 4192 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4193 | _internal_metadata_.unknown_fields(), target); |
| 4194 | } |
| 4195 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse) |
| 4196 | return target; |
| 4197 | } |
| 4198 | |
| 4199 | size_t StartManagingDeviceResponse::ByteSizeLong() const { |
| 4200 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse) |
| 4201 | size_t total_size = 0; |
| 4202 | |
| 4203 | if (_internal_metadata_.have_unknown_fields()) { |
| 4204 | total_size += |
| 4205 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4206 | _internal_metadata_.unknown_fields()); |
| 4207 | } |
| 4208 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4209 | // Prevent compiler warnings about cached_has_bits being unused |
| 4210 | (void) cached_has_bits; |
| 4211 | |
| 4212 | // string reason_detail = 4; |
| 4213 | if (this->reason_detail().size() > 0) { |
| 4214 | total_size += 1 + |
| 4215 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4216 | this->reason_detail()); |
| 4217 | } |
| 4218 | |
| 4219 | // .dmi.Uuid device_uuid = 3; |
| 4220 | if (this->has_device_uuid()) { |
| 4221 | total_size += 1 + |
| 4222 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4223 | *device_uuid_); |
| 4224 | } |
| 4225 | |
| 4226 | // .dmi.Status status = 1; |
| 4227 | if (this->status() != 0) { |
| 4228 | total_size += 1 + |
| 4229 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4230 | } |
| 4231 | |
| 4232 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4233 | if (this->reason() != 0) { |
| 4234 | total_size += 1 + |
| 4235 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4236 | } |
| 4237 | |
| 4238 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4239 | SetCachedSize(cached_size); |
| 4240 | return total_size; |
| 4241 | } |
| 4242 | |
| 4243 | void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4244 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4245 | GOOGLE_DCHECK_NE(&from, this); |
| 4246 | const StartManagingDeviceResponse* source = |
| 4247 | ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>( |
| 4248 | &from); |
| 4249 | if (source == nullptr) { |
| 4250 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse) |
| 4251 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4252 | } else { |
| 4253 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse) |
| 4254 | MergeFrom(*source); |
| 4255 | } |
| 4256 | } |
| 4257 | |
| 4258 | void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) { |
| 4259 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4260 | GOOGLE_DCHECK_NE(&from, this); |
| 4261 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4262 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4263 | (void) cached_has_bits; |
| 4264 | |
| 4265 | if (from.reason_detail().size() > 0) { |
| 4266 | |
| 4267 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4268 | } |
| 4269 | if (from.has_device_uuid()) { |
| 4270 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4271 | } |
| 4272 | if (from.status() != 0) { |
| 4273 | set_status(from.status()); |
| 4274 | } |
| 4275 | if (from.reason() != 0) { |
| 4276 | set_reason(from.reason()); |
| 4277 | } |
| 4278 | } |
| 4279 | |
| 4280 | void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4281 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4282 | if (&from == this) return; |
| 4283 | Clear(); |
| 4284 | MergeFrom(from); |
| 4285 | } |
| 4286 | |
| 4287 | void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) { |
| 4288 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4289 | if (&from == this) return; |
| 4290 | Clear(); |
| 4291 | MergeFrom(from); |
| 4292 | } |
| 4293 | |
| 4294 | bool StartManagingDeviceResponse::IsInitialized() const { |
| 4295 | return true; |
| 4296 | } |
| 4297 | |
| 4298 | void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) { |
| 4299 | if (other == this) return; |
| 4300 | InternalSwap(other); |
| 4301 | } |
| 4302 | void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) { |
| 4303 | using std::swap; |
| 4304 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4305 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4306 | GetArenaNoVirtual()); |
| 4307 | swap(device_uuid_, other->device_uuid_); |
| 4308 | swap(status_, other->status_); |
| 4309 | swap(reason_, other->reason_); |
| 4310 | } |
| 4311 | |
| 4312 | ::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const { |
| 4313 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4314 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4315 | } |
| 4316 | |
| 4317 | |
| 4318 | // =================================================================== |
| 4319 | |
| 4320 | void StopManagingDeviceRequest::InitAsDefaultInstance() { |
| 4321 | } |
| 4322 | class StopManagingDeviceRequest::HasBitSetters { |
| 4323 | public: |
| 4324 | }; |
| 4325 | |
| 4326 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4327 | const int StopManagingDeviceRequest::kNameFieldNumber; |
| 4328 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4329 | |
| 4330 | StopManagingDeviceRequest::StopManagingDeviceRequest() |
| 4331 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4332 | SharedCtor(); |
| 4333 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest) |
| 4334 | } |
| 4335 | StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from) |
| 4336 | : ::google::protobuf::Message(), |
| 4337 | _internal_metadata_(nullptr) { |
| 4338 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4339 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4340 | if (from.name().size() > 0) { |
| 4341 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4342 | } |
| 4343 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest) |
| 4344 | } |
| 4345 | |
| 4346 | void StopManagingDeviceRequest::SharedCtor() { |
| 4347 | ::google::protobuf::internal::InitSCC( |
| 4348 | &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4349 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4350 | } |
| 4351 | |
| 4352 | StopManagingDeviceRequest::~StopManagingDeviceRequest() { |
| 4353 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest) |
| 4354 | SharedDtor(); |
| 4355 | } |
| 4356 | |
| 4357 | void StopManagingDeviceRequest::SharedDtor() { |
| 4358 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4359 | } |
| 4360 | |
| 4361 | void StopManagingDeviceRequest::SetCachedSize(int size) const { |
| 4362 | _cached_size_.Set(size); |
| 4363 | } |
| 4364 | const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() { |
| 4365 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4366 | return *internal_default_instance(); |
| 4367 | } |
| 4368 | |
| 4369 | |
| 4370 | void StopManagingDeviceRequest::Clear() { |
| 4371 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest) |
| 4372 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4373 | // Prevent compiler warnings about cached_has_bits being unused |
| 4374 | (void) cached_has_bits; |
| 4375 | |
| 4376 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4377 | _internal_metadata_.Clear(); |
| 4378 | } |
| 4379 | |
| 4380 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4381 | const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 4382 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4383 | auto msg = static_cast<StopManagingDeviceRequest*>(object); |
| 4384 | ::google::protobuf::int32 size; (void)size; |
| 4385 | int depth; (void)depth; |
| 4386 | ::google::protobuf::uint32 tag; |
| 4387 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4388 | auto ptr = begin; |
| 4389 | while (ptr < end) { |
| 4390 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4391 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4392 | switch (tag >> 3) { |
| 4393 | // string name = 1; |
| 4394 | case 1: { |
| 4395 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4396 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4397 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4398 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name"); |
| 4399 | object = msg->mutable_name(); |
| 4400 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4401 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4402 | goto string_till_end; |
| 4403 | } |
| 4404 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4405 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4406 | ptr += size; |
| 4407 | break; |
| 4408 | } |
| 4409 | default: { |
| 4410 | handle_unusual: |
| 4411 | if ((tag & 7) == 4 || tag == 0) { |
| 4412 | ctx->EndGroup(tag); |
| 4413 | return ptr; |
| 4414 | } |
| 4415 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4416 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4417 | ptr = res.first; |
| 4418 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4419 | if (res.second) return ptr; |
| 4420 | } |
| 4421 | } // switch |
| 4422 | } // while |
| 4423 | return ptr; |
| 4424 | string_till_end: |
| 4425 | static_cast<::std::string*>(object)->clear(); |
| 4426 | static_cast<::std::string*>(object)->reserve(size); |
| 4427 | goto len_delim_till_end; |
| 4428 | len_delim_till_end: |
| 4429 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4430 | {parser_till_end, object}, size); |
| 4431 | } |
| 4432 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4433 | bool StopManagingDeviceRequest::MergePartialFromCodedStream( |
| 4434 | ::google::protobuf::io::CodedInputStream* input) { |
| 4435 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4436 | ::google::protobuf::uint32 tag; |
| 4437 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest) |
| 4438 | for (;;) { |
| 4439 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4440 | tag = p.first; |
| 4441 | if (!p.second) goto handle_unusual; |
| 4442 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4443 | // string name = 1; |
| 4444 | case 1: { |
| 4445 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4446 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4447 | input, this->mutable_name())); |
| 4448 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4449 | this->name().data(), static_cast<int>(this->name().length()), |
| 4450 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4451 | "dmi.StopManagingDeviceRequest.name")); |
| 4452 | } else { |
| 4453 | goto handle_unusual; |
| 4454 | } |
| 4455 | break; |
| 4456 | } |
| 4457 | |
| 4458 | default: { |
| 4459 | handle_unusual: |
| 4460 | if (tag == 0) { |
| 4461 | goto success; |
| 4462 | } |
| 4463 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4464 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4465 | break; |
| 4466 | } |
| 4467 | } |
| 4468 | } |
| 4469 | success: |
| 4470 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest) |
| 4471 | return true; |
| 4472 | failure: |
| 4473 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest) |
| 4474 | return false; |
| 4475 | #undef DO_ |
| 4476 | } |
| 4477 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4478 | |
| 4479 | void StopManagingDeviceRequest::SerializeWithCachedSizes( |
| 4480 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4481 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest) |
| 4482 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4483 | (void) cached_has_bits; |
| 4484 | |
| 4485 | // string name = 1; |
| 4486 | if (this->name().size() > 0) { |
| 4487 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4488 | this->name().data(), static_cast<int>(this->name().length()), |
| 4489 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4490 | "dmi.StopManagingDeviceRequest.name"); |
| 4491 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4492 | 1, this->name(), output); |
| 4493 | } |
| 4494 | |
| 4495 | if (_internal_metadata_.have_unknown_fields()) { |
| 4496 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4497 | _internal_metadata_.unknown_fields(), output); |
| 4498 | } |
| 4499 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest) |
| 4500 | } |
| 4501 | |
| 4502 | ::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 4503 | ::google::protobuf::uint8* target) const { |
| 4504 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest) |
| 4505 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4506 | (void) cached_has_bits; |
| 4507 | |
| 4508 | // string name = 1; |
| 4509 | if (this->name().size() > 0) { |
| 4510 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4511 | this->name().data(), static_cast<int>(this->name().length()), |
| 4512 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4513 | "dmi.StopManagingDeviceRequest.name"); |
| 4514 | target = |
| 4515 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4516 | 1, this->name(), target); |
| 4517 | } |
| 4518 | |
| 4519 | if (_internal_metadata_.have_unknown_fields()) { |
| 4520 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4521 | _internal_metadata_.unknown_fields(), target); |
| 4522 | } |
| 4523 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest) |
| 4524 | return target; |
| 4525 | } |
| 4526 | |
| 4527 | size_t StopManagingDeviceRequest::ByteSizeLong() const { |
| 4528 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest) |
| 4529 | size_t total_size = 0; |
| 4530 | |
| 4531 | if (_internal_metadata_.have_unknown_fields()) { |
| 4532 | total_size += |
| 4533 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4534 | _internal_metadata_.unknown_fields()); |
| 4535 | } |
| 4536 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4537 | // Prevent compiler warnings about cached_has_bits being unused |
| 4538 | (void) cached_has_bits; |
| 4539 | |
| 4540 | // string name = 1; |
| 4541 | if (this->name().size() > 0) { |
| 4542 | total_size += 1 + |
| 4543 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4544 | this->name()); |
| 4545 | } |
| 4546 | |
| 4547 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4548 | SetCachedSize(cached_size); |
| 4549 | return total_size; |
| 4550 | } |
| 4551 | |
| 4552 | void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 4553 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4554 | GOOGLE_DCHECK_NE(&from, this); |
| 4555 | const StopManagingDeviceRequest* source = |
| 4556 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>( |
| 4557 | &from); |
| 4558 | if (source == nullptr) { |
| 4559 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest) |
| 4560 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4561 | } else { |
| 4562 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest) |
| 4563 | MergeFrom(*source); |
| 4564 | } |
| 4565 | } |
| 4566 | |
| 4567 | void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) { |
| 4568 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4569 | GOOGLE_DCHECK_NE(&from, this); |
| 4570 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4571 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4572 | (void) cached_has_bits; |
| 4573 | |
| 4574 | if (from.name().size() > 0) { |
| 4575 | |
| 4576 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4577 | } |
| 4578 | } |
| 4579 | |
| 4580 | void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 4581 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4582 | if (&from == this) return; |
| 4583 | Clear(); |
| 4584 | MergeFrom(from); |
| 4585 | } |
| 4586 | |
| 4587 | void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) { |
| 4588 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4589 | if (&from == this) return; |
| 4590 | Clear(); |
| 4591 | MergeFrom(from); |
| 4592 | } |
| 4593 | |
| 4594 | bool StopManagingDeviceRequest::IsInitialized() const { |
| 4595 | return true; |
| 4596 | } |
| 4597 | |
| 4598 | void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) { |
| 4599 | if (other == this) return; |
| 4600 | InternalSwap(other); |
| 4601 | } |
| 4602 | void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) { |
| 4603 | using std::swap; |
| 4604 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4605 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4606 | GetArenaNoVirtual()); |
| 4607 | } |
| 4608 | |
| 4609 | ::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const { |
| 4610 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4611 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4612 | } |
| 4613 | |
| 4614 | |
| 4615 | // =================================================================== |
| 4616 | |
| 4617 | void StopManagingDeviceResponse::InitAsDefaultInstance() { |
| 4618 | } |
| 4619 | class StopManagingDeviceResponse::HasBitSetters { |
| 4620 | public: |
| 4621 | }; |
| 4622 | |
| 4623 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4624 | const int StopManagingDeviceResponse::kStatusFieldNumber; |
| 4625 | const int StopManagingDeviceResponse::kReasonFieldNumber; |
| 4626 | const int StopManagingDeviceResponse::kReasonDetailFieldNumber; |
| 4627 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4628 | |
| 4629 | StopManagingDeviceResponse::StopManagingDeviceResponse() |
| 4630 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4631 | SharedCtor(); |
| 4632 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse) |
| 4633 | } |
| 4634 | StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from) |
| 4635 | : ::google::protobuf::Message(), |
| 4636 | _internal_metadata_(nullptr) { |
| 4637 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4638 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4639 | if (from.reason_detail().size() > 0) { |
| 4640 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4641 | } |
| 4642 | ::memcpy(&status_, &from.status_, |
| 4643 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 4644 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4645 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse) |
| 4646 | } |
| 4647 | |
| 4648 | void StopManagingDeviceResponse::SharedCtor() { |
| 4649 | ::google::protobuf::internal::InitSCC( |
| 4650 | &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4651 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4652 | ::memset(&status_, 0, static_cast<size_t>( |
| 4653 | reinterpret_cast<char*>(&reason_) - |
| 4654 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4655 | } |
| 4656 | |
| 4657 | StopManagingDeviceResponse::~StopManagingDeviceResponse() { |
| 4658 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse) |
| 4659 | SharedDtor(); |
| 4660 | } |
| 4661 | |
| 4662 | void StopManagingDeviceResponse::SharedDtor() { |
| 4663 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4664 | } |
| 4665 | |
| 4666 | void StopManagingDeviceResponse::SetCachedSize(int size) const { |
| 4667 | _cached_size_.Set(size); |
| 4668 | } |
| 4669 | const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() { |
| 4670 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4671 | return *internal_default_instance(); |
| 4672 | } |
| 4673 | |
| 4674 | |
| 4675 | void StopManagingDeviceResponse::Clear() { |
| 4676 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse) |
| 4677 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4678 | // Prevent compiler warnings about cached_has_bits being unused |
| 4679 | (void) cached_has_bits; |
| 4680 | |
| 4681 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4682 | ::memset(&status_, 0, static_cast<size_t>( |
| 4683 | reinterpret_cast<char*>(&reason_) - |
| 4684 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4685 | _internal_metadata_.Clear(); |
| 4686 | } |
| 4687 | |
| 4688 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4689 | const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4690 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4691 | auto msg = static_cast<StopManagingDeviceResponse*>(object); |
| 4692 | ::google::protobuf::int32 size; (void)size; |
| 4693 | int depth; (void)depth; |
| 4694 | ::google::protobuf::uint32 tag; |
| 4695 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4696 | auto ptr = begin; |
| 4697 | while (ptr < end) { |
| 4698 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4699 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4700 | switch (tag >> 3) { |
| 4701 | // .dmi.Status status = 1; |
| 4702 | case 1: { |
| 4703 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4704 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4705 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4706 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4707 | break; |
| 4708 | } |
| 4709 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4710 | case 2: { |
| 4711 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4712 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4713 | msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val)); |
| 4714 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4715 | break; |
| 4716 | } |
| 4717 | // string reason_detail = 3; |
| 4718 | case 3: { |
| 4719 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4720 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4721 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4722 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail"); |
| 4723 | object = msg->mutable_reason_detail(); |
| 4724 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4725 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4726 | goto string_till_end; |
| 4727 | } |
| 4728 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4729 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4730 | ptr += size; |
| 4731 | break; |
| 4732 | } |
| 4733 | default: { |
| 4734 | handle_unusual: |
| 4735 | if ((tag & 7) == 4 || tag == 0) { |
| 4736 | ctx->EndGroup(tag); |
| 4737 | return ptr; |
| 4738 | } |
| 4739 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4740 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4741 | ptr = res.first; |
| 4742 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4743 | if (res.second) return ptr; |
| 4744 | } |
| 4745 | } // switch |
| 4746 | } // while |
| 4747 | return ptr; |
| 4748 | string_till_end: |
| 4749 | static_cast<::std::string*>(object)->clear(); |
| 4750 | static_cast<::std::string*>(object)->reserve(size); |
| 4751 | goto len_delim_till_end; |
| 4752 | len_delim_till_end: |
| 4753 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4754 | {parser_till_end, object}, size); |
| 4755 | } |
| 4756 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4757 | bool StopManagingDeviceResponse::MergePartialFromCodedStream( |
| 4758 | ::google::protobuf::io::CodedInputStream* input) { |
| 4759 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4760 | ::google::protobuf::uint32 tag; |
| 4761 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse) |
| 4762 | for (;;) { |
| 4763 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4764 | tag = p.first; |
| 4765 | if (!p.second) goto handle_unusual; |
| 4766 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4767 | // .dmi.Status status = 1; |
| 4768 | case 1: { |
| 4769 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4770 | int value = 0; |
| 4771 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4772 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4773 | input, &value))); |
| 4774 | set_status(static_cast< ::dmi::Status >(value)); |
| 4775 | } else { |
| 4776 | goto handle_unusual; |
| 4777 | } |
| 4778 | break; |
| 4779 | } |
| 4780 | |
| 4781 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4782 | case 2: { |
| 4783 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4784 | int value = 0; |
| 4785 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4786 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4787 | input, &value))); |
| 4788 | set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value)); |
| 4789 | } else { |
| 4790 | goto handle_unusual; |
| 4791 | } |
| 4792 | break; |
| 4793 | } |
| 4794 | |
| 4795 | // string reason_detail = 3; |
| 4796 | case 3: { |
| 4797 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4798 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4799 | input, this->mutable_reason_detail())); |
| 4800 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4801 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4802 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4803 | "dmi.StopManagingDeviceResponse.reason_detail")); |
| 4804 | } else { |
| 4805 | goto handle_unusual; |
| 4806 | } |
| 4807 | break; |
| 4808 | } |
| 4809 | |
| 4810 | default: { |
| 4811 | handle_unusual: |
| 4812 | if (tag == 0) { |
| 4813 | goto success; |
| 4814 | } |
| 4815 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4816 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4817 | break; |
| 4818 | } |
| 4819 | } |
| 4820 | } |
| 4821 | success: |
| 4822 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse) |
| 4823 | return true; |
| 4824 | failure: |
| 4825 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse) |
| 4826 | return false; |
| 4827 | #undef DO_ |
| 4828 | } |
| 4829 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4830 | |
| 4831 | void StopManagingDeviceResponse::SerializeWithCachedSizes( |
| 4832 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4833 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse) |
| 4834 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4835 | (void) cached_has_bits; |
| 4836 | |
| 4837 | // .dmi.Status status = 1; |
| 4838 | if (this->status() != 0) { |
| 4839 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4840 | 1, this->status(), output); |
| 4841 | } |
| 4842 | |
| 4843 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4844 | if (this->reason() != 0) { |
| 4845 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4846 | 2, this->reason(), output); |
| 4847 | } |
| 4848 | |
| 4849 | // string reason_detail = 3; |
| 4850 | if (this->reason_detail().size() > 0) { |
| 4851 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4852 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4853 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4854 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4855 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4856 | 3, this->reason_detail(), output); |
| 4857 | } |
| 4858 | |
| 4859 | if (_internal_metadata_.have_unknown_fields()) { |
| 4860 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4861 | _internal_metadata_.unknown_fields(), output); |
| 4862 | } |
| 4863 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse) |
| 4864 | } |
| 4865 | |
| 4866 | ::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4867 | ::google::protobuf::uint8* target) const { |
| 4868 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse) |
| 4869 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4870 | (void) cached_has_bits; |
| 4871 | |
| 4872 | // .dmi.Status status = 1; |
| 4873 | if (this->status() != 0) { |
| 4874 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4875 | 1, this->status(), target); |
| 4876 | } |
| 4877 | |
| 4878 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4879 | if (this->reason() != 0) { |
| 4880 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4881 | 2, this->reason(), target); |
| 4882 | } |
| 4883 | |
| 4884 | // string reason_detail = 3; |
| 4885 | if (this->reason_detail().size() > 0) { |
| 4886 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4887 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4888 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4889 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4890 | target = |
| 4891 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4892 | 3, this->reason_detail(), target); |
| 4893 | } |
| 4894 | |
| 4895 | if (_internal_metadata_.have_unknown_fields()) { |
| 4896 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4897 | _internal_metadata_.unknown_fields(), target); |
| 4898 | } |
| 4899 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse) |
| 4900 | return target; |
| 4901 | } |
| 4902 | |
| 4903 | size_t StopManagingDeviceResponse::ByteSizeLong() const { |
| 4904 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse) |
| 4905 | size_t total_size = 0; |
| 4906 | |
| 4907 | if (_internal_metadata_.have_unknown_fields()) { |
| 4908 | total_size += |
| 4909 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4910 | _internal_metadata_.unknown_fields()); |
| 4911 | } |
| 4912 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4913 | // Prevent compiler warnings about cached_has_bits being unused |
| 4914 | (void) cached_has_bits; |
| 4915 | |
| 4916 | // string reason_detail = 3; |
| 4917 | if (this->reason_detail().size() > 0) { |
| 4918 | total_size += 1 + |
| 4919 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4920 | this->reason_detail()); |
| 4921 | } |
| 4922 | |
| 4923 | // .dmi.Status status = 1; |
| 4924 | if (this->status() != 0) { |
| 4925 | total_size += 1 + |
| 4926 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4927 | } |
| 4928 | |
| 4929 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4930 | if (this->reason() != 0) { |
| 4931 | total_size += 1 + |
| 4932 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4933 | } |
| 4934 | |
| 4935 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4936 | SetCachedSize(cached_size); |
| 4937 | return total_size; |
| 4938 | } |
| 4939 | |
| 4940 | void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4941 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4942 | GOOGLE_DCHECK_NE(&from, this); |
| 4943 | const StopManagingDeviceResponse* source = |
| 4944 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>( |
| 4945 | &from); |
| 4946 | if (source == nullptr) { |
| 4947 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse) |
| 4948 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4949 | } else { |
| 4950 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse) |
| 4951 | MergeFrom(*source); |
| 4952 | } |
| 4953 | } |
| 4954 | |
| 4955 | void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) { |
| 4956 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4957 | GOOGLE_DCHECK_NE(&from, this); |
| 4958 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4959 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4960 | (void) cached_has_bits; |
| 4961 | |
| 4962 | if (from.reason_detail().size() > 0) { |
| 4963 | |
| 4964 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4965 | } |
| 4966 | if (from.status() != 0) { |
| 4967 | set_status(from.status()); |
| 4968 | } |
| 4969 | if (from.reason() != 0) { |
| 4970 | set_reason(from.reason()); |
| 4971 | } |
| 4972 | } |
| 4973 | |
| 4974 | void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4975 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4976 | if (&from == this) return; |
| 4977 | Clear(); |
| 4978 | MergeFrom(from); |
| 4979 | } |
| 4980 | |
| 4981 | void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) { |
| 4982 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4983 | if (&from == this) return; |
| 4984 | Clear(); |
| 4985 | MergeFrom(from); |
| 4986 | } |
| 4987 | |
| 4988 | bool StopManagingDeviceResponse::IsInitialized() const { |
| 4989 | return true; |
| 4990 | } |
| 4991 | |
| 4992 | void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) { |
| 4993 | if (other == this) return; |
| 4994 | InternalSwap(other); |
| 4995 | } |
| 4996 | void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) { |
| 4997 | using std::swap; |
| 4998 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4999 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5000 | GetArenaNoVirtual()); |
| 5001 | swap(status_, other->status_); |
| 5002 | swap(reason_, other->reason_); |
| 5003 | } |
| 5004 | |
| 5005 | ::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const { |
| 5006 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5007 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5008 | } |
| 5009 | |
| 5010 | |
| 5011 | // =================================================================== |
| 5012 | |
| 5013 | void ManagedDeviceInfo::InitAsDefaultInstance() { |
| 5014 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>( |
| 5015 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 5016 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5017 | ::dmi::Uuid::internal_default_instance()); |
| 5018 | } |
| 5019 | class ManagedDeviceInfo::HasBitSetters { |
| 5020 | public: |
| 5021 | static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg); |
| 5022 | static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg); |
| 5023 | }; |
| 5024 | |
| 5025 | const ::dmi::ModifiableComponent& |
| 5026 | ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) { |
| 5027 | return *msg->info_; |
| 5028 | } |
| 5029 | const ::dmi::Uuid& |
| 5030 | ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) { |
| 5031 | return *msg->device_uuid_; |
| 5032 | } |
| 5033 | void ManagedDeviceInfo::clear_info() { |
| 5034 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5035 | delete info_; |
| 5036 | } |
| 5037 | info_ = nullptr; |
| 5038 | } |
| 5039 | void ManagedDeviceInfo::clear_device_uuid() { |
| 5040 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5041 | delete device_uuid_; |
| 5042 | } |
| 5043 | device_uuid_ = nullptr; |
| 5044 | } |
| 5045 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5046 | const int ManagedDeviceInfo::kInfoFieldNumber; |
| 5047 | const int ManagedDeviceInfo::kDeviceUuidFieldNumber; |
| 5048 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5049 | |
| 5050 | ManagedDeviceInfo::ManagedDeviceInfo() |
| 5051 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5052 | SharedCtor(); |
| 5053 | // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo) |
| 5054 | } |
| 5055 | ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from) |
| 5056 | : ::google::protobuf::Message(), |
| 5057 | _internal_metadata_(nullptr) { |
| 5058 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5059 | if (from.has_info()) { |
| 5060 | info_ = new ::dmi::ModifiableComponent(*from.info_); |
| 5061 | } else { |
| 5062 | info_ = nullptr; |
| 5063 | } |
| 5064 | if (from.has_device_uuid()) { |
| 5065 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5066 | } else { |
| 5067 | device_uuid_ = nullptr; |
| 5068 | } |
| 5069 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo) |
| 5070 | } |
| 5071 | |
| 5072 | void ManagedDeviceInfo::SharedCtor() { |
| 5073 | ::google::protobuf::internal::InitSCC( |
| 5074 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5075 | ::memset(&info_, 0, static_cast<size_t>( |
| 5076 | reinterpret_cast<char*>(&device_uuid_) - |
| 5077 | reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_)); |
| 5078 | } |
| 5079 | |
| 5080 | ManagedDeviceInfo::~ManagedDeviceInfo() { |
| 5081 | // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo) |
| 5082 | SharedDtor(); |
| 5083 | } |
| 5084 | |
| 5085 | void ManagedDeviceInfo::SharedDtor() { |
| 5086 | if (this != internal_default_instance()) delete info_; |
| 5087 | if (this != internal_default_instance()) delete device_uuid_; |
| 5088 | } |
| 5089 | |
| 5090 | void ManagedDeviceInfo::SetCachedSize(int size) const { |
| 5091 | _cached_size_.Set(size); |
| 5092 | } |
| 5093 | const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() { |
| 5094 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5095 | return *internal_default_instance(); |
| 5096 | } |
| 5097 | |
| 5098 | |
| 5099 | void ManagedDeviceInfo::Clear() { |
| 5100 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo) |
| 5101 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5102 | // Prevent compiler warnings about cached_has_bits being unused |
| 5103 | (void) cached_has_bits; |
| 5104 | |
| 5105 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5106 | delete info_; |
| 5107 | } |
| 5108 | info_ = nullptr; |
| 5109 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5110 | delete device_uuid_; |
| 5111 | } |
| 5112 | device_uuid_ = nullptr; |
| 5113 | _internal_metadata_.Clear(); |
| 5114 | } |
| 5115 | |
| 5116 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5117 | const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 5118 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5119 | auto msg = static_cast<ManagedDeviceInfo*>(object); |
| 5120 | ::google::protobuf::int32 size; (void)size; |
| 5121 | int depth; (void)depth; |
| 5122 | ::google::protobuf::uint32 tag; |
| 5123 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5124 | auto ptr = begin; |
| 5125 | while (ptr < end) { |
| 5126 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5127 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5128 | switch (tag >> 3) { |
| 5129 | // .dmi.ModifiableComponent info = 1; |
| 5130 | case 1: { |
| 5131 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5132 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5133 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5134 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 5135 | object = msg->mutable_info(); |
| 5136 | if (size > end - ptr) goto len_delim_till_end; |
| 5137 | ptr += size; |
| 5138 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5139 | {parser_till_end, object}, ptr - size, ptr)); |
| 5140 | break; |
| 5141 | } |
| 5142 | // .dmi.Uuid device_uuid = 2; |
| 5143 | case 2: { |
| 5144 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5145 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5146 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5147 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5148 | object = msg->mutable_device_uuid(); |
| 5149 | if (size > end - ptr) goto len_delim_till_end; |
| 5150 | ptr += size; |
| 5151 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5152 | {parser_till_end, object}, ptr - size, ptr)); |
| 5153 | break; |
| 5154 | } |
| 5155 | default: { |
| 5156 | handle_unusual: |
| 5157 | if ((tag & 7) == 4 || tag == 0) { |
| 5158 | ctx->EndGroup(tag); |
| 5159 | return ptr; |
| 5160 | } |
| 5161 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5162 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5163 | ptr = res.first; |
| 5164 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5165 | if (res.second) return ptr; |
| 5166 | } |
| 5167 | } // switch |
| 5168 | } // while |
| 5169 | return ptr; |
| 5170 | len_delim_till_end: |
| 5171 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5172 | {parser_till_end, object}, size); |
| 5173 | } |
| 5174 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5175 | bool ManagedDeviceInfo::MergePartialFromCodedStream( |
| 5176 | ::google::protobuf::io::CodedInputStream* input) { |
| 5177 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5178 | ::google::protobuf::uint32 tag; |
| 5179 | // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo) |
| 5180 | for (;;) { |
| 5181 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5182 | tag = p.first; |
| 5183 | if (!p.second) goto handle_unusual; |
| 5184 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5185 | // .dmi.ModifiableComponent info = 1; |
| 5186 | case 1: { |
| 5187 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5188 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5189 | input, mutable_info())); |
| 5190 | } else { |
| 5191 | goto handle_unusual; |
| 5192 | } |
| 5193 | break; |
| 5194 | } |
| 5195 | |
| 5196 | // .dmi.Uuid device_uuid = 2; |
| 5197 | case 2: { |
| 5198 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5199 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5200 | input, mutable_device_uuid())); |
| 5201 | } else { |
| 5202 | goto handle_unusual; |
| 5203 | } |
| 5204 | break; |
| 5205 | } |
| 5206 | |
| 5207 | default: { |
| 5208 | handle_unusual: |
| 5209 | if (tag == 0) { |
| 5210 | goto success; |
| 5211 | } |
| 5212 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5213 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5214 | break; |
| 5215 | } |
| 5216 | } |
| 5217 | } |
| 5218 | success: |
| 5219 | // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo) |
| 5220 | return true; |
| 5221 | failure: |
| 5222 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo) |
| 5223 | return false; |
| 5224 | #undef DO_ |
| 5225 | } |
| 5226 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5227 | |
| 5228 | void ManagedDeviceInfo::SerializeWithCachedSizes( |
| 5229 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5230 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo) |
| 5231 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5232 | (void) cached_has_bits; |
| 5233 | |
| 5234 | // .dmi.ModifiableComponent info = 1; |
| 5235 | if (this->has_info()) { |
| 5236 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5237 | 1, HasBitSetters::info(this), output); |
| 5238 | } |
| 5239 | |
| 5240 | // .dmi.Uuid device_uuid = 2; |
| 5241 | if (this->has_device_uuid()) { |
| 5242 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5243 | 2, HasBitSetters::device_uuid(this), output); |
| 5244 | } |
| 5245 | |
| 5246 | if (_internal_metadata_.have_unknown_fields()) { |
| 5247 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5248 | _internal_metadata_.unknown_fields(), output); |
| 5249 | } |
| 5250 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo) |
| 5251 | } |
| 5252 | |
| 5253 | ::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray( |
| 5254 | ::google::protobuf::uint8* target) const { |
| 5255 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo) |
| 5256 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5257 | (void) cached_has_bits; |
| 5258 | |
| 5259 | // .dmi.ModifiableComponent info = 1; |
| 5260 | if (this->has_info()) { |
| 5261 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5262 | InternalWriteMessageToArray( |
| 5263 | 1, HasBitSetters::info(this), target); |
| 5264 | } |
| 5265 | |
| 5266 | // .dmi.Uuid device_uuid = 2; |
| 5267 | if (this->has_device_uuid()) { |
| 5268 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5269 | InternalWriteMessageToArray( |
| 5270 | 2, HasBitSetters::device_uuid(this), target); |
| 5271 | } |
| 5272 | |
| 5273 | if (_internal_metadata_.have_unknown_fields()) { |
| 5274 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5275 | _internal_metadata_.unknown_fields(), target); |
| 5276 | } |
| 5277 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo) |
| 5278 | return target; |
| 5279 | } |
| 5280 | |
| 5281 | size_t ManagedDeviceInfo::ByteSizeLong() const { |
| 5282 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo) |
| 5283 | size_t total_size = 0; |
| 5284 | |
| 5285 | if (_internal_metadata_.have_unknown_fields()) { |
| 5286 | total_size += |
| 5287 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5288 | _internal_metadata_.unknown_fields()); |
| 5289 | } |
| 5290 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5291 | // Prevent compiler warnings about cached_has_bits being unused |
| 5292 | (void) cached_has_bits; |
| 5293 | |
| 5294 | // .dmi.ModifiableComponent info = 1; |
| 5295 | if (this->has_info()) { |
| 5296 | total_size += 1 + |
| 5297 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5298 | *info_); |
| 5299 | } |
| 5300 | |
| 5301 | // .dmi.Uuid device_uuid = 2; |
| 5302 | if (this->has_device_uuid()) { |
| 5303 | total_size += 1 + |
| 5304 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5305 | *device_uuid_); |
| 5306 | } |
| 5307 | |
| 5308 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5309 | SetCachedSize(cached_size); |
| 5310 | return total_size; |
| 5311 | } |
| 5312 | |
| 5313 | void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 5314 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo) |
| 5315 | GOOGLE_DCHECK_NE(&from, this); |
| 5316 | const ManagedDeviceInfo* source = |
| 5317 | ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>( |
| 5318 | &from); |
| 5319 | if (source == nullptr) { |
| 5320 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo) |
| 5321 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5322 | } else { |
| 5323 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo) |
| 5324 | MergeFrom(*source); |
| 5325 | } |
| 5326 | } |
| 5327 | |
| 5328 | void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) { |
| 5329 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo) |
| 5330 | GOOGLE_DCHECK_NE(&from, this); |
| 5331 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5332 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5333 | (void) cached_has_bits; |
| 5334 | |
| 5335 | if (from.has_info()) { |
| 5336 | mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info()); |
| 5337 | } |
| 5338 | if (from.has_device_uuid()) { |
| 5339 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 5340 | } |
| 5341 | } |
| 5342 | |
| 5343 | void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 5344 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo) |
| 5345 | if (&from == this) return; |
| 5346 | Clear(); |
| 5347 | MergeFrom(from); |
| 5348 | } |
| 5349 | |
| 5350 | void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) { |
| 5351 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo) |
| 5352 | if (&from == this) return; |
| 5353 | Clear(); |
| 5354 | MergeFrom(from); |
| 5355 | } |
| 5356 | |
| 5357 | bool ManagedDeviceInfo::IsInitialized() const { |
| 5358 | return true; |
| 5359 | } |
| 5360 | |
| 5361 | void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) { |
| 5362 | if (other == this) return; |
| 5363 | InternalSwap(other); |
| 5364 | } |
| 5365 | void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) { |
| 5366 | using std::swap; |
| 5367 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5368 | swap(info_, other->info_); |
| 5369 | swap(device_uuid_, other->device_uuid_); |
| 5370 | } |
| 5371 | |
| 5372 | ::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const { |
| 5373 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5374 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5375 | } |
| 5376 | |
| 5377 | |
| 5378 | // =================================================================== |
| 5379 | |
| 5380 | void ManagedDevicesResponse::InitAsDefaultInstance() { |
| 5381 | } |
| 5382 | class ManagedDevicesResponse::HasBitSetters { |
| 5383 | public: |
| 5384 | }; |
| 5385 | |
| 5386 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5387 | const int ManagedDevicesResponse::kStatusFieldNumber; |
| 5388 | const int ManagedDevicesResponse::kReasonFieldNumber; |
| 5389 | const int ManagedDevicesResponse::kDevicesFieldNumber; |
| 5390 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5391 | |
| 5392 | ManagedDevicesResponse::ManagedDevicesResponse() |
| 5393 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5394 | SharedCtor(); |
| 5395 | // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse) |
| 5396 | } |
| 5397 | ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from) |
| 5398 | : ::google::protobuf::Message(), |
| 5399 | _internal_metadata_(nullptr), |
| 5400 | devices_(from.devices_) { |
| 5401 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5402 | ::memcpy(&status_, &from.status_, |
| 5403 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 5404 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5405 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse) |
| 5406 | } |
| 5407 | |
| 5408 | void ManagedDevicesResponse::SharedCtor() { |
| 5409 | ::google::protobuf::internal::InitSCC( |
| 5410 | &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5411 | ::memset(&status_, 0, static_cast<size_t>( |
| 5412 | reinterpret_cast<char*>(&reason_) - |
| 5413 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5414 | } |
| 5415 | |
| 5416 | ManagedDevicesResponse::~ManagedDevicesResponse() { |
| 5417 | // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse) |
| 5418 | SharedDtor(); |
| 5419 | } |
| 5420 | |
| 5421 | void ManagedDevicesResponse::SharedDtor() { |
| 5422 | } |
| 5423 | |
| 5424 | void ManagedDevicesResponse::SetCachedSize(int size) const { |
| 5425 | _cached_size_.Set(size); |
| 5426 | } |
| 5427 | const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() { |
| 5428 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5429 | return *internal_default_instance(); |
| 5430 | } |
| 5431 | |
| 5432 | |
| 5433 | void ManagedDevicesResponse::Clear() { |
| 5434 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse) |
| 5435 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5436 | // Prevent compiler warnings about cached_has_bits being unused |
| 5437 | (void) cached_has_bits; |
| 5438 | |
| 5439 | devices_.Clear(); |
| 5440 | ::memset(&status_, 0, static_cast<size_t>( |
| 5441 | reinterpret_cast<char*>(&reason_) - |
| 5442 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5443 | _internal_metadata_.Clear(); |
| 5444 | } |
| 5445 | |
| 5446 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5447 | const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 5448 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5449 | auto msg = static_cast<ManagedDevicesResponse*>(object); |
| 5450 | ::google::protobuf::int32 size; (void)size; |
| 5451 | int depth; (void)depth; |
| 5452 | ::google::protobuf::uint32 tag; |
| 5453 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5454 | auto ptr = begin; |
| 5455 | while (ptr < end) { |
| 5456 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5457 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5458 | switch (tag >> 3) { |
| 5459 | // .dmi.Status status = 1; |
| 5460 | case 1: { |
| 5461 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5462 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5463 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 5464 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5465 | break; |
| 5466 | } |
| 5467 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5468 | case 2: { |
| 5469 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5470 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5471 | msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val)); |
| 5472 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5473 | break; |
| 5474 | } |
| 5475 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5476 | case 3: { |
| 5477 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5478 | do { |
| 5479 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5480 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5481 | parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse; |
| 5482 | object = msg->add_devices(); |
| 5483 | if (size > end - ptr) goto len_delim_till_end; |
| 5484 | ptr += size; |
| 5485 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5486 | {parser_till_end, object}, ptr - size, ptr)); |
| 5487 | if (ptr >= end) break; |
| 5488 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); |
| 5489 | break; |
| 5490 | } |
| 5491 | default: { |
| 5492 | handle_unusual: |
| 5493 | if ((tag & 7) == 4 || tag == 0) { |
| 5494 | ctx->EndGroup(tag); |
| 5495 | return ptr; |
| 5496 | } |
| 5497 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5498 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5499 | ptr = res.first; |
| 5500 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5501 | if (res.second) return ptr; |
| 5502 | } |
| 5503 | } // switch |
| 5504 | } // while |
| 5505 | return ptr; |
| 5506 | len_delim_till_end: |
| 5507 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5508 | {parser_till_end, object}, size); |
| 5509 | } |
| 5510 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5511 | bool ManagedDevicesResponse::MergePartialFromCodedStream( |
| 5512 | ::google::protobuf::io::CodedInputStream* input) { |
| 5513 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5514 | ::google::protobuf::uint32 tag; |
| 5515 | // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse) |
| 5516 | for (;;) { |
| 5517 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5518 | tag = p.first; |
| 5519 | if (!p.second) goto handle_unusual; |
| 5520 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5521 | // .dmi.Status status = 1; |
| 5522 | case 1: { |
| 5523 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5524 | int value = 0; |
| 5525 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5526 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5527 | input, &value))); |
| 5528 | set_status(static_cast< ::dmi::Status >(value)); |
| 5529 | } else { |
| 5530 | goto handle_unusual; |
| 5531 | } |
| 5532 | break; |
| 5533 | } |
| 5534 | |
| 5535 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5536 | case 2: { |
| 5537 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5538 | int value = 0; |
| 5539 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5540 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5541 | input, &value))); |
| 5542 | set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value)); |
| 5543 | } else { |
| 5544 | goto handle_unusual; |
| 5545 | } |
| 5546 | break; |
| 5547 | } |
| 5548 | |
| 5549 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5550 | case 3: { |
| 5551 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5552 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5553 | input, add_devices())); |
| 5554 | } else { |
| 5555 | goto handle_unusual; |
| 5556 | } |
| 5557 | break; |
| 5558 | } |
| 5559 | |
| 5560 | default: { |
| 5561 | handle_unusual: |
| 5562 | if (tag == 0) { |
| 5563 | goto success; |
| 5564 | } |
| 5565 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5566 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5567 | break; |
| 5568 | } |
| 5569 | } |
| 5570 | } |
| 5571 | success: |
| 5572 | // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse) |
| 5573 | return true; |
| 5574 | failure: |
| 5575 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse) |
| 5576 | return false; |
| 5577 | #undef DO_ |
| 5578 | } |
| 5579 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5580 | |
| 5581 | void ManagedDevicesResponse::SerializeWithCachedSizes( |
| 5582 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5583 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse) |
| 5584 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5585 | (void) cached_has_bits; |
| 5586 | |
| 5587 | // .dmi.Status status = 1; |
| 5588 | if (this->status() != 0) { |
| 5589 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5590 | 1, this->status(), output); |
| 5591 | } |
| 5592 | |
| 5593 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5594 | if (this->reason() != 0) { |
| 5595 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5596 | 2, this->reason(), output); |
| 5597 | } |
| 5598 | |
| 5599 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5600 | for (unsigned int i = 0, |
| 5601 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5602 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5603 | 3, |
| 5604 | this->devices(static_cast<int>(i)), |
| 5605 | output); |
| 5606 | } |
| 5607 | |
| 5608 | if (_internal_metadata_.have_unknown_fields()) { |
| 5609 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5610 | _internal_metadata_.unknown_fields(), output); |
| 5611 | } |
| 5612 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse) |
| 5613 | } |
| 5614 | |
| 5615 | ::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray( |
| 5616 | ::google::protobuf::uint8* target) const { |
| 5617 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse) |
| 5618 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5619 | (void) cached_has_bits; |
| 5620 | |
| 5621 | // .dmi.Status status = 1; |
| 5622 | if (this->status() != 0) { |
| 5623 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5624 | 1, this->status(), target); |
| 5625 | } |
| 5626 | |
| 5627 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5628 | if (this->reason() != 0) { |
| 5629 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5630 | 2, this->reason(), target); |
| 5631 | } |
| 5632 | |
| 5633 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5634 | for (unsigned int i = 0, |
| 5635 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5636 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5637 | InternalWriteMessageToArray( |
| 5638 | 3, this->devices(static_cast<int>(i)), target); |
| 5639 | } |
| 5640 | |
| 5641 | if (_internal_metadata_.have_unknown_fields()) { |
| 5642 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5643 | _internal_metadata_.unknown_fields(), target); |
| 5644 | } |
| 5645 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse) |
| 5646 | return target; |
| 5647 | } |
| 5648 | |
| 5649 | size_t ManagedDevicesResponse::ByteSizeLong() const { |
| 5650 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse) |
| 5651 | size_t total_size = 0; |
| 5652 | |
| 5653 | if (_internal_metadata_.have_unknown_fields()) { |
| 5654 | total_size += |
| 5655 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5656 | _internal_metadata_.unknown_fields()); |
| 5657 | } |
| 5658 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5659 | // Prevent compiler warnings about cached_has_bits being unused |
| 5660 | (void) cached_has_bits; |
| 5661 | |
| 5662 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5663 | { |
| 5664 | unsigned int count = static_cast<unsigned int>(this->devices_size()); |
| 5665 | total_size += 1UL * count; |
| 5666 | for (unsigned int i = 0; i < count; i++) { |
| 5667 | total_size += |
| 5668 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5669 | this->devices(static_cast<int>(i))); |
| 5670 | } |
| 5671 | } |
| 5672 | |
| 5673 | // .dmi.Status status = 1; |
| 5674 | if (this->status() != 0) { |
| 5675 | total_size += 1 + |
| 5676 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 5677 | } |
| 5678 | |
| 5679 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5680 | if (this->reason() != 0) { |
| 5681 | total_size += 1 + |
| 5682 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 5683 | } |
| 5684 | |
| 5685 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5686 | SetCachedSize(cached_size); |
| 5687 | return total_size; |
| 5688 | } |
| 5689 | |
| 5690 | void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 5691 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse) |
| 5692 | GOOGLE_DCHECK_NE(&from, this); |
| 5693 | const ManagedDevicesResponse* source = |
| 5694 | ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>( |
| 5695 | &from); |
| 5696 | if (source == nullptr) { |
| 5697 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse) |
| 5698 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5699 | } else { |
| 5700 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse) |
| 5701 | MergeFrom(*source); |
| 5702 | } |
| 5703 | } |
| 5704 | |
| 5705 | void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) { |
| 5706 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse) |
| 5707 | GOOGLE_DCHECK_NE(&from, this); |
| 5708 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5709 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5710 | (void) cached_has_bits; |
| 5711 | |
| 5712 | devices_.MergeFrom(from.devices_); |
| 5713 | if (from.status() != 0) { |
| 5714 | set_status(from.status()); |
| 5715 | } |
| 5716 | if (from.reason() != 0) { |
| 5717 | set_reason(from.reason()); |
| 5718 | } |
| 5719 | } |
| 5720 | |
| 5721 | void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 5722 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse) |
| 5723 | if (&from == this) return; |
| 5724 | Clear(); |
| 5725 | MergeFrom(from); |
| 5726 | } |
| 5727 | |
| 5728 | void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) { |
| 5729 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse) |
| 5730 | if (&from == this) return; |
| 5731 | Clear(); |
| 5732 | MergeFrom(from); |
| 5733 | } |
| 5734 | |
| 5735 | bool ManagedDevicesResponse::IsInitialized() const { |
| 5736 | return true; |
| 5737 | } |
| 5738 | |
| 5739 | void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) { |
| 5740 | if (other == this) return; |
| 5741 | InternalSwap(other); |
| 5742 | } |
| 5743 | void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) { |
| 5744 | using std::swap; |
| 5745 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5746 | CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_)); |
| 5747 | swap(status_, other->status_); |
| 5748 | swap(reason_, other->reason_); |
| 5749 | } |
| 5750 | |
| 5751 | ::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const { |
| 5752 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5753 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5754 | } |
| 5755 | |
| 5756 | |
| 5757 | // =================================================================== |
| 5758 | |
| 5759 | void SetLoggingEndpointRequest::InitAsDefaultInstance() { |
| 5760 | ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5761 | ::dmi::Uuid::internal_default_instance()); |
| 5762 | } |
| 5763 | class SetLoggingEndpointRequest::HasBitSetters { |
| 5764 | public: |
| 5765 | static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg); |
| 5766 | }; |
| 5767 | |
| 5768 | const ::dmi::Uuid& |
| 5769 | SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) { |
| 5770 | return *msg->device_uuid_; |
| 5771 | } |
| 5772 | void SetLoggingEndpointRequest::clear_device_uuid() { |
| 5773 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5774 | delete device_uuid_; |
| 5775 | } |
| 5776 | device_uuid_ = nullptr; |
| 5777 | } |
| 5778 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5779 | const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber; |
| 5780 | const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber; |
| 5781 | const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber; |
| 5782 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5783 | |
| 5784 | SetLoggingEndpointRequest::SetLoggingEndpointRequest() |
| 5785 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5786 | SharedCtor(); |
| 5787 | // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest) |
| 5788 | } |
| 5789 | SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from) |
| 5790 | : ::google::protobuf::Message(), |
| 5791 | _internal_metadata_(nullptr) { |
| 5792 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5793 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5794 | if (from.logging_endpoint().size() > 0) { |
| 5795 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 5796 | } |
| 5797 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5798 | if (from.logging_protocol().size() > 0) { |
| 5799 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 5800 | } |
| 5801 | if (from.has_device_uuid()) { |
| 5802 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5803 | } else { |
| 5804 | device_uuid_ = nullptr; |
| 5805 | } |
| 5806 | // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest) |
| 5807 | } |
| 5808 | |
| 5809 | void SetLoggingEndpointRequest::SharedCtor() { |
| 5810 | ::google::protobuf::internal::InitSCC( |
| 5811 | &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5812 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5813 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5814 | device_uuid_ = nullptr; |
| 5815 | } |
| 5816 | |
| 5817 | SetLoggingEndpointRequest::~SetLoggingEndpointRequest() { |
| 5818 | // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest) |
| 5819 | SharedDtor(); |
| 5820 | } |
| 5821 | |
| 5822 | void SetLoggingEndpointRequest::SharedDtor() { |
| 5823 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5824 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5825 | if (this != internal_default_instance()) delete device_uuid_; |
| 5826 | } |
| 5827 | |
| 5828 | void SetLoggingEndpointRequest::SetCachedSize(int size) const { |
| 5829 | _cached_size_.Set(size); |
| 5830 | } |
| 5831 | const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() { |
| 5832 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5833 | return *internal_default_instance(); |
| 5834 | } |
| 5835 | |
| 5836 | |
| 5837 | void SetLoggingEndpointRequest::Clear() { |
| 5838 | // @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest) |
| 5839 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5840 | // Prevent compiler warnings about cached_has_bits being unused |
| 5841 | (void) cached_has_bits; |
| 5842 | |
| 5843 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5844 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5845 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5846 | delete device_uuid_; |
| 5847 | } |
| 5848 | device_uuid_ = nullptr; |
| 5849 | _internal_metadata_.Clear(); |
| 5850 | } |
| 5851 | |
| 5852 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5853 | const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 5854 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5855 | auto msg = static_cast<SetLoggingEndpointRequest*>(object); |
| 5856 | ::google::protobuf::int32 size; (void)size; |
| 5857 | int depth; (void)depth; |
| 5858 | ::google::protobuf::uint32 tag; |
| 5859 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5860 | auto ptr = begin; |
| 5861 | while (ptr < end) { |
| 5862 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5863 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5864 | switch (tag >> 3) { |
| 5865 | // .dmi.Uuid device_uuid = 1; |
| 5866 | case 1: { |
| 5867 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5868 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5869 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5870 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5871 | object = msg->mutable_device_uuid(); |
| 5872 | if (size > end - ptr) goto len_delim_till_end; |
| 5873 | ptr += size; |
| 5874 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5875 | {parser_till_end, object}, ptr - size, ptr)); |
| 5876 | break; |
| 5877 | } |
| 5878 | // string logging_endpoint = 2; |
| 5879 | case 2: { |
| 5880 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5881 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5882 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5883 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 5884 | object = msg->mutable_logging_endpoint(); |
| 5885 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5886 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5887 | goto string_till_end; |
| 5888 | } |
| 5889 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5890 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5891 | ptr += size; |
| 5892 | break; |
| 5893 | } |
| 5894 | // string logging_protocol = 3; |
| 5895 | case 3: { |
| 5896 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5897 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5898 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5899 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 5900 | object = msg->mutable_logging_protocol(); |
| 5901 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5902 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5903 | goto string_till_end; |
| 5904 | } |
| 5905 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5906 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5907 | ptr += size; |
| 5908 | break; |
| 5909 | } |
| 5910 | default: { |
| 5911 | handle_unusual: |
| 5912 | if ((tag & 7) == 4 || tag == 0) { |
| 5913 | ctx->EndGroup(tag); |
| 5914 | return ptr; |
| 5915 | } |
| 5916 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5917 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5918 | ptr = res.first; |
| 5919 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5920 | if (res.second) return ptr; |
| 5921 | } |
| 5922 | } // switch |
| 5923 | } // while |
| 5924 | return ptr; |
| 5925 | string_till_end: |
| 5926 | static_cast<::std::string*>(object)->clear(); |
| 5927 | static_cast<::std::string*>(object)->reserve(size); |
| 5928 | goto len_delim_till_end; |
| 5929 | len_delim_till_end: |
| 5930 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5931 | {parser_till_end, object}, size); |
| 5932 | } |
| 5933 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5934 | bool SetLoggingEndpointRequest::MergePartialFromCodedStream( |
| 5935 | ::google::protobuf::io::CodedInputStream* input) { |
| 5936 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5937 | ::google::protobuf::uint32 tag; |
| 5938 | // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest) |
| 5939 | for (;;) { |
| 5940 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5941 | tag = p.first; |
| 5942 | if (!p.second) goto handle_unusual; |
| 5943 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5944 | // .dmi.Uuid device_uuid = 1; |
| 5945 | case 1: { |
| 5946 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5947 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5948 | input, mutable_device_uuid())); |
| 5949 | } else { |
| 5950 | goto handle_unusual; |
| 5951 | } |
| 5952 | break; |
| 5953 | } |
| 5954 | |
| 5955 | // string logging_endpoint = 2; |
| 5956 | case 2: { |
| 5957 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5958 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5959 | input, this->mutable_logging_endpoint())); |
| 5960 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5961 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 5962 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5963 | "dmi.SetLoggingEndpointRequest.logging_endpoint")); |
| 5964 | } else { |
| 5965 | goto handle_unusual; |
| 5966 | } |
| 5967 | break; |
| 5968 | } |
| 5969 | |
| 5970 | // string logging_protocol = 3; |
| 5971 | case 3: { |
| 5972 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5973 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5974 | input, this->mutable_logging_protocol())); |
| 5975 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5976 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 5977 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5978 | "dmi.SetLoggingEndpointRequest.logging_protocol")); |
| 5979 | } else { |
| 5980 | goto handle_unusual; |
| 5981 | } |
| 5982 | break; |
| 5983 | } |
| 5984 | |
| 5985 | default: { |
| 5986 | handle_unusual: |
| 5987 | if (tag == 0) { |
| 5988 | goto success; |
| 5989 | } |
| 5990 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5991 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5992 | break; |
| 5993 | } |
| 5994 | } |
| 5995 | } |
| 5996 | success: |
| 5997 | // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest) |
| 5998 | return true; |
| 5999 | failure: |
| 6000 | // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest) |
| 6001 | return false; |
| 6002 | #undef DO_ |
| 6003 | } |
| 6004 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6005 | |
| 6006 | void SetLoggingEndpointRequest::SerializeWithCachedSizes( |
| 6007 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6008 | // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest) |
| 6009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6010 | (void) cached_has_bits; |
| 6011 | |
| 6012 | // .dmi.Uuid device_uuid = 1; |
| 6013 | if (this->has_device_uuid()) { |
| 6014 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6015 | 1, HasBitSetters::device_uuid(this), output); |
| 6016 | } |
| 6017 | |
| 6018 | // string logging_endpoint = 2; |
| 6019 | if (this->logging_endpoint().size() > 0) { |
| 6020 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6021 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6022 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6023 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6024 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6025 | 2, this->logging_endpoint(), output); |
| 6026 | } |
| 6027 | |
| 6028 | // string logging_protocol = 3; |
| 6029 | if (this->logging_protocol().size() > 0) { |
| 6030 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6031 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6032 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6033 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6034 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6035 | 3, this->logging_protocol(), output); |
| 6036 | } |
| 6037 | |
| 6038 | if (_internal_metadata_.have_unknown_fields()) { |
| 6039 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6040 | _internal_metadata_.unknown_fields(), output); |
| 6041 | } |
| 6042 | // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest) |
| 6043 | } |
| 6044 | |
| 6045 | ::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 6046 | ::google::protobuf::uint8* target) const { |
| 6047 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest) |
| 6048 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6049 | (void) cached_has_bits; |
| 6050 | |
| 6051 | // .dmi.Uuid device_uuid = 1; |
| 6052 | if (this->has_device_uuid()) { |
| 6053 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6054 | InternalWriteMessageToArray( |
| 6055 | 1, HasBitSetters::device_uuid(this), target); |
| 6056 | } |
| 6057 | |
| 6058 | // string logging_endpoint = 2; |
| 6059 | if (this->logging_endpoint().size() > 0) { |
| 6060 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6061 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6062 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6063 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6064 | target = |
| 6065 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6066 | 2, this->logging_endpoint(), target); |
| 6067 | } |
| 6068 | |
| 6069 | // string logging_protocol = 3; |
| 6070 | if (this->logging_protocol().size() > 0) { |
| 6071 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6072 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6073 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6074 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6075 | target = |
| 6076 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6077 | 3, this->logging_protocol(), target); |
| 6078 | } |
| 6079 | |
| 6080 | if (_internal_metadata_.have_unknown_fields()) { |
| 6081 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6082 | _internal_metadata_.unknown_fields(), target); |
| 6083 | } |
| 6084 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest) |
| 6085 | return target; |
| 6086 | } |
| 6087 | |
| 6088 | size_t SetLoggingEndpointRequest::ByteSizeLong() const { |
| 6089 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest) |
| 6090 | size_t total_size = 0; |
| 6091 | |
| 6092 | if (_internal_metadata_.have_unknown_fields()) { |
| 6093 | total_size += |
| 6094 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6095 | _internal_metadata_.unknown_fields()); |
| 6096 | } |
| 6097 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6098 | // Prevent compiler warnings about cached_has_bits being unused |
| 6099 | (void) cached_has_bits; |
| 6100 | |
| 6101 | // string logging_endpoint = 2; |
| 6102 | if (this->logging_endpoint().size() > 0) { |
| 6103 | total_size += 1 + |
| 6104 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6105 | this->logging_endpoint()); |
| 6106 | } |
| 6107 | |
| 6108 | // string logging_protocol = 3; |
| 6109 | if (this->logging_protocol().size() > 0) { |
| 6110 | total_size += 1 + |
| 6111 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6112 | this->logging_protocol()); |
| 6113 | } |
| 6114 | |
| 6115 | // .dmi.Uuid device_uuid = 1; |
| 6116 | if (this->has_device_uuid()) { |
| 6117 | total_size += 1 + |
| 6118 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 6119 | *device_uuid_); |
| 6120 | } |
| 6121 | |
| 6122 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6123 | SetCachedSize(cached_size); |
| 6124 | return total_size; |
| 6125 | } |
| 6126 | |
| 6127 | void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 6128 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6129 | GOOGLE_DCHECK_NE(&from, this); |
| 6130 | const SetLoggingEndpointRequest* source = |
| 6131 | ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>( |
| 6132 | &from); |
| 6133 | if (source == nullptr) { |
| 6134 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest) |
| 6135 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6136 | } else { |
| 6137 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest) |
| 6138 | MergeFrom(*source); |
| 6139 | } |
| 6140 | } |
| 6141 | |
| 6142 | void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) { |
| 6143 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6144 | GOOGLE_DCHECK_NE(&from, this); |
| 6145 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6146 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6147 | (void) cached_has_bits; |
| 6148 | |
| 6149 | if (from.logging_endpoint().size() > 0) { |
| 6150 | |
| 6151 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6152 | } |
| 6153 | if (from.logging_protocol().size() > 0) { |
| 6154 | |
| 6155 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6156 | } |
| 6157 | if (from.has_device_uuid()) { |
| 6158 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 6159 | } |
| 6160 | } |
| 6161 | |
| 6162 | void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 6163 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6164 | if (&from == this) return; |
| 6165 | Clear(); |
| 6166 | MergeFrom(from); |
| 6167 | } |
| 6168 | |
| 6169 | void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) { |
| 6170 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6171 | if (&from == this) return; |
| 6172 | Clear(); |
| 6173 | MergeFrom(from); |
| 6174 | } |
| 6175 | |
| 6176 | bool SetLoggingEndpointRequest::IsInitialized() const { |
| 6177 | return true; |
| 6178 | } |
| 6179 | |
| 6180 | void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) { |
| 6181 | if (other == this) return; |
| 6182 | InternalSwap(other); |
| 6183 | } |
| 6184 | void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) { |
| 6185 | using std::swap; |
| 6186 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6187 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6188 | GetArenaNoVirtual()); |
| 6189 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6190 | GetArenaNoVirtual()); |
| 6191 | swap(device_uuid_, other->device_uuid_); |
| 6192 | } |
| 6193 | |
| 6194 | ::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const { |
| 6195 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6196 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6197 | } |
| 6198 | |
| 6199 | |
| 6200 | // =================================================================== |
| 6201 | |
| 6202 | void SetRemoteEndpointResponse::InitAsDefaultInstance() { |
| 6203 | } |
| 6204 | class SetRemoteEndpointResponse::HasBitSetters { |
| 6205 | public: |
| 6206 | }; |
| 6207 | |
| 6208 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6209 | const int SetRemoteEndpointResponse::kStatusFieldNumber; |
| 6210 | const int SetRemoteEndpointResponse::kReasonFieldNumber; |
| 6211 | const int SetRemoteEndpointResponse::kReasonDetailFieldNumber; |
| 6212 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6213 | |
| 6214 | SetRemoteEndpointResponse::SetRemoteEndpointResponse() |
| 6215 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6216 | SharedCtor(); |
| 6217 | // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse) |
| 6218 | } |
| 6219 | SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from) |
| 6220 | : ::google::protobuf::Message(), |
| 6221 | _internal_metadata_(nullptr) { |
| 6222 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6223 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6224 | if (from.reason_detail().size() > 0) { |
| 6225 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6226 | } |
| 6227 | ::memcpy(&status_, &from.status_, |
| 6228 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6229 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6230 | // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse) |
| 6231 | } |
| 6232 | |
| 6233 | void SetRemoteEndpointResponse::SharedCtor() { |
| 6234 | ::google::protobuf::internal::InitSCC( |
| 6235 | &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6236 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6237 | ::memset(&status_, 0, static_cast<size_t>( |
| 6238 | reinterpret_cast<char*>(&reason_) - |
| 6239 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6240 | } |
| 6241 | |
| 6242 | SetRemoteEndpointResponse::~SetRemoteEndpointResponse() { |
| 6243 | // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse) |
| 6244 | SharedDtor(); |
| 6245 | } |
| 6246 | |
| 6247 | void SetRemoteEndpointResponse::SharedDtor() { |
| 6248 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6249 | } |
| 6250 | |
| 6251 | void SetRemoteEndpointResponse::SetCachedSize(int size) const { |
| 6252 | _cached_size_.Set(size); |
| 6253 | } |
| 6254 | const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() { |
| 6255 | ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6256 | return *internal_default_instance(); |
| 6257 | } |
| 6258 | |
| 6259 | |
| 6260 | void SetRemoteEndpointResponse::Clear() { |
| 6261 | // @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse) |
| 6262 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6263 | // Prevent compiler warnings about cached_has_bits being unused |
| 6264 | (void) cached_has_bits; |
| 6265 | |
| 6266 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6267 | ::memset(&status_, 0, static_cast<size_t>( |
| 6268 | reinterpret_cast<char*>(&reason_) - |
| 6269 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6270 | _internal_metadata_.Clear(); |
| 6271 | } |
| 6272 | |
| 6273 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6274 | const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6275 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6276 | auto msg = static_cast<SetRemoteEndpointResponse*>(object); |
| 6277 | ::google::protobuf::int32 size; (void)size; |
| 6278 | int depth; (void)depth; |
| 6279 | ::google::protobuf::uint32 tag; |
| 6280 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6281 | auto ptr = begin; |
| 6282 | while (ptr < end) { |
| 6283 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6284 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6285 | switch (tag >> 3) { |
| 6286 | // .dmi.Status status = 1; |
| 6287 | case 1: { |
| 6288 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6289 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6290 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6291 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6292 | break; |
| 6293 | } |
| 6294 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6295 | case 2: { |
| 6296 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6297 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6298 | msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val)); |
| 6299 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6300 | break; |
| 6301 | } |
| 6302 | // string reason_detail = 3; |
| 6303 | case 3: { |
| 6304 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6305 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6306 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6307 | ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6308 | object = msg->mutable_reason_detail(); |
| 6309 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6310 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6311 | goto string_till_end; |
| 6312 | } |
| 6313 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6314 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6315 | ptr += size; |
| 6316 | break; |
| 6317 | } |
| 6318 | default: { |
| 6319 | handle_unusual: |
| 6320 | if ((tag & 7) == 4 || tag == 0) { |
| 6321 | ctx->EndGroup(tag); |
| 6322 | return ptr; |
| 6323 | } |
| 6324 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6325 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6326 | ptr = res.first; |
| 6327 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6328 | if (res.second) return ptr; |
| 6329 | } |
| 6330 | } // switch |
| 6331 | } // while |
| 6332 | return ptr; |
| 6333 | string_till_end: |
| 6334 | static_cast<::std::string*>(object)->clear(); |
| 6335 | static_cast<::std::string*>(object)->reserve(size); |
| 6336 | goto len_delim_till_end; |
| 6337 | len_delim_till_end: |
| 6338 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6339 | {parser_till_end, object}, size); |
| 6340 | } |
| 6341 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6342 | bool SetRemoteEndpointResponse::MergePartialFromCodedStream( |
| 6343 | ::google::protobuf::io::CodedInputStream* input) { |
| 6344 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6345 | ::google::protobuf::uint32 tag; |
| 6346 | // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse) |
| 6347 | for (;;) { |
| 6348 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6349 | tag = p.first; |
| 6350 | if (!p.second) goto handle_unusual; |
| 6351 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6352 | // .dmi.Status status = 1; |
| 6353 | case 1: { |
| 6354 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6355 | int value = 0; |
| 6356 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6357 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6358 | input, &value))); |
| 6359 | set_status(static_cast< ::dmi::Status >(value)); |
| 6360 | } else { |
| 6361 | goto handle_unusual; |
| 6362 | } |
| 6363 | break; |
| 6364 | } |
| 6365 | |
| 6366 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6367 | case 2: { |
| 6368 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6369 | int value = 0; |
| 6370 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6371 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6372 | input, &value))); |
| 6373 | set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value)); |
| 6374 | } else { |
| 6375 | goto handle_unusual; |
| 6376 | } |
| 6377 | break; |
| 6378 | } |
| 6379 | |
| 6380 | // string reason_detail = 3; |
| 6381 | case 3: { |
| 6382 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6383 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6384 | input, this->mutable_reason_detail())); |
| 6385 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6386 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6387 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6388 | "dmi.SetRemoteEndpointResponse.reason_detail")); |
| 6389 | } else { |
| 6390 | goto handle_unusual; |
| 6391 | } |
| 6392 | break; |
| 6393 | } |
| 6394 | |
| 6395 | default: { |
| 6396 | handle_unusual: |
| 6397 | if (tag == 0) { |
| 6398 | goto success; |
| 6399 | } |
| 6400 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6401 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6402 | break; |
| 6403 | } |
| 6404 | } |
| 6405 | } |
| 6406 | success: |
| 6407 | // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse) |
| 6408 | return true; |
| 6409 | failure: |
| 6410 | // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse) |
| 6411 | return false; |
| 6412 | #undef DO_ |
| 6413 | } |
| 6414 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6415 | |
| 6416 | void SetRemoteEndpointResponse::SerializeWithCachedSizes( |
| 6417 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6418 | // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse) |
| 6419 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6420 | (void) cached_has_bits; |
| 6421 | |
| 6422 | // .dmi.Status status = 1; |
| 6423 | if (this->status() != 0) { |
| 6424 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6425 | 1, this->status(), output); |
| 6426 | } |
| 6427 | |
| 6428 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6429 | if (this->reason() != 0) { |
| 6430 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6431 | 2, this->reason(), output); |
| 6432 | } |
| 6433 | |
| 6434 | // string reason_detail = 3; |
| 6435 | if (this->reason_detail().size() > 0) { |
| 6436 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6437 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6438 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6439 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6440 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6441 | 3, this->reason_detail(), output); |
| 6442 | } |
| 6443 | |
| 6444 | if (_internal_metadata_.have_unknown_fields()) { |
| 6445 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6446 | _internal_metadata_.unknown_fields(), output); |
| 6447 | } |
| 6448 | // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse) |
| 6449 | } |
| 6450 | |
| 6451 | ::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6452 | ::google::protobuf::uint8* target) const { |
| 6453 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse) |
| 6454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6455 | (void) cached_has_bits; |
| 6456 | |
| 6457 | // .dmi.Status status = 1; |
| 6458 | if (this->status() != 0) { |
| 6459 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6460 | 1, this->status(), target); |
| 6461 | } |
| 6462 | |
| 6463 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6464 | if (this->reason() != 0) { |
| 6465 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6466 | 2, this->reason(), target); |
| 6467 | } |
| 6468 | |
| 6469 | // string reason_detail = 3; |
| 6470 | if (this->reason_detail().size() > 0) { |
| 6471 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6472 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6473 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6474 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6475 | target = |
| 6476 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6477 | 3, this->reason_detail(), target); |
| 6478 | } |
| 6479 | |
| 6480 | if (_internal_metadata_.have_unknown_fields()) { |
| 6481 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6482 | _internal_metadata_.unknown_fields(), target); |
| 6483 | } |
| 6484 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse) |
| 6485 | return target; |
| 6486 | } |
| 6487 | |
| 6488 | size_t SetRemoteEndpointResponse::ByteSizeLong() const { |
| 6489 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse) |
| 6490 | size_t total_size = 0; |
| 6491 | |
| 6492 | if (_internal_metadata_.have_unknown_fields()) { |
| 6493 | total_size += |
| 6494 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6495 | _internal_metadata_.unknown_fields()); |
| 6496 | } |
| 6497 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6498 | // Prevent compiler warnings about cached_has_bits being unused |
| 6499 | (void) cached_has_bits; |
| 6500 | |
| 6501 | // string reason_detail = 3; |
| 6502 | if (this->reason_detail().size() > 0) { |
| 6503 | total_size += 1 + |
| 6504 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6505 | this->reason_detail()); |
| 6506 | } |
| 6507 | |
| 6508 | // .dmi.Status status = 1; |
| 6509 | if (this->status() != 0) { |
| 6510 | total_size += 1 + |
| 6511 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6512 | } |
| 6513 | |
| 6514 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6515 | if (this->reason() != 0) { |
| 6516 | total_size += 1 + |
| 6517 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 6518 | } |
| 6519 | |
| 6520 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6521 | SetCachedSize(cached_size); |
| 6522 | return total_size; |
| 6523 | } |
| 6524 | |
| 6525 | void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 6526 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6527 | GOOGLE_DCHECK_NE(&from, this); |
| 6528 | const SetRemoteEndpointResponse* source = |
| 6529 | ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>( |
| 6530 | &from); |
| 6531 | if (source == nullptr) { |
| 6532 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse) |
| 6533 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6534 | } else { |
| 6535 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse) |
| 6536 | MergeFrom(*source); |
| 6537 | } |
| 6538 | } |
| 6539 | |
| 6540 | void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) { |
| 6541 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6542 | GOOGLE_DCHECK_NE(&from, this); |
| 6543 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6544 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6545 | (void) cached_has_bits; |
| 6546 | |
| 6547 | if (from.reason_detail().size() > 0) { |
| 6548 | |
| 6549 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6550 | } |
| 6551 | if (from.status() != 0) { |
| 6552 | set_status(from.status()); |
| 6553 | } |
| 6554 | if (from.reason() != 0) { |
| 6555 | set_reason(from.reason()); |
| 6556 | } |
| 6557 | } |
| 6558 | |
| 6559 | void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 6560 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6561 | if (&from == this) return; |
| 6562 | Clear(); |
| 6563 | MergeFrom(from); |
| 6564 | } |
| 6565 | |
| 6566 | void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) { |
| 6567 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6568 | if (&from == this) return; |
| 6569 | Clear(); |
| 6570 | MergeFrom(from); |
| 6571 | } |
| 6572 | |
| 6573 | bool SetRemoteEndpointResponse::IsInitialized() const { |
| 6574 | return true; |
| 6575 | } |
| 6576 | |
| 6577 | void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) { |
| 6578 | if (other == this) return; |
| 6579 | InternalSwap(other); |
| 6580 | } |
| 6581 | void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) { |
| 6582 | using std::swap; |
| 6583 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6584 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6585 | GetArenaNoVirtual()); |
| 6586 | swap(status_, other->status_); |
| 6587 | swap(reason_, other->reason_); |
| 6588 | } |
| 6589 | |
| 6590 | ::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const { |
| 6591 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6592 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6593 | } |
| 6594 | |
| 6595 | |
| 6596 | // =================================================================== |
| 6597 | |
| 6598 | void GetLoggingEndpointResponse::InitAsDefaultInstance() { |
| 6599 | } |
| 6600 | class GetLoggingEndpointResponse::HasBitSetters { |
| 6601 | public: |
| 6602 | }; |
| 6603 | |
| 6604 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6605 | const int GetLoggingEndpointResponse::kStatusFieldNumber; |
| 6606 | const int GetLoggingEndpointResponse::kReasonFieldNumber; |
| 6607 | const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber; |
| 6608 | const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber; |
| 6609 | const int GetLoggingEndpointResponse::kReasonDetailFieldNumber; |
| 6610 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6611 | |
| 6612 | GetLoggingEndpointResponse::GetLoggingEndpointResponse() |
| 6613 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6614 | SharedCtor(); |
| 6615 | // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse) |
| 6616 | } |
| 6617 | GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from) |
| 6618 | : ::google::protobuf::Message(), |
| 6619 | _internal_metadata_(nullptr) { |
| 6620 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6621 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6622 | if (from.logging_endpoint().size() > 0) { |
| 6623 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6624 | } |
| 6625 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6626 | if (from.logging_protocol().size() > 0) { |
| 6627 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6628 | } |
| 6629 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6630 | if (from.reason_detail().size() > 0) { |
| 6631 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6632 | } |
| 6633 | ::memcpy(&status_, &from.status_, |
| 6634 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6635 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6636 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse) |
| 6637 | } |
| 6638 | |
| 6639 | void GetLoggingEndpointResponse::SharedCtor() { |
| 6640 | ::google::protobuf::internal::InitSCC( |
| 6641 | &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6642 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6643 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6644 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6645 | ::memset(&status_, 0, static_cast<size_t>( |
| 6646 | reinterpret_cast<char*>(&reason_) - |
| 6647 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6648 | } |
| 6649 | |
| 6650 | GetLoggingEndpointResponse::~GetLoggingEndpointResponse() { |
| 6651 | // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse) |
| 6652 | SharedDtor(); |
| 6653 | } |
| 6654 | |
| 6655 | void GetLoggingEndpointResponse::SharedDtor() { |
| 6656 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6657 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6658 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6659 | } |
| 6660 | |
| 6661 | void GetLoggingEndpointResponse::SetCachedSize(int size) const { |
| 6662 | _cached_size_.Set(size); |
| 6663 | } |
| 6664 | const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() { |
| 6665 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6666 | return *internal_default_instance(); |
| 6667 | } |
| 6668 | |
| 6669 | |
| 6670 | void GetLoggingEndpointResponse::Clear() { |
| 6671 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse) |
| 6672 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6673 | // Prevent compiler warnings about cached_has_bits being unused |
| 6674 | (void) cached_has_bits; |
| 6675 | |
| 6676 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6677 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6678 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6679 | ::memset(&status_, 0, static_cast<size_t>( |
| 6680 | reinterpret_cast<char*>(&reason_) - |
| 6681 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6682 | _internal_metadata_.Clear(); |
| 6683 | } |
| 6684 | |
| 6685 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6686 | const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6687 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6688 | auto msg = static_cast<GetLoggingEndpointResponse*>(object); |
| 6689 | ::google::protobuf::int32 size; (void)size; |
| 6690 | int depth; (void)depth; |
| 6691 | ::google::protobuf::uint32 tag; |
| 6692 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6693 | auto ptr = begin; |
| 6694 | while (ptr < end) { |
| 6695 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6696 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6697 | switch (tag >> 3) { |
| 6698 | // .dmi.Status status = 1; |
| 6699 | case 1: { |
| 6700 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6701 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6702 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6703 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6704 | break; |
| 6705 | } |
| 6706 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6707 | case 2: { |
| 6708 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6709 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6710 | msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val)); |
| 6711 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6712 | break; |
| 6713 | } |
| 6714 | // string logging_endpoint = 3; |
| 6715 | case 3: { |
| 6716 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6717 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6718 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6719 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6720 | object = msg->mutable_logging_endpoint(); |
| 6721 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6722 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6723 | goto string_till_end; |
| 6724 | } |
| 6725 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6726 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6727 | ptr += size; |
| 6728 | break; |
| 6729 | } |
| 6730 | // string logging_protocol = 4; |
| 6731 | case 4: { |
| 6732 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6733 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6734 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6735 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6736 | object = msg->mutable_logging_protocol(); |
| 6737 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6738 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6739 | goto string_till_end; |
| 6740 | } |
| 6741 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6742 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6743 | ptr += size; |
| 6744 | break; |
| 6745 | } |
| 6746 | // string reason_detail = 5; |
| 6747 | case 5: { |
| 6748 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 6749 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6750 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6751 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6752 | object = msg->mutable_reason_detail(); |
| 6753 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6754 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6755 | goto string_till_end; |
| 6756 | } |
| 6757 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6758 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6759 | ptr += size; |
| 6760 | break; |
| 6761 | } |
| 6762 | default: { |
| 6763 | handle_unusual: |
| 6764 | if ((tag & 7) == 4 || tag == 0) { |
| 6765 | ctx->EndGroup(tag); |
| 6766 | return ptr; |
| 6767 | } |
| 6768 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6769 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6770 | ptr = res.first; |
| 6771 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6772 | if (res.second) return ptr; |
| 6773 | } |
| 6774 | } // switch |
| 6775 | } // while |
| 6776 | return ptr; |
| 6777 | string_till_end: |
| 6778 | static_cast<::std::string*>(object)->clear(); |
| 6779 | static_cast<::std::string*>(object)->reserve(size); |
| 6780 | goto len_delim_till_end; |
| 6781 | len_delim_till_end: |
| 6782 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6783 | {parser_till_end, object}, size); |
| 6784 | } |
| 6785 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6786 | bool GetLoggingEndpointResponse::MergePartialFromCodedStream( |
| 6787 | ::google::protobuf::io::CodedInputStream* input) { |
| 6788 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6789 | ::google::protobuf::uint32 tag; |
| 6790 | // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse) |
| 6791 | for (;;) { |
| 6792 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6793 | tag = p.first; |
| 6794 | if (!p.second) goto handle_unusual; |
| 6795 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6796 | // .dmi.Status status = 1; |
| 6797 | case 1: { |
| 6798 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6799 | int value = 0; |
| 6800 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6801 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6802 | input, &value))); |
| 6803 | set_status(static_cast< ::dmi::Status >(value)); |
| 6804 | } else { |
| 6805 | goto handle_unusual; |
| 6806 | } |
| 6807 | break; |
| 6808 | } |
| 6809 | |
| 6810 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6811 | case 2: { |
| 6812 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6813 | int value = 0; |
| 6814 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6815 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6816 | input, &value))); |
| 6817 | set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value)); |
| 6818 | } else { |
| 6819 | goto handle_unusual; |
| 6820 | } |
| 6821 | break; |
| 6822 | } |
| 6823 | |
| 6824 | // string logging_endpoint = 3; |
| 6825 | case 3: { |
| 6826 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6827 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6828 | input, this->mutable_logging_endpoint())); |
| 6829 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6830 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6831 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6832 | "dmi.GetLoggingEndpointResponse.logging_endpoint")); |
| 6833 | } else { |
| 6834 | goto handle_unusual; |
| 6835 | } |
| 6836 | break; |
| 6837 | } |
| 6838 | |
| 6839 | // string logging_protocol = 4; |
| 6840 | case 4: { |
| 6841 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 6842 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6843 | input, this->mutable_logging_protocol())); |
| 6844 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6845 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6846 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6847 | "dmi.GetLoggingEndpointResponse.logging_protocol")); |
| 6848 | } else { |
| 6849 | goto handle_unusual; |
| 6850 | } |
| 6851 | break; |
| 6852 | } |
| 6853 | |
| 6854 | // string reason_detail = 5; |
| 6855 | case 5: { |
| 6856 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 6857 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6858 | input, this->mutable_reason_detail())); |
| 6859 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6860 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6861 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6862 | "dmi.GetLoggingEndpointResponse.reason_detail")); |
| 6863 | } else { |
| 6864 | goto handle_unusual; |
| 6865 | } |
| 6866 | break; |
| 6867 | } |
| 6868 | |
| 6869 | default: { |
| 6870 | handle_unusual: |
| 6871 | if (tag == 0) { |
| 6872 | goto success; |
| 6873 | } |
| 6874 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6875 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6876 | break; |
| 6877 | } |
| 6878 | } |
| 6879 | } |
| 6880 | success: |
| 6881 | // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse) |
| 6882 | return true; |
| 6883 | failure: |
| 6884 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse) |
| 6885 | return false; |
| 6886 | #undef DO_ |
| 6887 | } |
| 6888 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6889 | |
| 6890 | void GetLoggingEndpointResponse::SerializeWithCachedSizes( |
| 6891 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6892 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse) |
| 6893 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6894 | (void) cached_has_bits; |
| 6895 | |
| 6896 | // .dmi.Status status = 1; |
| 6897 | if (this->status() != 0) { |
| 6898 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6899 | 1, this->status(), output); |
| 6900 | } |
| 6901 | |
| 6902 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6903 | if (this->reason() != 0) { |
| 6904 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6905 | 2, this->reason(), output); |
| 6906 | } |
| 6907 | |
| 6908 | // string logging_endpoint = 3; |
| 6909 | if (this->logging_endpoint().size() > 0) { |
| 6910 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6911 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6912 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6913 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6914 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6915 | 3, this->logging_endpoint(), output); |
| 6916 | } |
| 6917 | |
| 6918 | // string logging_protocol = 4; |
| 6919 | if (this->logging_protocol().size() > 0) { |
| 6920 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6921 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6922 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6923 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6924 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6925 | 4, this->logging_protocol(), output); |
| 6926 | } |
| 6927 | |
| 6928 | // string reason_detail = 5; |
| 6929 | if (this->reason_detail().size() > 0) { |
| 6930 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6931 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6932 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6933 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6934 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6935 | 5, this->reason_detail(), output); |
| 6936 | } |
| 6937 | |
| 6938 | if (_internal_metadata_.have_unknown_fields()) { |
| 6939 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6940 | _internal_metadata_.unknown_fields(), output); |
| 6941 | } |
| 6942 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse) |
| 6943 | } |
| 6944 | |
| 6945 | ::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6946 | ::google::protobuf::uint8* target) const { |
| 6947 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse) |
| 6948 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6949 | (void) cached_has_bits; |
| 6950 | |
| 6951 | // .dmi.Status status = 1; |
| 6952 | if (this->status() != 0) { |
| 6953 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6954 | 1, this->status(), target); |
| 6955 | } |
| 6956 | |
| 6957 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6958 | if (this->reason() != 0) { |
| 6959 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6960 | 2, this->reason(), target); |
| 6961 | } |
| 6962 | |
| 6963 | // string logging_endpoint = 3; |
| 6964 | if (this->logging_endpoint().size() > 0) { |
| 6965 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6966 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6967 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6968 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6969 | target = |
| 6970 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6971 | 3, this->logging_endpoint(), target); |
| 6972 | } |
| 6973 | |
| 6974 | // string logging_protocol = 4; |
| 6975 | if (this->logging_protocol().size() > 0) { |
| 6976 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6977 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6978 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6979 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6980 | target = |
| 6981 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6982 | 4, this->logging_protocol(), target); |
| 6983 | } |
| 6984 | |
| 6985 | // string reason_detail = 5; |
| 6986 | if (this->reason_detail().size() > 0) { |
| 6987 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6988 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6989 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6990 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6991 | target = |
| 6992 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6993 | 5, this->reason_detail(), target); |
| 6994 | } |
| 6995 | |
| 6996 | if (_internal_metadata_.have_unknown_fields()) { |
| 6997 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6998 | _internal_metadata_.unknown_fields(), target); |
| 6999 | } |
| 7000 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse) |
| 7001 | return target; |
| 7002 | } |
| 7003 | |
| 7004 | size_t GetLoggingEndpointResponse::ByteSizeLong() const { |
| 7005 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse) |
| 7006 | size_t total_size = 0; |
| 7007 | |
| 7008 | if (_internal_metadata_.have_unknown_fields()) { |
| 7009 | total_size += |
| 7010 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7011 | _internal_metadata_.unknown_fields()); |
| 7012 | } |
| 7013 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7014 | // Prevent compiler warnings about cached_has_bits being unused |
| 7015 | (void) cached_has_bits; |
| 7016 | |
| 7017 | // string logging_endpoint = 3; |
| 7018 | if (this->logging_endpoint().size() > 0) { |
| 7019 | total_size += 1 + |
| 7020 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7021 | this->logging_endpoint()); |
| 7022 | } |
| 7023 | |
| 7024 | // string logging_protocol = 4; |
| 7025 | if (this->logging_protocol().size() > 0) { |
| 7026 | total_size += 1 + |
| 7027 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7028 | this->logging_protocol()); |
| 7029 | } |
| 7030 | |
| 7031 | // string reason_detail = 5; |
| 7032 | if (this->reason_detail().size() > 0) { |
| 7033 | total_size += 1 + |
| 7034 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7035 | this->reason_detail()); |
| 7036 | } |
| 7037 | |
| 7038 | // .dmi.Status status = 1; |
| 7039 | if (this->status() != 0) { |
| 7040 | total_size += 1 + |
| 7041 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7042 | } |
| 7043 | |
| 7044 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7045 | if (this->reason() != 0) { |
| 7046 | total_size += 1 + |
| 7047 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7048 | } |
| 7049 | |
| 7050 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7051 | SetCachedSize(cached_size); |
| 7052 | return total_size; |
| 7053 | } |
| 7054 | |
| 7055 | void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7056 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7057 | GOOGLE_DCHECK_NE(&from, this); |
| 7058 | const GetLoggingEndpointResponse* source = |
| 7059 | ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>( |
| 7060 | &from); |
| 7061 | if (source == nullptr) { |
| 7062 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse) |
| 7063 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7064 | } else { |
| 7065 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse) |
| 7066 | MergeFrom(*source); |
| 7067 | } |
| 7068 | } |
| 7069 | |
| 7070 | void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) { |
| 7071 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7072 | GOOGLE_DCHECK_NE(&from, this); |
| 7073 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7074 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7075 | (void) cached_has_bits; |
| 7076 | |
| 7077 | if (from.logging_endpoint().size() > 0) { |
| 7078 | |
| 7079 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 7080 | } |
| 7081 | if (from.logging_protocol().size() > 0) { |
| 7082 | |
| 7083 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 7084 | } |
| 7085 | if (from.reason_detail().size() > 0) { |
| 7086 | |
| 7087 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7088 | } |
| 7089 | if (from.status() != 0) { |
| 7090 | set_status(from.status()); |
| 7091 | } |
| 7092 | if (from.reason() != 0) { |
| 7093 | set_reason(from.reason()); |
| 7094 | } |
| 7095 | } |
| 7096 | |
| 7097 | void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7098 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7099 | if (&from == this) return; |
| 7100 | Clear(); |
| 7101 | MergeFrom(from); |
| 7102 | } |
| 7103 | |
| 7104 | void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) { |
| 7105 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7106 | if (&from == this) return; |
| 7107 | Clear(); |
| 7108 | MergeFrom(from); |
| 7109 | } |
| 7110 | |
| 7111 | bool GetLoggingEndpointResponse::IsInitialized() const { |
| 7112 | return true; |
| 7113 | } |
| 7114 | |
| 7115 | void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) { |
| 7116 | if (other == this) return; |
| 7117 | InternalSwap(other); |
| 7118 | } |
| 7119 | void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) { |
| 7120 | using std::swap; |
| 7121 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7122 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7123 | GetArenaNoVirtual()); |
| 7124 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7125 | GetArenaNoVirtual()); |
| 7126 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7127 | GetArenaNoVirtual()); |
| 7128 | swap(status_, other->status_); |
| 7129 | swap(reason_, other->reason_); |
| 7130 | } |
| 7131 | |
| 7132 | ::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const { |
| 7133 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7134 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7135 | } |
| 7136 | |
| 7137 | |
| 7138 | // =================================================================== |
| 7139 | |
| 7140 | void SetMsgBusEndpointRequest::InitAsDefaultInstance() { |
| 7141 | } |
| 7142 | class SetMsgBusEndpointRequest::HasBitSetters { |
| 7143 | public: |
| 7144 | }; |
| 7145 | |
| 7146 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7147 | const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber; |
| 7148 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7149 | |
| 7150 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest() |
| 7151 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7152 | SharedCtor(); |
| 7153 | // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest) |
| 7154 | } |
| 7155 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from) |
| 7156 | : ::google::protobuf::Message(), |
| 7157 | _internal_metadata_(nullptr) { |
| 7158 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7159 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7160 | if (from.msgbus_endpoint().size() > 0) { |
| 7161 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7162 | } |
| 7163 | // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest) |
| 7164 | } |
| 7165 | |
| 7166 | void SetMsgBusEndpointRequest::SharedCtor() { |
| 7167 | ::google::protobuf::internal::InitSCC( |
| 7168 | &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7169 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7170 | } |
| 7171 | |
| 7172 | SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() { |
| 7173 | // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest) |
| 7174 | SharedDtor(); |
| 7175 | } |
| 7176 | |
| 7177 | void SetMsgBusEndpointRequest::SharedDtor() { |
| 7178 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7179 | } |
| 7180 | |
| 7181 | void SetMsgBusEndpointRequest::SetCachedSize(int size) const { |
| 7182 | _cached_size_.Set(size); |
| 7183 | } |
| 7184 | const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() { |
| 7185 | ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7186 | return *internal_default_instance(); |
| 7187 | } |
| 7188 | |
| 7189 | |
| 7190 | void SetMsgBusEndpointRequest::Clear() { |
| 7191 | // @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest) |
| 7192 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7193 | // Prevent compiler warnings about cached_has_bits being unused |
| 7194 | (void) cached_has_bits; |
| 7195 | |
| 7196 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7197 | _internal_metadata_.Clear(); |
| 7198 | } |
| 7199 | |
| 7200 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7201 | const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 7202 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7203 | auto msg = static_cast<SetMsgBusEndpointRequest*>(object); |
| 7204 | ::google::protobuf::int32 size; (void)size; |
| 7205 | int depth; (void)depth; |
| 7206 | ::google::protobuf::uint32 tag; |
| 7207 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7208 | auto ptr = begin; |
| 7209 | while (ptr < end) { |
| 7210 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7211 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7212 | switch (tag >> 3) { |
| 7213 | // string msgbus_endpoint = 1; |
| 7214 | case 1: { |
| 7215 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7216 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7217 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7218 | ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7219 | object = msg->mutable_msgbus_endpoint(); |
| 7220 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7221 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7222 | goto string_till_end; |
| 7223 | } |
| 7224 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7225 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7226 | ptr += size; |
| 7227 | break; |
| 7228 | } |
| 7229 | default: { |
| 7230 | handle_unusual: |
| 7231 | if ((tag & 7) == 4 || tag == 0) { |
| 7232 | ctx->EndGroup(tag); |
| 7233 | return ptr; |
| 7234 | } |
| 7235 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7236 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7237 | ptr = res.first; |
| 7238 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7239 | if (res.second) return ptr; |
| 7240 | } |
| 7241 | } // switch |
| 7242 | } // while |
| 7243 | return ptr; |
| 7244 | string_till_end: |
| 7245 | static_cast<::std::string*>(object)->clear(); |
| 7246 | static_cast<::std::string*>(object)->reserve(size); |
| 7247 | goto len_delim_till_end; |
| 7248 | len_delim_till_end: |
| 7249 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7250 | {parser_till_end, object}, size); |
| 7251 | } |
| 7252 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7253 | bool SetMsgBusEndpointRequest::MergePartialFromCodedStream( |
| 7254 | ::google::protobuf::io::CodedInputStream* input) { |
| 7255 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7256 | ::google::protobuf::uint32 tag; |
| 7257 | // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest) |
| 7258 | for (;;) { |
| 7259 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7260 | tag = p.first; |
| 7261 | if (!p.second) goto handle_unusual; |
| 7262 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7263 | // string msgbus_endpoint = 1; |
| 7264 | case 1: { |
| 7265 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7266 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7267 | input, this->mutable_msgbus_endpoint())); |
| 7268 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7269 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7270 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7271 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint")); |
| 7272 | } else { |
| 7273 | goto handle_unusual; |
| 7274 | } |
| 7275 | break; |
| 7276 | } |
| 7277 | |
| 7278 | default: { |
| 7279 | handle_unusual: |
| 7280 | if (tag == 0) { |
| 7281 | goto success; |
| 7282 | } |
| 7283 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7284 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7285 | break; |
| 7286 | } |
| 7287 | } |
| 7288 | } |
| 7289 | success: |
| 7290 | // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest) |
| 7291 | return true; |
| 7292 | failure: |
| 7293 | // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest) |
| 7294 | return false; |
| 7295 | #undef DO_ |
| 7296 | } |
| 7297 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7298 | |
| 7299 | void SetMsgBusEndpointRequest::SerializeWithCachedSizes( |
| 7300 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7301 | // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest) |
| 7302 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7303 | (void) cached_has_bits; |
| 7304 | |
| 7305 | // string msgbus_endpoint = 1; |
| 7306 | if (this->msgbus_endpoint().size() > 0) { |
| 7307 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7308 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7309 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7310 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7311 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7312 | 1, this->msgbus_endpoint(), output); |
| 7313 | } |
| 7314 | |
| 7315 | if (_internal_metadata_.have_unknown_fields()) { |
| 7316 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7317 | _internal_metadata_.unknown_fields(), output); |
| 7318 | } |
| 7319 | // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest) |
| 7320 | } |
| 7321 | |
| 7322 | ::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 7323 | ::google::protobuf::uint8* target) const { |
| 7324 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest) |
| 7325 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7326 | (void) cached_has_bits; |
| 7327 | |
| 7328 | // string msgbus_endpoint = 1; |
| 7329 | if (this->msgbus_endpoint().size() > 0) { |
| 7330 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7331 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7332 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7333 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7334 | target = |
| 7335 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7336 | 1, this->msgbus_endpoint(), target); |
| 7337 | } |
| 7338 | |
| 7339 | if (_internal_metadata_.have_unknown_fields()) { |
| 7340 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7341 | _internal_metadata_.unknown_fields(), target); |
| 7342 | } |
| 7343 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest) |
| 7344 | return target; |
| 7345 | } |
| 7346 | |
| 7347 | size_t SetMsgBusEndpointRequest::ByteSizeLong() const { |
| 7348 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest) |
| 7349 | size_t total_size = 0; |
| 7350 | |
| 7351 | if (_internal_metadata_.have_unknown_fields()) { |
| 7352 | total_size += |
| 7353 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7354 | _internal_metadata_.unknown_fields()); |
| 7355 | } |
| 7356 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7357 | // Prevent compiler warnings about cached_has_bits being unused |
| 7358 | (void) cached_has_bits; |
| 7359 | |
| 7360 | // string msgbus_endpoint = 1; |
| 7361 | if (this->msgbus_endpoint().size() > 0) { |
| 7362 | total_size += 1 + |
| 7363 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7364 | this->msgbus_endpoint()); |
| 7365 | } |
| 7366 | |
| 7367 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7368 | SetCachedSize(cached_size); |
| 7369 | return total_size; |
| 7370 | } |
| 7371 | |
| 7372 | void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 7373 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7374 | GOOGLE_DCHECK_NE(&from, this); |
| 7375 | const SetMsgBusEndpointRequest* source = |
| 7376 | ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>( |
| 7377 | &from); |
| 7378 | if (source == nullptr) { |
| 7379 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest) |
| 7380 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7381 | } else { |
| 7382 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest) |
| 7383 | MergeFrom(*source); |
| 7384 | } |
| 7385 | } |
| 7386 | |
| 7387 | void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) { |
| 7388 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7389 | GOOGLE_DCHECK_NE(&from, this); |
| 7390 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7391 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7392 | (void) cached_has_bits; |
| 7393 | |
| 7394 | if (from.msgbus_endpoint().size() > 0) { |
| 7395 | |
| 7396 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7397 | } |
| 7398 | } |
| 7399 | |
| 7400 | void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 7401 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7402 | if (&from == this) return; |
| 7403 | Clear(); |
| 7404 | MergeFrom(from); |
| 7405 | } |
| 7406 | |
| 7407 | void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) { |
| 7408 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7409 | if (&from == this) return; |
| 7410 | Clear(); |
| 7411 | MergeFrom(from); |
| 7412 | } |
| 7413 | |
| 7414 | bool SetMsgBusEndpointRequest::IsInitialized() const { |
| 7415 | return true; |
| 7416 | } |
| 7417 | |
| 7418 | void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) { |
| 7419 | if (other == this) return; |
| 7420 | InternalSwap(other); |
| 7421 | } |
| 7422 | void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) { |
| 7423 | using std::swap; |
| 7424 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7425 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7426 | GetArenaNoVirtual()); |
| 7427 | } |
| 7428 | |
| 7429 | ::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const { |
| 7430 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7431 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7432 | } |
| 7433 | |
| 7434 | |
| 7435 | // =================================================================== |
| 7436 | |
| 7437 | void GetMsgBusEndpointResponse::InitAsDefaultInstance() { |
| 7438 | } |
| 7439 | class GetMsgBusEndpointResponse::HasBitSetters { |
| 7440 | public: |
| 7441 | }; |
| 7442 | |
| 7443 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7444 | const int GetMsgBusEndpointResponse::kStatusFieldNumber; |
| 7445 | const int GetMsgBusEndpointResponse::kReasonFieldNumber; |
| 7446 | const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber; |
| 7447 | const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber; |
| 7448 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7449 | |
| 7450 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse() |
| 7451 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7452 | SharedCtor(); |
| 7453 | // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse) |
| 7454 | } |
| 7455 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from) |
| 7456 | : ::google::protobuf::Message(), |
| 7457 | _internal_metadata_(nullptr) { |
| 7458 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7459 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7460 | if (from.msgbus_endpoint().size() > 0) { |
| 7461 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7462 | } |
| 7463 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7464 | if (from.reason_detail().size() > 0) { |
| 7465 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7466 | } |
| 7467 | ::memcpy(&status_, &from.status_, |
| 7468 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 7469 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7470 | // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse) |
| 7471 | } |
| 7472 | |
| 7473 | void GetMsgBusEndpointResponse::SharedCtor() { |
| 7474 | ::google::protobuf::internal::InitSCC( |
| 7475 | &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7476 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7477 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7478 | ::memset(&status_, 0, static_cast<size_t>( |
| 7479 | reinterpret_cast<char*>(&reason_) - |
| 7480 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7481 | } |
| 7482 | |
| 7483 | GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() { |
| 7484 | // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse) |
| 7485 | SharedDtor(); |
| 7486 | } |
| 7487 | |
| 7488 | void GetMsgBusEndpointResponse::SharedDtor() { |
| 7489 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7490 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7491 | } |
| 7492 | |
| 7493 | void GetMsgBusEndpointResponse::SetCachedSize(int size) const { |
| 7494 | _cached_size_.Set(size); |
| 7495 | } |
| 7496 | const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() { |
| 7497 | ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7498 | return *internal_default_instance(); |
| 7499 | } |
| 7500 | |
| 7501 | |
| 7502 | void GetMsgBusEndpointResponse::Clear() { |
| 7503 | // @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse) |
| 7504 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7505 | // Prevent compiler warnings about cached_has_bits being unused |
| 7506 | (void) cached_has_bits; |
| 7507 | |
| 7508 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7509 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7510 | ::memset(&status_, 0, static_cast<size_t>( |
| 7511 | reinterpret_cast<char*>(&reason_) - |
| 7512 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7513 | _internal_metadata_.Clear(); |
| 7514 | } |
| 7515 | |
| 7516 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7517 | const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 7518 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7519 | auto msg = static_cast<GetMsgBusEndpointResponse*>(object); |
| 7520 | ::google::protobuf::int32 size; (void)size; |
| 7521 | int depth; (void)depth; |
| 7522 | ::google::protobuf::uint32 tag; |
| 7523 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7524 | auto ptr = begin; |
| 7525 | while (ptr < end) { |
| 7526 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7527 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7528 | switch (tag >> 3) { |
| 7529 | // .dmi.Status status = 1; |
| 7530 | case 1: { |
| 7531 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7532 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7533 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 7534 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7535 | break; |
| 7536 | } |
| 7537 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7538 | case 2: { |
| 7539 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 7540 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7541 | msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val)); |
| 7542 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7543 | break; |
| 7544 | } |
| 7545 | // string msgbus_endpoint = 3; |
| 7546 | case 3: { |
| 7547 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7548 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7549 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7550 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7551 | object = msg->mutable_msgbus_endpoint(); |
| 7552 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7553 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7554 | goto string_till_end; |
| 7555 | } |
| 7556 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7557 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7558 | ptr += size; |
| 7559 | break; |
| 7560 | } |
| 7561 | // string reason_detail = 4; |
| 7562 | case 4: { |
| 7563 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 7564 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7565 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7566 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7567 | object = msg->mutable_reason_detail(); |
| 7568 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7569 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7570 | goto string_till_end; |
| 7571 | } |
| 7572 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7573 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7574 | ptr += size; |
| 7575 | break; |
| 7576 | } |
| 7577 | default: { |
| 7578 | handle_unusual: |
| 7579 | if ((tag & 7) == 4 || tag == 0) { |
| 7580 | ctx->EndGroup(tag); |
| 7581 | return ptr; |
| 7582 | } |
| 7583 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7584 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7585 | ptr = res.first; |
| 7586 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7587 | if (res.second) return ptr; |
| 7588 | } |
| 7589 | } // switch |
| 7590 | } // while |
| 7591 | return ptr; |
| 7592 | string_till_end: |
| 7593 | static_cast<::std::string*>(object)->clear(); |
| 7594 | static_cast<::std::string*>(object)->reserve(size); |
| 7595 | goto len_delim_till_end; |
| 7596 | len_delim_till_end: |
| 7597 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7598 | {parser_till_end, object}, size); |
| 7599 | } |
| 7600 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7601 | bool GetMsgBusEndpointResponse::MergePartialFromCodedStream( |
| 7602 | ::google::protobuf::io::CodedInputStream* input) { |
| 7603 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7604 | ::google::protobuf::uint32 tag; |
| 7605 | // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse) |
| 7606 | for (;;) { |
| 7607 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7608 | tag = p.first; |
| 7609 | if (!p.second) goto handle_unusual; |
| 7610 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7611 | // .dmi.Status status = 1; |
| 7612 | case 1: { |
| 7613 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 7614 | int value = 0; |
| 7615 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7616 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7617 | input, &value))); |
| 7618 | set_status(static_cast< ::dmi::Status >(value)); |
| 7619 | } else { |
| 7620 | goto handle_unusual; |
| 7621 | } |
| 7622 | break; |
| 7623 | } |
| 7624 | |
| 7625 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7626 | case 2: { |
| 7627 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7628 | int value = 0; |
| 7629 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7630 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7631 | input, &value))); |
| 7632 | set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value)); |
| 7633 | } else { |
| 7634 | goto handle_unusual; |
| 7635 | } |
| 7636 | break; |
| 7637 | } |
| 7638 | |
| 7639 | // string msgbus_endpoint = 3; |
| 7640 | case 3: { |
| 7641 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7642 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7643 | input, this->mutable_msgbus_endpoint())); |
| 7644 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7645 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7646 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7647 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint")); |
| 7648 | } else { |
| 7649 | goto handle_unusual; |
| 7650 | } |
| 7651 | break; |
| 7652 | } |
| 7653 | |
| 7654 | // string reason_detail = 4; |
| 7655 | case 4: { |
| 7656 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7657 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7658 | input, this->mutable_reason_detail())); |
| 7659 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7660 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7661 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7662 | "dmi.GetMsgBusEndpointResponse.reason_detail")); |
| 7663 | } else { |
| 7664 | goto handle_unusual; |
| 7665 | } |
| 7666 | break; |
| 7667 | } |
| 7668 | |
| 7669 | default: { |
| 7670 | handle_unusual: |
| 7671 | if (tag == 0) { |
| 7672 | goto success; |
| 7673 | } |
| 7674 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7675 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7676 | break; |
| 7677 | } |
| 7678 | } |
| 7679 | } |
| 7680 | success: |
| 7681 | // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse) |
| 7682 | return true; |
| 7683 | failure: |
| 7684 | // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse) |
| 7685 | return false; |
| 7686 | #undef DO_ |
| 7687 | } |
| 7688 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7689 | |
| 7690 | void GetMsgBusEndpointResponse::SerializeWithCachedSizes( |
| 7691 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7692 | // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse) |
| 7693 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7694 | (void) cached_has_bits; |
| 7695 | |
| 7696 | // .dmi.Status status = 1; |
| 7697 | if (this->status() != 0) { |
| 7698 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7699 | 1, this->status(), output); |
| 7700 | } |
| 7701 | |
| 7702 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7703 | if (this->reason() != 0) { |
| 7704 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7705 | 2, this->reason(), output); |
| 7706 | } |
| 7707 | |
| 7708 | // string msgbus_endpoint = 3; |
| 7709 | if (this->msgbus_endpoint().size() > 0) { |
| 7710 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7711 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7712 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7713 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7714 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7715 | 3, this->msgbus_endpoint(), output); |
| 7716 | } |
| 7717 | |
| 7718 | // string reason_detail = 4; |
| 7719 | if (this->reason_detail().size() > 0) { |
| 7720 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7721 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7722 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7723 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7724 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7725 | 4, this->reason_detail(), output); |
| 7726 | } |
| 7727 | |
| 7728 | if (_internal_metadata_.have_unknown_fields()) { |
| 7729 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7730 | _internal_metadata_.unknown_fields(), output); |
| 7731 | } |
| 7732 | // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse) |
| 7733 | } |
| 7734 | |
| 7735 | ::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 7736 | ::google::protobuf::uint8* target) const { |
| 7737 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse) |
| 7738 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7739 | (void) cached_has_bits; |
| 7740 | |
| 7741 | // .dmi.Status status = 1; |
| 7742 | if (this->status() != 0) { |
| 7743 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7744 | 1, this->status(), target); |
| 7745 | } |
| 7746 | |
| 7747 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7748 | if (this->reason() != 0) { |
| 7749 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7750 | 2, this->reason(), target); |
| 7751 | } |
| 7752 | |
| 7753 | // string msgbus_endpoint = 3; |
| 7754 | if (this->msgbus_endpoint().size() > 0) { |
| 7755 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7756 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7757 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7758 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7759 | target = |
| 7760 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7761 | 3, this->msgbus_endpoint(), target); |
| 7762 | } |
| 7763 | |
| 7764 | // string reason_detail = 4; |
| 7765 | if (this->reason_detail().size() > 0) { |
| 7766 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7767 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7768 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7769 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7770 | target = |
| 7771 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7772 | 4, this->reason_detail(), target); |
| 7773 | } |
| 7774 | |
| 7775 | if (_internal_metadata_.have_unknown_fields()) { |
| 7776 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7777 | _internal_metadata_.unknown_fields(), target); |
| 7778 | } |
| 7779 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse) |
| 7780 | return target; |
| 7781 | } |
| 7782 | |
| 7783 | size_t GetMsgBusEndpointResponse::ByteSizeLong() const { |
| 7784 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse) |
| 7785 | size_t total_size = 0; |
| 7786 | |
| 7787 | if (_internal_metadata_.have_unknown_fields()) { |
| 7788 | total_size += |
| 7789 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7790 | _internal_metadata_.unknown_fields()); |
| 7791 | } |
| 7792 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7793 | // Prevent compiler warnings about cached_has_bits being unused |
| 7794 | (void) cached_has_bits; |
| 7795 | |
| 7796 | // string msgbus_endpoint = 3; |
| 7797 | if (this->msgbus_endpoint().size() > 0) { |
| 7798 | total_size += 1 + |
| 7799 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7800 | this->msgbus_endpoint()); |
| 7801 | } |
| 7802 | |
| 7803 | // string reason_detail = 4; |
| 7804 | if (this->reason_detail().size() > 0) { |
| 7805 | total_size += 1 + |
| 7806 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7807 | this->reason_detail()); |
| 7808 | } |
| 7809 | |
| 7810 | // .dmi.Status status = 1; |
| 7811 | if (this->status() != 0) { |
| 7812 | total_size += 1 + |
| 7813 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7814 | } |
| 7815 | |
| 7816 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7817 | if (this->reason() != 0) { |
| 7818 | total_size += 1 + |
| 7819 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7820 | } |
| 7821 | |
| 7822 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7823 | SetCachedSize(cached_size); |
| 7824 | return total_size; |
| 7825 | } |
| 7826 | |
| 7827 | void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7828 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7829 | GOOGLE_DCHECK_NE(&from, this); |
| 7830 | const GetMsgBusEndpointResponse* source = |
| 7831 | ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>( |
| 7832 | &from); |
| 7833 | if (source == nullptr) { |
| 7834 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse) |
| 7835 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7836 | } else { |
| 7837 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse) |
| 7838 | MergeFrom(*source); |
| 7839 | } |
| 7840 | } |
| 7841 | |
| 7842 | void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) { |
| 7843 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7844 | GOOGLE_DCHECK_NE(&from, this); |
| 7845 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7846 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7847 | (void) cached_has_bits; |
| 7848 | |
| 7849 | if (from.msgbus_endpoint().size() > 0) { |
| 7850 | |
| 7851 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7852 | } |
| 7853 | if (from.reason_detail().size() > 0) { |
| 7854 | |
| 7855 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7856 | } |
| 7857 | if (from.status() != 0) { |
| 7858 | set_status(from.status()); |
| 7859 | } |
| 7860 | if (from.reason() != 0) { |
| 7861 | set_reason(from.reason()); |
| 7862 | } |
| 7863 | } |
| 7864 | |
| 7865 | void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7866 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7867 | if (&from == this) return; |
| 7868 | Clear(); |
| 7869 | MergeFrom(from); |
| 7870 | } |
| 7871 | |
| 7872 | void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) { |
| 7873 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7874 | if (&from == this) return; |
| 7875 | Clear(); |
| 7876 | MergeFrom(from); |
| 7877 | } |
| 7878 | |
| 7879 | bool GetMsgBusEndpointResponse::IsInitialized() const { |
| 7880 | return true; |
| 7881 | } |
| 7882 | |
| 7883 | void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) { |
| 7884 | if (other == this) return; |
| 7885 | InternalSwap(other); |
| 7886 | } |
| 7887 | void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) { |
| 7888 | using std::swap; |
| 7889 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7890 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7891 | GetArenaNoVirtual()); |
| 7892 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7893 | GetArenaNoVirtual()); |
| 7894 | swap(status_, other->status_); |
| 7895 | swap(reason_, other->reason_); |
| 7896 | } |
| 7897 | |
| 7898 | ::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const { |
| 7899 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7900 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7901 | } |
| 7902 | |
| 7903 | |
| 7904 | // =================================================================== |
| 7905 | |
| 7906 | void EntitiesLogLevel::InitAsDefaultInstance() { |
| 7907 | } |
| 7908 | class EntitiesLogLevel::HasBitSetters { |
| 7909 | public: |
| 7910 | }; |
| 7911 | |
| 7912 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7913 | const int EntitiesLogLevel::kLogLevelFieldNumber; |
| 7914 | const int EntitiesLogLevel::kEntitiesFieldNumber; |
| 7915 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7916 | |
| 7917 | EntitiesLogLevel::EntitiesLogLevel() |
| 7918 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7919 | SharedCtor(); |
| 7920 | // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel) |
| 7921 | } |
| 7922 | EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from) |
| 7923 | : ::google::protobuf::Message(), |
| 7924 | _internal_metadata_(nullptr), |
| 7925 | entities_(from.entities_) { |
| 7926 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7927 | loglevel_ = from.loglevel_; |
| 7928 | // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel) |
| 7929 | } |
| 7930 | |
| 7931 | void EntitiesLogLevel::SharedCtor() { |
| 7932 | ::google::protobuf::internal::InitSCC( |
| 7933 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7934 | loglevel_ = 0; |
| 7935 | } |
| 7936 | |
| 7937 | EntitiesLogLevel::~EntitiesLogLevel() { |
| 7938 | // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel) |
| 7939 | SharedDtor(); |
| 7940 | } |
| 7941 | |
| 7942 | void EntitiesLogLevel::SharedDtor() { |
| 7943 | } |
| 7944 | |
| 7945 | void EntitiesLogLevel::SetCachedSize(int size) const { |
| 7946 | _cached_size_.Set(size); |
| 7947 | } |
| 7948 | const EntitiesLogLevel& EntitiesLogLevel::default_instance() { |
| 7949 | ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7950 | return *internal_default_instance(); |
| 7951 | } |
| 7952 | |
| 7953 | |
| 7954 | void EntitiesLogLevel::Clear() { |
| 7955 | // @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel) |
| 7956 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7957 | // Prevent compiler warnings about cached_has_bits being unused |
| 7958 | (void) cached_has_bits; |
| 7959 | |
| 7960 | entities_.Clear(); |
| 7961 | loglevel_ = 0; |
| 7962 | _internal_metadata_.Clear(); |
| 7963 | } |
| 7964 | |
| 7965 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7966 | const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object, |
| 7967 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7968 | auto msg = static_cast<EntitiesLogLevel*>(object); |
| 7969 | ::google::protobuf::int32 size; (void)size; |
| 7970 | int depth; (void)depth; |
| 7971 | ::google::protobuf::uint32 tag; |
| 7972 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7973 | auto ptr = begin; |
| 7974 | while (ptr < end) { |
| 7975 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7976 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7977 | switch (tag >> 3) { |
| 7978 | // .dmi.LogLevel logLevel = 1; |
| 7979 | case 1: { |
| 7980 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7981 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7982 | msg->set_loglevel(static_cast<::dmi::LogLevel>(val)); |
| 7983 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7984 | break; |
| 7985 | } |
| 7986 | // repeated string entities = 2; |
| 7987 | case 2: { |
| 7988 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 7989 | do { |
| 7990 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7991 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7992 | ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities"); |
| 7993 | object = msg->add_entities(); |
| 7994 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7995 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7996 | goto string_till_end; |
| 7997 | } |
| 7998 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7999 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8000 | ptr += size; |
| 8001 | if (ptr >= end) break; |
| 8002 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8003 | break; |
| 8004 | } |
| 8005 | default: { |
| 8006 | handle_unusual: |
| 8007 | if ((tag & 7) == 4 || tag == 0) { |
| 8008 | ctx->EndGroup(tag); |
| 8009 | return ptr; |
| 8010 | } |
| 8011 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8012 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8013 | ptr = res.first; |
| 8014 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8015 | if (res.second) return ptr; |
| 8016 | } |
| 8017 | } // switch |
| 8018 | } // while |
| 8019 | return ptr; |
| 8020 | string_till_end: |
| 8021 | static_cast<::std::string*>(object)->clear(); |
| 8022 | static_cast<::std::string*>(object)->reserve(size); |
| 8023 | goto len_delim_till_end; |
| 8024 | len_delim_till_end: |
| 8025 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8026 | {parser_till_end, object}, size); |
| 8027 | } |
| 8028 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8029 | bool EntitiesLogLevel::MergePartialFromCodedStream( |
| 8030 | ::google::protobuf::io::CodedInputStream* input) { |
| 8031 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8032 | ::google::protobuf::uint32 tag; |
| 8033 | // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel) |
| 8034 | for (;;) { |
| 8035 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8036 | tag = p.first; |
| 8037 | if (!p.second) goto handle_unusual; |
| 8038 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8039 | // .dmi.LogLevel logLevel = 1; |
| 8040 | case 1: { |
| 8041 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 8042 | int value = 0; |
| 8043 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8044 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8045 | input, &value))); |
| 8046 | set_loglevel(static_cast< ::dmi::LogLevel >(value)); |
| 8047 | } else { |
| 8048 | goto handle_unusual; |
| 8049 | } |
| 8050 | break; |
| 8051 | } |
| 8052 | |
| 8053 | // repeated string entities = 2; |
| 8054 | case 2: { |
| 8055 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8056 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8057 | input, this->add_entities())); |
| 8058 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8059 | this->entities(this->entities_size() - 1).data(), |
| 8060 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 8061 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8062 | "dmi.EntitiesLogLevel.entities")); |
| 8063 | } else { |
| 8064 | goto handle_unusual; |
| 8065 | } |
| 8066 | break; |
| 8067 | } |
| 8068 | |
| 8069 | default: { |
| 8070 | handle_unusual: |
| 8071 | if (tag == 0) { |
| 8072 | goto success; |
| 8073 | } |
| 8074 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8075 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8076 | break; |
| 8077 | } |
| 8078 | } |
| 8079 | } |
| 8080 | success: |
| 8081 | // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel) |
| 8082 | return true; |
| 8083 | failure: |
| 8084 | // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel) |
| 8085 | return false; |
| 8086 | #undef DO_ |
| 8087 | } |
| 8088 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8089 | |
| 8090 | void EntitiesLogLevel::SerializeWithCachedSizes( |
| 8091 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8092 | // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel) |
| 8093 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8094 | (void) cached_has_bits; |
| 8095 | |
| 8096 | // .dmi.LogLevel logLevel = 1; |
| 8097 | if (this->loglevel() != 0) { |
| 8098 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8099 | 1, this->loglevel(), output); |
| 8100 | } |
| 8101 | |
| 8102 | // repeated string entities = 2; |
| 8103 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8104 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8105 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8106 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8107 | "dmi.EntitiesLogLevel.entities"); |
| 8108 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 8109 | 2, this->entities(i), output); |
| 8110 | } |
| 8111 | |
| 8112 | if (_internal_metadata_.have_unknown_fields()) { |
| 8113 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8114 | _internal_metadata_.unknown_fields(), output); |
| 8115 | } |
| 8116 | // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel) |
| 8117 | } |
| 8118 | |
| 8119 | ::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray( |
| 8120 | ::google::protobuf::uint8* target) const { |
| 8121 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel) |
| 8122 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8123 | (void) cached_has_bits; |
| 8124 | |
| 8125 | // .dmi.LogLevel logLevel = 1; |
| 8126 | if (this->loglevel() != 0) { |
| 8127 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8128 | 1, this->loglevel(), target); |
| 8129 | } |
| 8130 | |
| 8131 | // repeated string entities = 2; |
| 8132 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8133 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8134 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8135 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8136 | "dmi.EntitiesLogLevel.entities"); |
| 8137 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8138 | WriteStringToArray(2, this->entities(i), target); |
| 8139 | } |
| 8140 | |
| 8141 | if (_internal_metadata_.have_unknown_fields()) { |
| 8142 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8143 | _internal_metadata_.unknown_fields(), target); |
| 8144 | } |
| 8145 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel) |
| 8146 | return target; |
| 8147 | } |
| 8148 | |
| 8149 | size_t EntitiesLogLevel::ByteSizeLong() const { |
| 8150 | // @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel) |
| 8151 | size_t total_size = 0; |
| 8152 | |
| 8153 | if (_internal_metadata_.have_unknown_fields()) { |
| 8154 | total_size += |
| 8155 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8156 | _internal_metadata_.unknown_fields()); |
| 8157 | } |
| 8158 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8159 | // Prevent compiler warnings about cached_has_bits being unused |
| 8160 | (void) cached_has_bits; |
| 8161 | |
| 8162 | // repeated string entities = 2; |
| 8163 | total_size += 1 * |
| 8164 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 8165 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8166 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8167 | this->entities(i)); |
| 8168 | } |
| 8169 | |
| 8170 | // .dmi.LogLevel logLevel = 1; |
| 8171 | if (this->loglevel() != 0) { |
| 8172 | total_size += 1 + |
| 8173 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel()); |
| 8174 | } |
| 8175 | |
| 8176 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8177 | SetCachedSize(cached_size); |
| 8178 | return total_size; |
| 8179 | } |
| 8180 | |
| 8181 | void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) { |
| 8182 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel) |
| 8183 | GOOGLE_DCHECK_NE(&from, this); |
| 8184 | const EntitiesLogLevel* source = |
| 8185 | ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>( |
| 8186 | &from); |
| 8187 | if (source == nullptr) { |
| 8188 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel) |
| 8189 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8190 | } else { |
| 8191 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel) |
| 8192 | MergeFrom(*source); |
| 8193 | } |
| 8194 | } |
| 8195 | |
| 8196 | void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) { |
| 8197 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel) |
| 8198 | GOOGLE_DCHECK_NE(&from, this); |
| 8199 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8200 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8201 | (void) cached_has_bits; |
| 8202 | |
| 8203 | entities_.MergeFrom(from.entities_); |
| 8204 | if (from.loglevel() != 0) { |
| 8205 | set_loglevel(from.loglevel()); |
| 8206 | } |
| 8207 | } |
| 8208 | |
| 8209 | void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) { |
| 8210 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel) |
| 8211 | if (&from == this) return; |
| 8212 | Clear(); |
| 8213 | MergeFrom(from); |
| 8214 | } |
| 8215 | |
| 8216 | void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) { |
| 8217 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel) |
| 8218 | if (&from == this) return; |
| 8219 | Clear(); |
| 8220 | MergeFrom(from); |
| 8221 | } |
| 8222 | |
| 8223 | bool EntitiesLogLevel::IsInitialized() const { |
| 8224 | return true; |
| 8225 | } |
| 8226 | |
| 8227 | void EntitiesLogLevel::Swap(EntitiesLogLevel* other) { |
| 8228 | if (other == this) return; |
| 8229 | InternalSwap(other); |
| 8230 | } |
| 8231 | void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) { |
| 8232 | using std::swap; |
| 8233 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8234 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 8235 | swap(loglevel_, other->loglevel_); |
| 8236 | } |
| 8237 | |
| 8238 | ::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const { |
| 8239 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8240 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8241 | } |
| 8242 | |
| 8243 | |
| 8244 | // =================================================================== |
| 8245 | |
| 8246 | void SetLogLevelRequest::InitAsDefaultInstance() { |
| 8247 | ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8248 | ::dmi::Uuid::internal_default_instance()); |
| 8249 | } |
| 8250 | class SetLogLevelRequest::HasBitSetters { |
| 8251 | public: |
| 8252 | static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg); |
| 8253 | }; |
| 8254 | |
| 8255 | const ::dmi::Uuid& |
| 8256 | SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) { |
| 8257 | return *msg->device_uuid_; |
| 8258 | } |
| 8259 | void SetLogLevelRequest::clear_device_uuid() { |
| 8260 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8261 | delete device_uuid_; |
| 8262 | } |
| 8263 | device_uuid_ = nullptr; |
| 8264 | } |
| 8265 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8266 | const int SetLogLevelRequest::kDeviceUuidFieldNumber; |
| 8267 | const int SetLogLevelRequest::kLoglevelsFieldNumber; |
| 8268 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8269 | |
| 8270 | SetLogLevelRequest::SetLogLevelRequest() |
| 8271 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8272 | SharedCtor(); |
| 8273 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest) |
| 8274 | } |
| 8275 | SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from) |
| 8276 | : ::google::protobuf::Message(), |
| 8277 | _internal_metadata_(nullptr), |
| 8278 | loglevels_(from.loglevels_) { |
| 8279 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8280 | if (from.has_device_uuid()) { |
| 8281 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8282 | } else { |
| 8283 | device_uuid_ = nullptr; |
| 8284 | } |
| 8285 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest) |
| 8286 | } |
| 8287 | |
| 8288 | void SetLogLevelRequest::SharedCtor() { |
| 8289 | ::google::protobuf::internal::InitSCC( |
| 8290 | &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8291 | device_uuid_ = nullptr; |
| 8292 | } |
| 8293 | |
| 8294 | SetLogLevelRequest::~SetLogLevelRequest() { |
| 8295 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest) |
| 8296 | SharedDtor(); |
| 8297 | } |
| 8298 | |
| 8299 | void SetLogLevelRequest::SharedDtor() { |
| 8300 | if (this != internal_default_instance()) delete device_uuid_; |
| 8301 | } |
| 8302 | |
| 8303 | void SetLogLevelRequest::SetCachedSize(int size) const { |
| 8304 | _cached_size_.Set(size); |
| 8305 | } |
| 8306 | const SetLogLevelRequest& SetLogLevelRequest::default_instance() { |
| 8307 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8308 | return *internal_default_instance(); |
| 8309 | } |
| 8310 | |
| 8311 | |
| 8312 | void SetLogLevelRequest::Clear() { |
| 8313 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest) |
| 8314 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8315 | // Prevent compiler warnings about cached_has_bits being unused |
| 8316 | (void) cached_has_bits; |
| 8317 | |
| 8318 | loglevels_.Clear(); |
| 8319 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8320 | delete device_uuid_; |
| 8321 | } |
| 8322 | device_uuid_ = nullptr; |
| 8323 | _internal_metadata_.Clear(); |
| 8324 | } |
| 8325 | |
| 8326 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8327 | const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 8328 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8329 | auto msg = static_cast<SetLogLevelRequest*>(object); |
| 8330 | ::google::protobuf::int32 size; (void)size; |
| 8331 | int depth; (void)depth; |
| 8332 | ::google::protobuf::uint32 tag; |
| 8333 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8334 | auto ptr = begin; |
| 8335 | while (ptr < end) { |
| 8336 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8337 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8338 | switch (tag >> 3) { |
| 8339 | // .dmi.Uuid device_uuid = 1; |
| 8340 | case 1: { |
| 8341 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8342 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8343 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8344 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8345 | object = msg->mutable_device_uuid(); |
| 8346 | if (size > end - ptr) goto len_delim_till_end; |
| 8347 | ptr += size; |
| 8348 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8349 | {parser_till_end, object}, ptr - size, ptr)); |
| 8350 | break; |
| 8351 | } |
| 8352 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8353 | case 2: { |
| 8354 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8355 | do { |
| 8356 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8357 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8358 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 8359 | object = msg->add_loglevels(); |
| 8360 | if (size > end - ptr) goto len_delim_till_end; |
| 8361 | ptr += size; |
| 8362 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8363 | {parser_till_end, object}, ptr - size, ptr)); |
| 8364 | if (ptr >= end) break; |
| 8365 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8366 | break; |
| 8367 | } |
| 8368 | default: { |
| 8369 | handle_unusual: |
| 8370 | if ((tag & 7) == 4 || tag == 0) { |
| 8371 | ctx->EndGroup(tag); |
| 8372 | return ptr; |
| 8373 | } |
| 8374 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8375 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8376 | ptr = res.first; |
| 8377 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8378 | if (res.second) return ptr; |
| 8379 | } |
| 8380 | } // switch |
| 8381 | } // while |
| 8382 | return ptr; |
| 8383 | len_delim_till_end: |
| 8384 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8385 | {parser_till_end, object}, size); |
| 8386 | } |
| 8387 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8388 | bool SetLogLevelRequest::MergePartialFromCodedStream( |
| 8389 | ::google::protobuf::io::CodedInputStream* input) { |
| 8390 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8391 | ::google::protobuf::uint32 tag; |
| 8392 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest) |
| 8393 | for (;;) { |
| 8394 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8395 | tag = p.first; |
| 8396 | if (!p.second) goto handle_unusual; |
| 8397 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8398 | // .dmi.Uuid device_uuid = 1; |
| 8399 | case 1: { |
| 8400 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8401 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8402 | input, mutable_device_uuid())); |
| 8403 | } else { |
| 8404 | goto handle_unusual; |
| 8405 | } |
| 8406 | break; |
| 8407 | } |
| 8408 | |
| 8409 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8410 | case 2: { |
| 8411 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8412 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8413 | input, add_loglevels())); |
| 8414 | } else { |
| 8415 | goto handle_unusual; |
| 8416 | } |
| 8417 | break; |
| 8418 | } |
| 8419 | |
| 8420 | default: { |
| 8421 | handle_unusual: |
| 8422 | if (tag == 0) { |
| 8423 | goto success; |
| 8424 | } |
| 8425 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8426 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8427 | break; |
| 8428 | } |
| 8429 | } |
| 8430 | } |
| 8431 | success: |
| 8432 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest) |
| 8433 | return true; |
| 8434 | failure: |
| 8435 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest) |
| 8436 | return false; |
| 8437 | #undef DO_ |
| 8438 | } |
| 8439 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8440 | |
| 8441 | void SetLogLevelRequest::SerializeWithCachedSizes( |
| 8442 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8443 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest) |
| 8444 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8445 | (void) cached_has_bits; |
| 8446 | |
| 8447 | // .dmi.Uuid device_uuid = 1; |
| 8448 | if (this->has_device_uuid()) { |
| 8449 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8450 | 1, HasBitSetters::device_uuid(this), output); |
| 8451 | } |
| 8452 | |
| 8453 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8454 | for (unsigned int i = 0, |
| 8455 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8456 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8457 | 2, |
| 8458 | this->loglevels(static_cast<int>(i)), |
| 8459 | output); |
| 8460 | } |
| 8461 | |
| 8462 | if (_internal_metadata_.have_unknown_fields()) { |
| 8463 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8464 | _internal_metadata_.unknown_fields(), output); |
| 8465 | } |
| 8466 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest) |
| 8467 | } |
| 8468 | |
| 8469 | ::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 8470 | ::google::protobuf::uint8* target) const { |
| 8471 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest) |
| 8472 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8473 | (void) cached_has_bits; |
| 8474 | |
| 8475 | // .dmi.Uuid device_uuid = 1; |
| 8476 | if (this->has_device_uuid()) { |
| 8477 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8478 | InternalWriteMessageToArray( |
| 8479 | 1, HasBitSetters::device_uuid(this), target); |
| 8480 | } |
| 8481 | |
| 8482 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8483 | for (unsigned int i = 0, |
| 8484 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8485 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8486 | InternalWriteMessageToArray( |
| 8487 | 2, this->loglevels(static_cast<int>(i)), target); |
| 8488 | } |
| 8489 | |
| 8490 | if (_internal_metadata_.have_unknown_fields()) { |
| 8491 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8492 | _internal_metadata_.unknown_fields(), target); |
| 8493 | } |
| 8494 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest) |
| 8495 | return target; |
| 8496 | } |
| 8497 | |
| 8498 | size_t SetLogLevelRequest::ByteSizeLong() const { |
| 8499 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest) |
| 8500 | size_t total_size = 0; |
| 8501 | |
| 8502 | if (_internal_metadata_.have_unknown_fields()) { |
| 8503 | total_size += |
| 8504 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8505 | _internal_metadata_.unknown_fields()); |
| 8506 | } |
| 8507 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8508 | // Prevent compiler warnings about cached_has_bits being unused |
| 8509 | (void) cached_has_bits; |
| 8510 | |
| 8511 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8512 | { |
| 8513 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 8514 | total_size += 1UL * count; |
| 8515 | for (unsigned int i = 0; i < count; i++) { |
| 8516 | total_size += |
| 8517 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8518 | this->loglevels(static_cast<int>(i))); |
| 8519 | } |
| 8520 | } |
| 8521 | |
| 8522 | // .dmi.Uuid device_uuid = 1; |
| 8523 | if (this->has_device_uuid()) { |
| 8524 | total_size += 1 + |
| 8525 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8526 | *device_uuid_); |
| 8527 | } |
| 8528 | |
| 8529 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8530 | SetCachedSize(cached_size); |
| 8531 | return total_size; |
| 8532 | } |
| 8533 | |
| 8534 | void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 8535 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest) |
| 8536 | GOOGLE_DCHECK_NE(&from, this); |
| 8537 | const SetLogLevelRequest* source = |
| 8538 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>( |
| 8539 | &from); |
| 8540 | if (source == nullptr) { |
| 8541 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest) |
| 8542 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8543 | } else { |
| 8544 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest) |
| 8545 | MergeFrom(*source); |
| 8546 | } |
| 8547 | } |
| 8548 | |
| 8549 | void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) { |
| 8550 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest) |
| 8551 | GOOGLE_DCHECK_NE(&from, this); |
| 8552 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8553 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8554 | (void) cached_has_bits; |
| 8555 | |
| 8556 | loglevels_.MergeFrom(from.loglevels_); |
| 8557 | if (from.has_device_uuid()) { |
| 8558 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 8559 | } |
| 8560 | } |
| 8561 | |
| 8562 | void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 8563 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest) |
| 8564 | if (&from == this) return; |
| 8565 | Clear(); |
| 8566 | MergeFrom(from); |
| 8567 | } |
| 8568 | |
| 8569 | void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) { |
| 8570 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest) |
| 8571 | if (&from == this) return; |
| 8572 | Clear(); |
| 8573 | MergeFrom(from); |
| 8574 | } |
| 8575 | |
| 8576 | bool SetLogLevelRequest::IsInitialized() const { |
| 8577 | return true; |
| 8578 | } |
| 8579 | |
| 8580 | void SetLogLevelRequest::Swap(SetLogLevelRequest* other) { |
| 8581 | if (other == this) return; |
| 8582 | InternalSwap(other); |
| 8583 | } |
| 8584 | void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) { |
| 8585 | using std::swap; |
| 8586 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8587 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 8588 | swap(device_uuid_, other->device_uuid_); |
| 8589 | } |
| 8590 | |
| 8591 | ::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const { |
| 8592 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8593 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8594 | } |
| 8595 | |
| 8596 | |
| 8597 | // =================================================================== |
| 8598 | |
| 8599 | void SetLogLevelResponse::InitAsDefaultInstance() { |
| 8600 | ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8601 | ::dmi::Uuid::internal_default_instance()); |
| 8602 | } |
| 8603 | class SetLogLevelResponse::HasBitSetters { |
| 8604 | public: |
| 8605 | static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg); |
| 8606 | }; |
| 8607 | |
| 8608 | const ::dmi::Uuid& |
| 8609 | SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) { |
| 8610 | return *msg->device_uuid_; |
| 8611 | } |
| 8612 | void SetLogLevelResponse::clear_device_uuid() { |
| 8613 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8614 | delete device_uuid_; |
| 8615 | } |
| 8616 | device_uuid_ = nullptr; |
| 8617 | } |
| 8618 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8619 | const int SetLogLevelResponse::kDeviceUuidFieldNumber; |
| 8620 | const int SetLogLevelResponse::kStatusFieldNumber; |
| 8621 | const int SetLogLevelResponse::kReasonFieldNumber; |
| 8622 | const int SetLogLevelResponse::kReasonDetailFieldNumber; |
| 8623 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8624 | |
| 8625 | SetLogLevelResponse::SetLogLevelResponse() |
| 8626 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8627 | SharedCtor(); |
| 8628 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse) |
| 8629 | } |
| 8630 | SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from) |
| 8631 | : ::google::protobuf::Message(), |
| 8632 | _internal_metadata_(nullptr) { |
| 8633 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8634 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8635 | if (from.reason_detail().size() > 0) { |
| 8636 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 8637 | } |
| 8638 | if (from.has_device_uuid()) { |
| 8639 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8640 | } else { |
| 8641 | device_uuid_ = nullptr; |
| 8642 | } |
| 8643 | ::memcpy(&status_, &from.status_, |
| 8644 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 8645 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8646 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse) |
| 8647 | } |
| 8648 | |
| 8649 | void SetLogLevelResponse::SharedCtor() { |
| 8650 | ::google::protobuf::internal::InitSCC( |
| 8651 | &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8652 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8653 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 8654 | reinterpret_cast<char*>(&reason_) - |
| 8655 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 8656 | } |
| 8657 | |
| 8658 | SetLogLevelResponse::~SetLogLevelResponse() { |
| 8659 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse) |
| 8660 | SharedDtor(); |
| 8661 | } |
| 8662 | |
| 8663 | void SetLogLevelResponse::SharedDtor() { |
| 8664 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8665 | if (this != internal_default_instance()) delete device_uuid_; |
| 8666 | } |
| 8667 | |
| 8668 | void SetLogLevelResponse::SetCachedSize(int size) const { |
| 8669 | _cached_size_.Set(size); |
| 8670 | } |
| 8671 | const SetLogLevelResponse& SetLogLevelResponse::default_instance() { |
| 8672 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8673 | return *internal_default_instance(); |
| 8674 | } |
| 8675 | |
| 8676 | |
| 8677 | void SetLogLevelResponse::Clear() { |
| 8678 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse) |
| 8679 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8680 | // Prevent compiler warnings about cached_has_bits being unused |
| 8681 | (void) cached_has_bits; |
| 8682 | |
| 8683 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8684 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8685 | delete device_uuid_; |
| 8686 | } |
| 8687 | device_uuid_ = nullptr; |
| 8688 | ::memset(&status_, 0, static_cast<size_t>( |
| 8689 | reinterpret_cast<char*>(&reason_) - |
| 8690 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8691 | _internal_metadata_.Clear(); |
| 8692 | } |
| 8693 | |
| 8694 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8695 | const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 8696 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8697 | auto msg = static_cast<SetLogLevelResponse*>(object); |
| 8698 | ::google::protobuf::int32 size; (void)size; |
| 8699 | int depth; (void)depth; |
| 8700 | ::google::protobuf::uint32 tag; |
| 8701 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8702 | auto ptr = begin; |
| 8703 | while (ptr < end) { |
| 8704 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8705 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8706 | switch (tag >> 3) { |
| 8707 | // .dmi.Uuid device_uuid = 1; |
| 8708 | case 1: { |
| 8709 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8710 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8711 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8712 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8713 | object = msg->mutable_device_uuid(); |
| 8714 | if (size > end - ptr) goto len_delim_till_end; |
| 8715 | ptr += size; |
| 8716 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8717 | {parser_till_end, object}, ptr - size, ptr)); |
| 8718 | break; |
| 8719 | } |
| 8720 | // .dmi.Status status = 2; |
| 8721 | case 2: { |
| 8722 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 8723 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8724 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 8725 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8726 | break; |
| 8727 | } |
| 8728 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8729 | case 3: { |
| 8730 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 8731 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8732 | msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val)); |
| 8733 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8734 | break; |
| 8735 | } |
| 8736 | // string reason_detail = 4; |
| 8737 | case 4: { |
| 8738 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 8739 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8740 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8741 | ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail"); |
| 8742 | object = msg->mutable_reason_detail(); |
| 8743 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8744 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8745 | goto string_till_end; |
| 8746 | } |
| 8747 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8748 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8749 | ptr += size; |
| 8750 | break; |
| 8751 | } |
| 8752 | default: { |
| 8753 | handle_unusual: |
| 8754 | if ((tag & 7) == 4 || tag == 0) { |
| 8755 | ctx->EndGroup(tag); |
| 8756 | return ptr; |
| 8757 | } |
| 8758 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8759 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8760 | ptr = res.first; |
| 8761 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8762 | if (res.second) return ptr; |
| 8763 | } |
| 8764 | } // switch |
| 8765 | } // while |
| 8766 | return ptr; |
| 8767 | string_till_end: |
| 8768 | static_cast<::std::string*>(object)->clear(); |
| 8769 | static_cast<::std::string*>(object)->reserve(size); |
| 8770 | goto len_delim_till_end; |
| 8771 | len_delim_till_end: |
| 8772 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8773 | {parser_till_end, object}, size); |
| 8774 | } |
| 8775 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8776 | bool SetLogLevelResponse::MergePartialFromCodedStream( |
| 8777 | ::google::protobuf::io::CodedInputStream* input) { |
| 8778 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8779 | ::google::protobuf::uint32 tag; |
| 8780 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse) |
| 8781 | for (;;) { |
| 8782 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8783 | tag = p.first; |
| 8784 | if (!p.second) goto handle_unusual; |
| 8785 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8786 | // .dmi.Uuid device_uuid = 1; |
| 8787 | case 1: { |
| 8788 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8789 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8790 | input, mutable_device_uuid())); |
| 8791 | } else { |
| 8792 | goto handle_unusual; |
| 8793 | } |
| 8794 | break; |
| 8795 | } |
| 8796 | |
| 8797 | // .dmi.Status status = 2; |
| 8798 | case 2: { |
| 8799 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 8800 | int value = 0; |
| 8801 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8802 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8803 | input, &value))); |
| 8804 | set_status(static_cast< ::dmi::Status >(value)); |
| 8805 | } else { |
| 8806 | goto handle_unusual; |
| 8807 | } |
| 8808 | break; |
| 8809 | } |
| 8810 | |
| 8811 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8812 | case 3: { |
| 8813 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 8814 | int value = 0; |
| 8815 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8816 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8817 | input, &value))); |
| 8818 | set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value)); |
| 8819 | } else { |
| 8820 | goto handle_unusual; |
| 8821 | } |
| 8822 | break; |
| 8823 | } |
| 8824 | |
| 8825 | // string reason_detail = 4; |
| 8826 | case 4: { |
| 8827 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 8828 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8829 | input, this->mutable_reason_detail())); |
| 8830 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8831 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8832 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8833 | "dmi.SetLogLevelResponse.reason_detail")); |
| 8834 | } else { |
| 8835 | goto handle_unusual; |
| 8836 | } |
| 8837 | break; |
| 8838 | } |
| 8839 | |
| 8840 | default: { |
| 8841 | handle_unusual: |
| 8842 | if (tag == 0) { |
| 8843 | goto success; |
| 8844 | } |
| 8845 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8846 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8847 | break; |
| 8848 | } |
| 8849 | } |
| 8850 | } |
| 8851 | success: |
| 8852 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse) |
| 8853 | return true; |
| 8854 | failure: |
| 8855 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse) |
| 8856 | return false; |
| 8857 | #undef DO_ |
| 8858 | } |
| 8859 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8860 | |
| 8861 | void SetLogLevelResponse::SerializeWithCachedSizes( |
| 8862 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8863 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse) |
| 8864 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8865 | (void) cached_has_bits; |
| 8866 | |
| 8867 | // .dmi.Uuid device_uuid = 1; |
| 8868 | if (this->has_device_uuid()) { |
| 8869 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8870 | 1, HasBitSetters::device_uuid(this), output); |
| 8871 | } |
| 8872 | |
| 8873 | // .dmi.Status status = 2; |
| 8874 | if (this->status() != 0) { |
| 8875 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8876 | 2, this->status(), output); |
| 8877 | } |
| 8878 | |
| 8879 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8880 | if (this->reason() != 0) { |
| 8881 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8882 | 3, this->reason(), output); |
| 8883 | } |
| 8884 | |
| 8885 | // string reason_detail = 4; |
| 8886 | if (this->reason_detail().size() > 0) { |
| 8887 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8888 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8889 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8890 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8891 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8892 | 4, this->reason_detail(), output); |
| 8893 | } |
| 8894 | |
| 8895 | if (_internal_metadata_.have_unknown_fields()) { |
| 8896 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8897 | _internal_metadata_.unknown_fields(), output); |
| 8898 | } |
| 8899 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse) |
| 8900 | } |
| 8901 | |
| 8902 | ::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 8903 | ::google::protobuf::uint8* target) const { |
| 8904 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse) |
| 8905 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8906 | (void) cached_has_bits; |
| 8907 | |
| 8908 | // .dmi.Uuid device_uuid = 1; |
| 8909 | if (this->has_device_uuid()) { |
| 8910 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8911 | InternalWriteMessageToArray( |
| 8912 | 1, HasBitSetters::device_uuid(this), target); |
| 8913 | } |
| 8914 | |
| 8915 | // .dmi.Status status = 2; |
| 8916 | if (this->status() != 0) { |
| 8917 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8918 | 2, this->status(), target); |
| 8919 | } |
| 8920 | |
| 8921 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8922 | if (this->reason() != 0) { |
| 8923 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8924 | 3, this->reason(), target); |
| 8925 | } |
| 8926 | |
| 8927 | // string reason_detail = 4; |
| 8928 | if (this->reason_detail().size() > 0) { |
| 8929 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8930 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8931 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8932 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8933 | target = |
| 8934 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8935 | 4, this->reason_detail(), target); |
| 8936 | } |
| 8937 | |
| 8938 | if (_internal_metadata_.have_unknown_fields()) { |
| 8939 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8940 | _internal_metadata_.unknown_fields(), target); |
| 8941 | } |
| 8942 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse) |
| 8943 | return target; |
| 8944 | } |
| 8945 | |
| 8946 | size_t SetLogLevelResponse::ByteSizeLong() const { |
| 8947 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse) |
| 8948 | size_t total_size = 0; |
| 8949 | |
| 8950 | if (_internal_metadata_.have_unknown_fields()) { |
| 8951 | total_size += |
| 8952 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8953 | _internal_metadata_.unknown_fields()); |
| 8954 | } |
| 8955 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8956 | // Prevent compiler warnings about cached_has_bits being unused |
| 8957 | (void) cached_has_bits; |
| 8958 | |
| 8959 | // string reason_detail = 4; |
| 8960 | if (this->reason_detail().size() > 0) { |
| 8961 | total_size += 1 + |
| 8962 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8963 | this->reason_detail()); |
| 8964 | } |
| 8965 | |
| 8966 | // .dmi.Uuid device_uuid = 1; |
| 8967 | if (this->has_device_uuid()) { |
| 8968 | total_size += 1 + |
| 8969 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8970 | *device_uuid_); |
| 8971 | } |
| 8972 | |
| 8973 | // .dmi.Status status = 2; |
| 8974 | if (this->status() != 0) { |
| 8975 | total_size += 1 + |
| 8976 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 8977 | } |
| 8978 | |
| 8979 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8980 | if (this->reason() != 0) { |
| 8981 | total_size += 1 + |
| 8982 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 8983 | } |
| 8984 | |
| 8985 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8986 | SetCachedSize(cached_size); |
| 8987 | return total_size; |
| 8988 | } |
| 8989 | |
| 8990 | void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 8991 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse) |
| 8992 | GOOGLE_DCHECK_NE(&from, this); |
| 8993 | const SetLogLevelResponse* source = |
| 8994 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>( |
| 8995 | &from); |
| 8996 | if (source == nullptr) { |
| 8997 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse) |
| 8998 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8999 | } else { |
| 9000 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse) |
| 9001 | MergeFrom(*source); |
| 9002 | } |
| 9003 | } |
| 9004 | |
| 9005 | void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) { |
| 9006 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse) |
| 9007 | GOOGLE_DCHECK_NE(&from, this); |
| 9008 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9010 | (void) cached_has_bits; |
| 9011 | |
| 9012 | if (from.reason_detail().size() > 0) { |
| 9013 | |
| 9014 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9015 | } |
| 9016 | if (from.has_device_uuid()) { |
| 9017 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9018 | } |
| 9019 | if (from.status() != 0) { |
| 9020 | set_status(from.status()); |
| 9021 | } |
| 9022 | if (from.reason() != 0) { |
| 9023 | set_reason(from.reason()); |
| 9024 | } |
| 9025 | } |
| 9026 | |
| 9027 | void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9028 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse) |
| 9029 | if (&from == this) return; |
| 9030 | Clear(); |
| 9031 | MergeFrom(from); |
| 9032 | } |
| 9033 | |
| 9034 | void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) { |
| 9035 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse) |
| 9036 | if (&from == this) return; |
| 9037 | Clear(); |
| 9038 | MergeFrom(from); |
| 9039 | } |
| 9040 | |
| 9041 | bool SetLogLevelResponse::IsInitialized() const { |
| 9042 | return true; |
| 9043 | } |
| 9044 | |
| 9045 | void SetLogLevelResponse::Swap(SetLogLevelResponse* other) { |
| 9046 | if (other == this) return; |
| 9047 | InternalSwap(other); |
| 9048 | } |
| 9049 | void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) { |
| 9050 | using std::swap; |
| 9051 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9052 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9053 | GetArenaNoVirtual()); |
| 9054 | swap(device_uuid_, other->device_uuid_); |
| 9055 | swap(status_, other->status_); |
| 9056 | swap(reason_, other->reason_); |
| 9057 | } |
| 9058 | |
| 9059 | ::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const { |
| 9060 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9061 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9062 | } |
| 9063 | |
| 9064 | |
| 9065 | // =================================================================== |
| 9066 | |
| 9067 | void GetLogLevelRequest::InitAsDefaultInstance() { |
| 9068 | ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9069 | ::dmi::Uuid::internal_default_instance()); |
| 9070 | } |
| 9071 | class GetLogLevelRequest::HasBitSetters { |
| 9072 | public: |
| 9073 | static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg); |
| 9074 | }; |
| 9075 | |
| 9076 | const ::dmi::Uuid& |
| 9077 | GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) { |
| 9078 | return *msg->device_uuid_; |
| 9079 | } |
| 9080 | void GetLogLevelRequest::clear_device_uuid() { |
| 9081 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9082 | delete device_uuid_; |
| 9083 | } |
| 9084 | device_uuid_ = nullptr; |
| 9085 | } |
| 9086 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9087 | const int GetLogLevelRequest::kDeviceUuidFieldNumber; |
| 9088 | const int GetLogLevelRequest::kEntitiesFieldNumber; |
| 9089 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9090 | |
| 9091 | GetLogLevelRequest::GetLogLevelRequest() |
| 9092 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9093 | SharedCtor(); |
| 9094 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest) |
| 9095 | } |
| 9096 | GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from) |
| 9097 | : ::google::protobuf::Message(), |
| 9098 | _internal_metadata_(nullptr), |
| 9099 | entities_(from.entities_) { |
| 9100 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9101 | if (from.has_device_uuid()) { |
| 9102 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9103 | } else { |
| 9104 | device_uuid_ = nullptr; |
| 9105 | } |
| 9106 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest) |
| 9107 | } |
| 9108 | |
| 9109 | void GetLogLevelRequest::SharedCtor() { |
| 9110 | ::google::protobuf::internal::InitSCC( |
| 9111 | &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9112 | device_uuid_ = nullptr; |
| 9113 | } |
| 9114 | |
| 9115 | GetLogLevelRequest::~GetLogLevelRequest() { |
| 9116 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest) |
| 9117 | SharedDtor(); |
| 9118 | } |
| 9119 | |
| 9120 | void GetLogLevelRequest::SharedDtor() { |
| 9121 | if (this != internal_default_instance()) delete device_uuid_; |
| 9122 | } |
| 9123 | |
| 9124 | void GetLogLevelRequest::SetCachedSize(int size) const { |
| 9125 | _cached_size_.Set(size); |
| 9126 | } |
| 9127 | const GetLogLevelRequest& GetLogLevelRequest::default_instance() { |
| 9128 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9129 | return *internal_default_instance(); |
| 9130 | } |
| 9131 | |
| 9132 | |
| 9133 | void GetLogLevelRequest::Clear() { |
| 9134 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest) |
| 9135 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9136 | // Prevent compiler warnings about cached_has_bits being unused |
| 9137 | (void) cached_has_bits; |
| 9138 | |
| 9139 | entities_.Clear(); |
| 9140 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9141 | delete device_uuid_; |
| 9142 | } |
| 9143 | device_uuid_ = nullptr; |
| 9144 | _internal_metadata_.Clear(); |
| 9145 | } |
| 9146 | |
| 9147 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9148 | const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 9149 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9150 | auto msg = static_cast<GetLogLevelRequest*>(object); |
| 9151 | ::google::protobuf::int32 size; (void)size; |
| 9152 | int depth; (void)depth; |
| 9153 | ::google::protobuf::uint32 tag; |
| 9154 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9155 | auto ptr = begin; |
| 9156 | while (ptr < end) { |
| 9157 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9158 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9159 | switch (tag >> 3) { |
| 9160 | // .dmi.Uuid device_uuid = 1; |
| 9161 | case 1: { |
| 9162 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9163 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9164 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9165 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9166 | object = msg->mutable_device_uuid(); |
| 9167 | if (size > end - ptr) goto len_delim_till_end; |
| 9168 | ptr += size; |
| 9169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9170 | {parser_till_end, object}, ptr - size, ptr)); |
| 9171 | break; |
| 9172 | } |
| 9173 | // repeated string entities = 2; |
| 9174 | case 2: { |
| 9175 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9176 | do { |
| 9177 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9178 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9179 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities"); |
| 9180 | object = msg->add_entities(); |
| 9181 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9182 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9183 | goto string_till_end; |
| 9184 | } |
| 9185 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9186 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9187 | ptr += size; |
| 9188 | if (ptr >= end) break; |
| 9189 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9190 | break; |
| 9191 | } |
| 9192 | default: { |
| 9193 | handle_unusual: |
| 9194 | if ((tag & 7) == 4 || tag == 0) { |
| 9195 | ctx->EndGroup(tag); |
| 9196 | return ptr; |
| 9197 | } |
| 9198 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9199 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9200 | ptr = res.first; |
| 9201 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9202 | if (res.second) return ptr; |
| 9203 | } |
| 9204 | } // switch |
| 9205 | } // while |
| 9206 | return ptr; |
| 9207 | string_till_end: |
| 9208 | static_cast<::std::string*>(object)->clear(); |
| 9209 | static_cast<::std::string*>(object)->reserve(size); |
| 9210 | goto len_delim_till_end; |
| 9211 | len_delim_till_end: |
| 9212 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9213 | {parser_till_end, object}, size); |
| 9214 | } |
| 9215 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9216 | bool GetLogLevelRequest::MergePartialFromCodedStream( |
| 9217 | ::google::protobuf::io::CodedInputStream* input) { |
| 9218 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9219 | ::google::protobuf::uint32 tag; |
| 9220 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest) |
| 9221 | for (;;) { |
| 9222 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9223 | tag = p.first; |
| 9224 | if (!p.second) goto handle_unusual; |
| 9225 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9226 | // .dmi.Uuid device_uuid = 1; |
| 9227 | case 1: { |
| 9228 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9229 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9230 | input, mutable_device_uuid())); |
| 9231 | } else { |
| 9232 | goto handle_unusual; |
| 9233 | } |
| 9234 | break; |
| 9235 | } |
| 9236 | |
| 9237 | // repeated string entities = 2; |
| 9238 | case 2: { |
| 9239 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9240 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9241 | input, this->add_entities())); |
| 9242 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9243 | this->entities(this->entities_size() - 1).data(), |
| 9244 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 9245 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9246 | "dmi.GetLogLevelRequest.entities")); |
| 9247 | } else { |
| 9248 | goto handle_unusual; |
| 9249 | } |
| 9250 | break; |
| 9251 | } |
| 9252 | |
| 9253 | default: { |
| 9254 | handle_unusual: |
| 9255 | if (tag == 0) { |
| 9256 | goto success; |
| 9257 | } |
| 9258 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9259 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9260 | break; |
| 9261 | } |
| 9262 | } |
| 9263 | } |
| 9264 | success: |
| 9265 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest) |
| 9266 | return true; |
| 9267 | failure: |
| 9268 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest) |
| 9269 | return false; |
| 9270 | #undef DO_ |
| 9271 | } |
| 9272 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9273 | |
| 9274 | void GetLogLevelRequest::SerializeWithCachedSizes( |
| 9275 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9276 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest) |
| 9277 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9278 | (void) cached_has_bits; |
| 9279 | |
| 9280 | // .dmi.Uuid device_uuid = 1; |
| 9281 | if (this->has_device_uuid()) { |
| 9282 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9283 | 1, HasBitSetters::device_uuid(this), output); |
| 9284 | } |
| 9285 | |
| 9286 | // repeated string entities = 2; |
| 9287 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9288 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9289 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9290 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9291 | "dmi.GetLogLevelRequest.entities"); |
| 9292 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 9293 | 2, this->entities(i), output); |
| 9294 | } |
| 9295 | |
| 9296 | if (_internal_metadata_.have_unknown_fields()) { |
| 9297 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9298 | _internal_metadata_.unknown_fields(), output); |
| 9299 | } |
| 9300 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest) |
| 9301 | } |
| 9302 | |
| 9303 | ::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 9304 | ::google::protobuf::uint8* target) const { |
| 9305 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest) |
| 9306 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9307 | (void) cached_has_bits; |
| 9308 | |
| 9309 | // .dmi.Uuid device_uuid = 1; |
| 9310 | if (this->has_device_uuid()) { |
| 9311 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9312 | InternalWriteMessageToArray( |
| 9313 | 1, HasBitSetters::device_uuid(this), target); |
| 9314 | } |
| 9315 | |
| 9316 | // repeated string entities = 2; |
| 9317 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9318 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9319 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9320 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9321 | "dmi.GetLogLevelRequest.entities"); |
| 9322 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9323 | WriteStringToArray(2, this->entities(i), target); |
| 9324 | } |
| 9325 | |
| 9326 | if (_internal_metadata_.have_unknown_fields()) { |
| 9327 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9328 | _internal_metadata_.unknown_fields(), target); |
| 9329 | } |
| 9330 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest) |
| 9331 | return target; |
| 9332 | } |
| 9333 | |
| 9334 | size_t GetLogLevelRequest::ByteSizeLong() const { |
| 9335 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest) |
| 9336 | size_t total_size = 0; |
| 9337 | |
| 9338 | if (_internal_metadata_.have_unknown_fields()) { |
| 9339 | total_size += |
| 9340 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9341 | _internal_metadata_.unknown_fields()); |
| 9342 | } |
| 9343 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9344 | // Prevent compiler warnings about cached_has_bits being unused |
| 9345 | (void) cached_has_bits; |
| 9346 | |
| 9347 | // repeated string entities = 2; |
| 9348 | total_size += 1 * |
| 9349 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 9350 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9351 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9352 | this->entities(i)); |
| 9353 | } |
| 9354 | |
| 9355 | // .dmi.Uuid device_uuid = 1; |
| 9356 | if (this->has_device_uuid()) { |
| 9357 | total_size += 1 + |
| 9358 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9359 | *device_uuid_); |
| 9360 | } |
| 9361 | |
| 9362 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9363 | SetCachedSize(cached_size); |
| 9364 | return total_size; |
| 9365 | } |
| 9366 | |
| 9367 | void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 9368 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest) |
| 9369 | GOOGLE_DCHECK_NE(&from, this); |
| 9370 | const GetLogLevelRequest* source = |
| 9371 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>( |
| 9372 | &from); |
| 9373 | if (source == nullptr) { |
| 9374 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest) |
| 9375 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9376 | } else { |
| 9377 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest) |
| 9378 | MergeFrom(*source); |
| 9379 | } |
| 9380 | } |
| 9381 | |
| 9382 | void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) { |
| 9383 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest) |
| 9384 | GOOGLE_DCHECK_NE(&from, this); |
| 9385 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9386 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9387 | (void) cached_has_bits; |
| 9388 | |
| 9389 | entities_.MergeFrom(from.entities_); |
| 9390 | if (from.has_device_uuid()) { |
| 9391 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9392 | } |
| 9393 | } |
| 9394 | |
| 9395 | void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 9396 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest) |
| 9397 | if (&from == this) return; |
| 9398 | Clear(); |
| 9399 | MergeFrom(from); |
| 9400 | } |
| 9401 | |
| 9402 | void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) { |
| 9403 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest) |
| 9404 | if (&from == this) return; |
| 9405 | Clear(); |
| 9406 | MergeFrom(from); |
| 9407 | } |
| 9408 | |
| 9409 | bool GetLogLevelRequest::IsInitialized() const { |
| 9410 | return true; |
| 9411 | } |
| 9412 | |
| 9413 | void GetLogLevelRequest::Swap(GetLogLevelRequest* other) { |
| 9414 | if (other == this) return; |
| 9415 | InternalSwap(other); |
| 9416 | } |
| 9417 | void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) { |
| 9418 | using std::swap; |
| 9419 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9420 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 9421 | swap(device_uuid_, other->device_uuid_); |
| 9422 | } |
| 9423 | |
| 9424 | ::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const { |
| 9425 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9426 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9427 | } |
| 9428 | |
| 9429 | |
| 9430 | // =================================================================== |
| 9431 | |
| 9432 | void GetLogLevelResponse::InitAsDefaultInstance() { |
| 9433 | ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9434 | ::dmi::Uuid::internal_default_instance()); |
| 9435 | } |
| 9436 | class GetLogLevelResponse::HasBitSetters { |
| 9437 | public: |
| 9438 | static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg); |
| 9439 | }; |
| 9440 | |
| 9441 | const ::dmi::Uuid& |
| 9442 | GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) { |
| 9443 | return *msg->device_uuid_; |
| 9444 | } |
| 9445 | void GetLogLevelResponse::clear_device_uuid() { |
| 9446 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9447 | delete device_uuid_; |
| 9448 | } |
| 9449 | device_uuid_ = nullptr; |
| 9450 | } |
| 9451 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9452 | const int GetLogLevelResponse::kDeviceUuidFieldNumber; |
| 9453 | const int GetLogLevelResponse::kLogLevelsFieldNumber; |
| 9454 | const int GetLogLevelResponse::kStatusFieldNumber; |
| 9455 | const int GetLogLevelResponse::kReasonFieldNumber; |
| 9456 | const int GetLogLevelResponse::kReasonDetailFieldNumber; |
| 9457 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9458 | |
| 9459 | GetLogLevelResponse::GetLogLevelResponse() |
| 9460 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9461 | SharedCtor(); |
| 9462 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse) |
| 9463 | } |
| 9464 | GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from) |
| 9465 | : ::google::protobuf::Message(), |
| 9466 | _internal_metadata_(nullptr), |
| 9467 | loglevels_(from.loglevels_) { |
| 9468 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9469 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9470 | if (from.reason_detail().size() > 0) { |
| 9471 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9472 | } |
| 9473 | if (from.has_device_uuid()) { |
| 9474 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9475 | } else { |
| 9476 | device_uuid_ = nullptr; |
| 9477 | } |
| 9478 | ::memcpy(&status_, &from.status_, |
| 9479 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 9480 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9481 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse) |
| 9482 | } |
| 9483 | |
| 9484 | void GetLogLevelResponse::SharedCtor() { |
| 9485 | ::google::protobuf::internal::InitSCC( |
| 9486 | &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9487 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9488 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 9489 | reinterpret_cast<char*>(&reason_) - |
| 9490 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 9491 | } |
| 9492 | |
| 9493 | GetLogLevelResponse::~GetLogLevelResponse() { |
| 9494 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse) |
| 9495 | SharedDtor(); |
| 9496 | } |
| 9497 | |
| 9498 | void GetLogLevelResponse::SharedDtor() { |
| 9499 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9500 | if (this != internal_default_instance()) delete device_uuid_; |
| 9501 | } |
| 9502 | |
| 9503 | void GetLogLevelResponse::SetCachedSize(int size) const { |
| 9504 | _cached_size_.Set(size); |
| 9505 | } |
| 9506 | const GetLogLevelResponse& GetLogLevelResponse::default_instance() { |
| 9507 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9508 | return *internal_default_instance(); |
| 9509 | } |
| 9510 | |
| 9511 | |
| 9512 | void GetLogLevelResponse::Clear() { |
| 9513 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse) |
| 9514 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9515 | // Prevent compiler warnings about cached_has_bits being unused |
| 9516 | (void) cached_has_bits; |
| 9517 | |
| 9518 | loglevels_.Clear(); |
| 9519 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9520 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9521 | delete device_uuid_; |
| 9522 | } |
| 9523 | device_uuid_ = nullptr; |
| 9524 | ::memset(&status_, 0, static_cast<size_t>( |
| 9525 | reinterpret_cast<char*>(&reason_) - |
| 9526 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9527 | _internal_metadata_.Clear(); |
| 9528 | } |
| 9529 | |
| 9530 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9531 | const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 9532 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9533 | auto msg = static_cast<GetLogLevelResponse*>(object); |
| 9534 | ::google::protobuf::int32 size; (void)size; |
| 9535 | int depth; (void)depth; |
| 9536 | ::google::protobuf::uint32 tag; |
| 9537 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9538 | auto ptr = begin; |
| 9539 | while (ptr < end) { |
| 9540 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9541 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9542 | switch (tag >> 3) { |
| 9543 | // .dmi.Uuid device_uuid = 1; |
| 9544 | case 1: { |
| 9545 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9546 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9547 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9548 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9549 | object = msg->mutable_device_uuid(); |
| 9550 | if (size > end - ptr) goto len_delim_till_end; |
| 9551 | ptr += size; |
| 9552 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9553 | {parser_till_end, object}, ptr - size, ptr)); |
| 9554 | break; |
| 9555 | } |
| 9556 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9557 | case 2: { |
| 9558 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9559 | do { |
| 9560 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9561 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9562 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 9563 | object = msg->add_loglevels(); |
| 9564 | if (size > end - ptr) goto len_delim_till_end; |
| 9565 | ptr += size; |
| 9566 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9567 | {parser_till_end, object}, ptr - size, ptr)); |
| 9568 | if (ptr >= end) break; |
| 9569 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9570 | break; |
| 9571 | } |
| 9572 | // .dmi.Status status = 3; |
| 9573 | case 3: { |
| 9574 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 9575 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9576 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 9577 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9578 | break; |
| 9579 | } |
| 9580 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9581 | case 4: { |
| 9582 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 9583 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9584 | msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val)); |
| 9585 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9586 | break; |
| 9587 | } |
| 9588 | // string reason_detail = 5; |
| 9589 | case 5: { |
| 9590 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 9591 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9592 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9593 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail"); |
| 9594 | object = msg->mutable_reason_detail(); |
| 9595 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9596 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9597 | goto string_till_end; |
| 9598 | } |
| 9599 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9600 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9601 | ptr += size; |
| 9602 | break; |
| 9603 | } |
| 9604 | default: { |
| 9605 | handle_unusual: |
| 9606 | if ((tag & 7) == 4 || tag == 0) { |
| 9607 | ctx->EndGroup(tag); |
| 9608 | return ptr; |
| 9609 | } |
| 9610 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9611 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9612 | ptr = res.first; |
| 9613 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9614 | if (res.second) return ptr; |
| 9615 | } |
| 9616 | } // switch |
| 9617 | } // while |
| 9618 | return ptr; |
| 9619 | string_till_end: |
| 9620 | static_cast<::std::string*>(object)->clear(); |
| 9621 | static_cast<::std::string*>(object)->reserve(size); |
| 9622 | goto len_delim_till_end; |
| 9623 | len_delim_till_end: |
| 9624 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9625 | {parser_till_end, object}, size); |
| 9626 | } |
| 9627 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9628 | bool GetLogLevelResponse::MergePartialFromCodedStream( |
| 9629 | ::google::protobuf::io::CodedInputStream* input) { |
| 9630 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9631 | ::google::protobuf::uint32 tag; |
| 9632 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse) |
| 9633 | for (;;) { |
| 9634 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9635 | tag = p.first; |
| 9636 | if (!p.second) goto handle_unusual; |
| 9637 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9638 | // .dmi.Uuid device_uuid = 1; |
| 9639 | case 1: { |
| 9640 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9641 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9642 | input, mutable_device_uuid())); |
| 9643 | } else { |
| 9644 | goto handle_unusual; |
| 9645 | } |
| 9646 | break; |
| 9647 | } |
| 9648 | |
| 9649 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9650 | case 2: { |
| 9651 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9652 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9653 | input, add_loglevels())); |
| 9654 | } else { |
| 9655 | goto handle_unusual; |
| 9656 | } |
| 9657 | break; |
| 9658 | } |
| 9659 | |
| 9660 | // .dmi.Status status = 3; |
| 9661 | case 3: { |
| 9662 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 9663 | int value = 0; |
| 9664 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9665 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9666 | input, &value))); |
| 9667 | set_status(static_cast< ::dmi::Status >(value)); |
| 9668 | } else { |
| 9669 | goto handle_unusual; |
| 9670 | } |
| 9671 | break; |
| 9672 | } |
| 9673 | |
| 9674 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9675 | case 4: { |
| 9676 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 9677 | int value = 0; |
| 9678 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9679 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9680 | input, &value))); |
| 9681 | set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value)); |
| 9682 | } else { |
| 9683 | goto handle_unusual; |
| 9684 | } |
| 9685 | break; |
| 9686 | } |
| 9687 | |
| 9688 | // string reason_detail = 5; |
| 9689 | case 5: { |
| 9690 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 9691 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9692 | input, this->mutable_reason_detail())); |
| 9693 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9694 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9695 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9696 | "dmi.GetLogLevelResponse.reason_detail")); |
| 9697 | } else { |
| 9698 | goto handle_unusual; |
| 9699 | } |
| 9700 | break; |
| 9701 | } |
| 9702 | |
| 9703 | default: { |
| 9704 | handle_unusual: |
| 9705 | if (tag == 0) { |
| 9706 | goto success; |
| 9707 | } |
| 9708 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9709 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9710 | break; |
| 9711 | } |
| 9712 | } |
| 9713 | } |
| 9714 | success: |
| 9715 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse) |
| 9716 | return true; |
| 9717 | failure: |
| 9718 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse) |
| 9719 | return false; |
| 9720 | #undef DO_ |
| 9721 | } |
| 9722 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9723 | |
| 9724 | void GetLogLevelResponse::SerializeWithCachedSizes( |
| 9725 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9726 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse) |
| 9727 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9728 | (void) cached_has_bits; |
| 9729 | |
| 9730 | // .dmi.Uuid device_uuid = 1; |
| 9731 | if (this->has_device_uuid()) { |
| 9732 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9733 | 1, HasBitSetters::device_uuid(this), output); |
| 9734 | } |
| 9735 | |
| 9736 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9737 | for (unsigned int i = 0, |
| 9738 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9739 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9740 | 2, |
| 9741 | this->loglevels(static_cast<int>(i)), |
| 9742 | output); |
| 9743 | } |
| 9744 | |
| 9745 | // .dmi.Status status = 3; |
| 9746 | if (this->status() != 0) { |
| 9747 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9748 | 3, this->status(), output); |
| 9749 | } |
| 9750 | |
| 9751 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9752 | if (this->reason() != 0) { |
| 9753 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9754 | 4, this->reason(), output); |
| 9755 | } |
| 9756 | |
| 9757 | // string reason_detail = 5; |
| 9758 | if (this->reason_detail().size() > 0) { |
| 9759 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9760 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9761 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9762 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9763 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9764 | 5, this->reason_detail(), output); |
| 9765 | } |
| 9766 | |
| 9767 | if (_internal_metadata_.have_unknown_fields()) { |
| 9768 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9769 | _internal_metadata_.unknown_fields(), output); |
| 9770 | } |
| 9771 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse) |
| 9772 | } |
| 9773 | |
| 9774 | ::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 9775 | ::google::protobuf::uint8* target) const { |
| 9776 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse) |
| 9777 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9778 | (void) cached_has_bits; |
| 9779 | |
| 9780 | // .dmi.Uuid device_uuid = 1; |
| 9781 | if (this->has_device_uuid()) { |
| 9782 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9783 | InternalWriteMessageToArray( |
| 9784 | 1, HasBitSetters::device_uuid(this), target); |
| 9785 | } |
| 9786 | |
| 9787 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9788 | for (unsigned int i = 0, |
| 9789 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9790 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9791 | InternalWriteMessageToArray( |
| 9792 | 2, this->loglevels(static_cast<int>(i)), target); |
| 9793 | } |
| 9794 | |
| 9795 | // .dmi.Status status = 3; |
| 9796 | if (this->status() != 0) { |
| 9797 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9798 | 3, this->status(), target); |
| 9799 | } |
| 9800 | |
| 9801 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9802 | if (this->reason() != 0) { |
| 9803 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9804 | 4, this->reason(), target); |
| 9805 | } |
| 9806 | |
| 9807 | // string reason_detail = 5; |
| 9808 | if (this->reason_detail().size() > 0) { |
| 9809 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9810 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9811 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9812 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9813 | target = |
| 9814 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9815 | 5, this->reason_detail(), target); |
| 9816 | } |
| 9817 | |
| 9818 | if (_internal_metadata_.have_unknown_fields()) { |
| 9819 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9820 | _internal_metadata_.unknown_fields(), target); |
| 9821 | } |
| 9822 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse) |
| 9823 | return target; |
| 9824 | } |
| 9825 | |
| 9826 | size_t GetLogLevelResponse::ByteSizeLong() const { |
| 9827 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse) |
| 9828 | size_t total_size = 0; |
| 9829 | |
| 9830 | if (_internal_metadata_.have_unknown_fields()) { |
| 9831 | total_size += |
| 9832 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9833 | _internal_metadata_.unknown_fields()); |
| 9834 | } |
| 9835 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9836 | // Prevent compiler warnings about cached_has_bits being unused |
| 9837 | (void) cached_has_bits; |
| 9838 | |
| 9839 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9840 | { |
| 9841 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 9842 | total_size += 1UL * count; |
| 9843 | for (unsigned int i = 0; i < count; i++) { |
| 9844 | total_size += |
| 9845 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9846 | this->loglevels(static_cast<int>(i))); |
| 9847 | } |
| 9848 | } |
| 9849 | |
| 9850 | // string reason_detail = 5; |
| 9851 | if (this->reason_detail().size() > 0) { |
| 9852 | total_size += 1 + |
| 9853 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9854 | this->reason_detail()); |
| 9855 | } |
| 9856 | |
| 9857 | // .dmi.Uuid device_uuid = 1; |
| 9858 | if (this->has_device_uuid()) { |
| 9859 | total_size += 1 + |
| 9860 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9861 | *device_uuid_); |
| 9862 | } |
| 9863 | |
| 9864 | // .dmi.Status status = 3; |
| 9865 | if (this->status() != 0) { |
| 9866 | total_size += 1 + |
| 9867 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 9868 | } |
| 9869 | |
| 9870 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9871 | if (this->reason() != 0) { |
| 9872 | total_size += 1 + |
| 9873 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 9874 | } |
| 9875 | |
| 9876 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9877 | SetCachedSize(cached_size); |
| 9878 | return total_size; |
| 9879 | } |
| 9880 | |
| 9881 | void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 9882 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse) |
| 9883 | GOOGLE_DCHECK_NE(&from, this); |
| 9884 | const GetLogLevelResponse* source = |
| 9885 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>( |
| 9886 | &from); |
| 9887 | if (source == nullptr) { |
| 9888 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse) |
| 9889 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9890 | } else { |
| 9891 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse) |
| 9892 | MergeFrom(*source); |
| 9893 | } |
| 9894 | } |
| 9895 | |
| 9896 | void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) { |
| 9897 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse) |
| 9898 | GOOGLE_DCHECK_NE(&from, this); |
| 9899 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9900 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9901 | (void) cached_has_bits; |
| 9902 | |
| 9903 | loglevels_.MergeFrom(from.loglevels_); |
| 9904 | if (from.reason_detail().size() > 0) { |
| 9905 | |
| 9906 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9907 | } |
| 9908 | if (from.has_device_uuid()) { |
| 9909 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9910 | } |
| 9911 | if (from.status() != 0) { |
| 9912 | set_status(from.status()); |
| 9913 | } |
| 9914 | if (from.reason() != 0) { |
| 9915 | set_reason(from.reason()); |
| 9916 | } |
| 9917 | } |
| 9918 | |
| 9919 | void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9920 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse) |
| 9921 | if (&from == this) return; |
| 9922 | Clear(); |
| 9923 | MergeFrom(from); |
| 9924 | } |
| 9925 | |
| 9926 | void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) { |
| 9927 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse) |
| 9928 | if (&from == this) return; |
| 9929 | Clear(); |
| 9930 | MergeFrom(from); |
| 9931 | } |
| 9932 | |
| 9933 | bool GetLogLevelResponse::IsInitialized() const { |
| 9934 | return true; |
| 9935 | } |
| 9936 | |
| 9937 | void GetLogLevelResponse::Swap(GetLogLevelResponse* other) { |
| 9938 | if (other == this) return; |
| 9939 | InternalSwap(other); |
| 9940 | } |
| 9941 | void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) { |
| 9942 | using std::swap; |
| 9943 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9944 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 9945 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9946 | GetArenaNoVirtual()); |
| 9947 | swap(device_uuid_, other->device_uuid_); |
| 9948 | swap(status_, other->status_); |
| 9949 | swap(reason_, other->reason_); |
| 9950 | } |
| 9951 | |
| 9952 | ::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const { |
| 9953 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9954 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9955 | } |
| 9956 | |
| 9957 | |
| 9958 | // =================================================================== |
| 9959 | |
| 9960 | void GetLoggableEntitiesRequest::InitAsDefaultInstance() { |
| 9961 | ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9962 | ::dmi::Uuid::internal_default_instance()); |
| 9963 | } |
| 9964 | class GetLoggableEntitiesRequest::HasBitSetters { |
| 9965 | public: |
| 9966 | static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg); |
| 9967 | }; |
| 9968 | |
| 9969 | const ::dmi::Uuid& |
| 9970 | GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) { |
| 9971 | return *msg->device_uuid_; |
| 9972 | } |
| 9973 | void GetLoggableEntitiesRequest::clear_device_uuid() { |
| 9974 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9975 | delete device_uuid_; |
| 9976 | } |
| 9977 | device_uuid_ = nullptr; |
| 9978 | } |
| 9979 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9980 | const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber; |
| 9981 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9982 | |
| 9983 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest() |
| 9984 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9985 | SharedCtor(); |
| 9986 | // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest) |
| 9987 | } |
| 9988 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from) |
| 9989 | : ::google::protobuf::Message(), |
| 9990 | _internal_metadata_(nullptr) { |
| 9991 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9992 | if (from.has_device_uuid()) { |
| 9993 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9994 | } else { |
| 9995 | device_uuid_ = nullptr; |
| 9996 | } |
| 9997 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest) |
| 9998 | } |
| 9999 | |
| 10000 | void GetLoggableEntitiesRequest::SharedCtor() { |
| 10001 | ::google::protobuf::internal::InitSCC( |
| 10002 | &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10003 | device_uuid_ = nullptr; |
| 10004 | } |
| 10005 | |
| 10006 | GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() { |
| 10007 | // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest) |
| 10008 | SharedDtor(); |
| 10009 | } |
| 10010 | |
| 10011 | void GetLoggableEntitiesRequest::SharedDtor() { |
| 10012 | if (this != internal_default_instance()) delete device_uuid_; |
| 10013 | } |
| 10014 | |
| 10015 | void GetLoggableEntitiesRequest::SetCachedSize(int size) const { |
| 10016 | _cached_size_.Set(size); |
| 10017 | } |
| 10018 | const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() { |
| 10019 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10020 | return *internal_default_instance(); |
| 10021 | } |
| 10022 | |
| 10023 | |
| 10024 | void GetLoggableEntitiesRequest::Clear() { |
| 10025 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest) |
| 10026 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10027 | // Prevent compiler warnings about cached_has_bits being unused |
| 10028 | (void) cached_has_bits; |
| 10029 | |
| 10030 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10031 | delete device_uuid_; |
| 10032 | } |
| 10033 | device_uuid_ = nullptr; |
| 10034 | _internal_metadata_.Clear(); |
| 10035 | } |
| 10036 | |
| 10037 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10038 | const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10039 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10040 | auto msg = static_cast<GetLoggableEntitiesRequest*>(object); |
| 10041 | ::google::protobuf::int32 size; (void)size; |
| 10042 | int depth; (void)depth; |
| 10043 | ::google::protobuf::uint32 tag; |
| 10044 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10045 | auto ptr = begin; |
| 10046 | while (ptr < end) { |
| 10047 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10048 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10049 | switch (tag >> 3) { |
| 10050 | // .dmi.Uuid device_uuid = 1; |
| 10051 | case 1: { |
| 10052 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10053 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10054 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10055 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10056 | object = msg->mutable_device_uuid(); |
| 10057 | if (size > end - ptr) goto len_delim_till_end; |
| 10058 | ptr += size; |
| 10059 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10060 | {parser_till_end, object}, ptr - size, ptr)); |
| 10061 | break; |
| 10062 | } |
| 10063 | default: { |
| 10064 | handle_unusual: |
| 10065 | if ((tag & 7) == 4 || tag == 0) { |
| 10066 | ctx->EndGroup(tag); |
| 10067 | return ptr; |
| 10068 | } |
| 10069 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10070 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10071 | ptr = res.first; |
| 10072 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10073 | if (res.second) return ptr; |
| 10074 | } |
| 10075 | } // switch |
| 10076 | } // while |
| 10077 | return ptr; |
| 10078 | len_delim_till_end: |
| 10079 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10080 | {parser_till_end, object}, size); |
| 10081 | } |
| 10082 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10083 | bool GetLoggableEntitiesRequest::MergePartialFromCodedStream( |
| 10084 | ::google::protobuf::io::CodedInputStream* input) { |
| 10085 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10086 | ::google::protobuf::uint32 tag; |
| 10087 | // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest) |
| 10088 | for (;;) { |
| 10089 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10090 | tag = p.first; |
| 10091 | if (!p.second) goto handle_unusual; |
| 10092 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10093 | // .dmi.Uuid device_uuid = 1; |
| 10094 | case 1: { |
| 10095 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10096 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10097 | input, mutable_device_uuid())); |
| 10098 | } else { |
| 10099 | goto handle_unusual; |
| 10100 | } |
| 10101 | break; |
| 10102 | } |
| 10103 | |
| 10104 | default: { |
| 10105 | handle_unusual: |
| 10106 | if (tag == 0) { |
| 10107 | goto success; |
| 10108 | } |
| 10109 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10110 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10111 | break; |
| 10112 | } |
| 10113 | } |
| 10114 | } |
| 10115 | success: |
| 10116 | // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest) |
| 10117 | return true; |
| 10118 | failure: |
| 10119 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest) |
| 10120 | return false; |
| 10121 | #undef DO_ |
| 10122 | } |
| 10123 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10124 | |
| 10125 | void GetLoggableEntitiesRequest::SerializeWithCachedSizes( |
| 10126 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10127 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest) |
| 10128 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10129 | (void) cached_has_bits; |
| 10130 | |
| 10131 | // .dmi.Uuid device_uuid = 1; |
| 10132 | if (this->has_device_uuid()) { |
| 10133 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10134 | 1, HasBitSetters::device_uuid(this), output); |
| 10135 | } |
| 10136 | |
| 10137 | if (_internal_metadata_.have_unknown_fields()) { |
| 10138 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10139 | _internal_metadata_.unknown_fields(), output); |
| 10140 | } |
| 10141 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest) |
| 10142 | } |
| 10143 | |
| 10144 | ::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray( |
| 10145 | ::google::protobuf::uint8* target) const { |
| 10146 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest) |
| 10147 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10148 | (void) cached_has_bits; |
| 10149 | |
| 10150 | // .dmi.Uuid device_uuid = 1; |
| 10151 | if (this->has_device_uuid()) { |
| 10152 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10153 | InternalWriteMessageToArray( |
| 10154 | 1, HasBitSetters::device_uuid(this), target); |
| 10155 | } |
| 10156 | |
| 10157 | if (_internal_metadata_.have_unknown_fields()) { |
| 10158 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10159 | _internal_metadata_.unknown_fields(), target); |
| 10160 | } |
| 10161 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest) |
| 10162 | return target; |
| 10163 | } |
| 10164 | |
| 10165 | size_t GetLoggableEntitiesRequest::ByteSizeLong() const { |
| 10166 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest) |
| 10167 | size_t total_size = 0; |
| 10168 | |
| 10169 | if (_internal_metadata_.have_unknown_fields()) { |
| 10170 | total_size += |
| 10171 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10172 | _internal_metadata_.unknown_fields()); |
| 10173 | } |
| 10174 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10175 | // Prevent compiler warnings about cached_has_bits being unused |
| 10176 | (void) cached_has_bits; |
| 10177 | |
| 10178 | // .dmi.Uuid device_uuid = 1; |
| 10179 | if (this->has_device_uuid()) { |
| 10180 | total_size += 1 + |
| 10181 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10182 | *device_uuid_); |
| 10183 | } |
| 10184 | |
| 10185 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10186 | SetCachedSize(cached_size); |
| 10187 | return total_size; |
| 10188 | } |
| 10189 | |
| 10190 | void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10191 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10192 | GOOGLE_DCHECK_NE(&from, this); |
| 10193 | const GetLoggableEntitiesRequest* source = |
| 10194 | ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>( |
| 10195 | &from); |
| 10196 | if (source == nullptr) { |
| 10197 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest) |
| 10198 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10199 | } else { |
| 10200 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest) |
| 10201 | MergeFrom(*source); |
| 10202 | } |
| 10203 | } |
| 10204 | |
| 10205 | void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) { |
| 10206 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10207 | GOOGLE_DCHECK_NE(&from, this); |
| 10208 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10209 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10210 | (void) cached_has_bits; |
| 10211 | |
| 10212 | if (from.has_device_uuid()) { |
| 10213 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10214 | } |
| 10215 | } |
| 10216 | |
| 10217 | void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10218 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10219 | if (&from == this) return; |
| 10220 | Clear(); |
| 10221 | MergeFrom(from); |
| 10222 | } |
| 10223 | |
| 10224 | void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) { |
| 10225 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10226 | if (&from == this) return; |
| 10227 | Clear(); |
| 10228 | MergeFrom(from); |
| 10229 | } |
| 10230 | |
| 10231 | bool GetLoggableEntitiesRequest::IsInitialized() const { |
| 10232 | return true; |
| 10233 | } |
| 10234 | |
| 10235 | void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) { |
| 10236 | if (other == this) return; |
| 10237 | InternalSwap(other); |
| 10238 | } |
| 10239 | void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) { |
| 10240 | using std::swap; |
| 10241 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10242 | swap(device_uuid_, other->device_uuid_); |
| 10243 | } |
| 10244 | |
| 10245 | ::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const { |
| 10246 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10247 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10248 | } |
| 10249 | |
| 10250 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 10251 | // =================================================================== |
| 10252 | |
| 10253 | void Heartbeat::InitAsDefaultInstance() { |
| 10254 | } |
| 10255 | class Heartbeat::HasBitSetters { |
| 10256 | public: |
| 10257 | }; |
| 10258 | |
| 10259 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10260 | const int Heartbeat::kHeartbeatSignatureFieldNumber; |
| 10261 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10262 | |
| 10263 | Heartbeat::Heartbeat() |
| 10264 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10265 | SharedCtor(); |
| 10266 | // @@protoc_insertion_point(constructor:dmi.Heartbeat) |
| 10267 | } |
| 10268 | Heartbeat::Heartbeat(const Heartbeat& from) |
| 10269 | : ::google::protobuf::Message(), |
| 10270 | _internal_metadata_(nullptr) { |
| 10271 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10272 | heartbeat_signature_ = from.heartbeat_signature_; |
| 10273 | // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat) |
| 10274 | } |
| 10275 | |
| 10276 | void Heartbeat::SharedCtor() { |
| 10277 | heartbeat_signature_ = 0u; |
| 10278 | } |
| 10279 | |
| 10280 | Heartbeat::~Heartbeat() { |
| 10281 | // @@protoc_insertion_point(destructor:dmi.Heartbeat) |
| 10282 | SharedDtor(); |
| 10283 | } |
| 10284 | |
| 10285 | void Heartbeat::SharedDtor() { |
| 10286 | } |
| 10287 | |
| 10288 | void Heartbeat::SetCachedSize(int size) const { |
| 10289 | _cached_size_.Set(size); |
| 10290 | } |
| 10291 | const Heartbeat& Heartbeat::default_instance() { |
| 10292 | ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10293 | return *internal_default_instance(); |
| 10294 | } |
| 10295 | |
| 10296 | |
| 10297 | void Heartbeat::Clear() { |
| 10298 | // @@protoc_insertion_point(message_clear_start:dmi.Heartbeat) |
| 10299 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10300 | // Prevent compiler warnings about cached_has_bits being unused |
| 10301 | (void) cached_has_bits; |
| 10302 | |
| 10303 | heartbeat_signature_ = 0u; |
| 10304 | _internal_metadata_.Clear(); |
| 10305 | } |
| 10306 | |
| 10307 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10308 | const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object, |
| 10309 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10310 | auto msg = static_cast<Heartbeat*>(object); |
| 10311 | ::google::protobuf::int32 size; (void)size; |
| 10312 | int depth; (void)depth; |
| 10313 | ::google::protobuf::uint32 tag; |
| 10314 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10315 | auto ptr = begin; |
| 10316 | while (ptr < end) { |
| 10317 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10318 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10319 | switch (tag >> 3) { |
| 10320 | // fixed32 heartbeat_signature = 1; |
| 10321 | case 1: { |
| 10322 | if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; |
| 10323 | msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr)); |
| 10324 | ptr += sizeof(::google::protobuf::uint32); |
| 10325 | break; |
| 10326 | } |
| 10327 | default: { |
| 10328 | handle_unusual: |
| 10329 | if ((tag & 7) == 4 || tag == 0) { |
| 10330 | ctx->EndGroup(tag); |
| 10331 | return ptr; |
| 10332 | } |
| 10333 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10334 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10335 | ptr = res.first; |
| 10336 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10337 | if (res.second) return ptr; |
| 10338 | } |
| 10339 | } // switch |
| 10340 | } // while |
| 10341 | return ptr; |
| 10342 | } |
| 10343 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10344 | bool Heartbeat::MergePartialFromCodedStream( |
| 10345 | ::google::protobuf::io::CodedInputStream* input) { |
| 10346 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10347 | ::google::protobuf::uint32 tag; |
| 10348 | // @@protoc_insertion_point(parse_start:dmi.Heartbeat) |
| 10349 | for (;;) { |
| 10350 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10351 | tag = p.first; |
| 10352 | if (!p.second) goto handle_unusual; |
| 10353 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10354 | // fixed32 heartbeat_signature = 1; |
| 10355 | case 1: { |
| 10356 | if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { |
| 10357 | |
| 10358 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10359 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
| 10360 | input, &heartbeat_signature_))); |
| 10361 | } else { |
| 10362 | goto handle_unusual; |
| 10363 | } |
| 10364 | break; |
| 10365 | } |
| 10366 | |
| 10367 | default: { |
| 10368 | handle_unusual: |
| 10369 | if (tag == 0) { |
| 10370 | goto success; |
| 10371 | } |
| 10372 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10373 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10374 | break; |
| 10375 | } |
| 10376 | } |
| 10377 | } |
| 10378 | success: |
| 10379 | // @@protoc_insertion_point(parse_success:dmi.Heartbeat) |
| 10380 | return true; |
| 10381 | failure: |
| 10382 | // @@protoc_insertion_point(parse_failure:dmi.Heartbeat) |
| 10383 | return false; |
| 10384 | #undef DO_ |
| 10385 | } |
| 10386 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10387 | |
| 10388 | void Heartbeat::SerializeWithCachedSizes( |
| 10389 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10390 | // @@protoc_insertion_point(serialize_start:dmi.Heartbeat) |
| 10391 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10392 | (void) cached_has_bits; |
| 10393 | |
| 10394 | // fixed32 heartbeat_signature = 1; |
| 10395 | if (this->heartbeat_signature() != 0) { |
| 10396 | ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output); |
| 10397 | } |
| 10398 | |
| 10399 | if (_internal_metadata_.have_unknown_fields()) { |
| 10400 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10401 | _internal_metadata_.unknown_fields(), output); |
| 10402 | } |
| 10403 | // @@protoc_insertion_point(serialize_end:dmi.Heartbeat) |
| 10404 | } |
| 10405 | |
| 10406 | ::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray( |
| 10407 | ::google::protobuf::uint8* target) const { |
| 10408 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat) |
| 10409 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10410 | (void) cached_has_bits; |
| 10411 | |
| 10412 | // fixed32 heartbeat_signature = 1; |
| 10413 | if (this->heartbeat_signature() != 0) { |
| 10414 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target); |
| 10415 | } |
| 10416 | |
| 10417 | if (_internal_metadata_.have_unknown_fields()) { |
| 10418 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10419 | _internal_metadata_.unknown_fields(), target); |
| 10420 | } |
| 10421 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat) |
| 10422 | return target; |
| 10423 | } |
| 10424 | |
| 10425 | size_t Heartbeat::ByteSizeLong() const { |
| 10426 | // @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat) |
| 10427 | size_t total_size = 0; |
| 10428 | |
| 10429 | if (_internal_metadata_.have_unknown_fields()) { |
| 10430 | total_size += |
| 10431 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10432 | _internal_metadata_.unknown_fields()); |
| 10433 | } |
| 10434 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10435 | // Prevent compiler warnings about cached_has_bits being unused |
| 10436 | (void) cached_has_bits; |
| 10437 | |
| 10438 | // fixed32 heartbeat_signature = 1; |
| 10439 | if (this->heartbeat_signature() != 0) { |
| 10440 | total_size += 1 + 4; |
| 10441 | } |
| 10442 | |
| 10443 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10444 | SetCachedSize(cached_size); |
| 10445 | return total_size; |
| 10446 | } |
| 10447 | |
| 10448 | void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) { |
| 10449 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat) |
| 10450 | GOOGLE_DCHECK_NE(&from, this); |
| 10451 | const Heartbeat* source = |
| 10452 | ::google::protobuf::DynamicCastToGenerated<Heartbeat>( |
| 10453 | &from); |
| 10454 | if (source == nullptr) { |
| 10455 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat) |
| 10456 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10457 | } else { |
| 10458 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat) |
| 10459 | MergeFrom(*source); |
| 10460 | } |
| 10461 | } |
| 10462 | |
| 10463 | void Heartbeat::MergeFrom(const Heartbeat& from) { |
| 10464 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat) |
| 10465 | GOOGLE_DCHECK_NE(&from, this); |
| 10466 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10467 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10468 | (void) cached_has_bits; |
| 10469 | |
| 10470 | if (from.heartbeat_signature() != 0) { |
| 10471 | set_heartbeat_signature(from.heartbeat_signature()); |
| 10472 | } |
| 10473 | } |
| 10474 | |
| 10475 | void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) { |
| 10476 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat) |
| 10477 | if (&from == this) return; |
| 10478 | Clear(); |
| 10479 | MergeFrom(from); |
| 10480 | } |
| 10481 | |
| 10482 | void Heartbeat::CopyFrom(const Heartbeat& from) { |
| 10483 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat) |
| 10484 | if (&from == this) return; |
| 10485 | Clear(); |
| 10486 | MergeFrom(from); |
| 10487 | } |
| 10488 | |
| 10489 | bool Heartbeat::IsInitialized() const { |
| 10490 | return true; |
| 10491 | } |
| 10492 | |
| 10493 | void Heartbeat::Swap(Heartbeat* other) { |
| 10494 | if (other == this) return; |
| 10495 | InternalSwap(other); |
| 10496 | } |
| 10497 | void Heartbeat::InternalSwap(Heartbeat* other) { |
| 10498 | using std::swap; |
| 10499 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10500 | swap(heartbeat_signature_, other->heartbeat_signature_); |
| 10501 | } |
| 10502 | |
| 10503 | ::google::protobuf::Metadata Heartbeat::GetMetadata() const { |
| 10504 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10505 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10506 | } |
| 10507 | |
| 10508 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 10509 | // =================================================================== |
| 10510 | |
| 10511 | void RebootDeviceRequest::InitAsDefaultInstance() { |
| 10512 | ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 10513 | ::dmi::Uuid::internal_default_instance()); |
| 10514 | } |
| 10515 | class RebootDeviceRequest::HasBitSetters { |
| 10516 | public: |
| 10517 | static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg); |
| 10518 | }; |
| 10519 | |
| 10520 | const ::dmi::Uuid& |
| 10521 | RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) { |
| 10522 | return *msg->device_uuid_; |
| 10523 | } |
| 10524 | void RebootDeviceRequest::clear_device_uuid() { |
| 10525 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10526 | delete device_uuid_; |
| 10527 | } |
| 10528 | device_uuid_ = nullptr; |
| 10529 | } |
| 10530 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10531 | const int RebootDeviceRequest::kDeviceUuidFieldNumber; |
| 10532 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10533 | |
| 10534 | RebootDeviceRequest::RebootDeviceRequest() |
| 10535 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10536 | SharedCtor(); |
| 10537 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest) |
| 10538 | } |
| 10539 | RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from) |
| 10540 | : ::google::protobuf::Message(), |
| 10541 | _internal_metadata_(nullptr) { |
| 10542 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10543 | if (from.has_device_uuid()) { |
| 10544 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 10545 | } else { |
| 10546 | device_uuid_ = nullptr; |
| 10547 | } |
| 10548 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest) |
| 10549 | } |
| 10550 | |
| 10551 | void RebootDeviceRequest::SharedCtor() { |
| 10552 | ::google::protobuf::internal::InitSCC( |
| 10553 | &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10554 | device_uuid_ = nullptr; |
| 10555 | } |
| 10556 | |
| 10557 | RebootDeviceRequest::~RebootDeviceRequest() { |
| 10558 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest) |
| 10559 | SharedDtor(); |
| 10560 | } |
| 10561 | |
| 10562 | void RebootDeviceRequest::SharedDtor() { |
| 10563 | if (this != internal_default_instance()) delete device_uuid_; |
| 10564 | } |
| 10565 | |
| 10566 | void RebootDeviceRequest::SetCachedSize(int size) const { |
| 10567 | _cached_size_.Set(size); |
| 10568 | } |
| 10569 | const RebootDeviceRequest& RebootDeviceRequest::default_instance() { |
| 10570 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10571 | return *internal_default_instance(); |
| 10572 | } |
| 10573 | |
| 10574 | |
| 10575 | void RebootDeviceRequest::Clear() { |
| 10576 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest) |
| 10577 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10578 | // Prevent compiler warnings about cached_has_bits being unused |
| 10579 | (void) cached_has_bits; |
| 10580 | |
| 10581 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10582 | delete device_uuid_; |
| 10583 | } |
| 10584 | device_uuid_ = nullptr; |
| 10585 | _internal_metadata_.Clear(); |
| 10586 | } |
| 10587 | |
| 10588 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10589 | const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10590 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10591 | auto msg = static_cast<RebootDeviceRequest*>(object); |
| 10592 | ::google::protobuf::int32 size; (void)size; |
| 10593 | int depth; (void)depth; |
| 10594 | ::google::protobuf::uint32 tag; |
| 10595 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10596 | auto ptr = begin; |
| 10597 | while (ptr < end) { |
| 10598 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10599 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10600 | switch (tag >> 3) { |
| 10601 | // .dmi.Uuid device_uuid = 1; |
| 10602 | case 1: { |
| 10603 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10604 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10605 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10606 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10607 | object = msg->mutable_device_uuid(); |
| 10608 | if (size > end - ptr) goto len_delim_till_end; |
| 10609 | ptr += size; |
| 10610 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10611 | {parser_till_end, object}, ptr - size, ptr)); |
| 10612 | break; |
| 10613 | } |
| 10614 | default: { |
| 10615 | handle_unusual: |
| 10616 | if ((tag & 7) == 4 || tag == 0) { |
| 10617 | ctx->EndGroup(tag); |
| 10618 | return ptr; |
| 10619 | } |
| 10620 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10621 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10622 | ptr = res.first; |
| 10623 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10624 | if (res.second) return ptr; |
| 10625 | } |
| 10626 | } // switch |
| 10627 | } // while |
| 10628 | return ptr; |
| 10629 | len_delim_till_end: |
| 10630 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10631 | {parser_till_end, object}, size); |
| 10632 | } |
| 10633 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10634 | bool RebootDeviceRequest::MergePartialFromCodedStream( |
| 10635 | ::google::protobuf::io::CodedInputStream* input) { |
| 10636 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10637 | ::google::protobuf::uint32 tag; |
| 10638 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest) |
| 10639 | for (;;) { |
| 10640 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10641 | tag = p.first; |
| 10642 | if (!p.second) goto handle_unusual; |
| 10643 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10644 | // .dmi.Uuid device_uuid = 1; |
| 10645 | case 1: { |
| 10646 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10647 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10648 | input, mutable_device_uuid())); |
| 10649 | } else { |
| 10650 | goto handle_unusual; |
| 10651 | } |
| 10652 | break; |
| 10653 | } |
| 10654 | |
| 10655 | default: { |
| 10656 | handle_unusual: |
| 10657 | if (tag == 0) { |
| 10658 | goto success; |
| 10659 | } |
| 10660 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10661 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10662 | break; |
| 10663 | } |
| 10664 | } |
| 10665 | } |
| 10666 | success: |
| 10667 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest) |
| 10668 | return true; |
| 10669 | failure: |
| 10670 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest) |
| 10671 | return false; |
| 10672 | #undef DO_ |
| 10673 | } |
| 10674 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10675 | |
| 10676 | void RebootDeviceRequest::SerializeWithCachedSizes( |
| 10677 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10678 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest) |
| 10679 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10680 | (void) cached_has_bits; |
| 10681 | |
| 10682 | // .dmi.Uuid device_uuid = 1; |
| 10683 | if (this->has_device_uuid()) { |
| 10684 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10685 | 1, HasBitSetters::device_uuid(this), output); |
| 10686 | } |
| 10687 | |
| 10688 | if (_internal_metadata_.have_unknown_fields()) { |
| 10689 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10690 | _internal_metadata_.unknown_fields(), output); |
| 10691 | } |
| 10692 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest) |
| 10693 | } |
| 10694 | |
| 10695 | ::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 10696 | ::google::protobuf::uint8* target) const { |
| 10697 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest) |
| 10698 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10699 | (void) cached_has_bits; |
| 10700 | |
| 10701 | // .dmi.Uuid device_uuid = 1; |
| 10702 | if (this->has_device_uuid()) { |
| 10703 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10704 | InternalWriteMessageToArray( |
| 10705 | 1, HasBitSetters::device_uuid(this), target); |
| 10706 | } |
| 10707 | |
| 10708 | if (_internal_metadata_.have_unknown_fields()) { |
| 10709 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10710 | _internal_metadata_.unknown_fields(), target); |
| 10711 | } |
| 10712 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest) |
| 10713 | return target; |
| 10714 | } |
| 10715 | |
| 10716 | size_t RebootDeviceRequest::ByteSizeLong() const { |
| 10717 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest) |
| 10718 | size_t total_size = 0; |
| 10719 | |
| 10720 | if (_internal_metadata_.have_unknown_fields()) { |
| 10721 | total_size += |
| 10722 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10723 | _internal_metadata_.unknown_fields()); |
| 10724 | } |
| 10725 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10726 | // Prevent compiler warnings about cached_has_bits being unused |
| 10727 | (void) cached_has_bits; |
| 10728 | |
| 10729 | // .dmi.Uuid device_uuid = 1; |
| 10730 | if (this->has_device_uuid()) { |
| 10731 | total_size += 1 + |
| 10732 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10733 | *device_uuid_); |
| 10734 | } |
| 10735 | |
| 10736 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10737 | SetCachedSize(cached_size); |
| 10738 | return total_size; |
| 10739 | } |
| 10740 | |
| 10741 | void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10742 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest) |
| 10743 | GOOGLE_DCHECK_NE(&from, this); |
| 10744 | const RebootDeviceRequest* source = |
| 10745 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>( |
| 10746 | &from); |
| 10747 | if (source == nullptr) { |
| 10748 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest) |
| 10749 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10750 | } else { |
| 10751 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest) |
| 10752 | MergeFrom(*source); |
| 10753 | } |
| 10754 | } |
| 10755 | |
| 10756 | void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) { |
| 10757 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest) |
| 10758 | GOOGLE_DCHECK_NE(&from, this); |
| 10759 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10760 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10761 | (void) cached_has_bits; |
| 10762 | |
| 10763 | if (from.has_device_uuid()) { |
| 10764 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10765 | } |
| 10766 | } |
| 10767 | |
| 10768 | void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10769 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest) |
| 10770 | if (&from == this) return; |
| 10771 | Clear(); |
| 10772 | MergeFrom(from); |
| 10773 | } |
| 10774 | |
| 10775 | void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) { |
| 10776 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest) |
| 10777 | if (&from == this) return; |
| 10778 | Clear(); |
| 10779 | MergeFrom(from); |
| 10780 | } |
| 10781 | |
| 10782 | bool RebootDeviceRequest::IsInitialized() const { |
| 10783 | return true; |
| 10784 | } |
| 10785 | |
| 10786 | void RebootDeviceRequest::Swap(RebootDeviceRequest* other) { |
| 10787 | if (other == this) return; |
| 10788 | InternalSwap(other); |
| 10789 | } |
| 10790 | void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) { |
| 10791 | using std::swap; |
| 10792 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10793 | swap(device_uuid_, other->device_uuid_); |
| 10794 | } |
| 10795 | |
| 10796 | ::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const { |
| 10797 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10798 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10799 | } |
| 10800 | |
| 10801 | |
| 10802 | // =================================================================== |
| 10803 | |
| 10804 | void RebootDeviceResponse::InitAsDefaultInstance() { |
| 10805 | } |
| 10806 | class RebootDeviceResponse::HasBitSetters { |
| 10807 | public: |
| 10808 | }; |
| 10809 | |
| 10810 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10811 | const int RebootDeviceResponse::kStatusFieldNumber; |
| 10812 | const int RebootDeviceResponse::kReasonFieldNumber; |
| 10813 | const int RebootDeviceResponse::kReasonDetailFieldNumber; |
| 10814 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10815 | |
| 10816 | RebootDeviceResponse::RebootDeviceResponse() |
| 10817 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10818 | SharedCtor(); |
| 10819 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse) |
| 10820 | } |
| 10821 | RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from) |
| 10822 | : ::google::protobuf::Message(), |
| 10823 | _internal_metadata_(nullptr) { |
| 10824 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10825 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10826 | if (from.reason_detail().size() > 0) { |
| 10827 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 10828 | } |
| 10829 | ::memcpy(&status_, &from.status_, |
| 10830 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 10831 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10832 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse) |
| 10833 | } |
| 10834 | |
| 10835 | void RebootDeviceResponse::SharedCtor() { |
| 10836 | ::google::protobuf::internal::InitSCC( |
| 10837 | &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10838 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10839 | ::memset(&status_, 0, static_cast<size_t>( |
| 10840 | reinterpret_cast<char*>(&reason_) - |
| 10841 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10842 | } |
| 10843 | |
| 10844 | RebootDeviceResponse::~RebootDeviceResponse() { |
| 10845 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse) |
| 10846 | SharedDtor(); |
| 10847 | } |
| 10848 | |
| 10849 | void RebootDeviceResponse::SharedDtor() { |
| 10850 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10851 | } |
| 10852 | |
| 10853 | void RebootDeviceResponse::SetCachedSize(int size) const { |
| 10854 | _cached_size_.Set(size); |
| 10855 | } |
| 10856 | const RebootDeviceResponse& RebootDeviceResponse::default_instance() { |
| 10857 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10858 | return *internal_default_instance(); |
| 10859 | } |
| 10860 | |
| 10861 | |
| 10862 | void RebootDeviceResponse::Clear() { |
| 10863 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse) |
| 10864 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10865 | // Prevent compiler warnings about cached_has_bits being unused |
| 10866 | (void) cached_has_bits; |
| 10867 | |
| 10868 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10869 | ::memset(&status_, 0, static_cast<size_t>( |
| 10870 | reinterpret_cast<char*>(&reason_) - |
| 10871 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10872 | _internal_metadata_.Clear(); |
| 10873 | } |
| 10874 | |
| 10875 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10876 | const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 10877 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10878 | auto msg = static_cast<RebootDeviceResponse*>(object); |
| 10879 | ::google::protobuf::int32 size; (void)size; |
| 10880 | int depth; (void)depth; |
| 10881 | ::google::protobuf::uint32 tag; |
| 10882 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10883 | auto ptr = begin; |
| 10884 | while (ptr < end) { |
| 10885 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10886 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10887 | switch (tag >> 3) { |
| 10888 | // .dmi.Status status = 3; |
| 10889 | case 3: { |
| 10890 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 10891 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10892 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 10893 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10894 | break; |
| 10895 | } |
| 10896 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 10897 | case 4: { |
| 10898 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 10899 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10900 | msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val)); |
| 10901 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10902 | break; |
| 10903 | } |
| 10904 | // string reason_detail = 5; |
| 10905 | case 5: { |
| 10906 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 10907 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10908 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10909 | ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail"); |
| 10910 | object = msg->mutable_reason_detail(); |
| 10911 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 10912 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 10913 | goto string_till_end; |
| 10914 | } |
| 10915 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 10916 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 10917 | ptr += size; |
| 10918 | break; |
| 10919 | } |
| 10920 | default: { |
| 10921 | handle_unusual: |
| 10922 | if ((tag & 7) == 4 || tag == 0) { |
| 10923 | ctx->EndGroup(tag); |
| 10924 | return ptr; |
| 10925 | } |
| 10926 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10927 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10928 | ptr = res.first; |
| 10929 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10930 | if (res.second) return ptr; |
| 10931 | } |
| 10932 | } // switch |
| 10933 | } // while |
| 10934 | return ptr; |
| 10935 | string_till_end: |
| 10936 | static_cast<::std::string*>(object)->clear(); |
| 10937 | static_cast<::std::string*>(object)->reserve(size); |
| 10938 | goto len_delim_till_end; |
| 10939 | len_delim_till_end: |
| 10940 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10941 | {parser_till_end, object}, size); |
| 10942 | } |
| 10943 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10944 | bool RebootDeviceResponse::MergePartialFromCodedStream( |
| 10945 | ::google::protobuf::io::CodedInputStream* input) { |
| 10946 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10947 | ::google::protobuf::uint32 tag; |
| 10948 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse) |
| 10949 | for (;;) { |
| 10950 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10951 | tag = p.first; |
| 10952 | if (!p.second) goto handle_unusual; |
| 10953 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10954 | // .dmi.Status status = 3; |
| 10955 | case 3: { |
| 10956 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 10957 | int value = 0; |
| 10958 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10959 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10960 | input, &value))); |
| 10961 | set_status(static_cast< ::dmi::Status >(value)); |
| 10962 | } else { |
| 10963 | goto handle_unusual; |
| 10964 | } |
| 10965 | break; |
| 10966 | } |
| 10967 | |
| 10968 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 10969 | case 4: { |
| 10970 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 10971 | int value = 0; |
| 10972 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10973 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10974 | input, &value))); |
| 10975 | set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value)); |
| 10976 | } else { |
| 10977 | goto handle_unusual; |
| 10978 | } |
| 10979 | break; |
| 10980 | } |
| 10981 | |
| 10982 | // string reason_detail = 5; |
| 10983 | case 5: { |
| 10984 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 10985 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 10986 | input, this->mutable_reason_detail())); |
| 10987 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 10988 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 10989 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 10990 | "dmi.RebootDeviceResponse.reason_detail")); |
| 10991 | } else { |
| 10992 | goto handle_unusual; |
| 10993 | } |
| 10994 | break; |
| 10995 | } |
| 10996 | |
| 10997 | default: { |
| 10998 | handle_unusual: |
| 10999 | if (tag == 0) { |
| 11000 | goto success; |
| 11001 | } |
| 11002 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11003 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 11004 | break; |
| 11005 | } |
| 11006 | } |
| 11007 | } |
| 11008 | success: |
| 11009 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse) |
| 11010 | return true; |
| 11011 | failure: |
| 11012 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse) |
| 11013 | return false; |
| 11014 | #undef DO_ |
| 11015 | } |
| 11016 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11017 | |
| 11018 | void RebootDeviceResponse::SerializeWithCachedSizes( |
| 11019 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11020 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse) |
| 11021 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11022 | (void) cached_has_bits; |
| 11023 | |
| 11024 | // .dmi.Status status = 3; |
| 11025 | if (this->status() != 0) { |
| 11026 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11027 | 3, this->status(), output); |
| 11028 | } |
| 11029 | |
| 11030 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11031 | if (this->reason() != 0) { |
| 11032 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11033 | 4, this->reason(), output); |
| 11034 | } |
| 11035 | |
| 11036 | // string reason_detail = 5; |
| 11037 | if (this->reason_detail().size() > 0) { |
| 11038 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11039 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11040 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11041 | "dmi.RebootDeviceResponse.reason_detail"); |
| 11042 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 11043 | 5, this->reason_detail(), output); |
| 11044 | } |
| 11045 | |
| 11046 | if (_internal_metadata_.have_unknown_fields()) { |
| 11047 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11048 | _internal_metadata_.unknown_fields(), output); |
| 11049 | } |
| 11050 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse) |
| 11051 | } |
| 11052 | |
| 11053 | ::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 11054 | ::google::protobuf::uint8* target) const { |
| 11055 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse) |
| 11056 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11057 | (void) cached_has_bits; |
| 11058 | |
| 11059 | // .dmi.Status status = 3; |
| 11060 | if (this->status() != 0) { |
| 11061 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11062 | 3, this->status(), target); |
| 11063 | } |
| 11064 | |
| 11065 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11066 | if (this->reason() != 0) { |
| 11067 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11068 | 4, this->reason(), target); |
| 11069 | } |
| 11070 | |
| 11071 | // string reason_detail = 5; |
| 11072 | if (this->reason_detail().size() > 0) { |
| 11073 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11074 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11075 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11076 | "dmi.RebootDeviceResponse.reason_detail"); |
| 11077 | target = |
| 11078 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 11079 | 5, this->reason_detail(), target); |
| 11080 | } |
| 11081 | |
| 11082 | if (_internal_metadata_.have_unknown_fields()) { |
| 11083 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11084 | _internal_metadata_.unknown_fields(), target); |
| 11085 | } |
| 11086 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse) |
| 11087 | return target; |
| 11088 | } |
| 11089 | |
| 11090 | size_t RebootDeviceResponse::ByteSizeLong() const { |
| 11091 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse) |
| 11092 | size_t total_size = 0; |
| 11093 | |
| 11094 | if (_internal_metadata_.have_unknown_fields()) { |
| 11095 | total_size += |
| 11096 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11097 | _internal_metadata_.unknown_fields()); |
| 11098 | } |
| 11099 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11100 | // Prevent compiler warnings about cached_has_bits being unused |
| 11101 | (void) cached_has_bits; |
| 11102 | |
| 11103 | // string reason_detail = 5; |
| 11104 | if (this->reason_detail().size() > 0) { |
| 11105 | total_size += 1 + |
| 11106 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 11107 | this->reason_detail()); |
| 11108 | } |
| 11109 | |
| 11110 | // .dmi.Status status = 3; |
| 11111 | if (this->status() != 0) { |
| 11112 | total_size += 1 + |
| 11113 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 11114 | } |
| 11115 | |
| 11116 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11117 | if (this->reason() != 0) { |
| 11118 | total_size += 1 + |
| 11119 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 11120 | } |
| 11121 | |
| 11122 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11123 | SetCachedSize(cached_size); |
| 11124 | return total_size; |
| 11125 | } |
| 11126 | |
| 11127 | void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 11128 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse) |
| 11129 | GOOGLE_DCHECK_NE(&from, this); |
| 11130 | const RebootDeviceResponse* source = |
| 11131 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>( |
| 11132 | &from); |
| 11133 | if (source == nullptr) { |
| 11134 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse) |
| 11135 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11136 | } else { |
| 11137 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse) |
| 11138 | MergeFrom(*source); |
| 11139 | } |
| 11140 | } |
| 11141 | |
| 11142 | void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) { |
| 11143 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse) |
| 11144 | GOOGLE_DCHECK_NE(&from, this); |
| 11145 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11146 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11147 | (void) cached_has_bits; |
| 11148 | |
| 11149 | if (from.reason_detail().size() > 0) { |
| 11150 | |
| 11151 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11152 | } |
| 11153 | if (from.status() != 0) { |
| 11154 | set_status(from.status()); |
| 11155 | } |
| 11156 | if (from.reason() != 0) { |
| 11157 | set_reason(from.reason()); |
| 11158 | } |
| 11159 | } |
| 11160 | |
| 11161 | void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 11162 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse) |
| 11163 | if (&from == this) return; |
| 11164 | Clear(); |
| 11165 | MergeFrom(from); |
| 11166 | } |
| 11167 | |
| 11168 | void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) { |
| 11169 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse) |
| 11170 | if (&from == this) return; |
| 11171 | Clear(); |
| 11172 | MergeFrom(from); |
| 11173 | } |
| 11174 | |
| 11175 | bool RebootDeviceResponse::IsInitialized() const { |
| 11176 | return true; |
| 11177 | } |
| 11178 | |
| 11179 | void RebootDeviceResponse::Swap(RebootDeviceResponse* other) { |
| 11180 | if (other == this) return; |
| 11181 | InternalSwap(other); |
| 11182 | } |
| 11183 | void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) { |
| 11184 | using std::swap; |
| 11185 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11186 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 11187 | GetArenaNoVirtual()); |
| 11188 | swap(status_, other->status_); |
| 11189 | swap(reason_, other->reason_); |
| 11190 | } |
| 11191 | |
| 11192 | ::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const { |
| 11193 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 11194 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 11195 | } |
| 11196 | |
| 11197 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 11198 | // @@protoc_insertion_point(namespace_scope) |
| 11199 | } // namespace dmi |
| 11200 | namespace google { |
| 11201 | namespace protobuf { |
| 11202 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) { |
| 11203 | return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena); |
| 11204 | } |
| 11205 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) { |
| 11206 | return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena); |
| 11207 | } |
| 11208 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) { |
| 11209 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena); |
| 11210 | } |
| 11211 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) { |
| 11212 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena); |
| 11213 | } |
| 11214 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) { |
| 11215 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena); |
| 11216 | } |
| 11217 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) { |
| 11218 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena); |
| 11219 | } |
| 11220 | template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) { |
| 11221 | return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena); |
| 11222 | } |
| 11223 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) { |
| 11224 | return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena); |
| 11225 | } |
| 11226 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) { |
| 11227 | return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena); |
| 11228 | } |
| 11229 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) { |
| 11230 | return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena); |
| 11231 | } |
| 11232 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) { |
| 11233 | return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena); |
| 11234 | } |
| 11235 | template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) { |
| 11236 | return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena); |
| 11237 | } |
| 11238 | template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) { |
| 11239 | return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena); |
| 11240 | } |
| 11241 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) { |
| 11242 | return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena); |
| 11243 | } |
| 11244 | template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) { |
| 11245 | return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena); |
| 11246 | } |
| 11247 | template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) { |
| 11248 | return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena); |
| 11249 | } |
| 11250 | template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) { |
| 11251 | return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena); |
| 11252 | } |
| 11253 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) { |
| 11254 | return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena); |
| 11255 | } |
| 11256 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) { |
| 11257 | return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena); |
| 11258 | } |
| 11259 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) { |
| 11260 | return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena); |
| 11261 | } |
| 11262 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) { |
| 11263 | return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena); |
| 11264 | } |
| 11265 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) { |
| 11266 | return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena); |
| 11267 | } |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 11268 | template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) { |
| 11269 | return Arena::CreateInternal< ::dmi::Heartbeat >(arena); |
| 11270 | } |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 11271 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) { |
| 11272 | return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena); |
| 11273 | } |
| 11274 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) { |
| 11275 | return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena); |
| 11276 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 11277 | } // namespace protobuf |
| 11278 | } // namespace google |
| 11279 | |
| 11280 | // @@protoc_insertion_point(global_scope) |
| 11281 | #include <google/protobuf/port_undef.inc> |