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" |
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame^] | 829 | "ngDeviceRequest\022\014\n\004name\030\001 \001(\t\"\324\001\n\032StopMa" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 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" |
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame^] | 833 | "il\030\003 \001(\t\"J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000" |
| 834 | "\022\022\n\016UNKNOWN_DEVICE\020\001\022\026\n\022DEVICE_UNREACHAB" |
| 835 | "LE\020\002\"[\n\021ManagedDeviceInfo\022&\n\004info\030\001 \001(\0132" |
| 836 | "\030.dmi.ModifiableComponent\022\036\n\013device_uuid" |
| 837 | "\030\002 \001(\0132\t.dmi.Uuid\"\306\001\n\026ManagedDevicesResp" |
| 838 | "onse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0222\n\006rea" |
| 839 | "son\030\002 \001(\0162\".dmi.ManagedDevicesResponse.R" |
| 840 | "eason\022\'\n\007devices\030\003 \003(\0132\026.dmi.ManagedDevi" |
| 841 | "ceInfo\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022" |
| 842 | "\n\016INTERNAL_ERROR\020\001\"o\n\031SetLoggingEndpoint" |
| 843 | "Request\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022" |
| 844 | "\030\n\020logging_endpoint\030\002 \001(\t\022\030\n\020logging_pro" |
| 845 | "tocol\030\003 \001(\t\"\303\002\n\031SetRemoteEndpointRespons" |
| 846 | "e\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reason" |
| 847 | "\030\002 \001(\0162%.dmi.SetRemoteEndpointResponse.R" |
| 848 | "eason\022\025\n\rreason_detail\030\003 \001(\t\"\272\001\n\006Reason\022" |
| 849 | "\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020" |
| 850 | "\001\022\022\n\016INTERNAL_ERROR\020\002\022\032\n\026LOGGING_ENDPOIN" |
| 851 | "T_ERROR\020\003\022#\n\037LOGGING_ENDPOINT_PROTOCOL_E" |
| 852 | "RROR\020\004\022\031\n\025MSGBUS_ENDPOINT_ERROR\020\005\022\026\n\022DEV" |
| 853 | "ICE_UNREACHABLE\020\006\"\234\002\n\032GetLoggingEndpoint" |
| 854 | "Response\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n" |
| 855 | "\006reason\030\002 \001(\0162&.dmi.GetLoggingEndpointRe" |
| 856 | "sponse.Reason\022\030\n\020logging_endpoint\030\003 \001(\t\022" |
| 857 | "\030\n\020logging_protocol\030\004 \001(\t\022\025\n\rreason_deta" |
| 858 | "il\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000" |
| 859 | "\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002" |
| 860 | "\022\026\n\022DEVICE_UNREACHABLE\020\003\"3\n\030SetMsgBusEnd" |
| 861 | "pointRequest\022\027\n\017msgbus_endpoint\030\001 \001(\t\"\353\001" |
| 862 | "\n\031GetMsgBusEndpointResponse\022\033\n\006status\030\001 " |
| 863 | "\001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.G" |
| 864 | "etMsgBusEndpointResponse.Reason\022\027\n\017msgbu" |
| 865 | "s_endpoint\030\003 \001(\t\022\025\n\rreason_detail\030\004 \001(\t\"" |
| 866 | "J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTER" |
| 867 | "NAL_ERROR\020\001\022\026\n\022DEVICE_UNREACHABLE\020\002\"E\n\020E" |
| 868 | "ntitiesLogLevel\022\037\n\010logLevel\030\001 \001(\0162\r.dmi." |
| 869 | "LogLevel\022\020\n\010entities\030\002 \003(\t\"^\n\022SetLogLeve" |
| 870 | "lRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 871 | "\022(\n\tloglevels\030\002 \003(\0132\025.dmi.EntitiesLogLev" |
| 872 | "el\"\222\002\n\023SetLogLevelResponse\022\036\n\013device_uui" |
| 873 | "d\030\001 \001(\0132\t.dmi.Uuid\022\033\n\006status\030\002 \001(\0162\013.dmi" |
| 874 | ".Status\022/\n\006reason\030\003 \001(\0162\037.dmi.SetLogLeve" |
| 875 | "lResponse.Reason\022\025\n\rreason_detail\030\004 \001(\t\"" |
| 876 | "v\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNO" |
| 877 | "WN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNO" |
| 878 | "WN_LOG_ENTITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"" |
| 879 | "F\n\022GetLogLevelRequest\022\036\n\013device_uuid\030\001 \001" |
| 880 | "(\0132\t.dmi.Uuid\022\020\n\010entities\030\002 \003(\t\"\274\002\n\023GetL" |
| 881 | "ogLevelResponse\022\036\n\013device_uuid\030\001 \001(\0132\t.d" |
| 882 | "mi.Uuid\022(\n\tlogLevels\030\002 \003(\0132\025.dmi.Entitie" |
| 883 | "sLogLevel\022\033\n\006status\030\003 \001(\0162\013.dmi.Status\022/" |
| 884 | "\n\006reason\030\004 \001(\0162\037.dmi.GetLogLevelResponse" |
| 885 | ".Reason\022\025\n\rreason_detail\030\005 \001(\t\"v\n\006Reason" |
| 886 | "\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE" |
| 887 | "\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_EN" |
| 888 | "TITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"<\n\032GetLog" |
| 889 | "gableEntitiesRequest\022\036\n\013device_uuid\030\001 \001(" |
| 890 | "\0132\t.dmi.Uuid\"(\n\tHeartbeat\022\033\n\023heartbeat_s" |
| 891 | "ignature\030\001 \001(\007\"5\n\023RebootDeviceRequest\022\036\n" |
| 892 | "\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\"\367\001\n\024Reboot" |
| 893 | "DeviceResponse\022\033\n\006status\030\003 \001(\0162\013.dmi.Sta" |
| 894 | "tus\0220\n\006reason\030\004 \001(\0162 .dmi.RebootDeviceRe" |
| 895 | "sponse.Reason\022\025\n\rreason_detail\030\005 \001(\t\"y\n\006" |
| 896 | "Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_" |
| 897 | "DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_U" |
| 898 | "NREACHABLE\020\003\022\031\n\025DEVICE_IN_WRONG_STATE\020\0042" |
| 899 | "\256\t\n\031NativeHWManagementService\022S\n\023StartMa" |
| 900 | "nagingDevice\022\030.dmi.ModifiableComponent\032 " |
| 901 | ".dmi.StartManagingDeviceResponse0\001\022U\n\022St" |
| 902 | "opManagingDevice\022\036.dmi.StopManagingDevic" |
| 903 | "eRequest\032\037.dmi.StopManagingDeviceRespons" |
| 904 | "e\022H\n\021GetManagedDevices\022\026.google.protobuf" |
| 905 | ".Empty\032\033.dmi.ManagedDevicesResponse\022W\n\024G" |
| 906 | "etPhysicalInventory\022\035.dmi.PhysicalInvent" |
| 907 | "oryRequest\032\036.dmi.PhysicalInventoryRespon" |
| 908 | "se0\001\022W\n\022GetHWComponentInfo\022\036.dmi.HWCompo" |
| 909 | "nentInfoGetRequest\032\037.dmi.HWComponentInfo" |
| 910 | "GetResponse0\001\022U\n\022SetHWComponentInfo\022\036.dm" |
| 911 | "i.HWComponentInfoSetRequest\032\037.dmi.HWComp" |
| 912 | "onentInfoSetResponse\022T\n\022SetLoggingEndpoi" |
| 913 | "nt\022\036.dmi.SetLoggingEndpointRequest\032\036.dmi" |
| 914 | ".SetRemoteEndpointResponse\022F\n\022GetLogging" |
| 915 | "Endpoint\022\017.dmi.HardwareID\032\037.dmi.GetLoggi" |
| 916 | "ngEndpointResponse\022R\n\021SetMsgBusEndpoint\022" |
| 917 | "\035.dmi.SetMsgBusEndpointRequest\032\036.dmi.Set" |
| 918 | "RemoteEndpointResponse\022K\n\021GetMsgBusEndpo" |
| 919 | "int\022\026.google.protobuf.Empty\032\036.dmi.GetMsg" |
| 920 | "BusEndpointResponse\022P\n\023GetLoggableEntiti" |
| 921 | "es\022\037.dmi.GetLoggableEntitiesRequest\032\030.dm" |
| 922 | "i.GetLogLevelResponse\022@\n\013SetLogLevel\022\027.d" |
| 923 | "mi.SetLogLevelRequest\032\030.dmi.SetLogLevelR" |
| 924 | "esponse\022@\n\013GetLogLevel\022\027.dmi.GetLogLevel" |
| 925 | "Request\032\030.dmi.GetLogLevelResponse\0228\n\016Hea" |
| 926 | "rtbeatCheck\022\026.google.protobuf.Empty\032\016.dm" |
| 927 | "i.Heartbeat\022C\n\014RebootDevice\022\030.dmi.Reboot" |
| 928 | "DeviceRequest\032\031.dmi.RebootDeviceResponse" |
| 929 | "B;Z9github.com/opencord/device-managemen" |
| 930 | "t-interface/v3/go/dmib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 931 | ; |
| 932 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 933 | false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| 934 | descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto, |
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame^] | 935 | "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5749, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 936 | }; |
| 937 | |
| 938 | void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 939 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 940 | { |
| 941 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 942 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 943 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
| 944 | }; |
| 945 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3); |
| 946 | } |
| 947 | |
| 948 | // Force running AddDescriptors() at dynamic initialization time. |
| 949 | static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 950 | namespace dmi { |
| 951 | const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() { |
| 952 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 953 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0]; |
| 954 | } |
| 955 | bool PhysicalInventoryResponse_Reason_IsValid(int value) { |
| 956 | switch (value) { |
| 957 | case 0: |
| 958 | case 1: |
| 959 | case 2: |
| 960 | case 3: |
| 961 | return true; |
| 962 | default: |
| 963 | return false; |
| 964 | } |
| 965 | } |
| 966 | |
| 967 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 968 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON; |
| 969 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE; |
| 970 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR; |
| 971 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE; |
| 972 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN; |
| 973 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX; |
| 974 | const int PhysicalInventoryResponse::Reason_ARRAYSIZE; |
| 975 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 976 | const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() { |
| 977 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 978 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1]; |
| 979 | } |
| 980 | bool HWComponentInfoGetResponse_Reason_IsValid(int value) { |
| 981 | switch (value) { |
| 982 | case 0: |
| 983 | case 1: |
| 984 | case 2: |
| 985 | case 3: |
| 986 | case 4: |
| 987 | return true; |
| 988 | default: |
| 989 | return false; |
| 990 | } |
| 991 | } |
| 992 | |
| 993 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 994 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON; |
| 995 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE; |
| 996 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT; |
| 997 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR; |
| 998 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE; |
| 999 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN; |
| 1000 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX; |
| 1001 | const int HWComponentInfoGetResponse::Reason_ARRAYSIZE; |
| 1002 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1003 | const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() { |
| 1004 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1005 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2]; |
| 1006 | } |
| 1007 | bool HWComponentInfoSetResponse_Reason_IsValid(int value) { |
| 1008 | switch (value) { |
| 1009 | case 0: |
| 1010 | case 1: |
| 1011 | case 2: |
| 1012 | case 3: |
| 1013 | case 4: |
| 1014 | case 5: |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1015 | case 6: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1016 | return true; |
| 1017 | default: |
| 1018 | return false; |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1023 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON; |
| 1024 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE; |
| 1025 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT; |
| 1026 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS; |
| 1027 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR; |
| 1028 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1029 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::SET_UNSUPPORTED; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1030 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN; |
| 1031 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX; |
| 1032 | const int HWComponentInfoSetResponse::Reason_ARRAYSIZE; |
| 1033 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1034 | const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() { |
| 1035 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1036 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3]; |
| 1037 | } |
| 1038 | bool StartManagingDeviceResponse_Reason_IsValid(int value) { |
| 1039 | switch (value) { |
| 1040 | case 0: |
| 1041 | case 1: |
| 1042 | case 2: |
| 1043 | case 3: |
| 1044 | case 4: |
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1045 | case 5: |
| 1046 | case 6: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1047 | return true; |
| 1048 | default: |
| 1049 | return false; |
| 1050 | } |
| 1051 | } |
| 1052 | |
| 1053 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1054 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON; |
| 1055 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED; |
| 1056 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 1057 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS; |
| 1058 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR; |
amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1059 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE; |
| 1060 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1061 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN; |
| 1062 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX; |
| 1063 | const int StartManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1064 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1065 | const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() { |
| 1066 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1067 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4]; |
| 1068 | } |
| 1069 | bool StopManagingDeviceResponse_Reason_IsValid(int value) { |
| 1070 | switch (value) { |
| 1071 | case 0: |
| 1072 | case 1: |
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame^] | 1073 | case 2: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1074 | return true; |
| 1075 | default: |
| 1076 | return false; |
| 1077 | } |
| 1078 | } |
| 1079 | |
| 1080 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1081 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON; |
| 1082 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE; |
amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame^] | 1083 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::DEVICE_UNREACHABLE; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1084 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN; |
| 1085 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX; |
| 1086 | const int StopManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1087 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1088 | const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() { |
| 1089 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1090 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5]; |
| 1091 | } |
| 1092 | bool ManagedDevicesResponse_Reason_IsValid(int value) { |
| 1093 | switch (value) { |
| 1094 | case 0: |
| 1095 | case 1: |
| 1096 | return true; |
| 1097 | default: |
| 1098 | return false; |
| 1099 | } |
| 1100 | } |
| 1101 | |
| 1102 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1103 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON; |
| 1104 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR; |
| 1105 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN; |
| 1106 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX; |
| 1107 | const int ManagedDevicesResponse::Reason_ARRAYSIZE; |
| 1108 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1109 | const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() { |
| 1110 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1111 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6]; |
| 1112 | } |
| 1113 | bool SetRemoteEndpointResponse_Reason_IsValid(int value) { |
| 1114 | switch (value) { |
| 1115 | case 0: |
| 1116 | case 1: |
| 1117 | case 2: |
| 1118 | case 3: |
| 1119 | case 4: |
| 1120 | case 5: |
| 1121 | case 6: |
| 1122 | return true; |
| 1123 | default: |
| 1124 | return false; |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1129 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON; |
| 1130 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE; |
| 1131 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR; |
| 1132 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR; |
| 1133 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR; |
| 1134 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR; |
| 1135 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE; |
| 1136 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN; |
| 1137 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX; |
| 1138 | const int SetRemoteEndpointResponse::Reason_ARRAYSIZE; |
| 1139 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1140 | const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() { |
| 1141 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1142 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7]; |
| 1143 | } |
| 1144 | bool GetLoggingEndpointResponse_Reason_IsValid(int value) { |
| 1145 | switch (value) { |
| 1146 | case 0: |
| 1147 | case 1: |
| 1148 | case 2: |
| 1149 | case 3: |
| 1150 | return true; |
| 1151 | default: |
| 1152 | return false; |
| 1153 | } |
| 1154 | } |
| 1155 | |
| 1156 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1157 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON; |
| 1158 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE; |
| 1159 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR; |
| 1160 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE; |
| 1161 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN; |
| 1162 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX; |
| 1163 | const int GetLoggingEndpointResponse::Reason_ARRAYSIZE; |
| 1164 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1165 | const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() { |
| 1166 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1167 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8]; |
| 1168 | } |
| 1169 | bool GetMsgBusEndpointResponse_Reason_IsValid(int value) { |
| 1170 | switch (value) { |
| 1171 | case 0: |
| 1172 | case 1: |
| 1173 | case 2: |
| 1174 | return true; |
| 1175 | default: |
| 1176 | return false; |
| 1177 | } |
| 1178 | } |
| 1179 | |
| 1180 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1181 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON; |
| 1182 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR; |
| 1183 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE; |
| 1184 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN; |
| 1185 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX; |
| 1186 | const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE; |
| 1187 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1188 | const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() { |
| 1189 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1190 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9]; |
| 1191 | } |
| 1192 | bool SetLogLevelResponse_Reason_IsValid(int value) { |
| 1193 | switch (value) { |
| 1194 | case 0: |
| 1195 | case 1: |
| 1196 | case 2: |
| 1197 | case 3: |
| 1198 | case 4: |
| 1199 | return true; |
| 1200 | default: |
| 1201 | return false; |
| 1202 | } |
| 1203 | } |
| 1204 | |
| 1205 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1206 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON; |
| 1207 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE; |
| 1208 | const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR; |
| 1209 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1210 | const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1211 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN; |
| 1212 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX; |
| 1213 | const int SetLogLevelResponse::Reason_ARRAYSIZE; |
| 1214 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1215 | const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() { |
| 1216 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1217 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10]; |
| 1218 | } |
| 1219 | bool GetLogLevelResponse_Reason_IsValid(int value) { |
| 1220 | switch (value) { |
| 1221 | case 0: |
| 1222 | case 1: |
| 1223 | case 2: |
| 1224 | case 3: |
| 1225 | case 4: |
| 1226 | return true; |
| 1227 | default: |
| 1228 | return false; |
| 1229 | } |
| 1230 | } |
| 1231 | |
| 1232 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1233 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON; |
| 1234 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE; |
| 1235 | const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR; |
| 1236 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1237 | const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1238 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN; |
| 1239 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX; |
| 1240 | const int GetLogLevelResponse::Reason_ARRAYSIZE; |
| 1241 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1242 | const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() { |
| 1243 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1244 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11]; |
| 1245 | } |
| 1246 | bool RebootDeviceResponse_Reason_IsValid(int value) { |
| 1247 | switch (value) { |
| 1248 | case 0: |
| 1249 | case 1: |
| 1250 | case 2: |
| 1251 | case 3: |
amit.ghosh | 840cb60 | 2022-04-08 16:10:50 +0200 | [diff] [blame] | 1252 | case 4: |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1253 | return true; |
| 1254 | default: |
| 1255 | return false; |
| 1256 | } |
| 1257 | } |
| 1258 | |
| 1259 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1260 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON; |
| 1261 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE; |
| 1262 | const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR; |
| 1263 | const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE; |
amit.ghosh | 840cb60 | 2022-04-08 16:10:50 +0200 | [diff] [blame] | 1264 | const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_IN_WRONG_STATE; |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1265 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN; |
| 1266 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX; |
| 1267 | const int RebootDeviceResponse::Reason_ARRAYSIZE; |
| 1268 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1269 | |
| 1270 | // =================================================================== |
| 1271 | |
| 1272 | void PhysicalInventoryRequest::InitAsDefaultInstance() { |
| 1273 | ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1274 | ::dmi::Uuid::internal_default_instance()); |
| 1275 | } |
| 1276 | class PhysicalInventoryRequest::HasBitSetters { |
| 1277 | public: |
| 1278 | static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg); |
| 1279 | }; |
| 1280 | |
| 1281 | const ::dmi::Uuid& |
| 1282 | PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) { |
| 1283 | return *msg->device_uuid_; |
| 1284 | } |
| 1285 | void PhysicalInventoryRequest::clear_device_uuid() { |
| 1286 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1287 | delete device_uuid_; |
| 1288 | } |
| 1289 | device_uuid_ = nullptr; |
| 1290 | } |
| 1291 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1292 | const int PhysicalInventoryRequest::kDeviceUuidFieldNumber; |
| 1293 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1294 | |
| 1295 | PhysicalInventoryRequest::PhysicalInventoryRequest() |
| 1296 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1297 | SharedCtor(); |
| 1298 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest) |
| 1299 | } |
| 1300 | PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from) |
| 1301 | : ::google::protobuf::Message(), |
| 1302 | _internal_metadata_(nullptr) { |
| 1303 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1304 | if (from.has_device_uuid()) { |
| 1305 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1306 | } else { |
| 1307 | device_uuid_ = nullptr; |
| 1308 | } |
| 1309 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest) |
| 1310 | } |
| 1311 | |
| 1312 | void PhysicalInventoryRequest::SharedCtor() { |
| 1313 | ::google::protobuf::internal::InitSCC( |
| 1314 | &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1315 | device_uuid_ = nullptr; |
| 1316 | } |
| 1317 | |
| 1318 | PhysicalInventoryRequest::~PhysicalInventoryRequest() { |
| 1319 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest) |
| 1320 | SharedDtor(); |
| 1321 | } |
| 1322 | |
| 1323 | void PhysicalInventoryRequest::SharedDtor() { |
| 1324 | if (this != internal_default_instance()) delete device_uuid_; |
| 1325 | } |
| 1326 | |
| 1327 | void PhysicalInventoryRequest::SetCachedSize(int size) const { |
| 1328 | _cached_size_.Set(size); |
| 1329 | } |
| 1330 | const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() { |
| 1331 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1332 | return *internal_default_instance(); |
| 1333 | } |
| 1334 | |
| 1335 | |
| 1336 | void PhysicalInventoryRequest::Clear() { |
| 1337 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest) |
| 1338 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1339 | // Prevent compiler warnings about cached_has_bits being unused |
| 1340 | (void) cached_has_bits; |
| 1341 | |
| 1342 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1343 | delete device_uuid_; |
| 1344 | } |
| 1345 | device_uuid_ = nullptr; |
| 1346 | _internal_metadata_.Clear(); |
| 1347 | } |
| 1348 | |
| 1349 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1350 | const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1351 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1352 | auto msg = static_cast<PhysicalInventoryRequest*>(object); |
| 1353 | ::google::protobuf::int32 size; (void)size; |
| 1354 | int depth; (void)depth; |
| 1355 | ::google::protobuf::uint32 tag; |
| 1356 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1357 | auto ptr = begin; |
| 1358 | while (ptr < end) { |
| 1359 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1360 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1361 | switch (tag >> 3) { |
| 1362 | // .dmi.Uuid device_uuid = 1; |
| 1363 | case 1: { |
| 1364 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1365 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1366 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1367 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1368 | object = msg->mutable_device_uuid(); |
| 1369 | if (size > end - ptr) goto len_delim_till_end; |
| 1370 | ptr += size; |
| 1371 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1372 | {parser_till_end, object}, ptr - size, ptr)); |
| 1373 | break; |
| 1374 | } |
| 1375 | default: { |
| 1376 | handle_unusual: |
| 1377 | if ((tag & 7) == 4 || tag == 0) { |
| 1378 | ctx->EndGroup(tag); |
| 1379 | return ptr; |
| 1380 | } |
| 1381 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1382 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1383 | ptr = res.first; |
| 1384 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1385 | if (res.second) return ptr; |
| 1386 | } |
| 1387 | } // switch |
| 1388 | } // while |
| 1389 | return ptr; |
| 1390 | len_delim_till_end: |
| 1391 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1392 | {parser_till_end, object}, size); |
| 1393 | } |
| 1394 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1395 | bool PhysicalInventoryRequest::MergePartialFromCodedStream( |
| 1396 | ::google::protobuf::io::CodedInputStream* input) { |
| 1397 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1398 | ::google::protobuf::uint32 tag; |
| 1399 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest) |
| 1400 | for (;;) { |
| 1401 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1402 | tag = p.first; |
| 1403 | if (!p.second) goto handle_unusual; |
| 1404 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1405 | // .dmi.Uuid device_uuid = 1; |
| 1406 | case 1: { |
| 1407 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1408 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1409 | input, mutable_device_uuid())); |
| 1410 | } else { |
| 1411 | goto handle_unusual; |
| 1412 | } |
| 1413 | break; |
| 1414 | } |
| 1415 | |
| 1416 | default: { |
| 1417 | handle_unusual: |
| 1418 | if (tag == 0) { |
| 1419 | goto success; |
| 1420 | } |
| 1421 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1422 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1423 | break; |
| 1424 | } |
| 1425 | } |
| 1426 | } |
| 1427 | success: |
| 1428 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest) |
| 1429 | return true; |
| 1430 | failure: |
| 1431 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest) |
| 1432 | return false; |
| 1433 | #undef DO_ |
| 1434 | } |
| 1435 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1436 | |
| 1437 | void PhysicalInventoryRequest::SerializeWithCachedSizes( |
| 1438 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1439 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest) |
| 1440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1441 | (void) cached_has_bits; |
| 1442 | |
| 1443 | // .dmi.Uuid device_uuid = 1; |
| 1444 | if (this->has_device_uuid()) { |
| 1445 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1446 | 1, HasBitSetters::device_uuid(this), output); |
| 1447 | } |
| 1448 | |
| 1449 | if (_internal_metadata_.have_unknown_fields()) { |
| 1450 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1451 | _internal_metadata_.unknown_fields(), output); |
| 1452 | } |
| 1453 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest) |
| 1454 | } |
| 1455 | |
| 1456 | ::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray( |
| 1457 | ::google::protobuf::uint8* target) const { |
| 1458 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest) |
| 1459 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1460 | (void) cached_has_bits; |
| 1461 | |
| 1462 | // .dmi.Uuid device_uuid = 1; |
| 1463 | if (this->has_device_uuid()) { |
| 1464 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1465 | InternalWriteMessageToArray( |
| 1466 | 1, HasBitSetters::device_uuid(this), target); |
| 1467 | } |
| 1468 | |
| 1469 | if (_internal_metadata_.have_unknown_fields()) { |
| 1470 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1471 | _internal_metadata_.unknown_fields(), target); |
| 1472 | } |
| 1473 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest) |
| 1474 | return target; |
| 1475 | } |
| 1476 | |
| 1477 | size_t PhysicalInventoryRequest::ByteSizeLong() const { |
| 1478 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest) |
| 1479 | size_t total_size = 0; |
| 1480 | |
| 1481 | if (_internal_metadata_.have_unknown_fields()) { |
| 1482 | total_size += |
| 1483 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1484 | _internal_metadata_.unknown_fields()); |
| 1485 | } |
| 1486 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1487 | // Prevent compiler warnings about cached_has_bits being unused |
| 1488 | (void) cached_has_bits; |
| 1489 | |
| 1490 | // .dmi.Uuid device_uuid = 1; |
| 1491 | if (this->has_device_uuid()) { |
| 1492 | total_size += 1 + |
| 1493 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1494 | *device_uuid_); |
| 1495 | } |
| 1496 | |
| 1497 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1498 | SetCachedSize(cached_size); |
| 1499 | return total_size; |
| 1500 | } |
| 1501 | |
| 1502 | void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1503 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1504 | GOOGLE_DCHECK_NE(&from, this); |
| 1505 | const PhysicalInventoryRequest* source = |
| 1506 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>( |
| 1507 | &from); |
| 1508 | if (source == nullptr) { |
| 1509 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest) |
| 1510 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1511 | } else { |
| 1512 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest) |
| 1513 | MergeFrom(*source); |
| 1514 | } |
| 1515 | } |
| 1516 | |
| 1517 | void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) { |
| 1518 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1519 | GOOGLE_DCHECK_NE(&from, this); |
| 1520 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1521 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1522 | (void) cached_has_bits; |
| 1523 | |
| 1524 | if (from.has_device_uuid()) { |
| 1525 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1526 | } |
| 1527 | } |
| 1528 | |
| 1529 | void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1530 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1531 | if (&from == this) return; |
| 1532 | Clear(); |
| 1533 | MergeFrom(from); |
| 1534 | } |
| 1535 | |
| 1536 | void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) { |
| 1537 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1538 | if (&from == this) return; |
| 1539 | Clear(); |
| 1540 | MergeFrom(from); |
| 1541 | } |
| 1542 | |
| 1543 | bool PhysicalInventoryRequest::IsInitialized() const { |
| 1544 | return true; |
| 1545 | } |
| 1546 | |
| 1547 | void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) { |
| 1548 | if (other == this) return; |
| 1549 | InternalSwap(other); |
| 1550 | } |
| 1551 | void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) { |
| 1552 | using std::swap; |
| 1553 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1554 | swap(device_uuid_, other->device_uuid_); |
| 1555 | } |
| 1556 | |
| 1557 | ::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const { |
| 1558 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1559 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1560 | } |
| 1561 | |
| 1562 | |
| 1563 | // =================================================================== |
| 1564 | |
| 1565 | void PhysicalInventoryResponse::InitAsDefaultInstance() { |
| 1566 | ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>( |
| 1567 | ::dmi::Hardware::internal_default_instance()); |
| 1568 | } |
| 1569 | class PhysicalInventoryResponse::HasBitSetters { |
| 1570 | public: |
| 1571 | static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg); |
| 1572 | }; |
| 1573 | |
| 1574 | const ::dmi::Hardware& |
| 1575 | PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) { |
| 1576 | return *msg->inventory_; |
| 1577 | } |
| 1578 | void PhysicalInventoryResponse::clear_inventory() { |
| 1579 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1580 | delete inventory_; |
| 1581 | } |
| 1582 | inventory_ = nullptr; |
| 1583 | } |
| 1584 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1585 | const int PhysicalInventoryResponse::kStatusFieldNumber; |
| 1586 | const int PhysicalInventoryResponse::kReasonFieldNumber; |
| 1587 | const int PhysicalInventoryResponse::kInventoryFieldNumber; |
| 1588 | const int PhysicalInventoryResponse::kReasonDetailFieldNumber; |
| 1589 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1590 | |
| 1591 | PhysicalInventoryResponse::PhysicalInventoryResponse() |
| 1592 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1593 | SharedCtor(); |
| 1594 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse) |
| 1595 | } |
| 1596 | PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from) |
| 1597 | : ::google::protobuf::Message(), |
| 1598 | _internal_metadata_(nullptr) { |
| 1599 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1600 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1601 | if (from.reason_detail().size() > 0) { |
| 1602 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1603 | } |
| 1604 | if (from.has_inventory()) { |
| 1605 | inventory_ = new ::dmi::Hardware(*from.inventory_); |
| 1606 | } else { |
| 1607 | inventory_ = nullptr; |
| 1608 | } |
| 1609 | ::memcpy(&status_, &from.status_, |
| 1610 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 1611 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1612 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse) |
| 1613 | } |
| 1614 | |
| 1615 | void PhysicalInventoryResponse::SharedCtor() { |
| 1616 | ::google::protobuf::internal::InitSCC( |
| 1617 | &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1618 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1619 | ::memset(&inventory_, 0, static_cast<size_t>( |
| 1620 | reinterpret_cast<char*>(&reason_) - |
| 1621 | reinterpret_cast<char*>(&inventory_)) + sizeof(reason_)); |
| 1622 | } |
| 1623 | |
| 1624 | PhysicalInventoryResponse::~PhysicalInventoryResponse() { |
| 1625 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse) |
| 1626 | SharedDtor(); |
| 1627 | } |
| 1628 | |
| 1629 | void PhysicalInventoryResponse::SharedDtor() { |
| 1630 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1631 | if (this != internal_default_instance()) delete inventory_; |
| 1632 | } |
| 1633 | |
| 1634 | void PhysicalInventoryResponse::SetCachedSize(int size) const { |
| 1635 | _cached_size_.Set(size); |
| 1636 | } |
| 1637 | const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() { |
| 1638 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1639 | return *internal_default_instance(); |
| 1640 | } |
| 1641 | |
| 1642 | |
| 1643 | void PhysicalInventoryResponse::Clear() { |
| 1644 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse) |
| 1645 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1646 | // Prevent compiler warnings about cached_has_bits being unused |
| 1647 | (void) cached_has_bits; |
| 1648 | |
| 1649 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1650 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1651 | delete inventory_; |
| 1652 | } |
| 1653 | inventory_ = nullptr; |
| 1654 | ::memset(&status_, 0, static_cast<size_t>( |
| 1655 | reinterpret_cast<char*>(&reason_) - |
| 1656 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1657 | _internal_metadata_.Clear(); |
| 1658 | } |
| 1659 | |
| 1660 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1661 | const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 1662 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1663 | auto msg = static_cast<PhysicalInventoryResponse*>(object); |
| 1664 | ::google::protobuf::int32 size; (void)size; |
| 1665 | int depth; (void)depth; |
| 1666 | ::google::protobuf::uint32 tag; |
| 1667 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1668 | auto ptr = begin; |
| 1669 | while (ptr < end) { |
| 1670 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1671 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1672 | switch (tag >> 3) { |
| 1673 | // .dmi.Status status = 1; |
| 1674 | case 1: { |
| 1675 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 1676 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1677 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 1678 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1679 | break; |
| 1680 | } |
| 1681 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1682 | case 2: { |
| 1683 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 1684 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1685 | msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val)); |
| 1686 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1687 | break; |
| 1688 | } |
| 1689 | // .dmi.Hardware inventory = 3; |
| 1690 | case 3: { |
| 1691 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 1692 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1693 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1694 | parser_till_end = ::dmi::Hardware::_InternalParse; |
| 1695 | object = msg->mutable_inventory(); |
| 1696 | if (size > end - ptr) goto len_delim_till_end; |
| 1697 | ptr += size; |
| 1698 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1699 | {parser_till_end, object}, ptr - size, ptr)); |
| 1700 | break; |
| 1701 | } |
| 1702 | // string reason_detail = 4; |
| 1703 | case 4: { |
| 1704 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 1705 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1706 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1707 | ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail"); |
| 1708 | object = msg->mutable_reason_detail(); |
| 1709 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1710 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1711 | goto string_till_end; |
| 1712 | } |
| 1713 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1714 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1715 | ptr += size; |
| 1716 | break; |
| 1717 | } |
| 1718 | default: { |
| 1719 | handle_unusual: |
| 1720 | if ((tag & 7) == 4 || tag == 0) { |
| 1721 | ctx->EndGroup(tag); |
| 1722 | return ptr; |
| 1723 | } |
| 1724 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1725 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1726 | ptr = res.first; |
| 1727 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1728 | if (res.second) return ptr; |
| 1729 | } |
| 1730 | } // switch |
| 1731 | } // while |
| 1732 | return ptr; |
| 1733 | string_till_end: |
| 1734 | static_cast<::std::string*>(object)->clear(); |
| 1735 | static_cast<::std::string*>(object)->reserve(size); |
| 1736 | goto len_delim_till_end; |
| 1737 | len_delim_till_end: |
| 1738 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1739 | {parser_till_end, object}, size); |
| 1740 | } |
| 1741 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1742 | bool PhysicalInventoryResponse::MergePartialFromCodedStream( |
| 1743 | ::google::protobuf::io::CodedInputStream* input) { |
| 1744 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1745 | ::google::protobuf::uint32 tag; |
| 1746 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse) |
| 1747 | for (;;) { |
| 1748 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1749 | tag = p.first; |
| 1750 | if (!p.second) goto handle_unusual; |
| 1751 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1752 | // .dmi.Status status = 1; |
| 1753 | case 1: { |
| 1754 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 1755 | int value = 0; |
| 1756 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1757 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1758 | input, &value))); |
| 1759 | set_status(static_cast< ::dmi::Status >(value)); |
| 1760 | } else { |
| 1761 | goto handle_unusual; |
| 1762 | } |
| 1763 | break; |
| 1764 | } |
| 1765 | |
| 1766 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1767 | case 2: { |
| 1768 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 1769 | int value = 0; |
| 1770 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1771 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1772 | input, &value))); |
| 1773 | set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value)); |
| 1774 | } else { |
| 1775 | goto handle_unusual; |
| 1776 | } |
| 1777 | break; |
| 1778 | } |
| 1779 | |
| 1780 | // .dmi.Hardware inventory = 3; |
| 1781 | case 3: { |
| 1782 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 1783 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1784 | input, mutable_inventory())); |
| 1785 | } else { |
| 1786 | goto handle_unusual; |
| 1787 | } |
| 1788 | break; |
| 1789 | } |
| 1790 | |
| 1791 | // string reason_detail = 4; |
| 1792 | case 4: { |
| 1793 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 1794 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1795 | input, this->mutable_reason_detail())); |
| 1796 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1797 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1798 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1799 | "dmi.PhysicalInventoryResponse.reason_detail")); |
| 1800 | } else { |
| 1801 | goto handle_unusual; |
| 1802 | } |
| 1803 | break; |
| 1804 | } |
| 1805 | |
| 1806 | default: { |
| 1807 | handle_unusual: |
| 1808 | if (tag == 0) { |
| 1809 | goto success; |
| 1810 | } |
| 1811 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1812 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1813 | break; |
| 1814 | } |
| 1815 | } |
| 1816 | } |
| 1817 | success: |
| 1818 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse) |
| 1819 | return true; |
| 1820 | failure: |
| 1821 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse) |
| 1822 | return false; |
| 1823 | #undef DO_ |
| 1824 | } |
| 1825 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1826 | |
| 1827 | void PhysicalInventoryResponse::SerializeWithCachedSizes( |
| 1828 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1829 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse) |
| 1830 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1831 | (void) cached_has_bits; |
| 1832 | |
| 1833 | // .dmi.Status status = 1; |
| 1834 | if (this->status() != 0) { |
| 1835 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1836 | 1, this->status(), output); |
| 1837 | } |
| 1838 | |
| 1839 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1840 | if (this->reason() != 0) { |
| 1841 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1842 | 2, this->reason(), output); |
| 1843 | } |
| 1844 | |
| 1845 | // .dmi.Hardware inventory = 3; |
| 1846 | if (this->has_inventory()) { |
| 1847 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1848 | 3, HasBitSetters::inventory(this), output); |
| 1849 | } |
| 1850 | |
| 1851 | // string reason_detail = 4; |
| 1852 | if (this->reason_detail().size() > 0) { |
| 1853 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1854 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1855 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1856 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1857 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1858 | 4, this->reason_detail(), output); |
| 1859 | } |
| 1860 | |
| 1861 | if (_internal_metadata_.have_unknown_fields()) { |
| 1862 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1863 | _internal_metadata_.unknown_fields(), output); |
| 1864 | } |
| 1865 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse) |
| 1866 | } |
| 1867 | |
| 1868 | ::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray( |
| 1869 | ::google::protobuf::uint8* target) const { |
| 1870 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse) |
| 1871 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1872 | (void) cached_has_bits; |
| 1873 | |
| 1874 | // .dmi.Status status = 1; |
| 1875 | if (this->status() != 0) { |
| 1876 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1877 | 1, this->status(), target); |
| 1878 | } |
| 1879 | |
| 1880 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1881 | if (this->reason() != 0) { |
| 1882 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1883 | 2, this->reason(), target); |
| 1884 | } |
| 1885 | |
| 1886 | // .dmi.Hardware inventory = 3; |
| 1887 | if (this->has_inventory()) { |
| 1888 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1889 | InternalWriteMessageToArray( |
| 1890 | 3, HasBitSetters::inventory(this), target); |
| 1891 | } |
| 1892 | |
| 1893 | // string reason_detail = 4; |
| 1894 | if (this->reason_detail().size() > 0) { |
| 1895 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1896 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1897 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1898 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1899 | target = |
| 1900 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1901 | 4, this->reason_detail(), target); |
| 1902 | } |
| 1903 | |
| 1904 | if (_internal_metadata_.have_unknown_fields()) { |
| 1905 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1906 | _internal_metadata_.unknown_fields(), target); |
| 1907 | } |
| 1908 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse) |
| 1909 | return target; |
| 1910 | } |
| 1911 | |
| 1912 | size_t PhysicalInventoryResponse::ByteSizeLong() const { |
| 1913 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse) |
| 1914 | size_t total_size = 0; |
| 1915 | |
| 1916 | if (_internal_metadata_.have_unknown_fields()) { |
| 1917 | total_size += |
| 1918 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1919 | _internal_metadata_.unknown_fields()); |
| 1920 | } |
| 1921 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1922 | // Prevent compiler warnings about cached_has_bits being unused |
| 1923 | (void) cached_has_bits; |
| 1924 | |
| 1925 | // string reason_detail = 4; |
| 1926 | if (this->reason_detail().size() > 0) { |
| 1927 | total_size += 1 + |
| 1928 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1929 | this->reason_detail()); |
| 1930 | } |
| 1931 | |
| 1932 | // .dmi.Hardware inventory = 3; |
| 1933 | if (this->has_inventory()) { |
| 1934 | total_size += 1 + |
| 1935 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1936 | *inventory_); |
| 1937 | } |
| 1938 | |
| 1939 | // .dmi.Status status = 1; |
| 1940 | if (this->status() != 0) { |
| 1941 | total_size += 1 + |
| 1942 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 1943 | } |
| 1944 | |
| 1945 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1946 | if (this->reason() != 0) { |
| 1947 | total_size += 1 + |
| 1948 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 1949 | } |
| 1950 | |
| 1951 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1952 | SetCachedSize(cached_size); |
| 1953 | return total_size; |
| 1954 | } |
| 1955 | |
| 1956 | void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 1957 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1958 | GOOGLE_DCHECK_NE(&from, this); |
| 1959 | const PhysicalInventoryResponse* source = |
| 1960 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>( |
| 1961 | &from); |
| 1962 | if (source == nullptr) { |
| 1963 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse) |
| 1964 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1965 | } else { |
| 1966 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse) |
| 1967 | MergeFrom(*source); |
| 1968 | } |
| 1969 | } |
| 1970 | |
| 1971 | void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) { |
| 1972 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1973 | GOOGLE_DCHECK_NE(&from, this); |
| 1974 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1975 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1976 | (void) cached_has_bits; |
| 1977 | |
| 1978 | if (from.reason_detail().size() > 0) { |
| 1979 | |
| 1980 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1981 | } |
| 1982 | if (from.has_inventory()) { |
| 1983 | mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory()); |
| 1984 | } |
| 1985 | if (from.status() != 0) { |
| 1986 | set_status(from.status()); |
| 1987 | } |
| 1988 | if (from.reason() != 0) { |
| 1989 | set_reason(from.reason()); |
| 1990 | } |
| 1991 | } |
| 1992 | |
| 1993 | void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 1994 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse) |
| 1995 | if (&from == this) return; |
| 1996 | Clear(); |
| 1997 | MergeFrom(from); |
| 1998 | } |
| 1999 | |
| 2000 | void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) { |
| 2001 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse) |
| 2002 | if (&from == this) return; |
| 2003 | Clear(); |
| 2004 | MergeFrom(from); |
| 2005 | } |
| 2006 | |
| 2007 | bool PhysicalInventoryResponse::IsInitialized() const { |
| 2008 | return true; |
| 2009 | } |
| 2010 | |
| 2011 | void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) { |
| 2012 | if (other == this) return; |
| 2013 | InternalSwap(other); |
| 2014 | } |
| 2015 | void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) { |
| 2016 | using std::swap; |
| 2017 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2018 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2019 | GetArenaNoVirtual()); |
| 2020 | swap(inventory_, other->inventory_); |
| 2021 | swap(status_, other->status_); |
| 2022 | swap(reason_, other->reason_); |
| 2023 | } |
| 2024 | |
| 2025 | ::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const { |
| 2026 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2027 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2028 | } |
| 2029 | |
| 2030 | |
| 2031 | // =================================================================== |
| 2032 | |
| 2033 | void HWComponentInfoGetRequest::InitAsDefaultInstance() { |
| 2034 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2035 | ::dmi::Uuid::internal_default_instance()); |
| 2036 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2037 | ::dmi::Uuid::internal_default_instance()); |
| 2038 | } |
| 2039 | class HWComponentInfoGetRequest::HasBitSetters { |
| 2040 | public: |
| 2041 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg); |
| 2042 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg); |
| 2043 | }; |
| 2044 | |
| 2045 | const ::dmi::Uuid& |
| 2046 | HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) { |
| 2047 | return *msg->device_uuid_; |
| 2048 | } |
| 2049 | const ::dmi::Uuid& |
| 2050 | HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) { |
| 2051 | return *msg->component_uuid_; |
| 2052 | } |
| 2053 | void HWComponentInfoGetRequest::clear_device_uuid() { |
| 2054 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2055 | delete device_uuid_; |
| 2056 | } |
| 2057 | device_uuid_ = nullptr; |
| 2058 | } |
| 2059 | void HWComponentInfoGetRequest::clear_component_uuid() { |
| 2060 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2061 | delete component_uuid_; |
| 2062 | } |
| 2063 | component_uuid_ = nullptr; |
| 2064 | } |
| 2065 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2066 | const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber; |
| 2067 | const int HWComponentInfoGetRequest::kComponentUuidFieldNumber; |
| 2068 | const int HWComponentInfoGetRequest::kComponentNameFieldNumber; |
| 2069 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2070 | |
| 2071 | HWComponentInfoGetRequest::HWComponentInfoGetRequest() |
| 2072 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2073 | SharedCtor(); |
| 2074 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest) |
| 2075 | } |
| 2076 | HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from) |
| 2077 | : ::google::protobuf::Message(), |
| 2078 | _internal_metadata_(nullptr) { |
| 2079 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2080 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2081 | if (from.component_name().size() > 0) { |
| 2082 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2083 | } |
| 2084 | if (from.has_device_uuid()) { |
| 2085 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2086 | } else { |
| 2087 | device_uuid_ = nullptr; |
| 2088 | } |
| 2089 | if (from.has_component_uuid()) { |
| 2090 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 2091 | } else { |
| 2092 | component_uuid_ = nullptr; |
| 2093 | } |
| 2094 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest) |
| 2095 | } |
| 2096 | |
| 2097 | void HWComponentInfoGetRequest::SharedCtor() { |
| 2098 | ::google::protobuf::internal::InitSCC( |
| 2099 | &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2100 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2101 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 2102 | reinterpret_cast<char*>(&component_uuid_) - |
| 2103 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 2104 | } |
| 2105 | |
| 2106 | HWComponentInfoGetRequest::~HWComponentInfoGetRequest() { |
| 2107 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest) |
| 2108 | SharedDtor(); |
| 2109 | } |
| 2110 | |
| 2111 | void HWComponentInfoGetRequest::SharedDtor() { |
| 2112 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2113 | if (this != internal_default_instance()) delete device_uuid_; |
| 2114 | if (this != internal_default_instance()) delete component_uuid_; |
| 2115 | } |
| 2116 | |
| 2117 | void HWComponentInfoGetRequest::SetCachedSize(int size) const { |
| 2118 | _cached_size_.Set(size); |
| 2119 | } |
| 2120 | const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() { |
| 2121 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2122 | return *internal_default_instance(); |
| 2123 | } |
| 2124 | |
| 2125 | |
| 2126 | void HWComponentInfoGetRequest::Clear() { |
| 2127 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest) |
| 2128 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2129 | // Prevent compiler warnings about cached_has_bits being unused |
| 2130 | (void) cached_has_bits; |
| 2131 | |
| 2132 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2133 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2134 | delete device_uuid_; |
| 2135 | } |
| 2136 | device_uuid_ = nullptr; |
| 2137 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2138 | delete component_uuid_; |
| 2139 | } |
| 2140 | component_uuid_ = nullptr; |
| 2141 | _internal_metadata_.Clear(); |
| 2142 | } |
| 2143 | |
| 2144 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2145 | const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2146 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2147 | auto msg = static_cast<HWComponentInfoGetRequest*>(object); |
| 2148 | ::google::protobuf::int32 size; (void)size; |
| 2149 | int depth; (void)depth; |
| 2150 | ::google::protobuf::uint32 tag; |
| 2151 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2152 | auto ptr = begin; |
| 2153 | while (ptr < end) { |
| 2154 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2155 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2156 | switch (tag >> 3) { |
| 2157 | // .dmi.Uuid device_uuid = 1; |
| 2158 | case 1: { |
| 2159 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2160 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2161 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2162 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2163 | object = msg->mutable_device_uuid(); |
| 2164 | if (size > end - ptr) goto len_delim_till_end; |
| 2165 | ptr += size; |
| 2166 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2167 | {parser_till_end, object}, ptr - size, ptr)); |
| 2168 | break; |
| 2169 | } |
| 2170 | // .dmi.Uuid component_uuid = 2; |
| 2171 | case 2: { |
| 2172 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 2173 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2174 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2175 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2176 | object = msg->mutable_component_uuid(); |
| 2177 | if (size > end - ptr) goto len_delim_till_end; |
| 2178 | ptr += size; |
| 2179 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2180 | {parser_till_end, object}, ptr - size, ptr)); |
| 2181 | break; |
| 2182 | } |
| 2183 | // string component_name = 3; |
| 2184 | case 3: { |
| 2185 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2186 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2187 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2188 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name"); |
| 2189 | object = msg->mutable_component_name(); |
| 2190 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2191 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2192 | goto string_till_end; |
| 2193 | } |
| 2194 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2195 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2196 | ptr += size; |
| 2197 | break; |
| 2198 | } |
| 2199 | default: { |
| 2200 | handle_unusual: |
| 2201 | if ((tag & 7) == 4 || tag == 0) { |
| 2202 | ctx->EndGroup(tag); |
| 2203 | return ptr; |
| 2204 | } |
| 2205 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2206 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2207 | ptr = res.first; |
| 2208 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2209 | if (res.second) return ptr; |
| 2210 | } |
| 2211 | } // switch |
| 2212 | } // while |
| 2213 | return ptr; |
| 2214 | string_till_end: |
| 2215 | static_cast<::std::string*>(object)->clear(); |
| 2216 | static_cast<::std::string*>(object)->reserve(size); |
| 2217 | goto len_delim_till_end; |
| 2218 | len_delim_till_end: |
| 2219 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2220 | {parser_till_end, object}, size); |
| 2221 | } |
| 2222 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2223 | bool HWComponentInfoGetRequest::MergePartialFromCodedStream( |
| 2224 | ::google::protobuf::io::CodedInputStream* input) { |
| 2225 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2226 | ::google::protobuf::uint32 tag; |
| 2227 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest) |
| 2228 | for (;;) { |
| 2229 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2230 | tag = p.first; |
| 2231 | if (!p.second) goto handle_unusual; |
| 2232 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2233 | // .dmi.Uuid device_uuid = 1; |
| 2234 | case 1: { |
| 2235 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2236 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2237 | input, mutable_device_uuid())); |
| 2238 | } else { |
| 2239 | goto handle_unusual; |
| 2240 | } |
| 2241 | break; |
| 2242 | } |
| 2243 | |
| 2244 | // .dmi.Uuid component_uuid = 2; |
| 2245 | case 2: { |
| 2246 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 2247 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2248 | input, mutable_component_uuid())); |
| 2249 | } else { |
| 2250 | goto handle_unusual; |
| 2251 | } |
| 2252 | break; |
| 2253 | } |
| 2254 | |
| 2255 | // string component_name = 3; |
| 2256 | case 3: { |
| 2257 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2258 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2259 | input, this->mutable_component_name())); |
| 2260 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2261 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2262 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2263 | "dmi.HWComponentInfoGetRequest.component_name")); |
| 2264 | } else { |
| 2265 | goto handle_unusual; |
| 2266 | } |
| 2267 | break; |
| 2268 | } |
| 2269 | |
| 2270 | default: { |
| 2271 | handle_unusual: |
| 2272 | if (tag == 0) { |
| 2273 | goto success; |
| 2274 | } |
| 2275 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2276 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2277 | break; |
| 2278 | } |
| 2279 | } |
| 2280 | } |
| 2281 | success: |
| 2282 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest) |
| 2283 | return true; |
| 2284 | failure: |
| 2285 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest) |
| 2286 | return false; |
| 2287 | #undef DO_ |
| 2288 | } |
| 2289 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2290 | |
| 2291 | void HWComponentInfoGetRequest::SerializeWithCachedSizes( |
| 2292 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2293 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest) |
| 2294 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2295 | (void) cached_has_bits; |
| 2296 | |
| 2297 | // .dmi.Uuid device_uuid = 1; |
| 2298 | if (this->has_device_uuid()) { |
| 2299 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2300 | 1, HasBitSetters::device_uuid(this), output); |
| 2301 | } |
| 2302 | |
| 2303 | // .dmi.Uuid component_uuid = 2; |
| 2304 | if (this->has_component_uuid()) { |
| 2305 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2306 | 2, HasBitSetters::component_uuid(this), output); |
| 2307 | } |
| 2308 | |
| 2309 | // string component_name = 3; |
| 2310 | if (this->component_name().size() > 0) { |
| 2311 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2312 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2313 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2314 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2315 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2316 | 3, this->component_name(), output); |
| 2317 | } |
| 2318 | |
| 2319 | if (_internal_metadata_.have_unknown_fields()) { |
| 2320 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2321 | _internal_metadata_.unknown_fields(), output); |
| 2322 | } |
| 2323 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest) |
| 2324 | } |
| 2325 | |
| 2326 | ::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray( |
| 2327 | ::google::protobuf::uint8* target) const { |
| 2328 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest) |
| 2329 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2330 | (void) cached_has_bits; |
| 2331 | |
| 2332 | // .dmi.Uuid device_uuid = 1; |
| 2333 | if (this->has_device_uuid()) { |
| 2334 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2335 | InternalWriteMessageToArray( |
| 2336 | 1, HasBitSetters::device_uuid(this), target); |
| 2337 | } |
| 2338 | |
| 2339 | // .dmi.Uuid component_uuid = 2; |
| 2340 | if (this->has_component_uuid()) { |
| 2341 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2342 | InternalWriteMessageToArray( |
| 2343 | 2, HasBitSetters::component_uuid(this), target); |
| 2344 | } |
| 2345 | |
| 2346 | // string component_name = 3; |
| 2347 | if (this->component_name().size() > 0) { |
| 2348 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2349 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2350 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2351 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2352 | target = |
| 2353 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2354 | 3, this->component_name(), target); |
| 2355 | } |
| 2356 | |
| 2357 | if (_internal_metadata_.have_unknown_fields()) { |
| 2358 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2359 | _internal_metadata_.unknown_fields(), target); |
| 2360 | } |
| 2361 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest) |
| 2362 | return target; |
| 2363 | } |
| 2364 | |
| 2365 | size_t HWComponentInfoGetRequest::ByteSizeLong() const { |
| 2366 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest) |
| 2367 | size_t total_size = 0; |
| 2368 | |
| 2369 | if (_internal_metadata_.have_unknown_fields()) { |
| 2370 | total_size += |
| 2371 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2372 | _internal_metadata_.unknown_fields()); |
| 2373 | } |
| 2374 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2375 | // Prevent compiler warnings about cached_has_bits being unused |
| 2376 | (void) cached_has_bits; |
| 2377 | |
| 2378 | // string component_name = 3; |
| 2379 | if (this->component_name().size() > 0) { |
| 2380 | total_size += 1 + |
| 2381 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2382 | this->component_name()); |
| 2383 | } |
| 2384 | |
| 2385 | // .dmi.Uuid device_uuid = 1; |
| 2386 | if (this->has_device_uuid()) { |
| 2387 | total_size += 1 + |
| 2388 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2389 | *device_uuid_); |
| 2390 | } |
| 2391 | |
| 2392 | // .dmi.Uuid component_uuid = 2; |
| 2393 | if (this->has_component_uuid()) { |
| 2394 | total_size += 1 + |
| 2395 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2396 | *component_uuid_); |
| 2397 | } |
| 2398 | |
| 2399 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2400 | SetCachedSize(cached_size); |
| 2401 | return total_size; |
| 2402 | } |
| 2403 | |
| 2404 | void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2405 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2406 | GOOGLE_DCHECK_NE(&from, this); |
| 2407 | const HWComponentInfoGetRequest* source = |
| 2408 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>( |
| 2409 | &from); |
| 2410 | if (source == nullptr) { |
| 2411 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest) |
| 2412 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2413 | } else { |
| 2414 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest) |
| 2415 | MergeFrom(*source); |
| 2416 | } |
| 2417 | } |
| 2418 | |
| 2419 | void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) { |
| 2420 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2421 | GOOGLE_DCHECK_NE(&from, this); |
| 2422 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2423 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2424 | (void) cached_has_bits; |
| 2425 | |
| 2426 | if (from.component_name().size() > 0) { |
| 2427 | |
| 2428 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2429 | } |
| 2430 | if (from.has_device_uuid()) { |
| 2431 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2432 | } |
| 2433 | if (from.has_component_uuid()) { |
| 2434 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 2435 | } |
| 2436 | } |
| 2437 | |
| 2438 | void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2439 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2440 | if (&from == this) return; |
| 2441 | Clear(); |
| 2442 | MergeFrom(from); |
| 2443 | } |
| 2444 | |
| 2445 | void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) { |
| 2446 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2447 | if (&from == this) return; |
| 2448 | Clear(); |
| 2449 | MergeFrom(from); |
| 2450 | } |
| 2451 | |
| 2452 | bool HWComponentInfoGetRequest::IsInitialized() const { |
| 2453 | return true; |
| 2454 | } |
| 2455 | |
| 2456 | void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) { |
| 2457 | if (other == this) return; |
| 2458 | InternalSwap(other); |
| 2459 | } |
| 2460 | void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) { |
| 2461 | using std::swap; |
| 2462 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2463 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2464 | GetArenaNoVirtual()); |
| 2465 | swap(device_uuid_, other->device_uuid_); |
| 2466 | swap(component_uuid_, other->component_uuid_); |
| 2467 | } |
| 2468 | |
| 2469 | ::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const { |
| 2470 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2471 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2472 | } |
| 2473 | |
| 2474 | |
| 2475 | // =================================================================== |
| 2476 | |
| 2477 | void HWComponentInfoGetResponse::InitAsDefaultInstance() { |
| 2478 | ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>( |
| 2479 | ::dmi::Component::internal_default_instance()); |
| 2480 | } |
| 2481 | class HWComponentInfoGetResponse::HasBitSetters { |
| 2482 | public: |
| 2483 | static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg); |
| 2484 | }; |
| 2485 | |
| 2486 | const ::dmi::Component& |
| 2487 | HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) { |
| 2488 | return *msg->component_; |
| 2489 | } |
| 2490 | void HWComponentInfoGetResponse::clear_component() { |
| 2491 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2492 | delete component_; |
| 2493 | } |
| 2494 | component_ = nullptr; |
| 2495 | } |
| 2496 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2497 | const int HWComponentInfoGetResponse::kStatusFieldNumber; |
| 2498 | const int HWComponentInfoGetResponse::kReasonFieldNumber; |
| 2499 | const int HWComponentInfoGetResponse::kComponentFieldNumber; |
| 2500 | const int HWComponentInfoGetResponse::kReasonDetailFieldNumber; |
| 2501 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2502 | |
| 2503 | HWComponentInfoGetResponse::HWComponentInfoGetResponse() |
| 2504 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2505 | SharedCtor(); |
| 2506 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse) |
| 2507 | } |
| 2508 | HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from) |
| 2509 | : ::google::protobuf::Message(), |
| 2510 | _internal_metadata_(nullptr) { |
| 2511 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2512 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2513 | if (from.reason_detail().size() > 0) { |
| 2514 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2515 | } |
| 2516 | if (from.has_component()) { |
| 2517 | component_ = new ::dmi::Component(*from.component_); |
| 2518 | } else { |
| 2519 | component_ = nullptr; |
| 2520 | } |
| 2521 | ::memcpy(&status_, &from.status_, |
| 2522 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2523 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2524 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse) |
| 2525 | } |
| 2526 | |
| 2527 | void HWComponentInfoGetResponse::SharedCtor() { |
| 2528 | ::google::protobuf::internal::InitSCC( |
| 2529 | &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2530 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2531 | ::memset(&component_, 0, static_cast<size_t>( |
| 2532 | reinterpret_cast<char*>(&reason_) - |
| 2533 | reinterpret_cast<char*>(&component_)) + sizeof(reason_)); |
| 2534 | } |
| 2535 | |
| 2536 | HWComponentInfoGetResponse::~HWComponentInfoGetResponse() { |
| 2537 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse) |
| 2538 | SharedDtor(); |
| 2539 | } |
| 2540 | |
| 2541 | void HWComponentInfoGetResponse::SharedDtor() { |
| 2542 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2543 | if (this != internal_default_instance()) delete component_; |
| 2544 | } |
| 2545 | |
| 2546 | void HWComponentInfoGetResponse::SetCachedSize(int size) const { |
| 2547 | _cached_size_.Set(size); |
| 2548 | } |
| 2549 | const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() { |
| 2550 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2551 | return *internal_default_instance(); |
| 2552 | } |
| 2553 | |
| 2554 | |
| 2555 | void HWComponentInfoGetResponse::Clear() { |
| 2556 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse) |
| 2557 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2558 | // Prevent compiler warnings about cached_has_bits being unused |
| 2559 | (void) cached_has_bits; |
| 2560 | |
| 2561 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2562 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2563 | delete component_; |
| 2564 | } |
| 2565 | component_ = nullptr; |
| 2566 | ::memset(&status_, 0, static_cast<size_t>( |
| 2567 | reinterpret_cast<char*>(&reason_) - |
| 2568 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2569 | _internal_metadata_.Clear(); |
| 2570 | } |
| 2571 | |
| 2572 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2573 | const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2574 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2575 | auto msg = static_cast<HWComponentInfoGetResponse*>(object); |
| 2576 | ::google::protobuf::int32 size; (void)size; |
| 2577 | int depth; (void)depth; |
| 2578 | ::google::protobuf::uint32 tag; |
| 2579 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2580 | auto ptr = begin; |
| 2581 | while (ptr < end) { |
| 2582 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2583 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2584 | switch (tag >> 3) { |
| 2585 | // .dmi.Status status = 1; |
| 2586 | case 1: { |
| 2587 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2588 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2589 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2590 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2591 | break; |
| 2592 | } |
| 2593 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2594 | case 2: { |
| 2595 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2596 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2597 | msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val)); |
| 2598 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2599 | break; |
| 2600 | } |
| 2601 | // .dmi.Component component = 3; |
| 2602 | case 3: { |
| 2603 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2604 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2605 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2606 | parser_till_end = ::dmi::Component::_InternalParse; |
| 2607 | object = msg->mutable_component(); |
| 2608 | if (size > end - ptr) goto len_delim_till_end; |
| 2609 | ptr += size; |
| 2610 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2611 | {parser_till_end, object}, ptr - size, ptr)); |
| 2612 | break; |
| 2613 | } |
| 2614 | // string reason_detail = 4; |
| 2615 | case 4: { |
| 2616 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2617 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2618 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2619 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2620 | object = msg->mutable_reason_detail(); |
| 2621 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2622 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2623 | goto string_till_end; |
| 2624 | } |
| 2625 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2626 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2627 | ptr += size; |
| 2628 | break; |
| 2629 | } |
| 2630 | default: { |
| 2631 | handle_unusual: |
| 2632 | if ((tag & 7) == 4 || tag == 0) { |
| 2633 | ctx->EndGroup(tag); |
| 2634 | return ptr; |
| 2635 | } |
| 2636 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2637 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2638 | ptr = res.first; |
| 2639 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2640 | if (res.second) return ptr; |
| 2641 | } |
| 2642 | } // switch |
| 2643 | } // while |
| 2644 | return ptr; |
| 2645 | string_till_end: |
| 2646 | static_cast<::std::string*>(object)->clear(); |
| 2647 | static_cast<::std::string*>(object)->reserve(size); |
| 2648 | goto len_delim_till_end; |
| 2649 | len_delim_till_end: |
| 2650 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2651 | {parser_till_end, object}, size); |
| 2652 | } |
| 2653 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2654 | bool HWComponentInfoGetResponse::MergePartialFromCodedStream( |
| 2655 | ::google::protobuf::io::CodedInputStream* input) { |
| 2656 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2657 | ::google::protobuf::uint32 tag; |
| 2658 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse) |
| 2659 | for (;;) { |
| 2660 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2661 | tag = p.first; |
| 2662 | if (!p.second) goto handle_unusual; |
| 2663 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2664 | // .dmi.Status status = 1; |
| 2665 | case 1: { |
| 2666 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2667 | int value = 0; |
| 2668 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2669 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2670 | input, &value))); |
| 2671 | set_status(static_cast< ::dmi::Status >(value)); |
| 2672 | } else { |
| 2673 | goto handle_unusual; |
| 2674 | } |
| 2675 | break; |
| 2676 | } |
| 2677 | |
| 2678 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2679 | case 2: { |
| 2680 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2681 | int value = 0; |
| 2682 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2683 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2684 | input, &value))); |
| 2685 | set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value)); |
| 2686 | } else { |
| 2687 | goto handle_unusual; |
| 2688 | } |
| 2689 | break; |
| 2690 | } |
| 2691 | |
| 2692 | // .dmi.Component component = 3; |
| 2693 | case 3: { |
| 2694 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2695 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2696 | input, mutable_component())); |
| 2697 | } else { |
| 2698 | goto handle_unusual; |
| 2699 | } |
| 2700 | break; |
| 2701 | } |
| 2702 | |
| 2703 | // string reason_detail = 4; |
| 2704 | case 4: { |
| 2705 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2706 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2707 | input, this->mutable_reason_detail())); |
| 2708 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2709 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2710 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2711 | "dmi.HWComponentInfoGetResponse.reason_detail")); |
| 2712 | } else { |
| 2713 | goto handle_unusual; |
| 2714 | } |
| 2715 | break; |
| 2716 | } |
| 2717 | |
| 2718 | default: { |
| 2719 | handle_unusual: |
| 2720 | if (tag == 0) { |
| 2721 | goto success; |
| 2722 | } |
| 2723 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2724 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2725 | break; |
| 2726 | } |
| 2727 | } |
| 2728 | } |
| 2729 | success: |
| 2730 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse) |
| 2731 | return true; |
| 2732 | failure: |
| 2733 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse) |
| 2734 | return false; |
| 2735 | #undef DO_ |
| 2736 | } |
| 2737 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2738 | |
| 2739 | void HWComponentInfoGetResponse::SerializeWithCachedSizes( |
| 2740 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2741 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse) |
| 2742 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2743 | (void) cached_has_bits; |
| 2744 | |
| 2745 | // .dmi.Status status = 1; |
| 2746 | if (this->status() != 0) { |
| 2747 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2748 | 1, this->status(), output); |
| 2749 | } |
| 2750 | |
| 2751 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2752 | if (this->reason() != 0) { |
| 2753 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2754 | 2, this->reason(), output); |
| 2755 | } |
| 2756 | |
| 2757 | // .dmi.Component component = 3; |
| 2758 | if (this->has_component()) { |
| 2759 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2760 | 3, HasBitSetters::component(this), output); |
| 2761 | } |
| 2762 | |
| 2763 | // string reason_detail = 4; |
| 2764 | if (this->reason_detail().size() > 0) { |
| 2765 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2766 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2767 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2768 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2769 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2770 | 4, this->reason_detail(), output); |
| 2771 | } |
| 2772 | |
| 2773 | if (_internal_metadata_.have_unknown_fields()) { |
| 2774 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2775 | _internal_metadata_.unknown_fields(), output); |
| 2776 | } |
| 2777 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse) |
| 2778 | } |
| 2779 | |
| 2780 | ::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray( |
| 2781 | ::google::protobuf::uint8* target) const { |
| 2782 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse) |
| 2783 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2784 | (void) cached_has_bits; |
| 2785 | |
| 2786 | // .dmi.Status status = 1; |
| 2787 | if (this->status() != 0) { |
| 2788 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2789 | 1, this->status(), target); |
| 2790 | } |
| 2791 | |
| 2792 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2793 | if (this->reason() != 0) { |
| 2794 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2795 | 2, this->reason(), target); |
| 2796 | } |
| 2797 | |
| 2798 | // .dmi.Component component = 3; |
| 2799 | if (this->has_component()) { |
| 2800 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2801 | InternalWriteMessageToArray( |
| 2802 | 3, HasBitSetters::component(this), target); |
| 2803 | } |
| 2804 | |
| 2805 | // string reason_detail = 4; |
| 2806 | if (this->reason_detail().size() > 0) { |
| 2807 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2808 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2809 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2810 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2811 | target = |
| 2812 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2813 | 4, this->reason_detail(), target); |
| 2814 | } |
| 2815 | |
| 2816 | if (_internal_metadata_.have_unknown_fields()) { |
| 2817 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2818 | _internal_metadata_.unknown_fields(), target); |
| 2819 | } |
| 2820 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse) |
| 2821 | return target; |
| 2822 | } |
| 2823 | |
| 2824 | size_t HWComponentInfoGetResponse::ByteSizeLong() const { |
| 2825 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse) |
| 2826 | size_t total_size = 0; |
| 2827 | |
| 2828 | if (_internal_metadata_.have_unknown_fields()) { |
| 2829 | total_size += |
| 2830 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2831 | _internal_metadata_.unknown_fields()); |
| 2832 | } |
| 2833 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2834 | // Prevent compiler warnings about cached_has_bits being unused |
| 2835 | (void) cached_has_bits; |
| 2836 | |
| 2837 | // string reason_detail = 4; |
| 2838 | if (this->reason_detail().size() > 0) { |
| 2839 | total_size += 1 + |
| 2840 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2841 | this->reason_detail()); |
| 2842 | } |
| 2843 | |
| 2844 | // .dmi.Component component = 3; |
| 2845 | if (this->has_component()) { |
| 2846 | total_size += 1 + |
| 2847 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2848 | *component_); |
| 2849 | } |
| 2850 | |
| 2851 | // .dmi.Status status = 1; |
| 2852 | if (this->status() != 0) { |
| 2853 | total_size += 1 + |
| 2854 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2855 | } |
| 2856 | |
| 2857 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2858 | if (this->reason() != 0) { |
| 2859 | total_size += 1 + |
| 2860 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2861 | } |
| 2862 | |
| 2863 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2864 | SetCachedSize(cached_size); |
| 2865 | return total_size; |
| 2866 | } |
| 2867 | |
| 2868 | void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2869 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2870 | GOOGLE_DCHECK_NE(&from, this); |
| 2871 | const HWComponentInfoGetResponse* source = |
| 2872 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>( |
| 2873 | &from); |
| 2874 | if (source == nullptr) { |
| 2875 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse) |
| 2876 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2877 | } else { |
| 2878 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse) |
| 2879 | MergeFrom(*source); |
| 2880 | } |
| 2881 | } |
| 2882 | |
| 2883 | void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) { |
| 2884 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2885 | GOOGLE_DCHECK_NE(&from, this); |
| 2886 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2887 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2888 | (void) cached_has_bits; |
| 2889 | |
| 2890 | if (from.reason_detail().size() > 0) { |
| 2891 | |
| 2892 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2893 | } |
| 2894 | if (from.has_component()) { |
| 2895 | mutable_component()->::dmi::Component::MergeFrom(from.component()); |
| 2896 | } |
| 2897 | if (from.status() != 0) { |
| 2898 | set_status(from.status()); |
| 2899 | } |
| 2900 | if (from.reason() != 0) { |
| 2901 | set_reason(from.reason()); |
| 2902 | } |
| 2903 | } |
| 2904 | |
| 2905 | void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2906 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2907 | if (&from == this) return; |
| 2908 | Clear(); |
| 2909 | MergeFrom(from); |
| 2910 | } |
| 2911 | |
| 2912 | void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) { |
| 2913 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2914 | if (&from == this) return; |
| 2915 | Clear(); |
| 2916 | MergeFrom(from); |
| 2917 | } |
| 2918 | |
| 2919 | bool HWComponentInfoGetResponse::IsInitialized() const { |
| 2920 | return true; |
| 2921 | } |
| 2922 | |
| 2923 | void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) { |
| 2924 | if (other == this) return; |
| 2925 | InternalSwap(other); |
| 2926 | } |
| 2927 | void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) { |
| 2928 | using std::swap; |
| 2929 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2930 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2931 | GetArenaNoVirtual()); |
| 2932 | swap(component_, other->component_); |
| 2933 | swap(status_, other->status_); |
| 2934 | swap(reason_, other->reason_); |
| 2935 | } |
| 2936 | |
| 2937 | ::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const { |
| 2938 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2939 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2940 | } |
| 2941 | |
| 2942 | |
| 2943 | // =================================================================== |
| 2944 | |
| 2945 | void HWComponentInfoSetRequest::InitAsDefaultInstance() { |
| 2946 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2947 | ::dmi::Uuid::internal_default_instance()); |
| 2948 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2949 | ::dmi::Uuid::internal_default_instance()); |
| 2950 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>( |
| 2951 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 2952 | } |
| 2953 | class HWComponentInfoSetRequest::HasBitSetters { |
| 2954 | public: |
| 2955 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg); |
| 2956 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg); |
| 2957 | static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg); |
| 2958 | }; |
| 2959 | |
| 2960 | const ::dmi::Uuid& |
| 2961 | HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) { |
| 2962 | return *msg->device_uuid_; |
| 2963 | } |
| 2964 | const ::dmi::Uuid& |
| 2965 | HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) { |
| 2966 | return *msg->component_uuid_; |
| 2967 | } |
| 2968 | const ::dmi::ModifiableComponent& |
| 2969 | HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) { |
| 2970 | return *msg->changes_; |
| 2971 | } |
| 2972 | void HWComponentInfoSetRequest::clear_device_uuid() { |
| 2973 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2974 | delete device_uuid_; |
| 2975 | } |
| 2976 | device_uuid_ = nullptr; |
| 2977 | } |
| 2978 | void HWComponentInfoSetRequest::clear_component_uuid() { |
| 2979 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2980 | delete component_uuid_; |
| 2981 | } |
| 2982 | component_uuid_ = nullptr; |
| 2983 | } |
| 2984 | void HWComponentInfoSetRequest::clear_changes() { |
| 2985 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 2986 | delete changes_; |
| 2987 | } |
| 2988 | changes_ = nullptr; |
| 2989 | } |
| 2990 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2991 | const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber; |
| 2992 | const int HWComponentInfoSetRequest::kComponentUuidFieldNumber; |
| 2993 | const int HWComponentInfoSetRequest::kComponentNameFieldNumber; |
| 2994 | const int HWComponentInfoSetRequest::kChangesFieldNumber; |
| 2995 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2996 | |
| 2997 | HWComponentInfoSetRequest::HWComponentInfoSetRequest() |
| 2998 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2999 | SharedCtor(); |
| 3000 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest) |
| 3001 | } |
| 3002 | HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from) |
| 3003 | : ::google::protobuf::Message(), |
| 3004 | _internal_metadata_(nullptr) { |
| 3005 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3006 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3007 | if (from.component_name().size() > 0) { |
| 3008 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3009 | } |
| 3010 | if (from.has_device_uuid()) { |
| 3011 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3012 | } else { |
| 3013 | device_uuid_ = nullptr; |
| 3014 | } |
| 3015 | if (from.has_component_uuid()) { |
| 3016 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 3017 | } else { |
| 3018 | component_uuid_ = nullptr; |
| 3019 | } |
| 3020 | if (from.has_changes()) { |
| 3021 | changes_ = new ::dmi::ModifiableComponent(*from.changes_); |
| 3022 | } else { |
| 3023 | changes_ = nullptr; |
| 3024 | } |
| 3025 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest) |
| 3026 | } |
| 3027 | |
| 3028 | void HWComponentInfoSetRequest::SharedCtor() { |
| 3029 | ::google::protobuf::internal::InitSCC( |
| 3030 | &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3031 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3032 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3033 | reinterpret_cast<char*>(&changes_) - |
| 3034 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_)); |
| 3035 | } |
| 3036 | |
| 3037 | HWComponentInfoSetRequest::~HWComponentInfoSetRequest() { |
| 3038 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest) |
| 3039 | SharedDtor(); |
| 3040 | } |
| 3041 | |
| 3042 | void HWComponentInfoSetRequest::SharedDtor() { |
| 3043 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3044 | if (this != internal_default_instance()) delete device_uuid_; |
| 3045 | if (this != internal_default_instance()) delete component_uuid_; |
| 3046 | if (this != internal_default_instance()) delete changes_; |
| 3047 | } |
| 3048 | |
| 3049 | void HWComponentInfoSetRequest::SetCachedSize(int size) const { |
| 3050 | _cached_size_.Set(size); |
| 3051 | } |
| 3052 | const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() { |
| 3053 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3054 | return *internal_default_instance(); |
| 3055 | } |
| 3056 | |
| 3057 | |
| 3058 | void HWComponentInfoSetRequest::Clear() { |
| 3059 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest) |
| 3060 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3061 | // Prevent compiler warnings about cached_has_bits being unused |
| 3062 | (void) cached_has_bits; |
| 3063 | |
| 3064 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3065 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3066 | delete device_uuid_; |
| 3067 | } |
| 3068 | device_uuid_ = nullptr; |
| 3069 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 3070 | delete component_uuid_; |
| 3071 | } |
| 3072 | component_uuid_ = nullptr; |
| 3073 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 3074 | delete changes_; |
| 3075 | } |
| 3076 | changes_ = nullptr; |
| 3077 | _internal_metadata_.Clear(); |
| 3078 | } |
| 3079 | |
| 3080 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3081 | const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3082 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3083 | auto msg = static_cast<HWComponentInfoSetRequest*>(object); |
| 3084 | ::google::protobuf::int32 size; (void)size; |
| 3085 | int depth; (void)depth; |
| 3086 | ::google::protobuf::uint32 tag; |
| 3087 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3088 | auto ptr = begin; |
| 3089 | while (ptr < end) { |
| 3090 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3091 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3092 | switch (tag >> 3) { |
| 3093 | // .dmi.Uuid device_uuid = 1; |
| 3094 | case 1: { |
| 3095 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3096 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3097 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3098 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3099 | object = msg->mutable_device_uuid(); |
| 3100 | if (size > end - ptr) goto len_delim_till_end; |
| 3101 | ptr += size; |
| 3102 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3103 | {parser_till_end, object}, ptr - size, ptr)); |
| 3104 | break; |
| 3105 | } |
| 3106 | // .dmi.Uuid component_uuid = 2; |
| 3107 | case 2: { |
| 3108 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3109 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3110 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3111 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3112 | object = msg->mutable_component_uuid(); |
| 3113 | if (size > end - ptr) goto len_delim_till_end; |
| 3114 | ptr += size; |
| 3115 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3116 | {parser_till_end, object}, ptr - size, ptr)); |
| 3117 | break; |
| 3118 | } |
| 3119 | // string component_name = 3; |
| 3120 | case 3: { |
| 3121 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3122 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3123 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3124 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name"); |
| 3125 | object = msg->mutable_component_name(); |
| 3126 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3127 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3128 | goto string_till_end; |
| 3129 | } |
| 3130 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3131 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3132 | ptr += size; |
| 3133 | break; |
| 3134 | } |
| 3135 | // .dmi.ModifiableComponent changes = 4; |
| 3136 | case 4: { |
| 3137 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3138 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3139 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3140 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 3141 | object = msg->mutable_changes(); |
| 3142 | if (size > end - ptr) goto len_delim_till_end; |
| 3143 | ptr += size; |
| 3144 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3145 | {parser_till_end, object}, ptr - size, ptr)); |
| 3146 | break; |
| 3147 | } |
| 3148 | default: { |
| 3149 | handle_unusual: |
| 3150 | if ((tag & 7) == 4 || tag == 0) { |
| 3151 | ctx->EndGroup(tag); |
| 3152 | return ptr; |
| 3153 | } |
| 3154 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3155 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3156 | ptr = res.first; |
| 3157 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3158 | if (res.second) return ptr; |
| 3159 | } |
| 3160 | } // switch |
| 3161 | } // while |
| 3162 | return ptr; |
| 3163 | string_till_end: |
| 3164 | static_cast<::std::string*>(object)->clear(); |
| 3165 | static_cast<::std::string*>(object)->reserve(size); |
| 3166 | goto len_delim_till_end; |
| 3167 | len_delim_till_end: |
| 3168 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3169 | {parser_till_end, object}, size); |
| 3170 | } |
| 3171 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3172 | bool HWComponentInfoSetRequest::MergePartialFromCodedStream( |
| 3173 | ::google::protobuf::io::CodedInputStream* input) { |
| 3174 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3175 | ::google::protobuf::uint32 tag; |
| 3176 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest) |
| 3177 | for (;;) { |
| 3178 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3179 | tag = p.first; |
| 3180 | if (!p.second) goto handle_unusual; |
| 3181 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3182 | // .dmi.Uuid device_uuid = 1; |
| 3183 | case 1: { |
| 3184 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3185 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3186 | input, mutable_device_uuid())); |
| 3187 | } else { |
| 3188 | goto handle_unusual; |
| 3189 | } |
| 3190 | break; |
| 3191 | } |
| 3192 | |
| 3193 | // .dmi.Uuid component_uuid = 2; |
| 3194 | case 2: { |
| 3195 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3196 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3197 | input, mutable_component_uuid())); |
| 3198 | } else { |
| 3199 | goto handle_unusual; |
| 3200 | } |
| 3201 | break; |
| 3202 | } |
| 3203 | |
| 3204 | // string component_name = 3; |
| 3205 | case 3: { |
| 3206 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3207 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3208 | input, this->mutable_component_name())); |
| 3209 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3210 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3211 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3212 | "dmi.HWComponentInfoSetRequest.component_name")); |
| 3213 | } else { |
| 3214 | goto handle_unusual; |
| 3215 | } |
| 3216 | break; |
| 3217 | } |
| 3218 | |
| 3219 | // .dmi.ModifiableComponent changes = 4; |
| 3220 | case 4: { |
| 3221 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3222 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3223 | input, mutable_changes())); |
| 3224 | } else { |
| 3225 | goto handle_unusual; |
| 3226 | } |
| 3227 | break; |
| 3228 | } |
| 3229 | |
| 3230 | default: { |
| 3231 | handle_unusual: |
| 3232 | if (tag == 0) { |
| 3233 | goto success; |
| 3234 | } |
| 3235 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3236 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3237 | break; |
| 3238 | } |
| 3239 | } |
| 3240 | } |
| 3241 | success: |
| 3242 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest) |
| 3243 | return true; |
| 3244 | failure: |
| 3245 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest) |
| 3246 | return false; |
| 3247 | #undef DO_ |
| 3248 | } |
| 3249 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3250 | |
| 3251 | void HWComponentInfoSetRequest::SerializeWithCachedSizes( |
| 3252 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3253 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest) |
| 3254 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3255 | (void) cached_has_bits; |
| 3256 | |
| 3257 | // .dmi.Uuid device_uuid = 1; |
| 3258 | if (this->has_device_uuid()) { |
| 3259 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3260 | 1, HasBitSetters::device_uuid(this), output); |
| 3261 | } |
| 3262 | |
| 3263 | // .dmi.Uuid component_uuid = 2; |
| 3264 | if (this->has_component_uuid()) { |
| 3265 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3266 | 2, HasBitSetters::component_uuid(this), output); |
| 3267 | } |
| 3268 | |
| 3269 | // string component_name = 3; |
| 3270 | if (this->component_name().size() > 0) { |
| 3271 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3272 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3273 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3274 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3275 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3276 | 3, this->component_name(), output); |
| 3277 | } |
| 3278 | |
| 3279 | // .dmi.ModifiableComponent changes = 4; |
| 3280 | if (this->has_changes()) { |
| 3281 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3282 | 4, HasBitSetters::changes(this), output); |
| 3283 | } |
| 3284 | |
| 3285 | if (_internal_metadata_.have_unknown_fields()) { |
| 3286 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3287 | _internal_metadata_.unknown_fields(), output); |
| 3288 | } |
| 3289 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest) |
| 3290 | } |
| 3291 | |
| 3292 | ::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray( |
| 3293 | ::google::protobuf::uint8* target) const { |
| 3294 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest) |
| 3295 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3296 | (void) cached_has_bits; |
| 3297 | |
| 3298 | // .dmi.Uuid device_uuid = 1; |
| 3299 | if (this->has_device_uuid()) { |
| 3300 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3301 | InternalWriteMessageToArray( |
| 3302 | 1, HasBitSetters::device_uuid(this), target); |
| 3303 | } |
| 3304 | |
| 3305 | // .dmi.Uuid component_uuid = 2; |
| 3306 | if (this->has_component_uuid()) { |
| 3307 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3308 | InternalWriteMessageToArray( |
| 3309 | 2, HasBitSetters::component_uuid(this), target); |
| 3310 | } |
| 3311 | |
| 3312 | // string component_name = 3; |
| 3313 | if (this->component_name().size() > 0) { |
| 3314 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3315 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3316 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3317 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3318 | target = |
| 3319 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3320 | 3, this->component_name(), target); |
| 3321 | } |
| 3322 | |
| 3323 | // .dmi.ModifiableComponent changes = 4; |
| 3324 | if (this->has_changes()) { |
| 3325 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3326 | InternalWriteMessageToArray( |
| 3327 | 4, HasBitSetters::changes(this), target); |
| 3328 | } |
| 3329 | |
| 3330 | if (_internal_metadata_.have_unknown_fields()) { |
| 3331 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3332 | _internal_metadata_.unknown_fields(), target); |
| 3333 | } |
| 3334 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest) |
| 3335 | return target; |
| 3336 | } |
| 3337 | |
| 3338 | size_t HWComponentInfoSetRequest::ByteSizeLong() const { |
| 3339 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest) |
| 3340 | size_t total_size = 0; |
| 3341 | |
| 3342 | if (_internal_metadata_.have_unknown_fields()) { |
| 3343 | total_size += |
| 3344 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3345 | _internal_metadata_.unknown_fields()); |
| 3346 | } |
| 3347 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3348 | // Prevent compiler warnings about cached_has_bits being unused |
| 3349 | (void) cached_has_bits; |
| 3350 | |
| 3351 | // string component_name = 3; |
| 3352 | if (this->component_name().size() > 0) { |
| 3353 | total_size += 1 + |
| 3354 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3355 | this->component_name()); |
| 3356 | } |
| 3357 | |
| 3358 | // .dmi.Uuid device_uuid = 1; |
| 3359 | if (this->has_device_uuid()) { |
| 3360 | total_size += 1 + |
| 3361 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3362 | *device_uuid_); |
| 3363 | } |
| 3364 | |
| 3365 | // .dmi.Uuid component_uuid = 2; |
| 3366 | if (this->has_component_uuid()) { |
| 3367 | total_size += 1 + |
| 3368 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3369 | *component_uuid_); |
| 3370 | } |
| 3371 | |
| 3372 | // .dmi.ModifiableComponent changes = 4; |
| 3373 | if (this->has_changes()) { |
| 3374 | total_size += 1 + |
| 3375 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3376 | *changes_); |
| 3377 | } |
| 3378 | |
| 3379 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3380 | SetCachedSize(cached_size); |
| 3381 | return total_size; |
| 3382 | } |
| 3383 | |
| 3384 | void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3385 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3386 | GOOGLE_DCHECK_NE(&from, this); |
| 3387 | const HWComponentInfoSetRequest* source = |
| 3388 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>( |
| 3389 | &from); |
| 3390 | if (source == nullptr) { |
| 3391 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest) |
| 3392 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3393 | } else { |
| 3394 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest) |
| 3395 | MergeFrom(*source); |
| 3396 | } |
| 3397 | } |
| 3398 | |
| 3399 | void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) { |
| 3400 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3401 | GOOGLE_DCHECK_NE(&from, this); |
| 3402 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3403 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3404 | (void) cached_has_bits; |
| 3405 | |
| 3406 | if (from.component_name().size() > 0) { |
| 3407 | |
| 3408 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3409 | } |
| 3410 | if (from.has_device_uuid()) { |
| 3411 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3412 | } |
| 3413 | if (from.has_component_uuid()) { |
| 3414 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 3415 | } |
| 3416 | if (from.has_changes()) { |
| 3417 | mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes()); |
| 3418 | } |
| 3419 | } |
| 3420 | |
| 3421 | void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3422 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3423 | if (&from == this) return; |
| 3424 | Clear(); |
| 3425 | MergeFrom(from); |
| 3426 | } |
| 3427 | |
| 3428 | void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) { |
| 3429 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3430 | if (&from == this) return; |
| 3431 | Clear(); |
| 3432 | MergeFrom(from); |
| 3433 | } |
| 3434 | |
| 3435 | bool HWComponentInfoSetRequest::IsInitialized() const { |
| 3436 | return true; |
| 3437 | } |
| 3438 | |
| 3439 | void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) { |
| 3440 | if (other == this) return; |
| 3441 | InternalSwap(other); |
| 3442 | } |
| 3443 | void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) { |
| 3444 | using std::swap; |
| 3445 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3446 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3447 | GetArenaNoVirtual()); |
| 3448 | swap(device_uuid_, other->device_uuid_); |
| 3449 | swap(component_uuid_, other->component_uuid_); |
| 3450 | swap(changes_, other->changes_); |
| 3451 | } |
| 3452 | |
| 3453 | ::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const { |
| 3454 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3455 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3456 | } |
| 3457 | |
| 3458 | |
| 3459 | // =================================================================== |
| 3460 | |
| 3461 | void HWComponentInfoSetResponse::InitAsDefaultInstance() { |
| 3462 | } |
| 3463 | class HWComponentInfoSetResponse::HasBitSetters { |
| 3464 | public: |
| 3465 | }; |
| 3466 | |
| 3467 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3468 | const int HWComponentInfoSetResponse::kStatusFieldNumber; |
| 3469 | const int HWComponentInfoSetResponse::kReasonFieldNumber; |
| 3470 | const int HWComponentInfoSetResponse::kReasonDetailFieldNumber; |
| 3471 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3472 | |
| 3473 | HWComponentInfoSetResponse::HWComponentInfoSetResponse() |
| 3474 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3475 | SharedCtor(); |
| 3476 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse) |
| 3477 | } |
| 3478 | HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from) |
| 3479 | : ::google::protobuf::Message(), |
| 3480 | _internal_metadata_(nullptr) { |
| 3481 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3482 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3483 | if (from.reason_detail().size() > 0) { |
| 3484 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3485 | } |
| 3486 | ::memcpy(&status_, &from.status_, |
| 3487 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3488 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3489 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse) |
| 3490 | } |
| 3491 | |
| 3492 | void HWComponentInfoSetResponse::SharedCtor() { |
| 3493 | ::google::protobuf::internal::InitSCC( |
| 3494 | &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3495 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3496 | ::memset(&status_, 0, static_cast<size_t>( |
| 3497 | reinterpret_cast<char*>(&reason_) - |
| 3498 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3499 | } |
| 3500 | |
| 3501 | HWComponentInfoSetResponse::~HWComponentInfoSetResponse() { |
| 3502 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse) |
| 3503 | SharedDtor(); |
| 3504 | } |
| 3505 | |
| 3506 | void HWComponentInfoSetResponse::SharedDtor() { |
| 3507 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3508 | } |
| 3509 | |
| 3510 | void HWComponentInfoSetResponse::SetCachedSize(int size) const { |
| 3511 | _cached_size_.Set(size); |
| 3512 | } |
| 3513 | const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() { |
| 3514 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3515 | return *internal_default_instance(); |
| 3516 | } |
| 3517 | |
| 3518 | |
| 3519 | void HWComponentInfoSetResponse::Clear() { |
| 3520 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse) |
| 3521 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3522 | // Prevent compiler warnings about cached_has_bits being unused |
| 3523 | (void) cached_has_bits; |
| 3524 | |
| 3525 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3526 | ::memset(&status_, 0, static_cast<size_t>( |
| 3527 | reinterpret_cast<char*>(&reason_) - |
| 3528 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3529 | _internal_metadata_.Clear(); |
| 3530 | } |
| 3531 | |
| 3532 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3533 | const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3534 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3535 | auto msg = static_cast<HWComponentInfoSetResponse*>(object); |
| 3536 | ::google::protobuf::int32 size; (void)size; |
| 3537 | int depth; (void)depth; |
| 3538 | ::google::protobuf::uint32 tag; |
| 3539 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3540 | auto ptr = begin; |
| 3541 | while (ptr < end) { |
| 3542 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3543 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3544 | switch (tag >> 3) { |
| 3545 | // .dmi.Status status = 1; |
| 3546 | case 1: { |
| 3547 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3548 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3549 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3550 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3551 | break; |
| 3552 | } |
| 3553 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3554 | case 2: { |
| 3555 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3556 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3557 | msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val)); |
| 3558 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3559 | break; |
| 3560 | } |
| 3561 | // string reason_detail = 3; |
| 3562 | case 3: { |
| 3563 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3564 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3565 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3566 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3567 | object = msg->mutable_reason_detail(); |
| 3568 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3569 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3570 | goto string_till_end; |
| 3571 | } |
| 3572 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3573 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3574 | ptr += size; |
| 3575 | break; |
| 3576 | } |
| 3577 | default: { |
| 3578 | handle_unusual: |
| 3579 | if ((tag & 7) == 4 || tag == 0) { |
| 3580 | ctx->EndGroup(tag); |
| 3581 | return ptr; |
| 3582 | } |
| 3583 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3584 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3585 | ptr = res.first; |
| 3586 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3587 | if (res.second) return ptr; |
| 3588 | } |
| 3589 | } // switch |
| 3590 | } // while |
| 3591 | return ptr; |
| 3592 | string_till_end: |
| 3593 | static_cast<::std::string*>(object)->clear(); |
| 3594 | static_cast<::std::string*>(object)->reserve(size); |
| 3595 | goto len_delim_till_end; |
| 3596 | len_delim_till_end: |
| 3597 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3598 | {parser_till_end, object}, size); |
| 3599 | } |
| 3600 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3601 | bool HWComponentInfoSetResponse::MergePartialFromCodedStream( |
| 3602 | ::google::protobuf::io::CodedInputStream* input) { |
| 3603 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3604 | ::google::protobuf::uint32 tag; |
| 3605 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse) |
| 3606 | for (;;) { |
| 3607 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3608 | tag = p.first; |
| 3609 | if (!p.second) goto handle_unusual; |
| 3610 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3611 | // .dmi.Status status = 1; |
| 3612 | case 1: { |
| 3613 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3614 | int value = 0; |
| 3615 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3616 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3617 | input, &value))); |
| 3618 | set_status(static_cast< ::dmi::Status >(value)); |
| 3619 | } else { |
| 3620 | goto handle_unusual; |
| 3621 | } |
| 3622 | break; |
| 3623 | } |
| 3624 | |
| 3625 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3626 | case 2: { |
| 3627 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3628 | int value = 0; |
| 3629 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3630 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3631 | input, &value))); |
| 3632 | set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value)); |
| 3633 | } else { |
| 3634 | goto handle_unusual; |
| 3635 | } |
| 3636 | break; |
| 3637 | } |
| 3638 | |
| 3639 | // string reason_detail = 3; |
| 3640 | case 3: { |
| 3641 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3642 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3643 | input, this->mutable_reason_detail())); |
| 3644 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3645 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3646 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3647 | "dmi.HWComponentInfoSetResponse.reason_detail")); |
| 3648 | } else { |
| 3649 | goto handle_unusual; |
| 3650 | } |
| 3651 | break; |
| 3652 | } |
| 3653 | |
| 3654 | default: { |
| 3655 | handle_unusual: |
| 3656 | if (tag == 0) { |
| 3657 | goto success; |
| 3658 | } |
| 3659 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3660 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3661 | break; |
| 3662 | } |
| 3663 | } |
| 3664 | } |
| 3665 | success: |
| 3666 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse) |
| 3667 | return true; |
| 3668 | failure: |
| 3669 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse) |
| 3670 | return false; |
| 3671 | #undef DO_ |
| 3672 | } |
| 3673 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3674 | |
| 3675 | void HWComponentInfoSetResponse::SerializeWithCachedSizes( |
| 3676 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3677 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse) |
| 3678 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3679 | (void) cached_has_bits; |
| 3680 | |
| 3681 | // .dmi.Status status = 1; |
| 3682 | if (this->status() != 0) { |
| 3683 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3684 | 1, this->status(), output); |
| 3685 | } |
| 3686 | |
| 3687 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3688 | if (this->reason() != 0) { |
| 3689 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3690 | 2, this->reason(), output); |
| 3691 | } |
| 3692 | |
| 3693 | // string reason_detail = 3; |
| 3694 | if (this->reason_detail().size() > 0) { |
| 3695 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3696 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3697 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3698 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3699 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3700 | 3, this->reason_detail(), output); |
| 3701 | } |
| 3702 | |
| 3703 | if (_internal_metadata_.have_unknown_fields()) { |
| 3704 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3705 | _internal_metadata_.unknown_fields(), output); |
| 3706 | } |
| 3707 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse) |
| 3708 | } |
| 3709 | |
| 3710 | ::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray( |
| 3711 | ::google::protobuf::uint8* target) const { |
| 3712 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse) |
| 3713 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3714 | (void) cached_has_bits; |
| 3715 | |
| 3716 | // .dmi.Status status = 1; |
| 3717 | if (this->status() != 0) { |
| 3718 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3719 | 1, this->status(), target); |
| 3720 | } |
| 3721 | |
| 3722 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3723 | if (this->reason() != 0) { |
| 3724 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3725 | 2, this->reason(), target); |
| 3726 | } |
| 3727 | |
| 3728 | // string reason_detail = 3; |
| 3729 | if (this->reason_detail().size() > 0) { |
| 3730 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3731 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3732 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3733 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3734 | target = |
| 3735 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3736 | 3, this->reason_detail(), target); |
| 3737 | } |
| 3738 | |
| 3739 | if (_internal_metadata_.have_unknown_fields()) { |
| 3740 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3741 | _internal_metadata_.unknown_fields(), target); |
| 3742 | } |
| 3743 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse) |
| 3744 | return target; |
| 3745 | } |
| 3746 | |
| 3747 | size_t HWComponentInfoSetResponse::ByteSizeLong() const { |
| 3748 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse) |
| 3749 | size_t total_size = 0; |
| 3750 | |
| 3751 | if (_internal_metadata_.have_unknown_fields()) { |
| 3752 | total_size += |
| 3753 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3754 | _internal_metadata_.unknown_fields()); |
| 3755 | } |
| 3756 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3757 | // Prevent compiler warnings about cached_has_bits being unused |
| 3758 | (void) cached_has_bits; |
| 3759 | |
| 3760 | // string reason_detail = 3; |
| 3761 | if (this->reason_detail().size() > 0) { |
| 3762 | total_size += 1 + |
| 3763 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3764 | this->reason_detail()); |
| 3765 | } |
| 3766 | |
| 3767 | // .dmi.Status status = 1; |
| 3768 | if (this->status() != 0) { |
| 3769 | total_size += 1 + |
| 3770 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3771 | } |
| 3772 | |
| 3773 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3774 | if (this->reason() != 0) { |
| 3775 | total_size += 1 + |
| 3776 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3777 | } |
| 3778 | |
| 3779 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3780 | SetCachedSize(cached_size); |
| 3781 | return total_size; |
| 3782 | } |
| 3783 | |
| 3784 | void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3785 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3786 | GOOGLE_DCHECK_NE(&from, this); |
| 3787 | const HWComponentInfoSetResponse* source = |
| 3788 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>( |
| 3789 | &from); |
| 3790 | if (source == nullptr) { |
| 3791 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse) |
| 3792 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3793 | } else { |
| 3794 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse) |
| 3795 | MergeFrom(*source); |
| 3796 | } |
| 3797 | } |
| 3798 | |
| 3799 | void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) { |
| 3800 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3801 | GOOGLE_DCHECK_NE(&from, this); |
| 3802 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3803 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3804 | (void) cached_has_bits; |
| 3805 | |
| 3806 | if (from.reason_detail().size() > 0) { |
| 3807 | |
| 3808 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3809 | } |
| 3810 | if (from.status() != 0) { |
| 3811 | set_status(from.status()); |
| 3812 | } |
| 3813 | if (from.reason() != 0) { |
| 3814 | set_reason(from.reason()); |
| 3815 | } |
| 3816 | } |
| 3817 | |
| 3818 | void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3819 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3820 | if (&from == this) return; |
| 3821 | Clear(); |
| 3822 | MergeFrom(from); |
| 3823 | } |
| 3824 | |
| 3825 | void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) { |
| 3826 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3827 | if (&from == this) return; |
| 3828 | Clear(); |
| 3829 | MergeFrom(from); |
| 3830 | } |
| 3831 | |
| 3832 | bool HWComponentInfoSetResponse::IsInitialized() const { |
| 3833 | return true; |
| 3834 | } |
| 3835 | |
| 3836 | void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) { |
| 3837 | if (other == this) return; |
| 3838 | InternalSwap(other); |
| 3839 | } |
| 3840 | void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) { |
| 3841 | using std::swap; |
| 3842 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3843 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3844 | GetArenaNoVirtual()); |
| 3845 | swap(status_, other->status_); |
| 3846 | swap(reason_, other->reason_); |
| 3847 | } |
| 3848 | |
| 3849 | ::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const { |
| 3850 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3851 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3852 | } |
| 3853 | |
| 3854 | |
| 3855 | // =================================================================== |
| 3856 | |
| 3857 | void StartManagingDeviceResponse::InitAsDefaultInstance() { |
| 3858 | ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3859 | ::dmi::Uuid::internal_default_instance()); |
| 3860 | } |
| 3861 | class StartManagingDeviceResponse::HasBitSetters { |
| 3862 | public: |
| 3863 | static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg); |
| 3864 | }; |
| 3865 | |
| 3866 | const ::dmi::Uuid& |
| 3867 | StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) { |
| 3868 | return *msg->device_uuid_; |
| 3869 | } |
| 3870 | void StartManagingDeviceResponse::clear_device_uuid() { |
| 3871 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3872 | delete device_uuid_; |
| 3873 | } |
| 3874 | device_uuid_ = nullptr; |
| 3875 | } |
| 3876 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3877 | const int StartManagingDeviceResponse::kStatusFieldNumber; |
| 3878 | const int StartManagingDeviceResponse::kReasonFieldNumber; |
| 3879 | const int StartManagingDeviceResponse::kDeviceUuidFieldNumber; |
| 3880 | const int StartManagingDeviceResponse::kReasonDetailFieldNumber; |
| 3881 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3882 | |
| 3883 | StartManagingDeviceResponse::StartManagingDeviceResponse() |
| 3884 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3885 | SharedCtor(); |
| 3886 | // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse) |
| 3887 | } |
| 3888 | StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from) |
| 3889 | : ::google::protobuf::Message(), |
| 3890 | _internal_metadata_(nullptr) { |
| 3891 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3892 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3893 | if (from.reason_detail().size() > 0) { |
| 3894 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3895 | } |
| 3896 | if (from.has_device_uuid()) { |
| 3897 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3898 | } else { |
| 3899 | device_uuid_ = nullptr; |
| 3900 | } |
| 3901 | ::memcpy(&status_, &from.status_, |
| 3902 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3903 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3904 | // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse) |
| 3905 | } |
| 3906 | |
| 3907 | void StartManagingDeviceResponse::SharedCtor() { |
| 3908 | ::google::protobuf::internal::InitSCC( |
| 3909 | &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3910 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3911 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3912 | reinterpret_cast<char*>(&reason_) - |
| 3913 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 3914 | } |
| 3915 | |
| 3916 | StartManagingDeviceResponse::~StartManagingDeviceResponse() { |
| 3917 | // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse) |
| 3918 | SharedDtor(); |
| 3919 | } |
| 3920 | |
| 3921 | void StartManagingDeviceResponse::SharedDtor() { |
| 3922 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3923 | if (this != internal_default_instance()) delete device_uuid_; |
| 3924 | } |
| 3925 | |
| 3926 | void StartManagingDeviceResponse::SetCachedSize(int size) const { |
| 3927 | _cached_size_.Set(size); |
| 3928 | } |
| 3929 | const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() { |
| 3930 | ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3931 | return *internal_default_instance(); |
| 3932 | } |
| 3933 | |
| 3934 | |
| 3935 | void StartManagingDeviceResponse::Clear() { |
| 3936 | // @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse) |
| 3937 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3938 | // Prevent compiler warnings about cached_has_bits being unused |
| 3939 | (void) cached_has_bits; |
| 3940 | |
| 3941 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3942 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3943 | delete device_uuid_; |
| 3944 | } |
| 3945 | device_uuid_ = nullptr; |
| 3946 | ::memset(&status_, 0, static_cast<size_t>( |
| 3947 | reinterpret_cast<char*>(&reason_) - |
| 3948 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3949 | _internal_metadata_.Clear(); |
| 3950 | } |
| 3951 | |
| 3952 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3953 | const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3954 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3955 | auto msg = static_cast<StartManagingDeviceResponse*>(object); |
| 3956 | ::google::protobuf::int32 size; (void)size; |
| 3957 | int depth; (void)depth; |
| 3958 | ::google::protobuf::uint32 tag; |
| 3959 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3960 | auto ptr = begin; |
| 3961 | while (ptr < end) { |
| 3962 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3963 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3964 | switch (tag >> 3) { |
| 3965 | // .dmi.Status status = 1; |
| 3966 | case 1: { |
| 3967 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3968 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3969 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3970 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3971 | break; |
| 3972 | } |
| 3973 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 3974 | case 2: { |
| 3975 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3976 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3977 | msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val)); |
| 3978 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3979 | break; |
| 3980 | } |
| 3981 | // .dmi.Uuid device_uuid = 3; |
| 3982 | case 3: { |
| 3983 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3984 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3985 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3986 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3987 | object = msg->mutable_device_uuid(); |
| 3988 | if (size > end - ptr) goto len_delim_till_end; |
| 3989 | ptr += size; |
| 3990 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3991 | {parser_till_end, object}, ptr - size, ptr)); |
| 3992 | break; |
| 3993 | } |
| 3994 | // string reason_detail = 4; |
| 3995 | case 4: { |
| 3996 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3997 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3998 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3999 | ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail"); |
| 4000 | object = msg->mutable_reason_detail(); |
| 4001 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4002 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4003 | goto string_till_end; |
| 4004 | } |
| 4005 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4006 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4007 | ptr += size; |
| 4008 | break; |
| 4009 | } |
| 4010 | default: { |
| 4011 | handle_unusual: |
| 4012 | if ((tag & 7) == 4 || tag == 0) { |
| 4013 | ctx->EndGroup(tag); |
| 4014 | return ptr; |
| 4015 | } |
| 4016 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4017 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4018 | ptr = res.first; |
| 4019 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4020 | if (res.second) return ptr; |
| 4021 | } |
| 4022 | } // switch |
| 4023 | } // while |
| 4024 | return ptr; |
| 4025 | string_till_end: |
| 4026 | static_cast<::std::string*>(object)->clear(); |
| 4027 | static_cast<::std::string*>(object)->reserve(size); |
| 4028 | goto len_delim_till_end; |
| 4029 | len_delim_till_end: |
| 4030 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4031 | {parser_till_end, object}, size); |
| 4032 | } |
| 4033 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4034 | bool StartManagingDeviceResponse::MergePartialFromCodedStream( |
| 4035 | ::google::protobuf::io::CodedInputStream* input) { |
| 4036 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4037 | ::google::protobuf::uint32 tag; |
| 4038 | // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse) |
| 4039 | for (;;) { |
| 4040 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4041 | tag = p.first; |
| 4042 | if (!p.second) goto handle_unusual; |
| 4043 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4044 | // .dmi.Status status = 1; |
| 4045 | case 1: { |
| 4046 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4047 | int value = 0; |
| 4048 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4049 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4050 | input, &value))); |
| 4051 | set_status(static_cast< ::dmi::Status >(value)); |
| 4052 | } else { |
| 4053 | goto handle_unusual; |
| 4054 | } |
| 4055 | break; |
| 4056 | } |
| 4057 | |
| 4058 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4059 | case 2: { |
| 4060 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4061 | int value = 0; |
| 4062 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4063 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4064 | input, &value))); |
| 4065 | set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value)); |
| 4066 | } else { |
| 4067 | goto handle_unusual; |
| 4068 | } |
| 4069 | break; |
| 4070 | } |
| 4071 | |
| 4072 | // .dmi.Uuid device_uuid = 3; |
| 4073 | case 3: { |
| 4074 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4075 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4076 | input, mutable_device_uuid())); |
| 4077 | } else { |
| 4078 | goto handle_unusual; |
| 4079 | } |
| 4080 | break; |
| 4081 | } |
| 4082 | |
| 4083 | // string reason_detail = 4; |
| 4084 | case 4: { |
| 4085 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 4086 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4087 | input, this->mutable_reason_detail())); |
| 4088 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4089 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4090 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4091 | "dmi.StartManagingDeviceResponse.reason_detail")); |
| 4092 | } else { |
| 4093 | goto handle_unusual; |
| 4094 | } |
| 4095 | break; |
| 4096 | } |
| 4097 | |
| 4098 | default: { |
| 4099 | handle_unusual: |
| 4100 | if (tag == 0) { |
| 4101 | goto success; |
| 4102 | } |
| 4103 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4104 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4105 | break; |
| 4106 | } |
| 4107 | } |
| 4108 | } |
| 4109 | success: |
| 4110 | // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse) |
| 4111 | return true; |
| 4112 | failure: |
| 4113 | // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse) |
| 4114 | return false; |
| 4115 | #undef DO_ |
| 4116 | } |
| 4117 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4118 | |
| 4119 | void StartManagingDeviceResponse::SerializeWithCachedSizes( |
| 4120 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4121 | // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse) |
| 4122 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4123 | (void) cached_has_bits; |
| 4124 | |
| 4125 | // .dmi.Status status = 1; |
| 4126 | if (this->status() != 0) { |
| 4127 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4128 | 1, this->status(), output); |
| 4129 | } |
| 4130 | |
| 4131 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4132 | if (this->reason() != 0) { |
| 4133 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4134 | 2, this->reason(), output); |
| 4135 | } |
| 4136 | |
| 4137 | // .dmi.Uuid device_uuid = 3; |
| 4138 | if (this->has_device_uuid()) { |
| 4139 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4140 | 3, HasBitSetters::device_uuid(this), output); |
| 4141 | } |
| 4142 | |
| 4143 | // string reason_detail = 4; |
| 4144 | if (this->reason_detail().size() > 0) { |
| 4145 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4146 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4147 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4148 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4149 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4150 | 4, this->reason_detail(), output); |
| 4151 | } |
| 4152 | |
| 4153 | if (_internal_metadata_.have_unknown_fields()) { |
| 4154 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4155 | _internal_metadata_.unknown_fields(), output); |
| 4156 | } |
| 4157 | // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse) |
| 4158 | } |
| 4159 | |
| 4160 | ::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4161 | ::google::protobuf::uint8* target) const { |
| 4162 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse) |
| 4163 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4164 | (void) cached_has_bits; |
| 4165 | |
| 4166 | // .dmi.Status status = 1; |
| 4167 | if (this->status() != 0) { |
| 4168 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4169 | 1, this->status(), target); |
| 4170 | } |
| 4171 | |
| 4172 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4173 | if (this->reason() != 0) { |
| 4174 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4175 | 2, this->reason(), target); |
| 4176 | } |
| 4177 | |
| 4178 | // .dmi.Uuid device_uuid = 3; |
| 4179 | if (this->has_device_uuid()) { |
| 4180 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4181 | InternalWriteMessageToArray( |
| 4182 | 3, HasBitSetters::device_uuid(this), target); |
| 4183 | } |
| 4184 | |
| 4185 | // string reason_detail = 4; |
| 4186 | if (this->reason_detail().size() > 0) { |
| 4187 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4188 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4189 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4190 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4191 | target = |
| 4192 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4193 | 4, this->reason_detail(), target); |
| 4194 | } |
| 4195 | |
| 4196 | if (_internal_metadata_.have_unknown_fields()) { |
| 4197 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4198 | _internal_metadata_.unknown_fields(), target); |
| 4199 | } |
| 4200 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse) |
| 4201 | return target; |
| 4202 | } |
| 4203 | |
| 4204 | size_t StartManagingDeviceResponse::ByteSizeLong() const { |
| 4205 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse) |
| 4206 | size_t total_size = 0; |
| 4207 | |
| 4208 | if (_internal_metadata_.have_unknown_fields()) { |
| 4209 | total_size += |
| 4210 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4211 | _internal_metadata_.unknown_fields()); |
| 4212 | } |
| 4213 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4214 | // Prevent compiler warnings about cached_has_bits being unused |
| 4215 | (void) cached_has_bits; |
| 4216 | |
| 4217 | // string reason_detail = 4; |
| 4218 | if (this->reason_detail().size() > 0) { |
| 4219 | total_size += 1 + |
| 4220 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4221 | this->reason_detail()); |
| 4222 | } |
| 4223 | |
| 4224 | // .dmi.Uuid device_uuid = 3; |
| 4225 | if (this->has_device_uuid()) { |
| 4226 | total_size += 1 + |
| 4227 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4228 | *device_uuid_); |
| 4229 | } |
| 4230 | |
| 4231 | // .dmi.Status status = 1; |
| 4232 | if (this->status() != 0) { |
| 4233 | total_size += 1 + |
| 4234 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4235 | } |
| 4236 | |
| 4237 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4238 | if (this->reason() != 0) { |
| 4239 | total_size += 1 + |
| 4240 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4241 | } |
| 4242 | |
| 4243 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4244 | SetCachedSize(cached_size); |
| 4245 | return total_size; |
| 4246 | } |
| 4247 | |
| 4248 | void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4249 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4250 | GOOGLE_DCHECK_NE(&from, this); |
| 4251 | const StartManagingDeviceResponse* source = |
| 4252 | ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>( |
| 4253 | &from); |
| 4254 | if (source == nullptr) { |
| 4255 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse) |
| 4256 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4257 | } else { |
| 4258 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse) |
| 4259 | MergeFrom(*source); |
| 4260 | } |
| 4261 | } |
| 4262 | |
| 4263 | void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) { |
| 4264 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4265 | GOOGLE_DCHECK_NE(&from, this); |
| 4266 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4267 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4268 | (void) cached_has_bits; |
| 4269 | |
| 4270 | if (from.reason_detail().size() > 0) { |
| 4271 | |
| 4272 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4273 | } |
| 4274 | if (from.has_device_uuid()) { |
| 4275 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4276 | } |
| 4277 | if (from.status() != 0) { |
| 4278 | set_status(from.status()); |
| 4279 | } |
| 4280 | if (from.reason() != 0) { |
| 4281 | set_reason(from.reason()); |
| 4282 | } |
| 4283 | } |
| 4284 | |
| 4285 | void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4286 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4287 | if (&from == this) return; |
| 4288 | Clear(); |
| 4289 | MergeFrom(from); |
| 4290 | } |
| 4291 | |
| 4292 | void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) { |
| 4293 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4294 | if (&from == this) return; |
| 4295 | Clear(); |
| 4296 | MergeFrom(from); |
| 4297 | } |
| 4298 | |
| 4299 | bool StartManagingDeviceResponse::IsInitialized() const { |
| 4300 | return true; |
| 4301 | } |
| 4302 | |
| 4303 | void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) { |
| 4304 | if (other == this) return; |
| 4305 | InternalSwap(other); |
| 4306 | } |
| 4307 | void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) { |
| 4308 | using std::swap; |
| 4309 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4310 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4311 | GetArenaNoVirtual()); |
| 4312 | swap(device_uuid_, other->device_uuid_); |
| 4313 | swap(status_, other->status_); |
| 4314 | swap(reason_, other->reason_); |
| 4315 | } |
| 4316 | |
| 4317 | ::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const { |
| 4318 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4319 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4320 | } |
| 4321 | |
| 4322 | |
| 4323 | // =================================================================== |
| 4324 | |
| 4325 | void StopManagingDeviceRequest::InitAsDefaultInstance() { |
| 4326 | } |
| 4327 | class StopManagingDeviceRequest::HasBitSetters { |
| 4328 | public: |
| 4329 | }; |
| 4330 | |
| 4331 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4332 | const int StopManagingDeviceRequest::kNameFieldNumber; |
| 4333 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4334 | |
| 4335 | StopManagingDeviceRequest::StopManagingDeviceRequest() |
| 4336 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4337 | SharedCtor(); |
| 4338 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest) |
| 4339 | } |
| 4340 | StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from) |
| 4341 | : ::google::protobuf::Message(), |
| 4342 | _internal_metadata_(nullptr) { |
| 4343 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4344 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4345 | if (from.name().size() > 0) { |
| 4346 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4347 | } |
| 4348 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest) |
| 4349 | } |
| 4350 | |
| 4351 | void StopManagingDeviceRequest::SharedCtor() { |
| 4352 | ::google::protobuf::internal::InitSCC( |
| 4353 | &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4354 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4355 | } |
| 4356 | |
| 4357 | StopManagingDeviceRequest::~StopManagingDeviceRequest() { |
| 4358 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest) |
| 4359 | SharedDtor(); |
| 4360 | } |
| 4361 | |
| 4362 | void StopManagingDeviceRequest::SharedDtor() { |
| 4363 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4364 | } |
| 4365 | |
| 4366 | void StopManagingDeviceRequest::SetCachedSize(int size) const { |
| 4367 | _cached_size_.Set(size); |
| 4368 | } |
| 4369 | const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() { |
| 4370 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4371 | return *internal_default_instance(); |
| 4372 | } |
| 4373 | |
| 4374 | |
| 4375 | void StopManagingDeviceRequest::Clear() { |
| 4376 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest) |
| 4377 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4378 | // Prevent compiler warnings about cached_has_bits being unused |
| 4379 | (void) cached_has_bits; |
| 4380 | |
| 4381 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4382 | _internal_metadata_.Clear(); |
| 4383 | } |
| 4384 | |
| 4385 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4386 | const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 4387 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4388 | auto msg = static_cast<StopManagingDeviceRequest*>(object); |
| 4389 | ::google::protobuf::int32 size; (void)size; |
| 4390 | int depth; (void)depth; |
| 4391 | ::google::protobuf::uint32 tag; |
| 4392 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4393 | auto ptr = begin; |
| 4394 | while (ptr < end) { |
| 4395 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4396 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4397 | switch (tag >> 3) { |
| 4398 | // string name = 1; |
| 4399 | case 1: { |
| 4400 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4401 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4402 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4403 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name"); |
| 4404 | object = msg->mutable_name(); |
| 4405 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4406 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4407 | goto string_till_end; |
| 4408 | } |
| 4409 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4410 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4411 | ptr += size; |
| 4412 | break; |
| 4413 | } |
| 4414 | default: { |
| 4415 | handle_unusual: |
| 4416 | if ((tag & 7) == 4 || tag == 0) { |
| 4417 | ctx->EndGroup(tag); |
| 4418 | return ptr; |
| 4419 | } |
| 4420 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4421 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4422 | ptr = res.first; |
| 4423 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4424 | if (res.second) return ptr; |
| 4425 | } |
| 4426 | } // switch |
| 4427 | } // while |
| 4428 | return ptr; |
| 4429 | string_till_end: |
| 4430 | static_cast<::std::string*>(object)->clear(); |
| 4431 | static_cast<::std::string*>(object)->reserve(size); |
| 4432 | goto len_delim_till_end; |
| 4433 | len_delim_till_end: |
| 4434 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4435 | {parser_till_end, object}, size); |
| 4436 | } |
| 4437 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4438 | bool StopManagingDeviceRequest::MergePartialFromCodedStream( |
| 4439 | ::google::protobuf::io::CodedInputStream* input) { |
| 4440 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4441 | ::google::protobuf::uint32 tag; |
| 4442 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest) |
| 4443 | for (;;) { |
| 4444 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4445 | tag = p.first; |
| 4446 | if (!p.second) goto handle_unusual; |
| 4447 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4448 | // string name = 1; |
| 4449 | case 1: { |
| 4450 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4451 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4452 | input, this->mutable_name())); |
| 4453 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4454 | this->name().data(), static_cast<int>(this->name().length()), |
| 4455 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4456 | "dmi.StopManagingDeviceRequest.name")); |
| 4457 | } else { |
| 4458 | goto handle_unusual; |
| 4459 | } |
| 4460 | break; |
| 4461 | } |
| 4462 | |
| 4463 | default: { |
| 4464 | handle_unusual: |
| 4465 | if (tag == 0) { |
| 4466 | goto success; |
| 4467 | } |
| 4468 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4469 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4470 | break; |
| 4471 | } |
| 4472 | } |
| 4473 | } |
| 4474 | success: |
| 4475 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest) |
| 4476 | return true; |
| 4477 | failure: |
| 4478 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest) |
| 4479 | return false; |
| 4480 | #undef DO_ |
| 4481 | } |
| 4482 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4483 | |
| 4484 | void StopManagingDeviceRequest::SerializeWithCachedSizes( |
| 4485 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4486 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest) |
| 4487 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4488 | (void) cached_has_bits; |
| 4489 | |
| 4490 | // string name = 1; |
| 4491 | if (this->name().size() > 0) { |
| 4492 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4493 | this->name().data(), static_cast<int>(this->name().length()), |
| 4494 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4495 | "dmi.StopManagingDeviceRequest.name"); |
| 4496 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4497 | 1, this->name(), output); |
| 4498 | } |
| 4499 | |
| 4500 | if (_internal_metadata_.have_unknown_fields()) { |
| 4501 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4502 | _internal_metadata_.unknown_fields(), output); |
| 4503 | } |
| 4504 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest) |
| 4505 | } |
| 4506 | |
| 4507 | ::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 4508 | ::google::protobuf::uint8* target) const { |
| 4509 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest) |
| 4510 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4511 | (void) cached_has_bits; |
| 4512 | |
| 4513 | // string name = 1; |
| 4514 | if (this->name().size() > 0) { |
| 4515 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4516 | this->name().data(), static_cast<int>(this->name().length()), |
| 4517 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4518 | "dmi.StopManagingDeviceRequest.name"); |
| 4519 | target = |
| 4520 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4521 | 1, this->name(), target); |
| 4522 | } |
| 4523 | |
| 4524 | if (_internal_metadata_.have_unknown_fields()) { |
| 4525 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4526 | _internal_metadata_.unknown_fields(), target); |
| 4527 | } |
| 4528 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest) |
| 4529 | return target; |
| 4530 | } |
| 4531 | |
| 4532 | size_t StopManagingDeviceRequest::ByteSizeLong() const { |
| 4533 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest) |
| 4534 | size_t total_size = 0; |
| 4535 | |
| 4536 | if (_internal_metadata_.have_unknown_fields()) { |
| 4537 | total_size += |
| 4538 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4539 | _internal_metadata_.unknown_fields()); |
| 4540 | } |
| 4541 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4542 | // Prevent compiler warnings about cached_has_bits being unused |
| 4543 | (void) cached_has_bits; |
| 4544 | |
| 4545 | // string name = 1; |
| 4546 | if (this->name().size() > 0) { |
| 4547 | total_size += 1 + |
| 4548 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4549 | this->name()); |
| 4550 | } |
| 4551 | |
| 4552 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4553 | SetCachedSize(cached_size); |
| 4554 | return total_size; |
| 4555 | } |
| 4556 | |
| 4557 | void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 4558 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4559 | GOOGLE_DCHECK_NE(&from, this); |
| 4560 | const StopManagingDeviceRequest* source = |
| 4561 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>( |
| 4562 | &from); |
| 4563 | if (source == nullptr) { |
| 4564 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest) |
| 4565 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4566 | } else { |
| 4567 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest) |
| 4568 | MergeFrom(*source); |
| 4569 | } |
| 4570 | } |
| 4571 | |
| 4572 | void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) { |
| 4573 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4574 | GOOGLE_DCHECK_NE(&from, this); |
| 4575 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4576 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4577 | (void) cached_has_bits; |
| 4578 | |
| 4579 | if (from.name().size() > 0) { |
| 4580 | |
| 4581 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4582 | } |
| 4583 | } |
| 4584 | |
| 4585 | void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 4586 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4587 | if (&from == this) return; |
| 4588 | Clear(); |
| 4589 | MergeFrom(from); |
| 4590 | } |
| 4591 | |
| 4592 | void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) { |
| 4593 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4594 | if (&from == this) return; |
| 4595 | Clear(); |
| 4596 | MergeFrom(from); |
| 4597 | } |
| 4598 | |
| 4599 | bool StopManagingDeviceRequest::IsInitialized() const { |
| 4600 | return true; |
| 4601 | } |
| 4602 | |
| 4603 | void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) { |
| 4604 | if (other == this) return; |
| 4605 | InternalSwap(other); |
| 4606 | } |
| 4607 | void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) { |
| 4608 | using std::swap; |
| 4609 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4610 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4611 | GetArenaNoVirtual()); |
| 4612 | } |
| 4613 | |
| 4614 | ::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const { |
| 4615 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4616 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4617 | } |
| 4618 | |
| 4619 | |
| 4620 | // =================================================================== |
| 4621 | |
| 4622 | void StopManagingDeviceResponse::InitAsDefaultInstance() { |
| 4623 | } |
| 4624 | class StopManagingDeviceResponse::HasBitSetters { |
| 4625 | public: |
| 4626 | }; |
| 4627 | |
| 4628 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4629 | const int StopManagingDeviceResponse::kStatusFieldNumber; |
| 4630 | const int StopManagingDeviceResponse::kReasonFieldNumber; |
| 4631 | const int StopManagingDeviceResponse::kReasonDetailFieldNumber; |
| 4632 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4633 | |
| 4634 | StopManagingDeviceResponse::StopManagingDeviceResponse() |
| 4635 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4636 | SharedCtor(); |
| 4637 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse) |
| 4638 | } |
| 4639 | StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from) |
| 4640 | : ::google::protobuf::Message(), |
| 4641 | _internal_metadata_(nullptr) { |
| 4642 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4643 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4644 | if (from.reason_detail().size() > 0) { |
| 4645 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4646 | } |
| 4647 | ::memcpy(&status_, &from.status_, |
| 4648 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 4649 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4650 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse) |
| 4651 | } |
| 4652 | |
| 4653 | void StopManagingDeviceResponse::SharedCtor() { |
| 4654 | ::google::protobuf::internal::InitSCC( |
| 4655 | &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4656 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4657 | ::memset(&status_, 0, static_cast<size_t>( |
| 4658 | reinterpret_cast<char*>(&reason_) - |
| 4659 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4660 | } |
| 4661 | |
| 4662 | StopManagingDeviceResponse::~StopManagingDeviceResponse() { |
| 4663 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse) |
| 4664 | SharedDtor(); |
| 4665 | } |
| 4666 | |
| 4667 | void StopManagingDeviceResponse::SharedDtor() { |
| 4668 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4669 | } |
| 4670 | |
| 4671 | void StopManagingDeviceResponse::SetCachedSize(int size) const { |
| 4672 | _cached_size_.Set(size); |
| 4673 | } |
| 4674 | const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() { |
| 4675 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4676 | return *internal_default_instance(); |
| 4677 | } |
| 4678 | |
| 4679 | |
| 4680 | void StopManagingDeviceResponse::Clear() { |
| 4681 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse) |
| 4682 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4683 | // Prevent compiler warnings about cached_has_bits being unused |
| 4684 | (void) cached_has_bits; |
| 4685 | |
| 4686 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4687 | ::memset(&status_, 0, static_cast<size_t>( |
| 4688 | reinterpret_cast<char*>(&reason_) - |
| 4689 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4690 | _internal_metadata_.Clear(); |
| 4691 | } |
| 4692 | |
| 4693 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4694 | const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4695 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4696 | auto msg = static_cast<StopManagingDeviceResponse*>(object); |
| 4697 | ::google::protobuf::int32 size; (void)size; |
| 4698 | int depth; (void)depth; |
| 4699 | ::google::protobuf::uint32 tag; |
| 4700 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4701 | auto ptr = begin; |
| 4702 | while (ptr < end) { |
| 4703 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4704 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4705 | switch (tag >> 3) { |
| 4706 | // .dmi.Status status = 1; |
| 4707 | case 1: { |
| 4708 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4709 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4710 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4711 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4712 | break; |
| 4713 | } |
| 4714 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4715 | case 2: { |
| 4716 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4717 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4718 | msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val)); |
| 4719 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4720 | break; |
| 4721 | } |
| 4722 | // string reason_detail = 3; |
| 4723 | case 3: { |
| 4724 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4725 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4726 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4727 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail"); |
| 4728 | object = msg->mutable_reason_detail(); |
| 4729 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4730 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4731 | goto string_till_end; |
| 4732 | } |
| 4733 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4734 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4735 | ptr += size; |
| 4736 | break; |
| 4737 | } |
| 4738 | default: { |
| 4739 | handle_unusual: |
| 4740 | if ((tag & 7) == 4 || tag == 0) { |
| 4741 | ctx->EndGroup(tag); |
| 4742 | return ptr; |
| 4743 | } |
| 4744 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4745 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4746 | ptr = res.first; |
| 4747 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4748 | if (res.second) return ptr; |
| 4749 | } |
| 4750 | } // switch |
| 4751 | } // while |
| 4752 | return ptr; |
| 4753 | string_till_end: |
| 4754 | static_cast<::std::string*>(object)->clear(); |
| 4755 | static_cast<::std::string*>(object)->reserve(size); |
| 4756 | goto len_delim_till_end; |
| 4757 | len_delim_till_end: |
| 4758 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4759 | {parser_till_end, object}, size); |
| 4760 | } |
| 4761 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4762 | bool StopManagingDeviceResponse::MergePartialFromCodedStream( |
| 4763 | ::google::protobuf::io::CodedInputStream* input) { |
| 4764 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4765 | ::google::protobuf::uint32 tag; |
| 4766 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse) |
| 4767 | for (;;) { |
| 4768 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4769 | tag = p.first; |
| 4770 | if (!p.second) goto handle_unusual; |
| 4771 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4772 | // .dmi.Status status = 1; |
| 4773 | case 1: { |
| 4774 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4775 | int value = 0; |
| 4776 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4777 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4778 | input, &value))); |
| 4779 | set_status(static_cast< ::dmi::Status >(value)); |
| 4780 | } else { |
| 4781 | goto handle_unusual; |
| 4782 | } |
| 4783 | break; |
| 4784 | } |
| 4785 | |
| 4786 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4787 | case 2: { |
| 4788 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4789 | int value = 0; |
| 4790 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4791 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4792 | input, &value))); |
| 4793 | set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value)); |
| 4794 | } else { |
| 4795 | goto handle_unusual; |
| 4796 | } |
| 4797 | break; |
| 4798 | } |
| 4799 | |
| 4800 | // string reason_detail = 3; |
| 4801 | case 3: { |
| 4802 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4803 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4804 | input, this->mutable_reason_detail())); |
| 4805 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4806 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4807 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4808 | "dmi.StopManagingDeviceResponse.reason_detail")); |
| 4809 | } else { |
| 4810 | goto handle_unusual; |
| 4811 | } |
| 4812 | break; |
| 4813 | } |
| 4814 | |
| 4815 | default: { |
| 4816 | handle_unusual: |
| 4817 | if (tag == 0) { |
| 4818 | goto success; |
| 4819 | } |
| 4820 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4821 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4822 | break; |
| 4823 | } |
| 4824 | } |
| 4825 | } |
| 4826 | success: |
| 4827 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse) |
| 4828 | return true; |
| 4829 | failure: |
| 4830 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse) |
| 4831 | return false; |
| 4832 | #undef DO_ |
| 4833 | } |
| 4834 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4835 | |
| 4836 | void StopManagingDeviceResponse::SerializeWithCachedSizes( |
| 4837 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4838 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse) |
| 4839 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4840 | (void) cached_has_bits; |
| 4841 | |
| 4842 | // .dmi.Status status = 1; |
| 4843 | if (this->status() != 0) { |
| 4844 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4845 | 1, this->status(), output); |
| 4846 | } |
| 4847 | |
| 4848 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4849 | if (this->reason() != 0) { |
| 4850 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4851 | 2, this->reason(), output); |
| 4852 | } |
| 4853 | |
| 4854 | // string reason_detail = 3; |
| 4855 | if (this->reason_detail().size() > 0) { |
| 4856 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4857 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4858 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4859 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4860 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4861 | 3, this->reason_detail(), output); |
| 4862 | } |
| 4863 | |
| 4864 | if (_internal_metadata_.have_unknown_fields()) { |
| 4865 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4866 | _internal_metadata_.unknown_fields(), output); |
| 4867 | } |
| 4868 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse) |
| 4869 | } |
| 4870 | |
| 4871 | ::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4872 | ::google::protobuf::uint8* target) const { |
| 4873 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse) |
| 4874 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4875 | (void) cached_has_bits; |
| 4876 | |
| 4877 | // .dmi.Status status = 1; |
| 4878 | if (this->status() != 0) { |
| 4879 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4880 | 1, this->status(), target); |
| 4881 | } |
| 4882 | |
| 4883 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4884 | if (this->reason() != 0) { |
| 4885 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4886 | 2, this->reason(), target); |
| 4887 | } |
| 4888 | |
| 4889 | // string reason_detail = 3; |
| 4890 | if (this->reason_detail().size() > 0) { |
| 4891 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4892 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4893 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4894 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4895 | target = |
| 4896 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4897 | 3, this->reason_detail(), target); |
| 4898 | } |
| 4899 | |
| 4900 | if (_internal_metadata_.have_unknown_fields()) { |
| 4901 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4902 | _internal_metadata_.unknown_fields(), target); |
| 4903 | } |
| 4904 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse) |
| 4905 | return target; |
| 4906 | } |
| 4907 | |
| 4908 | size_t StopManagingDeviceResponse::ByteSizeLong() const { |
| 4909 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse) |
| 4910 | size_t total_size = 0; |
| 4911 | |
| 4912 | if (_internal_metadata_.have_unknown_fields()) { |
| 4913 | total_size += |
| 4914 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4915 | _internal_metadata_.unknown_fields()); |
| 4916 | } |
| 4917 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4918 | // Prevent compiler warnings about cached_has_bits being unused |
| 4919 | (void) cached_has_bits; |
| 4920 | |
| 4921 | // string reason_detail = 3; |
| 4922 | if (this->reason_detail().size() > 0) { |
| 4923 | total_size += 1 + |
| 4924 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4925 | this->reason_detail()); |
| 4926 | } |
| 4927 | |
| 4928 | // .dmi.Status status = 1; |
| 4929 | if (this->status() != 0) { |
| 4930 | total_size += 1 + |
| 4931 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4932 | } |
| 4933 | |
| 4934 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4935 | if (this->reason() != 0) { |
| 4936 | total_size += 1 + |
| 4937 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4938 | } |
| 4939 | |
| 4940 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4941 | SetCachedSize(cached_size); |
| 4942 | return total_size; |
| 4943 | } |
| 4944 | |
| 4945 | void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4946 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4947 | GOOGLE_DCHECK_NE(&from, this); |
| 4948 | const StopManagingDeviceResponse* source = |
| 4949 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>( |
| 4950 | &from); |
| 4951 | if (source == nullptr) { |
| 4952 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse) |
| 4953 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4954 | } else { |
| 4955 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse) |
| 4956 | MergeFrom(*source); |
| 4957 | } |
| 4958 | } |
| 4959 | |
| 4960 | void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) { |
| 4961 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4962 | GOOGLE_DCHECK_NE(&from, this); |
| 4963 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4964 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4965 | (void) cached_has_bits; |
| 4966 | |
| 4967 | if (from.reason_detail().size() > 0) { |
| 4968 | |
| 4969 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4970 | } |
| 4971 | if (from.status() != 0) { |
| 4972 | set_status(from.status()); |
| 4973 | } |
| 4974 | if (from.reason() != 0) { |
| 4975 | set_reason(from.reason()); |
| 4976 | } |
| 4977 | } |
| 4978 | |
| 4979 | void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4980 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4981 | if (&from == this) return; |
| 4982 | Clear(); |
| 4983 | MergeFrom(from); |
| 4984 | } |
| 4985 | |
| 4986 | void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) { |
| 4987 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4988 | if (&from == this) return; |
| 4989 | Clear(); |
| 4990 | MergeFrom(from); |
| 4991 | } |
| 4992 | |
| 4993 | bool StopManagingDeviceResponse::IsInitialized() const { |
| 4994 | return true; |
| 4995 | } |
| 4996 | |
| 4997 | void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) { |
| 4998 | if (other == this) return; |
| 4999 | InternalSwap(other); |
| 5000 | } |
| 5001 | void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) { |
| 5002 | using std::swap; |
| 5003 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5004 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5005 | GetArenaNoVirtual()); |
| 5006 | swap(status_, other->status_); |
| 5007 | swap(reason_, other->reason_); |
| 5008 | } |
| 5009 | |
| 5010 | ::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const { |
| 5011 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5012 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5013 | } |
| 5014 | |
| 5015 | |
| 5016 | // =================================================================== |
| 5017 | |
| 5018 | void ManagedDeviceInfo::InitAsDefaultInstance() { |
| 5019 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>( |
| 5020 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 5021 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5022 | ::dmi::Uuid::internal_default_instance()); |
| 5023 | } |
| 5024 | class ManagedDeviceInfo::HasBitSetters { |
| 5025 | public: |
| 5026 | static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg); |
| 5027 | static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg); |
| 5028 | }; |
| 5029 | |
| 5030 | const ::dmi::ModifiableComponent& |
| 5031 | ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) { |
| 5032 | return *msg->info_; |
| 5033 | } |
| 5034 | const ::dmi::Uuid& |
| 5035 | ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) { |
| 5036 | return *msg->device_uuid_; |
| 5037 | } |
| 5038 | void ManagedDeviceInfo::clear_info() { |
| 5039 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5040 | delete info_; |
| 5041 | } |
| 5042 | info_ = nullptr; |
| 5043 | } |
| 5044 | void ManagedDeviceInfo::clear_device_uuid() { |
| 5045 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5046 | delete device_uuid_; |
| 5047 | } |
| 5048 | device_uuid_ = nullptr; |
| 5049 | } |
| 5050 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5051 | const int ManagedDeviceInfo::kInfoFieldNumber; |
| 5052 | const int ManagedDeviceInfo::kDeviceUuidFieldNumber; |
| 5053 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5054 | |
| 5055 | ManagedDeviceInfo::ManagedDeviceInfo() |
| 5056 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5057 | SharedCtor(); |
| 5058 | // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo) |
| 5059 | } |
| 5060 | ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from) |
| 5061 | : ::google::protobuf::Message(), |
| 5062 | _internal_metadata_(nullptr) { |
| 5063 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5064 | if (from.has_info()) { |
| 5065 | info_ = new ::dmi::ModifiableComponent(*from.info_); |
| 5066 | } else { |
| 5067 | info_ = nullptr; |
| 5068 | } |
| 5069 | if (from.has_device_uuid()) { |
| 5070 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5071 | } else { |
| 5072 | device_uuid_ = nullptr; |
| 5073 | } |
| 5074 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo) |
| 5075 | } |
| 5076 | |
| 5077 | void ManagedDeviceInfo::SharedCtor() { |
| 5078 | ::google::protobuf::internal::InitSCC( |
| 5079 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5080 | ::memset(&info_, 0, static_cast<size_t>( |
| 5081 | reinterpret_cast<char*>(&device_uuid_) - |
| 5082 | reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_)); |
| 5083 | } |
| 5084 | |
| 5085 | ManagedDeviceInfo::~ManagedDeviceInfo() { |
| 5086 | // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo) |
| 5087 | SharedDtor(); |
| 5088 | } |
| 5089 | |
| 5090 | void ManagedDeviceInfo::SharedDtor() { |
| 5091 | if (this != internal_default_instance()) delete info_; |
| 5092 | if (this != internal_default_instance()) delete device_uuid_; |
| 5093 | } |
| 5094 | |
| 5095 | void ManagedDeviceInfo::SetCachedSize(int size) const { |
| 5096 | _cached_size_.Set(size); |
| 5097 | } |
| 5098 | const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() { |
| 5099 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5100 | return *internal_default_instance(); |
| 5101 | } |
| 5102 | |
| 5103 | |
| 5104 | void ManagedDeviceInfo::Clear() { |
| 5105 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo) |
| 5106 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5107 | // Prevent compiler warnings about cached_has_bits being unused |
| 5108 | (void) cached_has_bits; |
| 5109 | |
| 5110 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5111 | delete info_; |
| 5112 | } |
| 5113 | info_ = nullptr; |
| 5114 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5115 | delete device_uuid_; |
| 5116 | } |
| 5117 | device_uuid_ = nullptr; |
| 5118 | _internal_metadata_.Clear(); |
| 5119 | } |
| 5120 | |
| 5121 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5122 | const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 5123 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5124 | auto msg = static_cast<ManagedDeviceInfo*>(object); |
| 5125 | ::google::protobuf::int32 size; (void)size; |
| 5126 | int depth; (void)depth; |
| 5127 | ::google::protobuf::uint32 tag; |
| 5128 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5129 | auto ptr = begin; |
| 5130 | while (ptr < end) { |
| 5131 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5132 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5133 | switch (tag >> 3) { |
| 5134 | // .dmi.ModifiableComponent info = 1; |
| 5135 | case 1: { |
| 5136 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5137 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5138 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5139 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 5140 | object = msg->mutable_info(); |
| 5141 | if (size > end - ptr) goto len_delim_till_end; |
| 5142 | ptr += size; |
| 5143 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5144 | {parser_till_end, object}, ptr - size, ptr)); |
| 5145 | break; |
| 5146 | } |
| 5147 | // .dmi.Uuid device_uuid = 2; |
| 5148 | case 2: { |
| 5149 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5150 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5151 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5152 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5153 | object = msg->mutable_device_uuid(); |
| 5154 | if (size > end - ptr) goto len_delim_till_end; |
| 5155 | ptr += size; |
| 5156 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5157 | {parser_till_end, object}, ptr - size, ptr)); |
| 5158 | break; |
| 5159 | } |
| 5160 | default: { |
| 5161 | handle_unusual: |
| 5162 | if ((tag & 7) == 4 || tag == 0) { |
| 5163 | ctx->EndGroup(tag); |
| 5164 | return ptr; |
| 5165 | } |
| 5166 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5167 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5168 | ptr = res.first; |
| 5169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5170 | if (res.second) return ptr; |
| 5171 | } |
| 5172 | } // switch |
| 5173 | } // while |
| 5174 | return ptr; |
| 5175 | len_delim_till_end: |
| 5176 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5177 | {parser_till_end, object}, size); |
| 5178 | } |
| 5179 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5180 | bool ManagedDeviceInfo::MergePartialFromCodedStream( |
| 5181 | ::google::protobuf::io::CodedInputStream* input) { |
| 5182 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5183 | ::google::protobuf::uint32 tag; |
| 5184 | // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo) |
| 5185 | for (;;) { |
| 5186 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5187 | tag = p.first; |
| 5188 | if (!p.second) goto handle_unusual; |
| 5189 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5190 | // .dmi.ModifiableComponent info = 1; |
| 5191 | case 1: { |
| 5192 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5193 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5194 | input, mutable_info())); |
| 5195 | } else { |
| 5196 | goto handle_unusual; |
| 5197 | } |
| 5198 | break; |
| 5199 | } |
| 5200 | |
| 5201 | // .dmi.Uuid device_uuid = 2; |
| 5202 | case 2: { |
| 5203 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5204 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5205 | input, mutable_device_uuid())); |
| 5206 | } else { |
| 5207 | goto handle_unusual; |
| 5208 | } |
| 5209 | break; |
| 5210 | } |
| 5211 | |
| 5212 | default: { |
| 5213 | handle_unusual: |
| 5214 | if (tag == 0) { |
| 5215 | goto success; |
| 5216 | } |
| 5217 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5218 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5219 | break; |
| 5220 | } |
| 5221 | } |
| 5222 | } |
| 5223 | success: |
| 5224 | // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo) |
| 5225 | return true; |
| 5226 | failure: |
| 5227 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo) |
| 5228 | return false; |
| 5229 | #undef DO_ |
| 5230 | } |
| 5231 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5232 | |
| 5233 | void ManagedDeviceInfo::SerializeWithCachedSizes( |
| 5234 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5235 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo) |
| 5236 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5237 | (void) cached_has_bits; |
| 5238 | |
| 5239 | // .dmi.ModifiableComponent info = 1; |
| 5240 | if (this->has_info()) { |
| 5241 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5242 | 1, HasBitSetters::info(this), output); |
| 5243 | } |
| 5244 | |
| 5245 | // .dmi.Uuid device_uuid = 2; |
| 5246 | if (this->has_device_uuid()) { |
| 5247 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5248 | 2, HasBitSetters::device_uuid(this), output); |
| 5249 | } |
| 5250 | |
| 5251 | if (_internal_metadata_.have_unknown_fields()) { |
| 5252 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5253 | _internal_metadata_.unknown_fields(), output); |
| 5254 | } |
| 5255 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo) |
| 5256 | } |
| 5257 | |
| 5258 | ::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray( |
| 5259 | ::google::protobuf::uint8* target) const { |
| 5260 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo) |
| 5261 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5262 | (void) cached_has_bits; |
| 5263 | |
| 5264 | // .dmi.ModifiableComponent info = 1; |
| 5265 | if (this->has_info()) { |
| 5266 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5267 | InternalWriteMessageToArray( |
| 5268 | 1, HasBitSetters::info(this), target); |
| 5269 | } |
| 5270 | |
| 5271 | // .dmi.Uuid device_uuid = 2; |
| 5272 | if (this->has_device_uuid()) { |
| 5273 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5274 | InternalWriteMessageToArray( |
| 5275 | 2, HasBitSetters::device_uuid(this), target); |
| 5276 | } |
| 5277 | |
| 5278 | if (_internal_metadata_.have_unknown_fields()) { |
| 5279 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5280 | _internal_metadata_.unknown_fields(), target); |
| 5281 | } |
| 5282 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo) |
| 5283 | return target; |
| 5284 | } |
| 5285 | |
| 5286 | size_t ManagedDeviceInfo::ByteSizeLong() const { |
| 5287 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo) |
| 5288 | size_t total_size = 0; |
| 5289 | |
| 5290 | if (_internal_metadata_.have_unknown_fields()) { |
| 5291 | total_size += |
| 5292 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5293 | _internal_metadata_.unknown_fields()); |
| 5294 | } |
| 5295 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5296 | // Prevent compiler warnings about cached_has_bits being unused |
| 5297 | (void) cached_has_bits; |
| 5298 | |
| 5299 | // .dmi.ModifiableComponent info = 1; |
| 5300 | if (this->has_info()) { |
| 5301 | total_size += 1 + |
| 5302 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5303 | *info_); |
| 5304 | } |
| 5305 | |
| 5306 | // .dmi.Uuid device_uuid = 2; |
| 5307 | if (this->has_device_uuid()) { |
| 5308 | total_size += 1 + |
| 5309 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5310 | *device_uuid_); |
| 5311 | } |
| 5312 | |
| 5313 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5314 | SetCachedSize(cached_size); |
| 5315 | return total_size; |
| 5316 | } |
| 5317 | |
| 5318 | void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 5319 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo) |
| 5320 | GOOGLE_DCHECK_NE(&from, this); |
| 5321 | const ManagedDeviceInfo* source = |
| 5322 | ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>( |
| 5323 | &from); |
| 5324 | if (source == nullptr) { |
| 5325 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo) |
| 5326 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5327 | } else { |
| 5328 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo) |
| 5329 | MergeFrom(*source); |
| 5330 | } |
| 5331 | } |
| 5332 | |
| 5333 | void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) { |
| 5334 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo) |
| 5335 | GOOGLE_DCHECK_NE(&from, this); |
| 5336 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5337 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5338 | (void) cached_has_bits; |
| 5339 | |
| 5340 | if (from.has_info()) { |
| 5341 | mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info()); |
| 5342 | } |
| 5343 | if (from.has_device_uuid()) { |
| 5344 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 5345 | } |
| 5346 | } |
| 5347 | |
| 5348 | void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 5349 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo) |
| 5350 | if (&from == this) return; |
| 5351 | Clear(); |
| 5352 | MergeFrom(from); |
| 5353 | } |
| 5354 | |
| 5355 | void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) { |
| 5356 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo) |
| 5357 | if (&from == this) return; |
| 5358 | Clear(); |
| 5359 | MergeFrom(from); |
| 5360 | } |
| 5361 | |
| 5362 | bool ManagedDeviceInfo::IsInitialized() const { |
| 5363 | return true; |
| 5364 | } |
| 5365 | |
| 5366 | void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) { |
| 5367 | if (other == this) return; |
| 5368 | InternalSwap(other); |
| 5369 | } |
| 5370 | void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) { |
| 5371 | using std::swap; |
| 5372 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5373 | swap(info_, other->info_); |
| 5374 | swap(device_uuid_, other->device_uuid_); |
| 5375 | } |
| 5376 | |
| 5377 | ::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const { |
| 5378 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5379 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5380 | } |
| 5381 | |
| 5382 | |
| 5383 | // =================================================================== |
| 5384 | |
| 5385 | void ManagedDevicesResponse::InitAsDefaultInstance() { |
| 5386 | } |
| 5387 | class ManagedDevicesResponse::HasBitSetters { |
| 5388 | public: |
| 5389 | }; |
| 5390 | |
| 5391 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5392 | const int ManagedDevicesResponse::kStatusFieldNumber; |
| 5393 | const int ManagedDevicesResponse::kReasonFieldNumber; |
| 5394 | const int ManagedDevicesResponse::kDevicesFieldNumber; |
| 5395 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5396 | |
| 5397 | ManagedDevicesResponse::ManagedDevicesResponse() |
| 5398 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5399 | SharedCtor(); |
| 5400 | // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse) |
| 5401 | } |
| 5402 | ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from) |
| 5403 | : ::google::protobuf::Message(), |
| 5404 | _internal_metadata_(nullptr), |
| 5405 | devices_(from.devices_) { |
| 5406 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5407 | ::memcpy(&status_, &from.status_, |
| 5408 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 5409 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5410 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse) |
| 5411 | } |
| 5412 | |
| 5413 | void ManagedDevicesResponse::SharedCtor() { |
| 5414 | ::google::protobuf::internal::InitSCC( |
| 5415 | &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5416 | ::memset(&status_, 0, static_cast<size_t>( |
| 5417 | reinterpret_cast<char*>(&reason_) - |
| 5418 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5419 | } |
| 5420 | |
| 5421 | ManagedDevicesResponse::~ManagedDevicesResponse() { |
| 5422 | // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse) |
| 5423 | SharedDtor(); |
| 5424 | } |
| 5425 | |
| 5426 | void ManagedDevicesResponse::SharedDtor() { |
| 5427 | } |
| 5428 | |
| 5429 | void ManagedDevicesResponse::SetCachedSize(int size) const { |
| 5430 | _cached_size_.Set(size); |
| 5431 | } |
| 5432 | const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() { |
| 5433 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5434 | return *internal_default_instance(); |
| 5435 | } |
| 5436 | |
| 5437 | |
| 5438 | void ManagedDevicesResponse::Clear() { |
| 5439 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse) |
| 5440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5441 | // Prevent compiler warnings about cached_has_bits being unused |
| 5442 | (void) cached_has_bits; |
| 5443 | |
| 5444 | devices_.Clear(); |
| 5445 | ::memset(&status_, 0, static_cast<size_t>( |
| 5446 | reinterpret_cast<char*>(&reason_) - |
| 5447 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5448 | _internal_metadata_.Clear(); |
| 5449 | } |
| 5450 | |
| 5451 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5452 | const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 5453 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5454 | auto msg = static_cast<ManagedDevicesResponse*>(object); |
| 5455 | ::google::protobuf::int32 size; (void)size; |
| 5456 | int depth; (void)depth; |
| 5457 | ::google::protobuf::uint32 tag; |
| 5458 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5459 | auto ptr = begin; |
| 5460 | while (ptr < end) { |
| 5461 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5462 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5463 | switch (tag >> 3) { |
| 5464 | // .dmi.Status status = 1; |
| 5465 | case 1: { |
| 5466 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5467 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5468 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 5469 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5470 | break; |
| 5471 | } |
| 5472 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5473 | case 2: { |
| 5474 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5475 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5476 | msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val)); |
| 5477 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5478 | break; |
| 5479 | } |
| 5480 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5481 | case 3: { |
| 5482 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5483 | do { |
| 5484 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5485 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5486 | parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse; |
| 5487 | object = msg->add_devices(); |
| 5488 | if (size > end - ptr) goto len_delim_till_end; |
| 5489 | ptr += size; |
| 5490 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5491 | {parser_till_end, object}, ptr - size, ptr)); |
| 5492 | if (ptr >= end) break; |
| 5493 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); |
| 5494 | break; |
| 5495 | } |
| 5496 | default: { |
| 5497 | handle_unusual: |
| 5498 | if ((tag & 7) == 4 || tag == 0) { |
| 5499 | ctx->EndGroup(tag); |
| 5500 | return ptr; |
| 5501 | } |
| 5502 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5503 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5504 | ptr = res.first; |
| 5505 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5506 | if (res.second) return ptr; |
| 5507 | } |
| 5508 | } // switch |
| 5509 | } // while |
| 5510 | return ptr; |
| 5511 | len_delim_till_end: |
| 5512 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5513 | {parser_till_end, object}, size); |
| 5514 | } |
| 5515 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5516 | bool ManagedDevicesResponse::MergePartialFromCodedStream( |
| 5517 | ::google::protobuf::io::CodedInputStream* input) { |
| 5518 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5519 | ::google::protobuf::uint32 tag; |
| 5520 | // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse) |
| 5521 | for (;;) { |
| 5522 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5523 | tag = p.first; |
| 5524 | if (!p.second) goto handle_unusual; |
| 5525 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5526 | // .dmi.Status status = 1; |
| 5527 | case 1: { |
| 5528 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5529 | int value = 0; |
| 5530 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5531 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5532 | input, &value))); |
| 5533 | set_status(static_cast< ::dmi::Status >(value)); |
| 5534 | } else { |
| 5535 | goto handle_unusual; |
| 5536 | } |
| 5537 | break; |
| 5538 | } |
| 5539 | |
| 5540 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5541 | case 2: { |
| 5542 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5543 | int value = 0; |
| 5544 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5545 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5546 | input, &value))); |
| 5547 | set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value)); |
| 5548 | } else { |
| 5549 | goto handle_unusual; |
| 5550 | } |
| 5551 | break; |
| 5552 | } |
| 5553 | |
| 5554 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5555 | case 3: { |
| 5556 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5557 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5558 | input, add_devices())); |
| 5559 | } else { |
| 5560 | goto handle_unusual; |
| 5561 | } |
| 5562 | break; |
| 5563 | } |
| 5564 | |
| 5565 | default: { |
| 5566 | handle_unusual: |
| 5567 | if (tag == 0) { |
| 5568 | goto success; |
| 5569 | } |
| 5570 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5571 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5572 | break; |
| 5573 | } |
| 5574 | } |
| 5575 | } |
| 5576 | success: |
| 5577 | // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse) |
| 5578 | return true; |
| 5579 | failure: |
| 5580 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse) |
| 5581 | return false; |
| 5582 | #undef DO_ |
| 5583 | } |
| 5584 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5585 | |
| 5586 | void ManagedDevicesResponse::SerializeWithCachedSizes( |
| 5587 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5588 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse) |
| 5589 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5590 | (void) cached_has_bits; |
| 5591 | |
| 5592 | // .dmi.Status status = 1; |
| 5593 | if (this->status() != 0) { |
| 5594 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5595 | 1, this->status(), output); |
| 5596 | } |
| 5597 | |
| 5598 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5599 | if (this->reason() != 0) { |
| 5600 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5601 | 2, this->reason(), output); |
| 5602 | } |
| 5603 | |
| 5604 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5605 | for (unsigned int i = 0, |
| 5606 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5607 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5608 | 3, |
| 5609 | this->devices(static_cast<int>(i)), |
| 5610 | output); |
| 5611 | } |
| 5612 | |
| 5613 | if (_internal_metadata_.have_unknown_fields()) { |
| 5614 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5615 | _internal_metadata_.unknown_fields(), output); |
| 5616 | } |
| 5617 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse) |
| 5618 | } |
| 5619 | |
| 5620 | ::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray( |
| 5621 | ::google::protobuf::uint8* target) const { |
| 5622 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse) |
| 5623 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5624 | (void) cached_has_bits; |
| 5625 | |
| 5626 | // .dmi.Status status = 1; |
| 5627 | if (this->status() != 0) { |
| 5628 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5629 | 1, this->status(), target); |
| 5630 | } |
| 5631 | |
| 5632 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5633 | if (this->reason() != 0) { |
| 5634 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5635 | 2, this->reason(), target); |
| 5636 | } |
| 5637 | |
| 5638 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5639 | for (unsigned int i = 0, |
| 5640 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5641 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5642 | InternalWriteMessageToArray( |
| 5643 | 3, this->devices(static_cast<int>(i)), target); |
| 5644 | } |
| 5645 | |
| 5646 | if (_internal_metadata_.have_unknown_fields()) { |
| 5647 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5648 | _internal_metadata_.unknown_fields(), target); |
| 5649 | } |
| 5650 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse) |
| 5651 | return target; |
| 5652 | } |
| 5653 | |
| 5654 | size_t ManagedDevicesResponse::ByteSizeLong() const { |
| 5655 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse) |
| 5656 | size_t total_size = 0; |
| 5657 | |
| 5658 | if (_internal_metadata_.have_unknown_fields()) { |
| 5659 | total_size += |
| 5660 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5661 | _internal_metadata_.unknown_fields()); |
| 5662 | } |
| 5663 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5664 | // Prevent compiler warnings about cached_has_bits being unused |
| 5665 | (void) cached_has_bits; |
| 5666 | |
| 5667 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5668 | { |
| 5669 | unsigned int count = static_cast<unsigned int>(this->devices_size()); |
| 5670 | total_size += 1UL * count; |
| 5671 | for (unsigned int i = 0; i < count; i++) { |
| 5672 | total_size += |
| 5673 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5674 | this->devices(static_cast<int>(i))); |
| 5675 | } |
| 5676 | } |
| 5677 | |
| 5678 | // .dmi.Status status = 1; |
| 5679 | if (this->status() != 0) { |
| 5680 | total_size += 1 + |
| 5681 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 5682 | } |
| 5683 | |
| 5684 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5685 | if (this->reason() != 0) { |
| 5686 | total_size += 1 + |
| 5687 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 5688 | } |
| 5689 | |
| 5690 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5691 | SetCachedSize(cached_size); |
| 5692 | return total_size; |
| 5693 | } |
| 5694 | |
| 5695 | void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 5696 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse) |
| 5697 | GOOGLE_DCHECK_NE(&from, this); |
| 5698 | const ManagedDevicesResponse* source = |
| 5699 | ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>( |
| 5700 | &from); |
| 5701 | if (source == nullptr) { |
| 5702 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse) |
| 5703 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5704 | } else { |
| 5705 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse) |
| 5706 | MergeFrom(*source); |
| 5707 | } |
| 5708 | } |
| 5709 | |
| 5710 | void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) { |
| 5711 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse) |
| 5712 | GOOGLE_DCHECK_NE(&from, this); |
| 5713 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5714 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5715 | (void) cached_has_bits; |
| 5716 | |
| 5717 | devices_.MergeFrom(from.devices_); |
| 5718 | if (from.status() != 0) { |
| 5719 | set_status(from.status()); |
| 5720 | } |
| 5721 | if (from.reason() != 0) { |
| 5722 | set_reason(from.reason()); |
| 5723 | } |
| 5724 | } |
| 5725 | |
| 5726 | void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 5727 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse) |
| 5728 | if (&from == this) return; |
| 5729 | Clear(); |
| 5730 | MergeFrom(from); |
| 5731 | } |
| 5732 | |
| 5733 | void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) { |
| 5734 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse) |
| 5735 | if (&from == this) return; |
| 5736 | Clear(); |
| 5737 | MergeFrom(from); |
| 5738 | } |
| 5739 | |
| 5740 | bool ManagedDevicesResponse::IsInitialized() const { |
| 5741 | return true; |
| 5742 | } |
| 5743 | |
| 5744 | void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) { |
| 5745 | if (other == this) return; |
| 5746 | InternalSwap(other); |
| 5747 | } |
| 5748 | void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) { |
| 5749 | using std::swap; |
| 5750 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5751 | CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_)); |
| 5752 | swap(status_, other->status_); |
| 5753 | swap(reason_, other->reason_); |
| 5754 | } |
| 5755 | |
| 5756 | ::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const { |
| 5757 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5758 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5759 | } |
| 5760 | |
| 5761 | |
| 5762 | // =================================================================== |
| 5763 | |
| 5764 | void SetLoggingEndpointRequest::InitAsDefaultInstance() { |
| 5765 | ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5766 | ::dmi::Uuid::internal_default_instance()); |
| 5767 | } |
| 5768 | class SetLoggingEndpointRequest::HasBitSetters { |
| 5769 | public: |
| 5770 | static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg); |
| 5771 | }; |
| 5772 | |
| 5773 | const ::dmi::Uuid& |
| 5774 | SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) { |
| 5775 | return *msg->device_uuid_; |
| 5776 | } |
| 5777 | void SetLoggingEndpointRequest::clear_device_uuid() { |
| 5778 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5779 | delete device_uuid_; |
| 5780 | } |
| 5781 | device_uuid_ = nullptr; |
| 5782 | } |
| 5783 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5784 | const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber; |
| 5785 | const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber; |
| 5786 | const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber; |
| 5787 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5788 | |
| 5789 | SetLoggingEndpointRequest::SetLoggingEndpointRequest() |
| 5790 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5791 | SharedCtor(); |
| 5792 | // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest) |
| 5793 | } |
| 5794 | SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from) |
| 5795 | : ::google::protobuf::Message(), |
| 5796 | _internal_metadata_(nullptr) { |
| 5797 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5798 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5799 | if (from.logging_endpoint().size() > 0) { |
| 5800 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 5801 | } |
| 5802 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5803 | if (from.logging_protocol().size() > 0) { |
| 5804 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 5805 | } |
| 5806 | if (from.has_device_uuid()) { |
| 5807 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5808 | } else { |
| 5809 | device_uuid_ = nullptr; |
| 5810 | } |
| 5811 | // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest) |
| 5812 | } |
| 5813 | |
| 5814 | void SetLoggingEndpointRequest::SharedCtor() { |
| 5815 | ::google::protobuf::internal::InitSCC( |
| 5816 | &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5817 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5818 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5819 | device_uuid_ = nullptr; |
| 5820 | } |
| 5821 | |
| 5822 | SetLoggingEndpointRequest::~SetLoggingEndpointRequest() { |
| 5823 | // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest) |
| 5824 | SharedDtor(); |
| 5825 | } |
| 5826 | |
| 5827 | void SetLoggingEndpointRequest::SharedDtor() { |
| 5828 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5829 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5830 | if (this != internal_default_instance()) delete device_uuid_; |
| 5831 | } |
| 5832 | |
| 5833 | void SetLoggingEndpointRequest::SetCachedSize(int size) const { |
| 5834 | _cached_size_.Set(size); |
| 5835 | } |
| 5836 | const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() { |
| 5837 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5838 | return *internal_default_instance(); |
| 5839 | } |
| 5840 | |
| 5841 | |
| 5842 | void SetLoggingEndpointRequest::Clear() { |
| 5843 | // @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest) |
| 5844 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5845 | // Prevent compiler warnings about cached_has_bits being unused |
| 5846 | (void) cached_has_bits; |
| 5847 | |
| 5848 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5849 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5850 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5851 | delete device_uuid_; |
| 5852 | } |
| 5853 | device_uuid_ = nullptr; |
| 5854 | _internal_metadata_.Clear(); |
| 5855 | } |
| 5856 | |
| 5857 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5858 | const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 5859 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5860 | auto msg = static_cast<SetLoggingEndpointRequest*>(object); |
| 5861 | ::google::protobuf::int32 size; (void)size; |
| 5862 | int depth; (void)depth; |
| 5863 | ::google::protobuf::uint32 tag; |
| 5864 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5865 | auto ptr = begin; |
| 5866 | while (ptr < end) { |
| 5867 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5868 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5869 | switch (tag >> 3) { |
| 5870 | // .dmi.Uuid device_uuid = 1; |
| 5871 | case 1: { |
| 5872 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5873 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5874 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5875 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5876 | object = msg->mutable_device_uuid(); |
| 5877 | if (size > end - ptr) goto len_delim_till_end; |
| 5878 | ptr += size; |
| 5879 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5880 | {parser_till_end, object}, ptr - size, ptr)); |
| 5881 | break; |
| 5882 | } |
| 5883 | // string logging_endpoint = 2; |
| 5884 | case 2: { |
| 5885 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5886 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5887 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5888 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 5889 | object = msg->mutable_logging_endpoint(); |
| 5890 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5891 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5892 | goto string_till_end; |
| 5893 | } |
| 5894 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5895 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5896 | ptr += size; |
| 5897 | break; |
| 5898 | } |
| 5899 | // string logging_protocol = 3; |
| 5900 | case 3: { |
| 5901 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5902 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5903 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5904 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 5905 | object = msg->mutable_logging_protocol(); |
| 5906 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5907 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5908 | goto string_till_end; |
| 5909 | } |
| 5910 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5911 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5912 | ptr += size; |
| 5913 | break; |
| 5914 | } |
| 5915 | default: { |
| 5916 | handle_unusual: |
| 5917 | if ((tag & 7) == 4 || tag == 0) { |
| 5918 | ctx->EndGroup(tag); |
| 5919 | return ptr; |
| 5920 | } |
| 5921 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5922 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5923 | ptr = res.first; |
| 5924 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5925 | if (res.second) return ptr; |
| 5926 | } |
| 5927 | } // switch |
| 5928 | } // while |
| 5929 | return ptr; |
| 5930 | string_till_end: |
| 5931 | static_cast<::std::string*>(object)->clear(); |
| 5932 | static_cast<::std::string*>(object)->reserve(size); |
| 5933 | goto len_delim_till_end; |
| 5934 | len_delim_till_end: |
| 5935 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5936 | {parser_till_end, object}, size); |
| 5937 | } |
| 5938 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5939 | bool SetLoggingEndpointRequest::MergePartialFromCodedStream( |
| 5940 | ::google::protobuf::io::CodedInputStream* input) { |
| 5941 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5942 | ::google::protobuf::uint32 tag; |
| 5943 | // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest) |
| 5944 | for (;;) { |
| 5945 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5946 | tag = p.first; |
| 5947 | if (!p.second) goto handle_unusual; |
| 5948 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5949 | // .dmi.Uuid device_uuid = 1; |
| 5950 | case 1: { |
| 5951 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5952 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5953 | input, mutable_device_uuid())); |
| 5954 | } else { |
| 5955 | goto handle_unusual; |
| 5956 | } |
| 5957 | break; |
| 5958 | } |
| 5959 | |
| 5960 | // string logging_endpoint = 2; |
| 5961 | case 2: { |
| 5962 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5963 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5964 | input, this->mutable_logging_endpoint())); |
| 5965 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5966 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 5967 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5968 | "dmi.SetLoggingEndpointRequest.logging_endpoint")); |
| 5969 | } else { |
| 5970 | goto handle_unusual; |
| 5971 | } |
| 5972 | break; |
| 5973 | } |
| 5974 | |
| 5975 | // string logging_protocol = 3; |
| 5976 | case 3: { |
| 5977 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5978 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5979 | input, this->mutable_logging_protocol())); |
| 5980 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5981 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 5982 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5983 | "dmi.SetLoggingEndpointRequest.logging_protocol")); |
| 5984 | } else { |
| 5985 | goto handle_unusual; |
| 5986 | } |
| 5987 | break; |
| 5988 | } |
| 5989 | |
| 5990 | default: { |
| 5991 | handle_unusual: |
| 5992 | if (tag == 0) { |
| 5993 | goto success; |
| 5994 | } |
| 5995 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5996 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5997 | break; |
| 5998 | } |
| 5999 | } |
| 6000 | } |
| 6001 | success: |
| 6002 | // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest) |
| 6003 | return true; |
| 6004 | failure: |
| 6005 | // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest) |
| 6006 | return false; |
| 6007 | #undef DO_ |
| 6008 | } |
| 6009 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6010 | |
| 6011 | void SetLoggingEndpointRequest::SerializeWithCachedSizes( |
| 6012 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6013 | // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest) |
| 6014 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6015 | (void) cached_has_bits; |
| 6016 | |
| 6017 | // .dmi.Uuid device_uuid = 1; |
| 6018 | if (this->has_device_uuid()) { |
| 6019 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6020 | 1, HasBitSetters::device_uuid(this), output); |
| 6021 | } |
| 6022 | |
| 6023 | // string logging_endpoint = 2; |
| 6024 | if (this->logging_endpoint().size() > 0) { |
| 6025 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6026 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6027 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6028 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6029 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6030 | 2, this->logging_endpoint(), output); |
| 6031 | } |
| 6032 | |
| 6033 | // string logging_protocol = 3; |
| 6034 | if (this->logging_protocol().size() > 0) { |
| 6035 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6036 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6037 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6038 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6039 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6040 | 3, this->logging_protocol(), output); |
| 6041 | } |
| 6042 | |
| 6043 | if (_internal_metadata_.have_unknown_fields()) { |
| 6044 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6045 | _internal_metadata_.unknown_fields(), output); |
| 6046 | } |
| 6047 | // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest) |
| 6048 | } |
| 6049 | |
| 6050 | ::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 6051 | ::google::protobuf::uint8* target) const { |
| 6052 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest) |
| 6053 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6054 | (void) cached_has_bits; |
| 6055 | |
| 6056 | // .dmi.Uuid device_uuid = 1; |
| 6057 | if (this->has_device_uuid()) { |
| 6058 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6059 | InternalWriteMessageToArray( |
| 6060 | 1, HasBitSetters::device_uuid(this), target); |
| 6061 | } |
| 6062 | |
| 6063 | // string logging_endpoint = 2; |
| 6064 | if (this->logging_endpoint().size() > 0) { |
| 6065 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6066 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6067 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6068 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6069 | target = |
| 6070 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6071 | 2, this->logging_endpoint(), target); |
| 6072 | } |
| 6073 | |
| 6074 | // string logging_protocol = 3; |
| 6075 | if (this->logging_protocol().size() > 0) { |
| 6076 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6077 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6078 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6079 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6080 | target = |
| 6081 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6082 | 3, this->logging_protocol(), target); |
| 6083 | } |
| 6084 | |
| 6085 | if (_internal_metadata_.have_unknown_fields()) { |
| 6086 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6087 | _internal_metadata_.unknown_fields(), target); |
| 6088 | } |
| 6089 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest) |
| 6090 | return target; |
| 6091 | } |
| 6092 | |
| 6093 | size_t SetLoggingEndpointRequest::ByteSizeLong() const { |
| 6094 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest) |
| 6095 | size_t total_size = 0; |
| 6096 | |
| 6097 | if (_internal_metadata_.have_unknown_fields()) { |
| 6098 | total_size += |
| 6099 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6100 | _internal_metadata_.unknown_fields()); |
| 6101 | } |
| 6102 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6103 | // Prevent compiler warnings about cached_has_bits being unused |
| 6104 | (void) cached_has_bits; |
| 6105 | |
| 6106 | // string logging_endpoint = 2; |
| 6107 | if (this->logging_endpoint().size() > 0) { |
| 6108 | total_size += 1 + |
| 6109 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6110 | this->logging_endpoint()); |
| 6111 | } |
| 6112 | |
| 6113 | // string logging_protocol = 3; |
| 6114 | if (this->logging_protocol().size() > 0) { |
| 6115 | total_size += 1 + |
| 6116 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6117 | this->logging_protocol()); |
| 6118 | } |
| 6119 | |
| 6120 | // .dmi.Uuid device_uuid = 1; |
| 6121 | if (this->has_device_uuid()) { |
| 6122 | total_size += 1 + |
| 6123 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 6124 | *device_uuid_); |
| 6125 | } |
| 6126 | |
| 6127 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6128 | SetCachedSize(cached_size); |
| 6129 | return total_size; |
| 6130 | } |
| 6131 | |
| 6132 | void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 6133 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6134 | GOOGLE_DCHECK_NE(&from, this); |
| 6135 | const SetLoggingEndpointRequest* source = |
| 6136 | ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>( |
| 6137 | &from); |
| 6138 | if (source == nullptr) { |
| 6139 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest) |
| 6140 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6141 | } else { |
| 6142 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest) |
| 6143 | MergeFrom(*source); |
| 6144 | } |
| 6145 | } |
| 6146 | |
| 6147 | void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) { |
| 6148 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6149 | GOOGLE_DCHECK_NE(&from, this); |
| 6150 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6151 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6152 | (void) cached_has_bits; |
| 6153 | |
| 6154 | if (from.logging_endpoint().size() > 0) { |
| 6155 | |
| 6156 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6157 | } |
| 6158 | if (from.logging_protocol().size() > 0) { |
| 6159 | |
| 6160 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6161 | } |
| 6162 | if (from.has_device_uuid()) { |
| 6163 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 6164 | } |
| 6165 | } |
| 6166 | |
| 6167 | void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 6168 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6169 | if (&from == this) return; |
| 6170 | Clear(); |
| 6171 | MergeFrom(from); |
| 6172 | } |
| 6173 | |
| 6174 | void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) { |
| 6175 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6176 | if (&from == this) return; |
| 6177 | Clear(); |
| 6178 | MergeFrom(from); |
| 6179 | } |
| 6180 | |
| 6181 | bool SetLoggingEndpointRequest::IsInitialized() const { |
| 6182 | return true; |
| 6183 | } |
| 6184 | |
| 6185 | void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) { |
| 6186 | if (other == this) return; |
| 6187 | InternalSwap(other); |
| 6188 | } |
| 6189 | void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) { |
| 6190 | using std::swap; |
| 6191 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6192 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6193 | GetArenaNoVirtual()); |
| 6194 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6195 | GetArenaNoVirtual()); |
| 6196 | swap(device_uuid_, other->device_uuid_); |
| 6197 | } |
| 6198 | |
| 6199 | ::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const { |
| 6200 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6201 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6202 | } |
| 6203 | |
| 6204 | |
| 6205 | // =================================================================== |
| 6206 | |
| 6207 | void SetRemoteEndpointResponse::InitAsDefaultInstance() { |
| 6208 | } |
| 6209 | class SetRemoteEndpointResponse::HasBitSetters { |
| 6210 | public: |
| 6211 | }; |
| 6212 | |
| 6213 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6214 | const int SetRemoteEndpointResponse::kStatusFieldNumber; |
| 6215 | const int SetRemoteEndpointResponse::kReasonFieldNumber; |
| 6216 | const int SetRemoteEndpointResponse::kReasonDetailFieldNumber; |
| 6217 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6218 | |
| 6219 | SetRemoteEndpointResponse::SetRemoteEndpointResponse() |
| 6220 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6221 | SharedCtor(); |
| 6222 | // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse) |
| 6223 | } |
| 6224 | SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from) |
| 6225 | : ::google::protobuf::Message(), |
| 6226 | _internal_metadata_(nullptr) { |
| 6227 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6228 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6229 | if (from.reason_detail().size() > 0) { |
| 6230 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6231 | } |
| 6232 | ::memcpy(&status_, &from.status_, |
| 6233 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6234 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6235 | // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse) |
| 6236 | } |
| 6237 | |
| 6238 | void SetRemoteEndpointResponse::SharedCtor() { |
| 6239 | ::google::protobuf::internal::InitSCC( |
| 6240 | &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6241 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6242 | ::memset(&status_, 0, static_cast<size_t>( |
| 6243 | reinterpret_cast<char*>(&reason_) - |
| 6244 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6245 | } |
| 6246 | |
| 6247 | SetRemoteEndpointResponse::~SetRemoteEndpointResponse() { |
| 6248 | // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse) |
| 6249 | SharedDtor(); |
| 6250 | } |
| 6251 | |
| 6252 | void SetRemoteEndpointResponse::SharedDtor() { |
| 6253 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6254 | } |
| 6255 | |
| 6256 | void SetRemoteEndpointResponse::SetCachedSize(int size) const { |
| 6257 | _cached_size_.Set(size); |
| 6258 | } |
| 6259 | const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() { |
| 6260 | ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6261 | return *internal_default_instance(); |
| 6262 | } |
| 6263 | |
| 6264 | |
| 6265 | void SetRemoteEndpointResponse::Clear() { |
| 6266 | // @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse) |
| 6267 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6268 | // Prevent compiler warnings about cached_has_bits being unused |
| 6269 | (void) cached_has_bits; |
| 6270 | |
| 6271 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6272 | ::memset(&status_, 0, static_cast<size_t>( |
| 6273 | reinterpret_cast<char*>(&reason_) - |
| 6274 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6275 | _internal_metadata_.Clear(); |
| 6276 | } |
| 6277 | |
| 6278 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6279 | const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6280 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6281 | auto msg = static_cast<SetRemoteEndpointResponse*>(object); |
| 6282 | ::google::protobuf::int32 size; (void)size; |
| 6283 | int depth; (void)depth; |
| 6284 | ::google::protobuf::uint32 tag; |
| 6285 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6286 | auto ptr = begin; |
| 6287 | while (ptr < end) { |
| 6288 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6289 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6290 | switch (tag >> 3) { |
| 6291 | // .dmi.Status status = 1; |
| 6292 | case 1: { |
| 6293 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6294 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6295 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6296 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6297 | break; |
| 6298 | } |
| 6299 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6300 | case 2: { |
| 6301 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6302 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6303 | msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val)); |
| 6304 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6305 | break; |
| 6306 | } |
| 6307 | // string reason_detail = 3; |
| 6308 | case 3: { |
| 6309 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6310 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6311 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6312 | ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6313 | object = msg->mutable_reason_detail(); |
| 6314 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6315 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6316 | goto string_till_end; |
| 6317 | } |
| 6318 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6319 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6320 | ptr += size; |
| 6321 | break; |
| 6322 | } |
| 6323 | default: { |
| 6324 | handle_unusual: |
| 6325 | if ((tag & 7) == 4 || tag == 0) { |
| 6326 | ctx->EndGroup(tag); |
| 6327 | return ptr; |
| 6328 | } |
| 6329 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6330 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6331 | ptr = res.first; |
| 6332 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6333 | if (res.second) return ptr; |
| 6334 | } |
| 6335 | } // switch |
| 6336 | } // while |
| 6337 | return ptr; |
| 6338 | string_till_end: |
| 6339 | static_cast<::std::string*>(object)->clear(); |
| 6340 | static_cast<::std::string*>(object)->reserve(size); |
| 6341 | goto len_delim_till_end; |
| 6342 | len_delim_till_end: |
| 6343 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6344 | {parser_till_end, object}, size); |
| 6345 | } |
| 6346 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6347 | bool SetRemoteEndpointResponse::MergePartialFromCodedStream( |
| 6348 | ::google::protobuf::io::CodedInputStream* input) { |
| 6349 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6350 | ::google::protobuf::uint32 tag; |
| 6351 | // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse) |
| 6352 | for (;;) { |
| 6353 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6354 | tag = p.first; |
| 6355 | if (!p.second) goto handle_unusual; |
| 6356 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6357 | // .dmi.Status status = 1; |
| 6358 | case 1: { |
| 6359 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6360 | int value = 0; |
| 6361 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6362 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6363 | input, &value))); |
| 6364 | set_status(static_cast< ::dmi::Status >(value)); |
| 6365 | } else { |
| 6366 | goto handle_unusual; |
| 6367 | } |
| 6368 | break; |
| 6369 | } |
| 6370 | |
| 6371 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6372 | case 2: { |
| 6373 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6374 | int value = 0; |
| 6375 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6376 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6377 | input, &value))); |
| 6378 | set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value)); |
| 6379 | } else { |
| 6380 | goto handle_unusual; |
| 6381 | } |
| 6382 | break; |
| 6383 | } |
| 6384 | |
| 6385 | // string reason_detail = 3; |
| 6386 | case 3: { |
| 6387 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6388 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6389 | input, this->mutable_reason_detail())); |
| 6390 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6391 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6392 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6393 | "dmi.SetRemoteEndpointResponse.reason_detail")); |
| 6394 | } else { |
| 6395 | goto handle_unusual; |
| 6396 | } |
| 6397 | break; |
| 6398 | } |
| 6399 | |
| 6400 | default: { |
| 6401 | handle_unusual: |
| 6402 | if (tag == 0) { |
| 6403 | goto success; |
| 6404 | } |
| 6405 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6406 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6407 | break; |
| 6408 | } |
| 6409 | } |
| 6410 | } |
| 6411 | success: |
| 6412 | // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse) |
| 6413 | return true; |
| 6414 | failure: |
| 6415 | // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse) |
| 6416 | return false; |
| 6417 | #undef DO_ |
| 6418 | } |
| 6419 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6420 | |
| 6421 | void SetRemoteEndpointResponse::SerializeWithCachedSizes( |
| 6422 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6423 | // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse) |
| 6424 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6425 | (void) cached_has_bits; |
| 6426 | |
| 6427 | // .dmi.Status status = 1; |
| 6428 | if (this->status() != 0) { |
| 6429 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6430 | 1, this->status(), output); |
| 6431 | } |
| 6432 | |
| 6433 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6434 | if (this->reason() != 0) { |
| 6435 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6436 | 2, this->reason(), output); |
| 6437 | } |
| 6438 | |
| 6439 | // string reason_detail = 3; |
| 6440 | if (this->reason_detail().size() > 0) { |
| 6441 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6442 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6443 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6444 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6445 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6446 | 3, this->reason_detail(), output); |
| 6447 | } |
| 6448 | |
| 6449 | if (_internal_metadata_.have_unknown_fields()) { |
| 6450 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6451 | _internal_metadata_.unknown_fields(), output); |
| 6452 | } |
| 6453 | // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse) |
| 6454 | } |
| 6455 | |
| 6456 | ::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6457 | ::google::protobuf::uint8* target) const { |
| 6458 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse) |
| 6459 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6460 | (void) cached_has_bits; |
| 6461 | |
| 6462 | // .dmi.Status status = 1; |
| 6463 | if (this->status() != 0) { |
| 6464 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6465 | 1, this->status(), target); |
| 6466 | } |
| 6467 | |
| 6468 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6469 | if (this->reason() != 0) { |
| 6470 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6471 | 2, this->reason(), target); |
| 6472 | } |
| 6473 | |
| 6474 | // string reason_detail = 3; |
| 6475 | if (this->reason_detail().size() > 0) { |
| 6476 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6477 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6478 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6479 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6480 | target = |
| 6481 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6482 | 3, this->reason_detail(), target); |
| 6483 | } |
| 6484 | |
| 6485 | if (_internal_metadata_.have_unknown_fields()) { |
| 6486 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6487 | _internal_metadata_.unknown_fields(), target); |
| 6488 | } |
| 6489 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse) |
| 6490 | return target; |
| 6491 | } |
| 6492 | |
| 6493 | size_t SetRemoteEndpointResponse::ByteSizeLong() const { |
| 6494 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse) |
| 6495 | size_t total_size = 0; |
| 6496 | |
| 6497 | if (_internal_metadata_.have_unknown_fields()) { |
| 6498 | total_size += |
| 6499 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6500 | _internal_metadata_.unknown_fields()); |
| 6501 | } |
| 6502 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6503 | // Prevent compiler warnings about cached_has_bits being unused |
| 6504 | (void) cached_has_bits; |
| 6505 | |
| 6506 | // string reason_detail = 3; |
| 6507 | if (this->reason_detail().size() > 0) { |
| 6508 | total_size += 1 + |
| 6509 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6510 | this->reason_detail()); |
| 6511 | } |
| 6512 | |
| 6513 | // .dmi.Status status = 1; |
| 6514 | if (this->status() != 0) { |
| 6515 | total_size += 1 + |
| 6516 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6517 | } |
| 6518 | |
| 6519 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6520 | if (this->reason() != 0) { |
| 6521 | total_size += 1 + |
| 6522 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 6523 | } |
| 6524 | |
| 6525 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6526 | SetCachedSize(cached_size); |
| 6527 | return total_size; |
| 6528 | } |
| 6529 | |
| 6530 | void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 6531 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6532 | GOOGLE_DCHECK_NE(&from, this); |
| 6533 | const SetRemoteEndpointResponse* source = |
| 6534 | ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>( |
| 6535 | &from); |
| 6536 | if (source == nullptr) { |
| 6537 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse) |
| 6538 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6539 | } else { |
| 6540 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse) |
| 6541 | MergeFrom(*source); |
| 6542 | } |
| 6543 | } |
| 6544 | |
| 6545 | void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) { |
| 6546 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6547 | GOOGLE_DCHECK_NE(&from, this); |
| 6548 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6549 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6550 | (void) cached_has_bits; |
| 6551 | |
| 6552 | if (from.reason_detail().size() > 0) { |
| 6553 | |
| 6554 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6555 | } |
| 6556 | if (from.status() != 0) { |
| 6557 | set_status(from.status()); |
| 6558 | } |
| 6559 | if (from.reason() != 0) { |
| 6560 | set_reason(from.reason()); |
| 6561 | } |
| 6562 | } |
| 6563 | |
| 6564 | void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 6565 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6566 | if (&from == this) return; |
| 6567 | Clear(); |
| 6568 | MergeFrom(from); |
| 6569 | } |
| 6570 | |
| 6571 | void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) { |
| 6572 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6573 | if (&from == this) return; |
| 6574 | Clear(); |
| 6575 | MergeFrom(from); |
| 6576 | } |
| 6577 | |
| 6578 | bool SetRemoteEndpointResponse::IsInitialized() const { |
| 6579 | return true; |
| 6580 | } |
| 6581 | |
| 6582 | void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) { |
| 6583 | if (other == this) return; |
| 6584 | InternalSwap(other); |
| 6585 | } |
| 6586 | void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) { |
| 6587 | using std::swap; |
| 6588 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6589 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6590 | GetArenaNoVirtual()); |
| 6591 | swap(status_, other->status_); |
| 6592 | swap(reason_, other->reason_); |
| 6593 | } |
| 6594 | |
| 6595 | ::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const { |
| 6596 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6597 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6598 | } |
| 6599 | |
| 6600 | |
| 6601 | // =================================================================== |
| 6602 | |
| 6603 | void GetLoggingEndpointResponse::InitAsDefaultInstance() { |
| 6604 | } |
| 6605 | class GetLoggingEndpointResponse::HasBitSetters { |
| 6606 | public: |
| 6607 | }; |
| 6608 | |
| 6609 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6610 | const int GetLoggingEndpointResponse::kStatusFieldNumber; |
| 6611 | const int GetLoggingEndpointResponse::kReasonFieldNumber; |
| 6612 | const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber; |
| 6613 | const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber; |
| 6614 | const int GetLoggingEndpointResponse::kReasonDetailFieldNumber; |
| 6615 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6616 | |
| 6617 | GetLoggingEndpointResponse::GetLoggingEndpointResponse() |
| 6618 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6619 | SharedCtor(); |
| 6620 | // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse) |
| 6621 | } |
| 6622 | GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from) |
| 6623 | : ::google::protobuf::Message(), |
| 6624 | _internal_metadata_(nullptr) { |
| 6625 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6626 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6627 | if (from.logging_endpoint().size() > 0) { |
| 6628 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6629 | } |
| 6630 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6631 | if (from.logging_protocol().size() > 0) { |
| 6632 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6633 | } |
| 6634 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6635 | if (from.reason_detail().size() > 0) { |
| 6636 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6637 | } |
| 6638 | ::memcpy(&status_, &from.status_, |
| 6639 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6640 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6641 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse) |
| 6642 | } |
| 6643 | |
| 6644 | void GetLoggingEndpointResponse::SharedCtor() { |
| 6645 | ::google::protobuf::internal::InitSCC( |
| 6646 | &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6647 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6648 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6649 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6650 | ::memset(&status_, 0, static_cast<size_t>( |
| 6651 | reinterpret_cast<char*>(&reason_) - |
| 6652 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6653 | } |
| 6654 | |
| 6655 | GetLoggingEndpointResponse::~GetLoggingEndpointResponse() { |
| 6656 | // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse) |
| 6657 | SharedDtor(); |
| 6658 | } |
| 6659 | |
| 6660 | void GetLoggingEndpointResponse::SharedDtor() { |
| 6661 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6662 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6663 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6664 | } |
| 6665 | |
| 6666 | void GetLoggingEndpointResponse::SetCachedSize(int size) const { |
| 6667 | _cached_size_.Set(size); |
| 6668 | } |
| 6669 | const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() { |
| 6670 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6671 | return *internal_default_instance(); |
| 6672 | } |
| 6673 | |
| 6674 | |
| 6675 | void GetLoggingEndpointResponse::Clear() { |
| 6676 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse) |
| 6677 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6678 | // Prevent compiler warnings about cached_has_bits being unused |
| 6679 | (void) cached_has_bits; |
| 6680 | |
| 6681 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6682 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6683 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6684 | ::memset(&status_, 0, static_cast<size_t>( |
| 6685 | reinterpret_cast<char*>(&reason_) - |
| 6686 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6687 | _internal_metadata_.Clear(); |
| 6688 | } |
| 6689 | |
| 6690 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6691 | const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6692 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6693 | auto msg = static_cast<GetLoggingEndpointResponse*>(object); |
| 6694 | ::google::protobuf::int32 size; (void)size; |
| 6695 | int depth; (void)depth; |
| 6696 | ::google::protobuf::uint32 tag; |
| 6697 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6698 | auto ptr = begin; |
| 6699 | while (ptr < end) { |
| 6700 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6701 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6702 | switch (tag >> 3) { |
| 6703 | // .dmi.Status status = 1; |
| 6704 | case 1: { |
| 6705 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6706 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6707 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6708 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6709 | break; |
| 6710 | } |
| 6711 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6712 | case 2: { |
| 6713 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6714 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6715 | msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val)); |
| 6716 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6717 | break; |
| 6718 | } |
| 6719 | // string logging_endpoint = 3; |
| 6720 | case 3: { |
| 6721 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6722 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6723 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6724 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6725 | object = msg->mutable_logging_endpoint(); |
| 6726 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6727 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6728 | goto string_till_end; |
| 6729 | } |
| 6730 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6731 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6732 | ptr += size; |
| 6733 | break; |
| 6734 | } |
| 6735 | // string logging_protocol = 4; |
| 6736 | case 4: { |
| 6737 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6738 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6739 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6740 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6741 | object = msg->mutable_logging_protocol(); |
| 6742 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6743 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6744 | goto string_till_end; |
| 6745 | } |
| 6746 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6747 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6748 | ptr += size; |
| 6749 | break; |
| 6750 | } |
| 6751 | // string reason_detail = 5; |
| 6752 | case 5: { |
| 6753 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 6754 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6755 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6756 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6757 | object = msg->mutable_reason_detail(); |
| 6758 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6759 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6760 | goto string_till_end; |
| 6761 | } |
| 6762 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6763 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6764 | ptr += size; |
| 6765 | break; |
| 6766 | } |
| 6767 | default: { |
| 6768 | handle_unusual: |
| 6769 | if ((tag & 7) == 4 || tag == 0) { |
| 6770 | ctx->EndGroup(tag); |
| 6771 | return ptr; |
| 6772 | } |
| 6773 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6774 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6775 | ptr = res.first; |
| 6776 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6777 | if (res.second) return ptr; |
| 6778 | } |
| 6779 | } // switch |
| 6780 | } // while |
| 6781 | return ptr; |
| 6782 | string_till_end: |
| 6783 | static_cast<::std::string*>(object)->clear(); |
| 6784 | static_cast<::std::string*>(object)->reserve(size); |
| 6785 | goto len_delim_till_end; |
| 6786 | len_delim_till_end: |
| 6787 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6788 | {parser_till_end, object}, size); |
| 6789 | } |
| 6790 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6791 | bool GetLoggingEndpointResponse::MergePartialFromCodedStream( |
| 6792 | ::google::protobuf::io::CodedInputStream* input) { |
| 6793 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6794 | ::google::protobuf::uint32 tag; |
| 6795 | // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse) |
| 6796 | for (;;) { |
| 6797 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6798 | tag = p.first; |
| 6799 | if (!p.second) goto handle_unusual; |
| 6800 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6801 | // .dmi.Status status = 1; |
| 6802 | case 1: { |
| 6803 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6804 | int value = 0; |
| 6805 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6806 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6807 | input, &value))); |
| 6808 | set_status(static_cast< ::dmi::Status >(value)); |
| 6809 | } else { |
| 6810 | goto handle_unusual; |
| 6811 | } |
| 6812 | break; |
| 6813 | } |
| 6814 | |
| 6815 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6816 | case 2: { |
| 6817 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6818 | int value = 0; |
| 6819 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6820 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6821 | input, &value))); |
| 6822 | set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value)); |
| 6823 | } else { |
| 6824 | goto handle_unusual; |
| 6825 | } |
| 6826 | break; |
| 6827 | } |
| 6828 | |
| 6829 | // string logging_endpoint = 3; |
| 6830 | case 3: { |
| 6831 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6832 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6833 | input, this->mutable_logging_endpoint())); |
| 6834 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6835 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6836 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6837 | "dmi.GetLoggingEndpointResponse.logging_endpoint")); |
| 6838 | } else { |
| 6839 | goto handle_unusual; |
| 6840 | } |
| 6841 | break; |
| 6842 | } |
| 6843 | |
| 6844 | // string logging_protocol = 4; |
| 6845 | case 4: { |
| 6846 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 6847 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6848 | input, this->mutable_logging_protocol())); |
| 6849 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6850 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6851 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6852 | "dmi.GetLoggingEndpointResponse.logging_protocol")); |
| 6853 | } else { |
| 6854 | goto handle_unusual; |
| 6855 | } |
| 6856 | break; |
| 6857 | } |
| 6858 | |
| 6859 | // string reason_detail = 5; |
| 6860 | case 5: { |
| 6861 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 6862 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6863 | input, this->mutable_reason_detail())); |
| 6864 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6865 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6866 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6867 | "dmi.GetLoggingEndpointResponse.reason_detail")); |
| 6868 | } else { |
| 6869 | goto handle_unusual; |
| 6870 | } |
| 6871 | break; |
| 6872 | } |
| 6873 | |
| 6874 | default: { |
| 6875 | handle_unusual: |
| 6876 | if (tag == 0) { |
| 6877 | goto success; |
| 6878 | } |
| 6879 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6880 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6881 | break; |
| 6882 | } |
| 6883 | } |
| 6884 | } |
| 6885 | success: |
| 6886 | // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse) |
| 6887 | return true; |
| 6888 | failure: |
| 6889 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse) |
| 6890 | return false; |
| 6891 | #undef DO_ |
| 6892 | } |
| 6893 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6894 | |
| 6895 | void GetLoggingEndpointResponse::SerializeWithCachedSizes( |
| 6896 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6897 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse) |
| 6898 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6899 | (void) cached_has_bits; |
| 6900 | |
| 6901 | // .dmi.Status status = 1; |
| 6902 | if (this->status() != 0) { |
| 6903 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6904 | 1, this->status(), output); |
| 6905 | } |
| 6906 | |
| 6907 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6908 | if (this->reason() != 0) { |
| 6909 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6910 | 2, this->reason(), output); |
| 6911 | } |
| 6912 | |
| 6913 | // string logging_endpoint = 3; |
| 6914 | if (this->logging_endpoint().size() > 0) { |
| 6915 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6916 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6917 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6918 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6919 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6920 | 3, this->logging_endpoint(), output); |
| 6921 | } |
| 6922 | |
| 6923 | // string logging_protocol = 4; |
| 6924 | if (this->logging_protocol().size() > 0) { |
| 6925 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6926 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6927 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6928 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6929 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6930 | 4, this->logging_protocol(), output); |
| 6931 | } |
| 6932 | |
| 6933 | // string reason_detail = 5; |
| 6934 | if (this->reason_detail().size() > 0) { |
| 6935 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6936 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6937 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6938 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6939 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6940 | 5, this->reason_detail(), output); |
| 6941 | } |
| 6942 | |
| 6943 | if (_internal_metadata_.have_unknown_fields()) { |
| 6944 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6945 | _internal_metadata_.unknown_fields(), output); |
| 6946 | } |
| 6947 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse) |
| 6948 | } |
| 6949 | |
| 6950 | ::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6951 | ::google::protobuf::uint8* target) const { |
| 6952 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse) |
| 6953 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6954 | (void) cached_has_bits; |
| 6955 | |
| 6956 | // .dmi.Status status = 1; |
| 6957 | if (this->status() != 0) { |
| 6958 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6959 | 1, this->status(), target); |
| 6960 | } |
| 6961 | |
| 6962 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6963 | if (this->reason() != 0) { |
| 6964 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6965 | 2, this->reason(), target); |
| 6966 | } |
| 6967 | |
| 6968 | // string logging_endpoint = 3; |
| 6969 | if (this->logging_endpoint().size() > 0) { |
| 6970 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6971 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6972 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6973 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6974 | target = |
| 6975 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6976 | 3, this->logging_endpoint(), target); |
| 6977 | } |
| 6978 | |
| 6979 | // string logging_protocol = 4; |
| 6980 | if (this->logging_protocol().size() > 0) { |
| 6981 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6982 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6983 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6984 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6985 | target = |
| 6986 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6987 | 4, this->logging_protocol(), target); |
| 6988 | } |
| 6989 | |
| 6990 | // string reason_detail = 5; |
| 6991 | if (this->reason_detail().size() > 0) { |
| 6992 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6993 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6994 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6995 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6996 | target = |
| 6997 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6998 | 5, this->reason_detail(), target); |
| 6999 | } |
| 7000 | |
| 7001 | if (_internal_metadata_.have_unknown_fields()) { |
| 7002 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7003 | _internal_metadata_.unknown_fields(), target); |
| 7004 | } |
| 7005 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse) |
| 7006 | return target; |
| 7007 | } |
| 7008 | |
| 7009 | size_t GetLoggingEndpointResponse::ByteSizeLong() const { |
| 7010 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse) |
| 7011 | size_t total_size = 0; |
| 7012 | |
| 7013 | if (_internal_metadata_.have_unknown_fields()) { |
| 7014 | total_size += |
| 7015 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7016 | _internal_metadata_.unknown_fields()); |
| 7017 | } |
| 7018 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7019 | // Prevent compiler warnings about cached_has_bits being unused |
| 7020 | (void) cached_has_bits; |
| 7021 | |
| 7022 | // string logging_endpoint = 3; |
| 7023 | if (this->logging_endpoint().size() > 0) { |
| 7024 | total_size += 1 + |
| 7025 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7026 | this->logging_endpoint()); |
| 7027 | } |
| 7028 | |
| 7029 | // string logging_protocol = 4; |
| 7030 | if (this->logging_protocol().size() > 0) { |
| 7031 | total_size += 1 + |
| 7032 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7033 | this->logging_protocol()); |
| 7034 | } |
| 7035 | |
| 7036 | // string reason_detail = 5; |
| 7037 | if (this->reason_detail().size() > 0) { |
| 7038 | total_size += 1 + |
| 7039 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7040 | this->reason_detail()); |
| 7041 | } |
| 7042 | |
| 7043 | // .dmi.Status status = 1; |
| 7044 | if (this->status() != 0) { |
| 7045 | total_size += 1 + |
| 7046 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7047 | } |
| 7048 | |
| 7049 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7050 | if (this->reason() != 0) { |
| 7051 | total_size += 1 + |
| 7052 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7053 | } |
| 7054 | |
| 7055 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7056 | SetCachedSize(cached_size); |
| 7057 | return total_size; |
| 7058 | } |
| 7059 | |
| 7060 | void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7061 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7062 | GOOGLE_DCHECK_NE(&from, this); |
| 7063 | const GetLoggingEndpointResponse* source = |
| 7064 | ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>( |
| 7065 | &from); |
| 7066 | if (source == nullptr) { |
| 7067 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse) |
| 7068 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7069 | } else { |
| 7070 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse) |
| 7071 | MergeFrom(*source); |
| 7072 | } |
| 7073 | } |
| 7074 | |
| 7075 | void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) { |
| 7076 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7077 | GOOGLE_DCHECK_NE(&from, this); |
| 7078 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7079 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7080 | (void) cached_has_bits; |
| 7081 | |
| 7082 | if (from.logging_endpoint().size() > 0) { |
| 7083 | |
| 7084 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 7085 | } |
| 7086 | if (from.logging_protocol().size() > 0) { |
| 7087 | |
| 7088 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 7089 | } |
| 7090 | if (from.reason_detail().size() > 0) { |
| 7091 | |
| 7092 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7093 | } |
| 7094 | if (from.status() != 0) { |
| 7095 | set_status(from.status()); |
| 7096 | } |
| 7097 | if (from.reason() != 0) { |
| 7098 | set_reason(from.reason()); |
| 7099 | } |
| 7100 | } |
| 7101 | |
| 7102 | void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7103 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7104 | if (&from == this) return; |
| 7105 | Clear(); |
| 7106 | MergeFrom(from); |
| 7107 | } |
| 7108 | |
| 7109 | void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) { |
| 7110 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7111 | if (&from == this) return; |
| 7112 | Clear(); |
| 7113 | MergeFrom(from); |
| 7114 | } |
| 7115 | |
| 7116 | bool GetLoggingEndpointResponse::IsInitialized() const { |
| 7117 | return true; |
| 7118 | } |
| 7119 | |
| 7120 | void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) { |
| 7121 | if (other == this) return; |
| 7122 | InternalSwap(other); |
| 7123 | } |
| 7124 | void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) { |
| 7125 | using std::swap; |
| 7126 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7127 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7128 | GetArenaNoVirtual()); |
| 7129 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7130 | GetArenaNoVirtual()); |
| 7131 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7132 | GetArenaNoVirtual()); |
| 7133 | swap(status_, other->status_); |
| 7134 | swap(reason_, other->reason_); |
| 7135 | } |
| 7136 | |
| 7137 | ::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const { |
| 7138 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7139 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7140 | } |
| 7141 | |
| 7142 | |
| 7143 | // =================================================================== |
| 7144 | |
| 7145 | void SetMsgBusEndpointRequest::InitAsDefaultInstance() { |
| 7146 | } |
| 7147 | class SetMsgBusEndpointRequest::HasBitSetters { |
| 7148 | public: |
| 7149 | }; |
| 7150 | |
| 7151 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7152 | const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber; |
| 7153 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7154 | |
| 7155 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest() |
| 7156 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7157 | SharedCtor(); |
| 7158 | // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest) |
| 7159 | } |
| 7160 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from) |
| 7161 | : ::google::protobuf::Message(), |
| 7162 | _internal_metadata_(nullptr) { |
| 7163 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7164 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7165 | if (from.msgbus_endpoint().size() > 0) { |
| 7166 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7167 | } |
| 7168 | // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest) |
| 7169 | } |
| 7170 | |
| 7171 | void SetMsgBusEndpointRequest::SharedCtor() { |
| 7172 | ::google::protobuf::internal::InitSCC( |
| 7173 | &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7174 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7175 | } |
| 7176 | |
| 7177 | SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() { |
| 7178 | // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest) |
| 7179 | SharedDtor(); |
| 7180 | } |
| 7181 | |
| 7182 | void SetMsgBusEndpointRequest::SharedDtor() { |
| 7183 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7184 | } |
| 7185 | |
| 7186 | void SetMsgBusEndpointRequest::SetCachedSize(int size) const { |
| 7187 | _cached_size_.Set(size); |
| 7188 | } |
| 7189 | const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() { |
| 7190 | ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7191 | return *internal_default_instance(); |
| 7192 | } |
| 7193 | |
| 7194 | |
| 7195 | void SetMsgBusEndpointRequest::Clear() { |
| 7196 | // @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest) |
| 7197 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7198 | // Prevent compiler warnings about cached_has_bits being unused |
| 7199 | (void) cached_has_bits; |
| 7200 | |
| 7201 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7202 | _internal_metadata_.Clear(); |
| 7203 | } |
| 7204 | |
| 7205 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7206 | const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 7207 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7208 | auto msg = static_cast<SetMsgBusEndpointRequest*>(object); |
| 7209 | ::google::protobuf::int32 size; (void)size; |
| 7210 | int depth; (void)depth; |
| 7211 | ::google::protobuf::uint32 tag; |
| 7212 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7213 | auto ptr = begin; |
| 7214 | while (ptr < end) { |
| 7215 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7216 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7217 | switch (tag >> 3) { |
| 7218 | // string msgbus_endpoint = 1; |
| 7219 | case 1: { |
| 7220 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7221 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7222 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7223 | ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7224 | object = msg->mutable_msgbus_endpoint(); |
| 7225 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7226 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7227 | goto string_till_end; |
| 7228 | } |
| 7229 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7230 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7231 | ptr += size; |
| 7232 | break; |
| 7233 | } |
| 7234 | default: { |
| 7235 | handle_unusual: |
| 7236 | if ((tag & 7) == 4 || tag == 0) { |
| 7237 | ctx->EndGroup(tag); |
| 7238 | return ptr; |
| 7239 | } |
| 7240 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7241 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7242 | ptr = res.first; |
| 7243 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7244 | if (res.second) return ptr; |
| 7245 | } |
| 7246 | } // switch |
| 7247 | } // while |
| 7248 | return ptr; |
| 7249 | string_till_end: |
| 7250 | static_cast<::std::string*>(object)->clear(); |
| 7251 | static_cast<::std::string*>(object)->reserve(size); |
| 7252 | goto len_delim_till_end; |
| 7253 | len_delim_till_end: |
| 7254 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7255 | {parser_till_end, object}, size); |
| 7256 | } |
| 7257 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7258 | bool SetMsgBusEndpointRequest::MergePartialFromCodedStream( |
| 7259 | ::google::protobuf::io::CodedInputStream* input) { |
| 7260 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7261 | ::google::protobuf::uint32 tag; |
| 7262 | // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest) |
| 7263 | for (;;) { |
| 7264 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7265 | tag = p.first; |
| 7266 | if (!p.second) goto handle_unusual; |
| 7267 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7268 | // string msgbus_endpoint = 1; |
| 7269 | case 1: { |
| 7270 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7271 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7272 | input, this->mutable_msgbus_endpoint())); |
| 7273 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7274 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7275 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7276 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint")); |
| 7277 | } else { |
| 7278 | goto handle_unusual; |
| 7279 | } |
| 7280 | break; |
| 7281 | } |
| 7282 | |
| 7283 | default: { |
| 7284 | handle_unusual: |
| 7285 | if (tag == 0) { |
| 7286 | goto success; |
| 7287 | } |
| 7288 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7289 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7290 | break; |
| 7291 | } |
| 7292 | } |
| 7293 | } |
| 7294 | success: |
| 7295 | // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest) |
| 7296 | return true; |
| 7297 | failure: |
| 7298 | // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest) |
| 7299 | return false; |
| 7300 | #undef DO_ |
| 7301 | } |
| 7302 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7303 | |
| 7304 | void SetMsgBusEndpointRequest::SerializeWithCachedSizes( |
| 7305 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7306 | // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest) |
| 7307 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7308 | (void) cached_has_bits; |
| 7309 | |
| 7310 | // string msgbus_endpoint = 1; |
| 7311 | if (this->msgbus_endpoint().size() > 0) { |
| 7312 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7313 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7314 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7315 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7316 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7317 | 1, this->msgbus_endpoint(), output); |
| 7318 | } |
| 7319 | |
| 7320 | if (_internal_metadata_.have_unknown_fields()) { |
| 7321 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7322 | _internal_metadata_.unknown_fields(), output); |
| 7323 | } |
| 7324 | // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest) |
| 7325 | } |
| 7326 | |
| 7327 | ::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 7328 | ::google::protobuf::uint8* target) const { |
| 7329 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest) |
| 7330 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7331 | (void) cached_has_bits; |
| 7332 | |
| 7333 | // string msgbus_endpoint = 1; |
| 7334 | if (this->msgbus_endpoint().size() > 0) { |
| 7335 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7336 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7337 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7338 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7339 | target = |
| 7340 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7341 | 1, this->msgbus_endpoint(), target); |
| 7342 | } |
| 7343 | |
| 7344 | if (_internal_metadata_.have_unknown_fields()) { |
| 7345 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7346 | _internal_metadata_.unknown_fields(), target); |
| 7347 | } |
| 7348 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest) |
| 7349 | return target; |
| 7350 | } |
| 7351 | |
| 7352 | size_t SetMsgBusEndpointRequest::ByteSizeLong() const { |
| 7353 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest) |
| 7354 | size_t total_size = 0; |
| 7355 | |
| 7356 | if (_internal_metadata_.have_unknown_fields()) { |
| 7357 | total_size += |
| 7358 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7359 | _internal_metadata_.unknown_fields()); |
| 7360 | } |
| 7361 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7362 | // Prevent compiler warnings about cached_has_bits being unused |
| 7363 | (void) cached_has_bits; |
| 7364 | |
| 7365 | // string msgbus_endpoint = 1; |
| 7366 | if (this->msgbus_endpoint().size() > 0) { |
| 7367 | total_size += 1 + |
| 7368 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7369 | this->msgbus_endpoint()); |
| 7370 | } |
| 7371 | |
| 7372 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7373 | SetCachedSize(cached_size); |
| 7374 | return total_size; |
| 7375 | } |
| 7376 | |
| 7377 | void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 7378 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7379 | GOOGLE_DCHECK_NE(&from, this); |
| 7380 | const SetMsgBusEndpointRequest* source = |
| 7381 | ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>( |
| 7382 | &from); |
| 7383 | if (source == nullptr) { |
| 7384 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest) |
| 7385 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7386 | } else { |
| 7387 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest) |
| 7388 | MergeFrom(*source); |
| 7389 | } |
| 7390 | } |
| 7391 | |
| 7392 | void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) { |
| 7393 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7394 | GOOGLE_DCHECK_NE(&from, this); |
| 7395 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7396 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7397 | (void) cached_has_bits; |
| 7398 | |
| 7399 | if (from.msgbus_endpoint().size() > 0) { |
| 7400 | |
| 7401 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7402 | } |
| 7403 | } |
| 7404 | |
| 7405 | void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 7406 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7407 | if (&from == this) return; |
| 7408 | Clear(); |
| 7409 | MergeFrom(from); |
| 7410 | } |
| 7411 | |
| 7412 | void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) { |
| 7413 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7414 | if (&from == this) return; |
| 7415 | Clear(); |
| 7416 | MergeFrom(from); |
| 7417 | } |
| 7418 | |
| 7419 | bool SetMsgBusEndpointRequest::IsInitialized() const { |
| 7420 | return true; |
| 7421 | } |
| 7422 | |
| 7423 | void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) { |
| 7424 | if (other == this) return; |
| 7425 | InternalSwap(other); |
| 7426 | } |
| 7427 | void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) { |
| 7428 | using std::swap; |
| 7429 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7430 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7431 | GetArenaNoVirtual()); |
| 7432 | } |
| 7433 | |
| 7434 | ::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const { |
| 7435 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7436 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7437 | } |
| 7438 | |
| 7439 | |
| 7440 | // =================================================================== |
| 7441 | |
| 7442 | void GetMsgBusEndpointResponse::InitAsDefaultInstance() { |
| 7443 | } |
| 7444 | class GetMsgBusEndpointResponse::HasBitSetters { |
| 7445 | public: |
| 7446 | }; |
| 7447 | |
| 7448 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7449 | const int GetMsgBusEndpointResponse::kStatusFieldNumber; |
| 7450 | const int GetMsgBusEndpointResponse::kReasonFieldNumber; |
| 7451 | const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber; |
| 7452 | const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber; |
| 7453 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7454 | |
| 7455 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse() |
| 7456 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7457 | SharedCtor(); |
| 7458 | // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse) |
| 7459 | } |
| 7460 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from) |
| 7461 | : ::google::protobuf::Message(), |
| 7462 | _internal_metadata_(nullptr) { |
| 7463 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7464 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7465 | if (from.msgbus_endpoint().size() > 0) { |
| 7466 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7467 | } |
| 7468 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7469 | if (from.reason_detail().size() > 0) { |
| 7470 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7471 | } |
| 7472 | ::memcpy(&status_, &from.status_, |
| 7473 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 7474 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7475 | // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse) |
| 7476 | } |
| 7477 | |
| 7478 | void GetMsgBusEndpointResponse::SharedCtor() { |
| 7479 | ::google::protobuf::internal::InitSCC( |
| 7480 | &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7481 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7482 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7483 | ::memset(&status_, 0, static_cast<size_t>( |
| 7484 | reinterpret_cast<char*>(&reason_) - |
| 7485 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7486 | } |
| 7487 | |
| 7488 | GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() { |
| 7489 | // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse) |
| 7490 | SharedDtor(); |
| 7491 | } |
| 7492 | |
| 7493 | void GetMsgBusEndpointResponse::SharedDtor() { |
| 7494 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7495 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7496 | } |
| 7497 | |
| 7498 | void GetMsgBusEndpointResponse::SetCachedSize(int size) const { |
| 7499 | _cached_size_.Set(size); |
| 7500 | } |
| 7501 | const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() { |
| 7502 | ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7503 | return *internal_default_instance(); |
| 7504 | } |
| 7505 | |
| 7506 | |
| 7507 | void GetMsgBusEndpointResponse::Clear() { |
| 7508 | // @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse) |
| 7509 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7510 | // Prevent compiler warnings about cached_has_bits being unused |
| 7511 | (void) cached_has_bits; |
| 7512 | |
| 7513 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7514 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7515 | ::memset(&status_, 0, static_cast<size_t>( |
| 7516 | reinterpret_cast<char*>(&reason_) - |
| 7517 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7518 | _internal_metadata_.Clear(); |
| 7519 | } |
| 7520 | |
| 7521 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7522 | const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 7523 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7524 | auto msg = static_cast<GetMsgBusEndpointResponse*>(object); |
| 7525 | ::google::protobuf::int32 size; (void)size; |
| 7526 | int depth; (void)depth; |
| 7527 | ::google::protobuf::uint32 tag; |
| 7528 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7529 | auto ptr = begin; |
| 7530 | while (ptr < end) { |
| 7531 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7532 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7533 | switch (tag >> 3) { |
| 7534 | // .dmi.Status status = 1; |
| 7535 | case 1: { |
| 7536 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7537 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7538 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 7539 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7540 | break; |
| 7541 | } |
| 7542 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7543 | case 2: { |
| 7544 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 7545 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7546 | msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val)); |
| 7547 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7548 | break; |
| 7549 | } |
| 7550 | // string msgbus_endpoint = 3; |
| 7551 | case 3: { |
| 7552 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7553 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7554 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7555 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7556 | object = msg->mutable_msgbus_endpoint(); |
| 7557 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7558 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7559 | goto string_till_end; |
| 7560 | } |
| 7561 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7562 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7563 | ptr += size; |
| 7564 | break; |
| 7565 | } |
| 7566 | // string reason_detail = 4; |
| 7567 | case 4: { |
| 7568 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 7569 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7570 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7571 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7572 | object = msg->mutable_reason_detail(); |
| 7573 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7574 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7575 | goto string_till_end; |
| 7576 | } |
| 7577 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7578 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7579 | ptr += size; |
| 7580 | break; |
| 7581 | } |
| 7582 | default: { |
| 7583 | handle_unusual: |
| 7584 | if ((tag & 7) == 4 || tag == 0) { |
| 7585 | ctx->EndGroup(tag); |
| 7586 | return ptr; |
| 7587 | } |
| 7588 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7589 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7590 | ptr = res.first; |
| 7591 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7592 | if (res.second) return ptr; |
| 7593 | } |
| 7594 | } // switch |
| 7595 | } // while |
| 7596 | return ptr; |
| 7597 | string_till_end: |
| 7598 | static_cast<::std::string*>(object)->clear(); |
| 7599 | static_cast<::std::string*>(object)->reserve(size); |
| 7600 | goto len_delim_till_end; |
| 7601 | len_delim_till_end: |
| 7602 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7603 | {parser_till_end, object}, size); |
| 7604 | } |
| 7605 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7606 | bool GetMsgBusEndpointResponse::MergePartialFromCodedStream( |
| 7607 | ::google::protobuf::io::CodedInputStream* input) { |
| 7608 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7609 | ::google::protobuf::uint32 tag; |
| 7610 | // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse) |
| 7611 | for (;;) { |
| 7612 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7613 | tag = p.first; |
| 7614 | if (!p.second) goto handle_unusual; |
| 7615 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7616 | // .dmi.Status status = 1; |
| 7617 | case 1: { |
| 7618 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 7619 | int value = 0; |
| 7620 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7621 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7622 | input, &value))); |
| 7623 | set_status(static_cast< ::dmi::Status >(value)); |
| 7624 | } else { |
| 7625 | goto handle_unusual; |
| 7626 | } |
| 7627 | break; |
| 7628 | } |
| 7629 | |
| 7630 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7631 | case 2: { |
| 7632 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7633 | int value = 0; |
| 7634 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7635 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7636 | input, &value))); |
| 7637 | set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value)); |
| 7638 | } else { |
| 7639 | goto handle_unusual; |
| 7640 | } |
| 7641 | break; |
| 7642 | } |
| 7643 | |
| 7644 | // string msgbus_endpoint = 3; |
| 7645 | case 3: { |
| 7646 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7647 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7648 | input, this->mutable_msgbus_endpoint())); |
| 7649 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7650 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7651 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7652 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint")); |
| 7653 | } else { |
| 7654 | goto handle_unusual; |
| 7655 | } |
| 7656 | break; |
| 7657 | } |
| 7658 | |
| 7659 | // string reason_detail = 4; |
| 7660 | case 4: { |
| 7661 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7662 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7663 | input, this->mutable_reason_detail())); |
| 7664 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7665 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7666 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7667 | "dmi.GetMsgBusEndpointResponse.reason_detail")); |
| 7668 | } else { |
| 7669 | goto handle_unusual; |
| 7670 | } |
| 7671 | break; |
| 7672 | } |
| 7673 | |
| 7674 | default: { |
| 7675 | handle_unusual: |
| 7676 | if (tag == 0) { |
| 7677 | goto success; |
| 7678 | } |
| 7679 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7680 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7681 | break; |
| 7682 | } |
| 7683 | } |
| 7684 | } |
| 7685 | success: |
| 7686 | // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse) |
| 7687 | return true; |
| 7688 | failure: |
| 7689 | // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse) |
| 7690 | return false; |
| 7691 | #undef DO_ |
| 7692 | } |
| 7693 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7694 | |
| 7695 | void GetMsgBusEndpointResponse::SerializeWithCachedSizes( |
| 7696 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7697 | // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse) |
| 7698 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7699 | (void) cached_has_bits; |
| 7700 | |
| 7701 | // .dmi.Status status = 1; |
| 7702 | if (this->status() != 0) { |
| 7703 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7704 | 1, this->status(), output); |
| 7705 | } |
| 7706 | |
| 7707 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7708 | if (this->reason() != 0) { |
| 7709 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7710 | 2, this->reason(), output); |
| 7711 | } |
| 7712 | |
| 7713 | // string msgbus_endpoint = 3; |
| 7714 | if (this->msgbus_endpoint().size() > 0) { |
| 7715 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7716 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7717 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7718 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7719 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7720 | 3, this->msgbus_endpoint(), output); |
| 7721 | } |
| 7722 | |
| 7723 | // string reason_detail = 4; |
| 7724 | if (this->reason_detail().size() > 0) { |
| 7725 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7726 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7727 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7728 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7729 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7730 | 4, this->reason_detail(), output); |
| 7731 | } |
| 7732 | |
| 7733 | if (_internal_metadata_.have_unknown_fields()) { |
| 7734 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7735 | _internal_metadata_.unknown_fields(), output); |
| 7736 | } |
| 7737 | // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse) |
| 7738 | } |
| 7739 | |
| 7740 | ::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 7741 | ::google::protobuf::uint8* target) const { |
| 7742 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse) |
| 7743 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7744 | (void) cached_has_bits; |
| 7745 | |
| 7746 | // .dmi.Status status = 1; |
| 7747 | if (this->status() != 0) { |
| 7748 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7749 | 1, this->status(), target); |
| 7750 | } |
| 7751 | |
| 7752 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7753 | if (this->reason() != 0) { |
| 7754 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7755 | 2, this->reason(), target); |
| 7756 | } |
| 7757 | |
| 7758 | // string msgbus_endpoint = 3; |
| 7759 | if (this->msgbus_endpoint().size() > 0) { |
| 7760 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7761 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7762 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7763 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7764 | target = |
| 7765 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7766 | 3, this->msgbus_endpoint(), target); |
| 7767 | } |
| 7768 | |
| 7769 | // string reason_detail = 4; |
| 7770 | if (this->reason_detail().size() > 0) { |
| 7771 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7772 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7773 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7774 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7775 | target = |
| 7776 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7777 | 4, this->reason_detail(), target); |
| 7778 | } |
| 7779 | |
| 7780 | if (_internal_metadata_.have_unknown_fields()) { |
| 7781 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7782 | _internal_metadata_.unknown_fields(), target); |
| 7783 | } |
| 7784 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse) |
| 7785 | return target; |
| 7786 | } |
| 7787 | |
| 7788 | size_t GetMsgBusEndpointResponse::ByteSizeLong() const { |
| 7789 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse) |
| 7790 | size_t total_size = 0; |
| 7791 | |
| 7792 | if (_internal_metadata_.have_unknown_fields()) { |
| 7793 | total_size += |
| 7794 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7795 | _internal_metadata_.unknown_fields()); |
| 7796 | } |
| 7797 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7798 | // Prevent compiler warnings about cached_has_bits being unused |
| 7799 | (void) cached_has_bits; |
| 7800 | |
| 7801 | // string msgbus_endpoint = 3; |
| 7802 | if (this->msgbus_endpoint().size() > 0) { |
| 7803 | total_size += 1 + |
| 7804 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7805 | this->msgbus_endpoint()); |
| 7806 | } |
| 7807 | |
| 7808 | // string reason_detail = 4; |
| 7809 | if (this->reason_detail().size() > 0) { |
| 7810 | total_size += 1 + |
| 7811 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7812 | this->reason_detail()); |
| 7813 | } |
| 7814 | |
| 7815 | // .dmi.Status status = 1; |
| 7816 | if (this->status() != 0) { |
| 7817 | total_size += 1 + |
| 7818 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7819 | } |
| 7820 | |
| 7821 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7822 | if (this->reason() != 0) { |
| 7823 | total_size += 1 + |
| 7824 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7825 | } |
| 7826 | |
| 7827 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7828 | SetCachedSize(cached_size); |
| 7829 | return total_size; |
| 7830 | } |
| 7831 | |
| 7832 | void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7833 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7834 | GOOGLE_DCHECK_NE(&from, this); |
| 7835 | const GetMsgBusEndpointResponse* source = |
| 7836 | ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>( |
| 7837 | &from); |
| 7838 | if (source == nullptr) { |
| 7839 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse) |
| 7840 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7841 | } else { |
| 7842 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse) |
| 7843 | MergeFrom(*source); |
| 7844 | } |
| 7845 | } |
| 7846 | |
| 7847 | void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) { |
| 7848 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7849 | GOOGLE_DCHECK_NE(&from, this); |
| 7850 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7851 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7852 | (void) cached_has_bits; |
| 7853 | |
| 7854 | if (from.msgbus_endpoint().size() > 0) { |
| 7855 | |
| 7856 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7857 | } |
| 7858 | if (from.reason_detail().size() > 0) { |
| 7859 | |
| 7860 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7861 | } |
| 7862 | if (from.status() != 0) { |
| 7863 | set_status(from.status()); |
| 7864 | } |
| 7865 | if (from.reason() != 0) { |
| 7866 | set_reason(from.reason()); |
| 7867 | } |
| 7868 | } |
| 7869 | |
| 7870 | void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7871 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7872 | if (&from == this) return; |
| 7873 | Clear(); |
| 7874 | MergeFrom(from); |
| 7875 | } |
| 7876 | |
| 7877 | void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) { |
| 7878 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7879 | if (&from == this) return; |
| 7880 | Clear(); |
| 7881 | MergeFrom(from); |
| 7882 | } |
| 7883 | |
| 7884 | bool GetMsgBusEndpointResponse::IsInitialized() const { |
| 7885 | return true; |
| 7886 | } |
| 7887 | |
| 7888 | void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) { |
| 7889 | if (other == this) return; |
| 7890 | InternalSwap(other); |
| 7891 | } |
| 7892 | void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) { |
| 7893 | using std::swap; |
| 7894 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7895 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7896 | GetArenaNoVirtual()); |
| 7897 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7898 | GetArenaNoVirtual()); |
| 7899 | swap(status_, other->status_); |
| 7900 | swap(reason_, other->reason_); |
| 7901 | } |
| 7902 | |
| 7903 | ::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const { |
| 7904 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7905 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7906 | } |
| 7907 | |
| 7908 | |
| 7909 | // =================================================================== |
| 7910 | |
| 7911 | void EntitiesLogLevel::InitAsDefaultInstance() { |
| 7912 | } |
| 7913 | class EntitiesLogLevel::HasBitSetters { |
| 7914 | public: |
| 7915 | }; |
| 7916 | |
| 7917 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7918 | const int EntitiesLogLevel::kLogLevelFieldNumber; |
| 7919 | const int EntitiesLogLevel::kEntitiesFieldNumber; |
| 7920 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7921 | |
| 7922 | EntitiesLogLevel::EntitiesLogLevel() |
| 7923 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7924 | SharedCtor(); |
| 7925 | // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel) |
| 7926 | } |
| 7927 | EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from) |
| 7928 | : ::google::protobuf::Message(), |
| 7929 | _internal_metadata_(nullptr), |
| 7930 | entities_(from.entities_) { |
| 7931 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7932 | loglevel_ = from.loglevel_; |
| 7933 | // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel) |
| 7934 | } |
| 7935 | |
| 7936 | void EntitiesLogLevel::SharedCtor() { |
| 7937 | ::google::protobuf::internal::InitSCC( |
| 7938 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7939 | loglevel_ = 0; |
| 7940 | } |
| 7941 | |
| 7942 | EntitiesLogLevel::~EntitiesLogLevel() { |
| 7943 | // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel) |
| 7944 | SharedDtor(); |
| 7945 | } |
| 7946 | |
| 7947 | void EntitiesLogLevel::SharedDtor() { |
| 7948 | } |
| 7949 | |
| 7950 | void EntitiesLogLevel::SetCachedSize(int size) const { |
| 7951 | _cached_size_.Set(size); |
| 7952 | } |
| 7953 | const EntitiesLogLevel& EntitiesLogLevel::default_instance() { |
| 7954 | ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7955 | return *internal_default_instance(); |
| 7956 | } |
| 7957 | |
| 7958 | |
| 7959 | void EntitiesLogLevel::Clear() { |
| 7960 | // @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel) |
| 7961 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7962 | // Prevent compiler warnings about cached_has_bits being unused |
| 7963 | (void) cached_has_bits; |
| 7964 | |
| 7965 | entities_.Clear(); |
| 7966 | loglevel_ = 0; |
| 7967 | _internal_metadata_.Clear(); |
| 7968 | } |
| 7969 | |
| 7970 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7971 | const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object, |
| 7972 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7973 | auto msg = static_cast<EntitiesLogLevel*>(object); |
| 7974 | ::google::protobuf::int32 size; (void)size; |
| 7975 | int depth; (void)depth; |
| 7976 | ::google::protobuf::uint32 tag; |
| 7977 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7978 | auto ptr = begin; |
| 7979 | while (ptr < end) { |
| 7980 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7981 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7982 | switch (tag >> 3) { |
| 7983 | // .dmi.LogLevel logLevel = 1; |
| 7984 | case 1: { |
| 7985 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7986 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7987 | msg->set_loglevel(static_cast<::dmi::LogLevel>(val)); |
| 7988 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7989 | break; |
| 7990 | } |
| 7991 | // repeated string entities = 2; |
| 7992 | case 2: { |
| 7993 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 7994 | do { |
| 7995 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7996 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7997 | ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities"); |
| 7998 | object = msg->add_entities(); |
| 7999 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8000 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8001 | goto string_till_end; |
| 8002 | } |
| 8003 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8004 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8005 | ptr += size; |
| 8006 | if (ptr >= end) break; |
| 8007 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8008 | break; |
| 8009 | } |
| 8010 | default: { |
| 8011 | handle_unusual: |
| 8012 | if ((tag & 7) == 4 || tag == 0) { |
| 8013 | ctx->EndGroup(tag); |
| 8014 | return ptr; |
| 8015 | } |
| 8016 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8017 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8018 | ptr = res.first; |
| 8019 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8020 | if (res.second) return ptr; |
| 8021 | } |
| 8022 | } // switch |
| 8023 | } // while |
| 8024 | return ptr; |
| 8025 | string_till_end: |
| 8026 | static_cast<::std::string*>(object)->clear(); |
| 8027 | static_cast<::std::string*>(object)->reserve(size); |
| 8028 | goto len_delim_till_end; |
| 8029 | len_delim_till_end: |
| 8030 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8031 | {parser_till_end, object}, size); |
| 8032 | } |
| 8033 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8034 | bool EntitiesLogLevel::MergePartialFromCodedStream( |
| 8035 | ::google::protobuf::io::CodedInputStream* input) { |
| 8036 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8037 | ::google::protobuf::uint32 tag; |
| 8038 | // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel) |
| 8039 | for (;;) { |
| 8040 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8041 | tag = p.first; |
| 8042 | if (!p.second) goto handle_unusual; |
| 8043 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8044 | // .dmi.LogLevel logLevel = 1; |
| 8045 | case 1: { |
| 8046 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 8047 | int value = 0; |
| 8048 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8049 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8050 | input, &value))); |
| 8051 | set_loglevel(static_cast< ::dmi::LogLevel >(value)); |
| 8052 | } else { |
| 8053 | goto handle_unusual; |
| 8054 | } |
| 8055 | break; |
| 8056 | } |
| 8057 | |
| 8058 | // repeated string entities = 2; |
| 8059 | case 2: { |
| 8060 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8061 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8062 | input, this->add_entities())); |
| 8063 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8064 | this->entities(this->entities_size() - 1).data(), |
| 8065 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 8066 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8067 | "dmi.EntitiesLogLevel.entities")); |
| 8068 | } else { |
| 8069 | goto handle_unusual; |
| 8070 | } |
| 8071 | break; |
| 8072 | } |
| 8073 | |
| 8074 | default: { |
| 8075 | handle_unusual: |
| 8076 | if (tag == 0) { |
| 8077 | goto success; |
| 8078 | } |
| 8079 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8080 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8081 | break; |
| 8082 | } |
| 8083 | } |
| 8084 | } |
| 8085 | success: |
| 8086 | // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel) |
| 8087 | return true; |
| 8088 | failure: |
| 8089 | // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel) |
| 8090 | return false; |
| 8091 | #undef DO_ |
| 8092 | } |
| 8093 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8094 | |
| 8095 | void EntitiesLogLevel::SerializeWithCachedSizes( |
| 8096 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8097 | // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel) |
| 8098 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8099 | (void) cached_has_bits; |
| 8100 | |
| 8101 | // .dmi.LogLevel logLevel = 1; |
| 8102 | if (this->loglevel() != 0) { |
| 8103 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8104 | 1, this->loglevel(), output); |
| 8105 | } |
| 8106 | |
| 8107 | // repeated string entities = 2; |
| 8108 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8109 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8110 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8111 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8112 | "dmi.EntitiesLogLevel.entities"); |
| 8113 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 8114 | 2, this->entities(i), output); |
| 8115 | } |
| 8116 | |
| 8117 | if (_internal_metadata_.have_unknown_fields()) { |
| 8118 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8119 | _internal_metadata_.unknown_fields(), output); |
| 8120 | } |
| 8121 | // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel) |
| 8122 | } |
| 8123 | |
| 8124 | ::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray( |
| 8125 | ::google::protobuf::uint8* target) const { |
| 8126 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel) |
| 8127 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8128 | (void) cached_has_bits; |
| 8129 | |
| 8130 | // .dmi.LogLevel logLevel = 1; |
| 8131 | if (this->loglevel() != 0) { |
| 8132 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8133 | 1, this->loglevel(), target); |
| 8134 | } |
| 8135 | |
| 8136 | // repeated string entities = 2; |
| 8137 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8138 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8139 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8140 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8141 | "dmi.EntitiesLogLevel.entities"); |
| 8142 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8143 | WriteStringToArray(2, this->entities(i), target); |
| 8144 | } |
| 8145 | |
| 8146 | if (_internal_metadata_.have_unknown_fields()) { |
| 8147 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8148 | _internal_metadata_.unknown_fields(), target); |
| 8149 | } |
| 8150 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel) |
| 8151 | return target; |
| 8152 | } |
| 8153 | |
| 8154 | size_t EntitiesLogLevel::ByteSizeLong() const { |
| 8155 | // @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel) |
| 8156 | size_t total_size = 0; |
| 8157 | |
| 8158 | if (_internal_metadata_.have_unknown_fields()) { |
| 8159 | total_size += |
| 8160 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8161 | _internal_metadata_.unknown_fields()); |
| 8162 | } |
| 8163 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8164 | // Prevent compiler warnings about cached_has_bits being unused |
| 8165 | (void) cached_has_bits; |
| 8166 | |
| 8167 | // repeated string entities = 2; |
| 8168 | total_size += 1 * |
| 8169 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 8170 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8171 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8172 | this->entities(i)); |
| 8173 | } |
| 8174 | |
| 8175 | // .dmi.LogLevel logLevel = 1; |
| 8176 | if (this->loglevel() != 0) { |
| 8177 | total_size += 1 + |
| 8178 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel()); |
| 8179 | } |
| 8180 | |
| 8181 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8182 | SetCachedSize(cached_size); |
| 8183 | return total_size; |
| 8184 | } |
| 8185 | |
| 8186 | void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) { |
| 8187 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel) |
| 8188 | GOOGLE_DCHECK_NE(&from, this); |
| 8189 | const EntitiesLogLevel* source = |
| 8190 | ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>( |
| 8191 | &from); |
| 8192 | if (source == nullptr) { |
| 8193 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel) |
| 8194 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8195 | } else { |
| 8196 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel) |
| 8197 | MergeFrom(*source); |
| 8198 | } |
| 8199 | } |
| 8200 | |
| 8201 | void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) { |
| 8202 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel) |
| 8203 | GOOGLE_DCHECK_NE(&from, this); |
| 8204 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8205 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8206 | (void) cached_has_bits; |
| 8207 | |
| 8208 | entities_.MergeFrom(from.entities_); |
| 8209 | if (from.loglevel() != 0) { |
| 8210 | set_loglevel(from.loglevel()); |
| 8211 | } |
| 8212 | } |
| 8213 | |
| 8214 | void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) { |
| 8215 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel) |
| 8216 | if (&from == this) return; |
| 8217 | Clear(); |
| 8218 | MergeFrom(from); |
| 8219 | } |
| 8220 | |
| 8221 | void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) { |
| 8222 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel) |
| 8223 | if (&from == this) return; |
| 8224 | Clear(); |
| 8225 | MergeFrom(from); |
| 8226 | } |
| 8227 | |
| 8228 | bool EntitiesLogLevel::IsInitialized() const { |
| 8229 | return true; |
| 8230 | } |
| 8231 | |
| 8232 | void EntitiesLogLevel::Swap(EntitiesLogLevel* other) { |
| 8233 | if (other == this) return; |
| 8234 | InternalSwap(other); |
| 8235 | } |
| 8236 | void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) { |
| 8237 | using std::swap; |
| 8238 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8239 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 8240 | swap(loglevel_, other->loglevel_); |
| 8241 | } |
| 8242 | |
| 8243 | ::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const { |
| 8244 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8245 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8246 | } |
| 8247 | |
| 8248 | |
| 8249 | // =================================================================== |
| 8250 | |
| 8251 | void SetLogLevelRequest::InitAsDefaultInstance() { |
| 8252 | ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8253 | ::dmi::Uuid::internal_default_instance()); |
| 8254 | } |
| 8255 | class SetLogLevelRequest::HasBitSetters { |
| 8256 | public: |
| 8257 | static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg); |
| 8258 | }; |
| 8259 | |
| 8260 | const ::dmi::Uuid& |
| 8261 | SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) { |
| 8262 | return *msg->device_uuid_; |
| 8263 | } |
| 8264 | void SetLogLevelRequest::clear_device_uuid() { |
| 8265 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8266 | delete device_uuid_; |
| 8267 | } |
| 8268 | device_uuid_ = nullptr; |
| 8269 | } |
| 8270 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8271 | const int SetLogLevelRequest::kDeviceUuidFieldNumber; |
| 8272 | const int SetLogLevelRequest::kLoglevelsFieldNumber; |
| 8273 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8274 | |
| 8275 | SetLogLevelRequest::SetLogLevelRequest() |
| 8276 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8277 | SharedCtor(); |
| 8278 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest) |
| 8279 | } |
| 8280 | SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from) |
| 8281 | : ::google::protobuf::Message(), |
| 8282 | _internal_metadata_(nullptr), |
| 8283 | loglevels_(from.loglevels_) { |
| 8284 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8285 | if (from.has_device_uuid()) { |
| 8286 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8287 | } else { |
| 8288 | device_uuid_ = nullptr; |
| 8289 | } |
| 8290 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest) |
| 8291 | } |
| 8292 | |
| 8293 | void SetLogLevelRequest::SharedCtor() { |
| 8294 | ::google::protobuf::internal::InitSCC( |
| 8295 | &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8296 | device_uuid_ = nullptr; |
| 8297 | } |
| 8298 | |
| 8299 | SetLogLevelRequest::~SetLogLevelRequest() { |
| 8300 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest) |
| 8301 | SharedDtor(); |
| 8302 | } |
| 8303 | |
| 8304 | void SetLogLevelRequest::SharedDtor() { |
| 8305 | if (this != internal_default_instance()) delete device_uuid_; |
| 8306 | } |
| 8307 | |
| 8308 | void SetLogLevelRequest::SetCachedSize(int size) const { |
| 8309 | _cached_size_.Set(size); |
| 8310 | } |
| 8311 | const SetLogLevelRequest& SetLogLevelRequest::default_instance() { |
| 8312 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8313 | return *internal_default_instance(); |
| 8314 | } |
| 8315 | |
| 8316 | |
| 8317 | void SetLogLevelRequest::Clear() { |
| 8318 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest) |
| 8319 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8320 | // Prevent compiler warnings about cached_has_bits being unused |
| 8321 | (void) cached_has_bits; |
| 8322 | |
| 8323 | loglevels_.Clear(); |
| 8324 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8325 | delete device_uuid_; |
| 8326 | } |
| 8327 | device_uuid_ = nullptr; |
| 8328 | _internal_metadata_.Clear(); |
| 8329 | } |
| 8330 | |
| 8331 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8332 | const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 8333 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8334 | auto msg = static_cast<SetLogLevelRequest*>(object); |
| 8335 | ::google::protobuf::int32 size; (void)size; |
| 8336 | int depth; (void)depth; |
| 8337 | ::google::protobuf::uint32 tag; |
| 8338 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8339 | auto ptr = begin; |
| 8340 | while (ptr < end) { |
| 8341 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8342 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8343 | switch (tag >> 3) { |
| 8344 | // .dmi.Uuid device_uuid = 1; |
| 8345 | case 1: { |
| 8346 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8347 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8348 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8349 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8350 | object = msg->mutable_device_uuid(); |
| 8351 | if (size > end - ptr) goto len_delim_till_end; |
| 8352 | ptr += size; |
| 8353 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8354 | {parser_till_end, object}, ptr - size, ptr)); |
| 8355 | break; |
| 8356 | } |
| 8357 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8358 | case 2: { |
| 8359 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8360 | do { |
| 8361 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8362 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8363 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 8364 | object = msg->add_loglevels(); |
| 8365 | if (size > end - ptr) goto len_delim_till_end; |
| 8366 | ptr += size; |
| 8367 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8368 | {parser_till_end, object}, ptr - size, ptr)); |
| 8369 | if (ptr >= end) break; |
| 8370 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8371 | break; |
| 8372 | } |
| 8373 | default: { |
| 8374 | handle_unusual: |
| 8375 | if ((tag & 7) == 4 || tag == 0) { |
| 8376 | ctx->EndGroup(tag); |
| 8377 | return ptr; |
| 8378 | } |
| 8379 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8380 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8381 | ptr = res.first; |
| 8382 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8383 | if (res.second) return ptr; |
| 8384 | } |
| 8385 | } // switch |
| 8386 | } // while |
| 8387 | return ptr; |
| 8388 | len_delim_till_end: |
| 8389 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8390 | {parser_till_end, object}, size); |
| 8391 | } |
| 8392 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8393 | bool SetLogLevelRequest::MergePartialFromCodedStream( |
| 8394 | ::google::protobuf::io::CodedInputStream* input) { |
| 8395 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8396 | ::google::protobuf::uint32 tag; |
| 8397 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest) |
| 8398 | for (;;) { |
| 8399 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8400 | tag = p.first; |
| 8401 | if (!p.second) goto handle_unusual; |
| 8402 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8403 | // .dmi.Uuid device_uuid = 1; |
| 8404 | case 1: { |
| 8405 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8406 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8407 | input, mutable_device_uuid())); |
| 8408 | } else { |
| 8409 | goto handle_unusual; |
| 8410 | } |
| 8411 | break; |
| 8412 | } |
| 8413 | |
| 8414 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8415 | case 2: { |
| 8416 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8417 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8418 | input, add_loglevels())); |
| 8419 | } else { |
| 8420 | goto handle_unusual; |
| 8421 | } |
| 8422 | break; |
| 8423 | } |
| 8424 | |
| 8425 | default: { |
| 8426 | handle_unusual: |
| 8427 | if (tag == 0) { |
| 8428 | goto success; |
| 8429 | } |
| 8430 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8431 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8432 | break; |
| 8433 | } |
| 8434 | } |
| 8435 | } |
| 8436 | success: |
| 8437 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest) |
| 8438 | return true; |
| 8439 | failure: |
| 8440 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest) |
| 8441 | return false; |
| 8442 | #undef DO_ |
| 8443 | } |
| 8444 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8445 | |
| 8446 | void SetLogLevelRequest::SerializeWithCachedSizes( |
| 8447 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8448 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest) |
| 8449 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8450 | (void) cached_has_bits; |
| 8451 | |
| 8452 | // .dmi.Uuid device_uuid = 1; |
| 8453 | if (this->has_device_uuid()) { |
| 8454 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8455 | 1, HasBitSetters::device_uuid(this), output); |
| 8456 | } |
| 8457 | |
| 8458 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8459 | for (unsigned int i = 0, |
| 8460 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8461 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8462 | 2, |
| 8463 | this->loglevels(static_cast<int>(i)), |
| 8464 | output); |
| 8465 | } |
| 8466 | |
| 8467 | if (_internal_metadata_.have_unknown_fields()) { |
| 8468 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8469 | _internal_metadata_.unknown_fields(), output); |
| 8470 | } |
| 8471 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest) |
| 8472 | } |
| 8473 | |
| 8474 | ::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 8475 | ::google::protobuf::uint8* target) const { |
| 8476 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest) |
| 8477 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8478 | (void) cached_has_bits; |
| 8479 | |
| 8480 | // .dmi.Uuid device_uuid = 1; |
| 8481 | if (this->has_device_uuid()) { |
| 8482 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8483 | InternalWriteMessageToArray( |
| 8484 | 1, HasBitSetters::device_uuid(this), target); |
| 8485 | } |
| 8486 | |
| 8487 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8488 | for (unsigned int i = 0, |
| 8489 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8490 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8491 | InternalWriteMessageToArray( |
| 8492 | 2, this->loglevels(static_cast<int>(i)), target); |
| 8493 | } |
| 8494 | |
| 8495 | if (_internal_metadata_.have_unknown_fields()) { |
| 8496 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8497 | _internal_metadata_.unknown_fields(), target); |
| 8498 | } |
| 8499 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest) |
| 8500 | return target; |
| 8501 | } |
| 8502 | |
| 8503 | size_t SetLogLevelRequest::ByteSizeLong() const { |
| 8504 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest) |
| 8505 | size_t total_size = 0; |
| 8506 | |
| 8507 | if (_internal_metadata_.have_unknown_fields()) { |
| 8508 | total_size += |
| 8509 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8510 | _internal_metadata_.unknown_fields()); |
| 8511 | } |
| 8512 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8513 | // Prevent compiler warnings about cached_has_bits being unused |
| 8514 | (void) cached_has_bits; |
| 8515 | |
| 8516 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8517 | { |
| 8518 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 8519 | total_size += 1UL * count; |
| 8520 | for (unsigned int i = 0; i < count; i++) { |
| 8521 | total_size += |
| 8522 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8523 | this->loglevels(static_cast<int>(i))); |
| 8524 | } |
| 8525 | } |
| 8526 | |
| 8527 | // .dmi.Uuid device_uuid = 1; |
| 8528 | if (this->has_device_uuid()) { |
| 8529 | total_size += 1 + |
| 8530 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8531 | *device_uuid_); |
| 8532 | } |
| 8533 | |
| 8534 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8535 | SetCachedSize(cached_size); |
| 8536 | return total_size; |
| 8537 | } |
| 8538 | |
| 8539 | void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 8540 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest) |
| 8541 | GOOGLE_DCHECK_NE(&from, this); |
| 8542 | const SetLogLevelRequest* source = |
| 8543 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>( |
| 8544 | &from); |
| 8545 | if (source == nullptr) { |
| 8546 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest) |
| 8547 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8548 | } else { |
| 8549 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest) |
| 8550 | MergeFrom(*source); |
| 8551 | } |
| 8552 | } |
| 8553 | |
| 8554 | void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) { |
| 8555 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest) |
| 8556 | GOOGLE_DCHECK_NE(&from, this); |
| 8557 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8558 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8559 | (void) cached_has_bits; |
| 8560 | |
| 8561 | loglevels_.MergeFrom(from.loglevels_); |
| 8562 | if (from.has_device_uuid()) { |
| 8563 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 8564 | } |
| 8565 | } |
| 8566 | |
| 8567 | void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 8568 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest) |
| 8569 | if (&from == this) return; |
| 8570 | Clear(); |
| 8571 | MergeFrom(from); |
| 8572 | } |
| 8573 | |
| 8574 | void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) { |
| 8575 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest) |
| 8576 | if (&from == this) return; |
| 8577 | Clear(); |
| 8578 | MergeFrom(from); |
| 8579 | } |
| 8580 | |
| 8581 | bool SetLogLevelRequest::IsInitialized() const { |
| 8582 | return true; |
| 8583 | } |
| 8584 | |
| 8585 | void SetLogLevelRequest::Swap(SetLogLevelRequest* other) { |
| 8586 | if (other == this) return; |
| 8587 | InternalSwap(other); |
| 8588 | } |
| 8589 | void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) { |
| 8590 | using std::swap; |
| 8591 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8592 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 8593 | swap(device_uuid_, other->device_uuid_); |
| 8594 | } |
| 8595 | |
| 8596 | ::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const { |
| 8597 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8598 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8599 | } |
| 8600 | |
| 8601 | |
| 8602 | // =================================================================== |
| 8603 | |
| 8604 | void SetLogLevelResponse::InitAsDefaultInstance() { |
| 8605 | ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8606 | ::dmi::Uuid::internal_default_instance()); |
| 8607 | } |
| 8608 | class SetLogLevelResponse::HasBitSetters { |
| 8609 | public: |
| 8610 | static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg); |
| 8611 | }; |
| 8612 | |
| 8613 | const ::dmi::Uuid& |
| 8614 | SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) { |
| 8615 | return *msg->device_uuid_; |
| 8616 | } |
| 8617 | void SetLogLevelResponse::clear_device_uuid() { |
| 8618 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8619 | delete device_uuid_; |
| 8620 | } |
| 8621 | device_uuid_ = nullptr; |
| 8622 | } |
| 8623 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8624 | const int SetLogLevelResponse::kDeviceUuidFieldNumber; |
| 8625 | const int SetLogLevelResponse::kStatusFieldNumber; |
| 8626 | const int SetLogLevelResponse::kReasonFieldNumber; |
| 8627 | const int SetLogLevelResponse::kReasonDetailFieldNumber; |
| 8628 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8629 | |
| 8630 | SetLogLevelResponse::SetLogLevelResponse() |
| 8631 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8632 | SharedCtor(); |
| 8633 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse) |
| 8634 | } |
| 8635 | SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from) |
| 8636 | : ::google::protobuf::Message(), |
| 8637 | _internal_metadata_(nullptr) { |
| 8638 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8639 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8640 | if (from.reason_detail().size() > 0) { |
| 8641 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 8642 | } |
| 8643 | if (from.has_device_uuid()) { |
| 8644 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8645 | } else { |
| 8646 | device_uuid_ = nullptr; |
| 8647 | } |
| 8648 | ::memcpy(&status_, &from.status_, |
| 8649 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 8650 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8651 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse) |
| 8652 | } |
| 8653 | |
| 8654 | void SetLogLevelResponse::SharedCtor() { |
| 8655 | ::google::protobuf::internal::InitSCC( |
| 8656 | &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8657 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8658 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 8659 | reinterpret_cast<char*>(&reason_) - |
| 8660 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 8661 | } |
| 8662 | |
| 8663 | SetLogLevelResponse::~SetLogLevelResponse() { |
| 8664 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse) |
| 8665 | SharedDtor(); |
| 8666 | } |
| 8667 | |
| 8668 | void SetLogLevelResponse::SharedDtor() { |
| 8669 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8670 | if (this != internal_default_instance()) delete device_uuid_; |
| 8671 | } |
| 8672 | |
| 8673 | void SetLogLevelResponse::SetCachedSize(int size) const { |
| 8674 | _cached_size_.Set(size); |
| 8675 | } |
| 8676 | const SetLogLevelResponse& SetLogLevelResponse::default_instance() { |
| 8677 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8678 | return *internal_default_instance(); |
| 8679 | } |
| 8680 | |
| 8681 | |
| 8682 | void SetLogLevelResponse::Clear() { |
| 8683 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse) |
| 8684 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8685 | // Prevent compiler warnings about cached_has_bits being unused |
| 8686 | (void) cached_has_bits; |
| 8687 | |
| 8688 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8689 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8690 | delete device_uuid_; |
| 8691 | } |
| 8692 | device_uuid_ = nullptr; |
| 8693 | ::memset(&status_, 0, static_cast<size_t>( |
| 8694 | reinterpret_cast<char*>(&reason_) - |
| 8695 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8696 | _internal_metadata_.Clear(); |
| 8697 | } |
| 8698 | |
| 8699 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8700 | const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 8701 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8702 | auto msg = static_cast<SetLogLevelResponse*>(object); |
| 8703 | ::google::protobuf::int32 size; (void)size; |
| 8704 | int depth; (void)depth; |
| 8705 | ::google::protobuf::uint32 tag; |
| 8706 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8707 | auto ptr = begin; |
| 8708 | while (ptr < end) { |
| 8709 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8710 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8711 | switch (tag >> 3) { |
| 8712 | // .dmi.Uuid device_uuid = 1; |
| 8713 | case 1: { |
| 8714 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8715 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8716 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8717 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8718 | object = msg->mutable_device_uuid(); |
| 8719 | if (size > end - ptr) goto len_delim_till_end; |
| 8720 | ptr += size; |
| 8721 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8722 | {parser_till_end, object}, ptr - size, ptr)); |
| 8723 | break; |
| 8724 | } |
| 8725 | // .dmi.Status status = 2; |
| 8726 | case 2: { |
| 8727 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 8728 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8729 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 8730 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8731 | break; |
| 8732 | } |
| 8733 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8734 | case 3: { |
| 8735 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 8736 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8737 | msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val)); |
| 8738 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8739 | break; |
| 8740 | } |
| 8741 | // string reason_detail = 4; |
| 8742 | case 4: { |
| 8743 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 8744 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8745 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8746 | ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail"); |
| 8747 | object = msg->mutable_reason_detail(); |
| 8748 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8749 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8750 | goto string_till_end; |
| 8751 | } |
| 8752 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8753 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8754 | ptr += size; |
| 8755 | break; |
| 8756 | } |
| 8757 | default: { |
| 8758 | handle_unusual: |
| 8759 | if ((tag & 7) == 4 || tag == 0) { |
| 8760 | ctx->EndGroup(tag); |
| 8761 | return ptr; |
| 8762 | } |
| 8763 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8764 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8765 | ptr = res.first; |
| 8766 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8767 | if (res.second) return ptr; |
| 8768 | } |
| 8769 | } // switch |
| 8770 | } // while |
| 8771 | return ptr; |
| 8772 | string_till_end: |
| 8773 | static_cast<::std::string*>(object)->clear(); |
| 8774 | static_cast<::std::string*>(object)->reserve(size); |
| 8775 | goto len_delim_till_end; |
| 8776 | len_delim_till_end: |
| 8777 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8778 | {parser_till_end, object}, size); |
| 8779 | } |
| 8780 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8781 | bool SetLogLevelResponse::MergePartialFromCodedStream( |
| 8782 | ::google::protobuf::io::CodedInputStream* input) { |
| 8783 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8784 | ::google::protobuf::uint32 tag; |
| 8785 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse) |
| 8786 | for (;;) { |
| 8787 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8788 | tag = p.first; |
| 8789 | if (!p.second) goto handle_unusual; |
| 8790 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8791 | // .dmi.Uuid device_uuid = 1; |
| 8792 | case 1: { |
| 8793 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8794 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8795 | input, mutable_device_uuid())); |
| 8796 | } else { |
| 8797 | goto handle_unusual; |
| 8798 | } |
| 8799 | break; |
| 8800 | } |
| 8801 | |
| 8802 | // .dmi.Status status = 2; |
| 8803 | case 2: { |
| 8804 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 8805 | int value = 0; |
| 8806 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8807 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8808 | input, &value))); |
| 8809 | set_status(static_cast< ::dmi::Status >(value)); |
| 8810 | } else { |
| 8811 | goto handle_unusual; |
| 8812 | } |
| 8813 | break; |
| 8814 | } |
| 8815 | |
| 8816 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8817 | case 3: { |
| 8818 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 8819 | int value = 0; |
| 8820 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8821 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8822 | input, &value))); |
| 8823 | set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value)); |
| 8824 | } else { |
| 8825 | goto handle_unusual; |
| 8826 | } |
| 8827 | break; |
| 8828 | } |
| 8829 | |
| 8830 | // string reason_detail = 4; |
| 8831 | case 4: { |
| 8832 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 8833 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8834 | input, this->mutable_reason_detail())); |
| 8835 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8836 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8837 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8838 | "dmi.SetLogLevelResponse.reason_detail")); |
| 8839 | } else { |
| 8840 | goto handle_unusual; |
| 8841 | } |
| 8842 | break; |
| 8843 | } |
| 8844 | |
| 8845 | default: { |
| 8846 | handle_unusual: |
| 8847 | if (tag == 0) { |
| 8848 | goto success; |
| 8849 | } |
| 8850 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8851 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8852 | break; |
| 8853 | } |
| 8854 | } |
| 8855 | } |
| 8856 | success: |
| 8857 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse) |
| 8858 | return true; |
| 8859 | failure: |
| 8860 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse) |
| 8861 | return false; |
| 8862 | #undef DO_ |
| 8863 | } |
| 8864 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8865 | |
| 8866 | void SetLogLevelResponse::SerializeWithCachedSizes( |
| 8867 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8868 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse) |
| 8869 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8870 | (void) cached_has_bits; |
| 8871 | |
| 8872 | // .dmi.Uuid device_uuid = 1; |
| 8873 | if (this->has_device_uuid()) { |
| 8874 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8875 | 1, HasBitSetters::device_uuid(this), output); |
| 8876 | } |
| 8877 | |
| 8878 | // .dmi.Status status = 2; |
| 8879 | if (this->status() != 0) { |
| 8880 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8881 | 2, this->status(), output); |
| 8882 | } |
| 8883 | |
| 8884 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8885 | if (this->reason() != 0) { |
| 8886 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8887 | 3, this->reason(), output); |
| 8888 | } |
| 8889 | |
| 8890 | // string reason_detail = 4; |
| 8891 | if (this->reason_detail().size() > 0) { |
| 8892 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8893 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8894 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8895 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8896 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8897 | 4, this->reason_detail(), output); |
| 8898 | } |
| 8899 | |
| 8900 | if (_internal_metadata_.have_unknown_fields()) { |
| 8901 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8902 | _internal_metadata_.unknown_fields(), output); |
| 8903 | } |
| 8904 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse) |
| 8905 | } |
| 8906 | |
| 8907 | ::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 8908 | ::google::protobuf::uint8* target) const { |
| 8909 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse) |
| 8910 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8911 | (void) cached_has_bits; |
| 8912 | |
| 8913 | // .dmi.Uuid device_uuid = 1; |
| 8914 | if (this->has_device_uuid()) { |
| 8915 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8916 | InternalWriteMessageToArray( |
| 8917 | 1, HasBitSetters::device_uuid(this), target); |
| 8918 | } |
| 8919 | |
| 8920 | // .dmi.Status status = 2; |
| 8921 | if (this->status() != 0) { |
| 8922 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8923 | 2, this->status(), target); |
| 8924 | } |
| 8925 | |
| 8926 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8927 | if (this->reason() != 0) { |
| 8928 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8929 | 3, this->reason(), target); |
| 8930 | } |
| 8931 | |
| 8932 | // string reason_detail = 4; |
| 8933 | if (this->reason_detail().size() > 0) { |
| 8934 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8935 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8936 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8937 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8938 | target = |
| 8939 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8940 | 4, this->reason_detail(), target); |
| 8941 | } |
| 8942 | |
| 8943 | if (_internal_metadata_.have_unknown_fields()) { |
| 8944 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8945 | _internal_metadata_.unknown_fields(), target); |
| 8946 | } |
| 8947 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse) |
| 8948 | return target; |
| 8949 | } |
| 8950 | |
| 8951 | size_t SetLogLevelResponse::ByteSizeLong() const { |
| 8952 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse) |
| 8953 | size_t total_size = 0; |
| 8954 | |
| 8955 | if (_internal_metadata_.have_unknown_fields()) { |
| 8956 | total_size += |
| 8957 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8958 | _internal_metadata_.unknown_fields()); |
| 8959 | } |
| 8960 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8961 | // Prevent compiler warnings about cached_has_bits being unused |
| 8962 | (void) cached_has_bits; |
| 8963 | |
| 8964 | // string reason_detail = 4; |
| 8965 | if (this->reason_detail().size() > 0) { |
| 8966 | total_size += 1 + |
| 8967 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8968 | this->reason_detail()); |
| 8969 | } |
| 8970 | |
| 8971 | // .dmi.Uuid device_uuid = 1; |
| 8972 | if (this->has_device_uuid()) { |
| 8973 | total_size += 1 + |
| 8974 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8975 | *device_uuid_); |
| 8976 | } |
| 8977 | |
| 8978 | // .dmi.Status status = 2; |
| 8979 | if (this->status() != 0) { |
| 8980 | total_size += 1 + |
| 8981 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 8982 | } |
| 8983 | |
| 8984 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8985 | if (this->reason() != 0) { |
| 8986 | total_size += 1 + |
| 8987 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 8988 | } |
| 8989 | |
| 8990 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8991 | SetCachedSize(cached_size); |
| 8992 | return total_size; |
| 8993 | } |
| 8994 | |
| 8995 | void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 8996 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse) |
| 8997 | GOOGLE_DCHECK_NE(&from, this); |
| 8998 | const SetLogLevelResponse* source = |
| 8999 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>( |
| 9000 | &from); |
| 9001 | if (source == nullptr) { |
| 9002 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse) |
| 9003 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9004 | } else { |
| 9005 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse) |
| 9006 | MergeFrom(*source); |
| 9007 | } |
| 9008 | } |
| 9009 | |
| 9010 | void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) { |
| 9011 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse) |
| 9012 | GOOGLE_DCHECK_NE(&from, this); |
| 9013 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9014 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9015 | (void) cached_has_bits; |
| 9016 | |
| 9017 | if (from.reason_detail().size() > 0) { |
| 9018 | |
| 9019 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9020 | } |
| 9021 | if (from.has_device_uuid()) { |
| 9022 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9023 | } |
| 9024 | if (from.status() != 0) { |
| 9025 | set_status(from.status()); |
| 9026 | } |
| 9027 | if (from.reason() != 0) { |
| 9028 | set_reason(from.reason()); |
| 9029 | } |
| 9030 | } |
| 9031 | |
| 9032 | void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9033 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse) |
| 9034 | if (&from == this) return; |
| 9035 | Clear(); |
| 9036 | MergeFrom(from); |
| 9037 | } |
| 9038 | |
| 9039 | void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) { |
| 9040 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse) |
| 9041 | if (&from == this) return; |
| 9042 | Clear(); |
| 9043 | MergeFrom(from); |
| 9044 | } |
| 9045 | |
| 9046 | bool SetLogLevelResponse::IsInitialized() const { |
| 9047 | return true; |
| 9048 | } |
| 9049 | |
| 9050 | void SetLogLevelResponse::Swap(SetLogLevelResponse* other) { |
| 9051 | if (other == this) return; |
| 9052 | InternalSwap(other); |
| 9053 | } |
| 9054 | void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) { |
| 9055 | using std::swap; |
| 9056 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9057 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9058 | GetArenaNoVirtual()); |
| 9059 | swap(device_uuid_, other->device_uuid_); |
| 9060 | swap(status_, other->status_); |
| 9061 | swap(reason_, other->reason_); |
| 9062 | } |
| 9063 | |
| 9064 | ::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const { |
| 9065 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9066 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9067 | } |
| 9068 | |
| 9069 | |
| 9070 | // =================================================================== |
| 9071 | |
| 9072 | void GetLogLevelRequest::InitAsDefaultInstance() { |
| 9073 | ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9074 | ::dmi::Uuid::internal_default_instance()); |
| 9075 | } |
| 9076 | class GetLogLevelRequest::HasBitSetters { |
| 9077 | public: |
| 9078 | static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg); |
| 9079 | }; |
| 9080 | |
| 9081 | const ::dmi::Uuid& |
| 9082 | GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) { |
| 9083 | return *msg->device_uuid_; |
| 9084 | } |
| 9085 | void GetLogLevelRequest::clear_device_uuid() { |
| 9086 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9087 | delete device_uuid_; |
| 9088 | } |
| 9089 | device_uuid_ = nullptr; |
| 9090 | } |
| 9091 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9092 | const int GetLogLevelRequest::kDeviceUuidFieldNumber; |
| 9093 | const int GetLogLevelRequest::kEntitiesFieldNumber; |
| 9094 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9095 | |
| 9096 | GetLogLevelRequest::GetLogLevelRequest() |
| 9097 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9098 | SharedCtor(); |
| 9099 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest) |
| 9100 | } |
| 9101 | GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from) |
| 9102 | : ::google::protobuf::Message(), |
| 9103 | _internal_metadata_(nullptr), |
| 9104 | entities_(from.entities_) { |
| 9105 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9106 | if (from.has_device_uuid()) { |
| 9107 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9108 | } else { |
| 9109 | device_uuid_ = nullptr; |
| 9110 | } |
| 9111 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest) |
| 9112 | } |
| 9113 | |
| 9114 | void GetLogLevelRequest::SharedCtor() { |
| 9115 | ::google::protobuf::internal::InitSCC( |
| 9116 | &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9117 | device_uuid_ = nullptr; |
| 9118 | } |
| 9119 | |
| 9120 | GetLogLevelRequest::~GetLogLevelRequest() { |
| 9121 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest) |
| 9122 | SharedDtor(); |
| 9123 | } |
| 9124 | |
| 9125 | void GetLogLevelRequest::SharedDtor() { |
| 9126 | if (this != internal_default_instance()) delete device_uuid_; |
| 9127 | } |
| 9128 | |
| 9129 | void GetLogLevelRequest::SetCachedSize(int size) const { |
| 9130 | _cached_size_.Set(size); |
| 9131 | } |
| 9132 | const GetLogLevelRequest& GetLogLevelRequest::default_instance() { |
| 9133 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9134 | return *internal_default_instance(); |
| 9135 | } |
| 9136 | |
| 9137 | |
| 9138 | void GetLogLevelRequest::Clear() { |
| 9139 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest) |
| 9140 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9141 | // Prevent compiler warnings about cached_has_bits being unused |
| 9142 | (void) cached_has_bits; |
| 9143 | |
| 9144 | entities_.Clear(); |
| 9145 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9146 | delete device_uuid_; |
| 9147 | } |
| 9148 | device_uuid_ = nullptr; |
| 9149 | _internal_metadata_.Clear(); |
| 9150 | } |
| 9151 | |
| 9152 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9153 | const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 9154 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9155 | auto msg = static_cast<GetLogLevelRequest*>(object); |
| 9156 | ::google::protobuf::int32 size; (void)size; |
| 9157 | int depth; (void)depth; |
| 9158 | ::google::protobuf::uint32 tag; |
| 9159 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9160 | auto ptr = begin; |
| 9161 | while (ptr < end) { |
| 9162 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9163 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9164 | switch (tag >> 3) { |
| 9165 | // .dmi.Uuid device_uuid = 1; |
| 9166 | case 1: { |
| 9167 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9168 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9170 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9171 | object = msg->mutable_device_uuid(); |
| 9172 | if (size > end - ptr) goto len_delim_till_end; |
| 9173 | ptr += size; |
| 9174 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9175 | {parser_till_end, object}, ptr - size, ptr)); |
| 9176 | break; |
| 9177 | } |
| 9178 | // repeated string entities = 2; |
| 9179 | case 2: { |
| 9180 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9181 | do { |
| 9182 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9183 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9184 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities"); |
| 9185 | object = msg->add_entities(); |
| 9186 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9187 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9188 | goto string_till_end; |
| 9189 | } |
| 9190 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9191 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9192 | ptr += size; |
| 9193 | if (ptr >= end) break; |
| 9194 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9195 | break; |
| 9196 | } |
| 9197 | default: { |
| 9198 | handle_unusual: |
| 9199 | if ((tag & 7) == 4 || tag == 0) { |
| 9200 | ctx->EndGroup(tag); |
| 9201 | return ptr; |
| 9202 | } |
| 9203 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9204 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9205 | ptr = res.first; |
| 9206 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9207 | if (res.second) return ptr; |
| 9208 | } |
| 9209 | } // switch |
| 9210 | } // while |
| 9211 | return ptr; |
| 9212 | string_till_end: |
| 9213 | static_cast<::std::string*>(object)->clear(); |
| 9214 | static_cast<::std::string*>(object)->reserve(size); |
| 9215 | goto len_delim_till_end; |
| 9216 | len_delim_till_end: |
| 9217 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9218 | {parser_till_end, object}, size); |
| 9219 | } |
| 9220 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9221 | bool GetLogLevelRequest::MergePartialFromCodedStream( |
| 9222 | ::google::protobuf::io::CodedInputStream* input) { |
| 9223 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9224 | ::google::protobuf::uint32 tag; |
| 9225 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest) |
| 9226 | for (;;) { |
| 9227 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9228 | tag = p.first; |
| 9229 | if (!p.second) goto handle_unusual; |
| 9230 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9231 | // .dmi.Uuid device_uuid = 1; |
| 9232 | case 1: { |
| 9233 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9234 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9235 | input, mutable_device_uuid())); |
| 9236 | } else { |
| 9237 | goto handle_unusual; |
| 9238 | } |
| 9239 | break; |
| 9240 | } |
| 9241 | |
| 9242 | // repeated string entities = 2; |
| 9243 | case 2: { |
| 9244 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9245 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9246 | input, this->add_entities())); |
| 9247 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9248 | this->entities(this->entities_size() - 1).data(), |
| 9249 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 9250 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9251 | "dmi.GetLogLevelRequest.entities")); |
| 9252 | } else { |
| 9253 | goto handle_unusual; |
| 9254 | } |
| 9255 | break; |
| 9256 | } |
| 9257 | |
| 9258 | default: { |
| 9259 | handle_unusual: |
| 9260 | if (tag == 0) { |
| 9261 | goto success; |
| 9262 | } |
| 9263 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9264 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9265 | break; |
| 9266 | } |
| 9267 | } |
| 9268 | } |
| 9269 | success: |
| 9270 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest) |
| 9271 | return true; |
| 9272 | failure: |
| 9273 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest) |
| 9274 | return false; |
| 9275 | #undef DO_ |
| 9276 | } |
| 9277 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9278 | |
| 9279 | void GetLogLevelRequest::SerializeWithCachedSizes( |
| 9280 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9281 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest) |
| 9282 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9283 | (void) cached_has_bits; |
| 9284 | |
| 9285 | // .dmi.Uuid device_uuid = 1; |
| 9286 | if (this->has_device_uuid()) { |
| 9287 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9288 | 1, HasBitSetters::device_uuid(this), output); |
| 9289 | } |
| 9290 | |
| 9291 | // repeated string entities = 2; |
| 9292 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9293 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9294 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9295 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9296 | "dmi.GetLogLevelRequest.entities"); |
| 9297 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 9298 | 2, this->entities(i), output); |
| 9299 | } |
| 9300 | |
| 9301 | if (_internal_metadata_.have_unknown_fields()) { |
| 9302 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9303 | _internal_metadata_.unknown_fields(), output); |
| 9304 | } |
| 9305 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest) |
| 9306 | } |
| 9307 | |
| 9308 | ::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 9309 | ::google::protobuf::uint8* target) const { |
| 9310 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest) |
| 9311 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9312 | (void) cached_has_bits; |
| 9313 | |
| 9314 | // .dmi.Uuid device_uuid = 1; |
| 9315 | if (this->has_device_uuid()) { |
| 9316 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9317 | InternalWriteMessageToArray( |
| 9318 | 1, HasBitSetters::device_uuid(this), target); |
| 9319 | } |
| 9320 | |
| 9321 | // repeated string entities = 2; |
| 9322 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9323 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9324 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9325 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9326 | "dmi.GetLogLevelRequest.entities"); |
| 9327 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9328 | WriteStringToArray(2, this->entities(i), target); |
| 9329 | } |
| 9330 | |
| 9331 | if (_internal_metadata_.have_unknown_fields()) { |
| 9332 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9333 | _internal_metadata_.unknown_fields(), target); |
| 9334 | } |
| 9335 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest) |
| 9336 | return target; |
| 9337 | } |
| 9338 | |
| 9339 | size_t GetLogLevelRequest::ByteSizeLong() const { |
| 9340 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest) |
| 9341 | size_t total_size = 0; |
| 9342 | |
| 9343 | if (_internal_metadata_.have_unknown_fields()) { |
| 9344 | total_size += |
| 9345 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9346 | _internal_metadata_.unknown_fields()); |
| 9347 | } |
| 9348 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9349 | // Prevent compiler warnings about cached_has_bits being unused |
| 9350 | (void) cached_has_bits; |
| 9351 | |
| 9352 | // repeated string entities = 2; |
| 9353 | total_size += 1 * |
| 9354 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 9355 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9356 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9357 | this->entities(i)); |
| 9358 | } |
| 9359 | |
| 9360 | // .dmi.Uuid device_uuid = 1; |
| 9361 | if (this->has_device_uuid()) { |
| 9362 | total_size += 1 + |
| 9363 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9364 | *device_uuid_); |
| 9365 | } |
| 9366 | |
| 9367 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9368 | SetCachedSize(cached_size); |
| 9369 | return total_size; |
| 9370 | } |
| 9371 | |
| 9372 | void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 9373 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest) |
| 9374 | GOOGLE_DCHECK_NE(&from, this); |
| 9375 | const GetLogLevelRequest* source = |
| 9376 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>( |
| 9377 | &from); |
| 9378 | if (source == nullptr) { |
| 9379 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest) |
| 9380 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9381 | } else { |
| 9382 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest) |
| 9383 | MergeFrom(*source); |
| 9384 | } |
| 9385 | } |
| 9386 | |
| 9387 | void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) { |
| 9388 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest) |
| 9389 | GOOGLE_DCHECK_NE(&from, this); |
| 9390 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9391 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9392 | (void) cached_has_bits; |
| 9393 | |
| 9394 | entities_.MergeFrom(from.entities_); |
| 9395 | if (from.has_device_uuid()) { |
| 9396 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9397 | } |
| 9398 | } |
| 9399 | |
| 9400 | void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 9401 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest) |
| 9402 | if (&from == this) return; |
| 9403 | Clear(); |
| 9404 | MergeFrom(from); |
| 9405 | } |
| 9406 | |
| 9407 | void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) { |
| 9408 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest) |
| 9409 | if (&from == this) return; |
| 9410 | Clear(); |
| 9411 | MergeFrom(from); |
| 9412 | } |
| 9413 | |
| 9414 | bool GetLogLevelRequest::IsInitialized() const { |
| 9415 | return true; |
| 9416 | } |
| 9417 | |
| 9418 | void GetLogLevelRequest::Swap(GetLogLevelRequest* other) { |
| 9419 | if (other == this) return; |
| 9420 | InternalSwap(other); |
| 9421 | } |
| 9422 | void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) { |
| 9423 | using std::swap; |
| 9424 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9425 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 9426 | swap(device_uuid_, other->device_uuid_); |
| 9427 | } |
| 9428 | |
| 9429 | ::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const { |
| 9430 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9431 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9432 | } |
| 9433 | |
| 9434 | |
| 9435 | // =================================================================== |
| 9436 | |
| 9437 | void GetLogLevelResponse::InitAsDefaultInstance() { |
| 9438 | ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9439 | ::dmi::Uuid::internal_default_instance()); |
| 9440 | } |
| 9441 | class GetLogLevelResponse::HasBitSetters { |
| 9442 | public: |
| 9443 | static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg); |
| 9444 | }; |
| 9445 | |
| 9446 | const ::dmi::Uuid& |
| 9447 | GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) { |
| 9448 | return *msg->device_uuid_; |
| 9449 | } |
| 9450 | void GetLogLevelResponse::clear_device_uuid() { |
| 9451 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9452 | delete device_uuid_; |
| 9453 | } |
| 9454 | device_uuid_ = nullptr; |
| 9455 | } |
| 9456 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9457 | const int GetLogLevelResponse::kDeviceUuidFieldNumber; |
| 9458 | const int GetLogLevelResponse::kLogLevelsFieldNumber; |
| 9459 | const int GetLogLevelResponse::kStatusFieldNumber; |
| 9460 | const int GetLogLevelResponse::kReasonFieldNumber; |
| 9461 | const int GetLogLevelResponse::kReasonDetailFieldNumber; |
| 9462 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9463 | |
| 9464 | GetLogLevelResponse::GetLogLevelResponse() |
| 9465 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9466 | SharedCtor(); |
| 9467 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse) |
| 9468 | } |
| 9469 | GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from) |
| 9470 | : ::google::protobuf::Message(), |
| 9471 | _internal_metadata_(nullptr), |
| 9472 | loglevels_(from.loglevels_) { |
| 9473 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9474 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9475 | if (from.reason_detail().size() > 0) { |
| 9476 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9477 | } |
| 9478 | if (from.has_device_uuid()) { |
| 9479 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9480 | } else { |
| 9481 | device_uuid_ = nullptr; |
| 9482 | } |
| 9483 | ::memcpy(&status_, &from.status_, |
| 9484 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 9485 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9486 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse) |
| 9487 | } |
| 9488 | |
| 9489 | void GetLogLevelResponse::SharedCtor() { |
| 9490 | ::google::protobuf::internal::InitSCC( |
| 9491 | &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9492 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9493 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 9494 | reinterpret_cast<char*>(&reason_) - |
| 9495 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 9496 | } |
| 9497 | |
| 9498 | GetLogLevelResponse::~GetLogLevelResponse() { |
| 9499 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse) |
| 9500 | SharedDtor(); |
| 9501 | } |
| 9502 | |
| 9503 | void GetLogLevelResponse::SharedDtor() { |
| 9504 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9505 | if (this != internal_default_instance()) delete device_uuid_; |
| 9506 | } |
| 9507 | |
| 9508 | void GetLogLevelResponse::SetCachedSize(int size) const { |
| 9509 | _cached_size_.Set(size); |
| 9510 | } |
| 9511 | const GetLogLevelResponse& GetLogLevelResponse::default_instance() { |
| 9512 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9513 | return *internal_default_instance(); |
| 9514 | } |
| 9515 | |
| 9516 | |
| 9517 | void GetLogLevelResponse::Clear() { |
| 9518 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse) |
| 9519 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9520 | // Prevent compiler warnings about cached_has_bits being unused |
| 9521 | (void) cached_has_bits; |
| 9522 | |
| 9523 | loglevels_.Clear(); |
| 9524 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9525 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9526 | delete device_uuid_; |
| 9527 | } |
| 9528 | device_uuid_ = nullptr; |
| 9529 | ::memset(&status_, 0, static_cast<size_t>( |
| 9530 | reinterpret_cast<char*>(&reason_) - |
| 9531 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9532 | _internal_metadata_.Clear(); |
| 9533 | } |
| 9534 | |
| 9535 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9536 | const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 9537 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9538 | auto msg = static_cast<GetLogLevelResponse*>(object); |
| 9539 | ::google::protobuf::int32 size; (void)size; |
| 9540 | int depth; (void)depth; |
| 9541 | ::google::protobuf::uint32 tag; |
| 9542 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9543 | auto ptr = begin; |
| 9544 | while (ptr < end) { |
| 9545 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9546 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9547 | switch (tag >> 3) { |
| 9548 | // .dmi.Uuid device_uuid = 1; |
| 9549 | case 1: { |
| 9550 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9551 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9552 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9553 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9554 | object = msg->mutable_device_uuid(); |
| 9555 | if (size > end - ptr) goto len_delim_till_end; |
| 9556 | ptr += size; |
| 9557 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9558 | {parser_till_end, object}, ptr - size, ptr)); |
| 9559 | break; |
| 9560 | } |
| 9561 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9562 | case 2: { |
| 9563 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9564 | do { |
| 9565 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9566 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9567 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 9568 | object = msg->add_loglevels(); |
| 9569 | if (size > end - ptr) goto len_delim_till_end; |
| 9570 | ptr += size; |
| 9571 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9572 | {parser_till_end, object}, ptr - size, ptr)); |
| 9573 | if (ptr >= end) break; |
| 9574 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9575 | break; |
| 9576 | } |
| 9577 | // .dmi.Status status = 3; |
| 9578 | case 3: { |
| 9579 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 9580 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9581 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 9582 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9583 | break; |
| 9584 | } |
| 9585 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9586 | case 4: { |
| 9587 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 9588 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9589 | msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val)); |
| 9590 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9591 | break; |
| 9592 | } |
| 9593 | // string reason_detail = 5; |
| 9594 | case 5: { |
| 9595 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 9596 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9597 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9598 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail"); |
| 9599 | object = msg->mutable_reason_detail(); |
| 9600 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9601 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9602 | goto string_till_end; |
| 9603 | } |
| 9604 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9605 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9606 | ptr += size; |
| 9607 | break; |
| 9608 | } |
| 9609 | default: { |
| 9610 | handle_unusual: |
| 9611 | if ((tag & 7) == 4 || tag == 0) { |
| 9612 | ctx->EndGroup(tag); |
| 9613 | return ptr; |
| 9614 | } |
| 9615 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9616 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9617 | ptr = res.first; |
| 9618 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9619 | if (res.second) return ptr; |
| 9620 | } |
| 9621 | } // switch |
| 9622 | } // while |
| 9623 | return ptr; |
| 9624 | string_till_end: |
| 9625 | static_cast<::std::string*>(object)->clear(); |
| 9626 | static_cast<::std::string*>(object)->reserve(size); |
| 9627 | goto len_delim_till_end; |
| 9628 | len_delim_till_end: |
| 9629 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9630 | {parser_till_end, object}, size); |
| 9631 | } |
| 9632 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9633 | bool GetLogLevelResponse::MergePartialFromCodedStream( |
| 9634 | ::google::protobuf::io::CodedInputStream* input) { |
| 9635 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9636 | ::google::protobuf::uint32 tag; |
| 9637 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse) |
| 9638 | for (;;) { |
| 9639 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9640 | tag = p.first; |
| 9641 | if (!p.second) goto handle_unusual; |
| 9642 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9643 | // .dmi.Uuid device_uuid = 1; |
| 9644 | case 1: { |
| 9645 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9646 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9647 | input, mutable_device_uuid())); |
| 9648 | } else { |
| 9649 | goto handle_unusual; |
| 9650 | } |
| 9651 | break; |
| 9652 | } |
| 9653 | |
| 9654 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9655 | case 2: { |
| 9656 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9657 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9658 | input, add_loglevels())); |
| 9659 | } else { |
| 9660 | goto handle_unusual; |
| 9661 | } |
| 9662 | break; |
| 9663 | } |
| 9664 | |
| 9665 | // .dmi.Status status = 3; |
| 9666 | case 3: { |
| 9667 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 9668 | int value = 0; |
| 9669 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9670 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9671 | input, &value))); |
| 9672 | set_status(static_cast< ::dmi::Status >(value)); |
| 9673 | } else { |
| 9674 | goto handle_unusual; |
| 9675 | } |
| 9676 | break; |
| 9677 | } |
| 9678 | |
| 9679 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9680 | case 4: { |
| 9681 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 9682 | int value = 0; |
| 9683 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9684 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9685 | input, &value))); |
| 9686 | set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value)); |
| 9687 | } else { |
| 9688 | goto handle_unusual; |
| 9689 | } |
| 9690 | break; |
| 9691 | } |
| 9692 | |
| 9693 | // string reason_detail = 5; |
| 9694 | case 5: { |
| 9695 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 9696 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9697 | input, this->mutable_reason_detail())); |
| 9698 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9699 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9700 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9701 | "dmi.GetLogLevelResponse.reason_detail")); |
| 9702 | } else { |
| 9703 | goto handle_unusual; |
| 9704 | } |
| 9705 | break; |
| 9706 | } |
| 9707 | |
| 9708 | default: { |
| 9709 | handle_unusual: |
| 9710 | if (tag == 0) { |
| 9711 | goto success; |
| 9712 | } |
| 9713 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9714 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9715 | break; |
| 9716 | } |
| 9717 | } |
| 9718 | } |
| 9719 | success: |
| 9720 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse) |
| 9721 | return true; |
| 9722 | failure: |
| 9723 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse) |
| 9724 | return false; |
| 9725 | #undef DO_ |
| 9726 | } |
| 9727 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9728 | |
| 9729 | void GetLogLevelResponse::SerializeWithCachedSizes( |
| 9730 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9731 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse) |
| 9732 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9733 | (void) cached_has_bits; |
| 9734 | |
| 9735 | // .dmi.Uuid device_uuid = 1; |
| 9736 | if (this->has_device_uuid()) { |
| 9737 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9738 | 1, HasBitSetters::device_uuid(this), output); |
| 9739 | } |
| 9740 | |
| 9741 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9742 | for (unsigned int i = 0, |
| 9743 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9744 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9745 | 2, |
| 9746 | this->loglevels(static_cast<int>(i)), |
| 9747 | output); |
| 9748 | } |
| 9749 | |
| 9750 | // .dmi.Status status = 3; |
| 9751 | if (this->status() != 0) { |
| 9752 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9753 | 3, this->status(), output); |
| 9754 | } |
| 9755 | |
| 9756 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9757 | if (this->reason() != 0) { |
| 9758 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9759 | 4, this->reason(), output); |
| 9760 | } |
| 9761 | |
| 9762 | // string reason_detail = 5; |
| 9763 | if (this->reason_detail().size() > 0) { |
| 9764 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9765 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9766 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9767 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9768 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9769 | 5, this->reason_detail(), output); |
| 9770 | } |
| 9771 | |
| 9772 | if (_internal_metadata_.have_unknown_fields()) { |
| 9773 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9774 | _internal_metadata_.unknown_fields(), output); |
| 9775 | } |
| 9776 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse) |
| 9777 | } |
| 9778 | |
| 9779 | ::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 9780 | ::google::protobuf::uint8* target) const { |
| 9781 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse) |
| 9782 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9783 | (void) cached_has_bits; |
| 9784 | |
| 9785 | // .dmi.Uuid device_uuid = 1; |
| 9786 | if (this->has_device_uuid()) { |
| 9787 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9788 | InternalWriteMessageToArray( |
| 9789 | 1, HasBitSetters::device_uuid(this), target); |
| 9790 | } |
| 9791 | |
| 9792 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9793 | for (unsigned int i = 0, |
| 9794 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9795 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9796 | InternalWriteMessageToArray( |
| 9797 | 2, this->loglevels(static_cast<int>(i)), target); |
| 9798 | } |
| 9799 | |
| 9800 | // .dmi.Status status = 3; |
| 9801 | if (this->status() != 0) { |
| 9802 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9803 | 3, this->status(), target); |
| 9804 | } |
| 9805 | |
| 9806 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9807 | if (this->reason() != 0) { |
| 9808 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9809 | 4, this->reason(), target); |
| 9810 | } |
| 9811 | |
| 9812 | // string reason_detail = 5; |
| 9813 | if (this->reason_detail().size() > 0) { |
| 9814 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9815 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9816 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9817 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9818 | target = |
| 9819 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9820 | 5, this->reason_detail(), target); |
| 9821 | } |
| 9822 | |
| 9823 | if (_internal_metadata_.have_unknown_fields()) { |
| 9824 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9825 | _internal_metadata_.unknown_fields(), target); |
| 9826 | } |
| 9827 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse) |
| 9828 | return target; |
| 9829 | } |
| 9830 | |
| 9831 | size_t GetLogLevelResponse::ByteSizeLong() const { |
| 9832 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse) |
| 9833 | size_t total_size = 0; |
| 9834 | |
| 9835 | if (_internal_metadata_.have_unknown_fields()) { |
| 9836 | total_size += |
| 9837 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9838 | _internal_metadata_.unknown_fields()); |
| 9839 | } |
| 9840 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9841 | // Prevent compiler warnings about cached_has_bits being unused |
| 9842 | (void) cached_has_bits; |
| 9843 | |
| 9844 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9845 | { |
| 9846 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 9847 | total_size += 1UL * count; |
| 9848 | for (unsigned int i = 0; i < count; i++) { |
| 9849 | total_size += |
| 9850 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9851 | this->loglevels(static_cast<int>(i))); |
| 9852 | } |
| 9853 | } |
| 9854 | |
| 9855 | // string reason_detail = 5; |
| 9856 | if (this->reason_detail().size() > 0) { |
| 9857 | total_size += 1 + |
| 9858 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9859 | this->reason_detail()); |
| 9860 | } |
| 9861 | |
| 9862 | // .dmi.Uuid device_uuid = 1; |
| 9863 | if (this->has_device_uuid()) { |
| 9864 | total_size += 1 + |
| 9865 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9866 | *device_uuid_); |
| 9867 | } |
| 9868 | |
| 9869 | // .dmi.Status status = 3; |
| 9870 | if (this->status() != 0) { |
| 9871 | total_size += 1 + |
| 9872 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 9873 | } |
| 9874 | |
| 9875 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9876 | if (this->reason() != 0) { |
| 9877 | total_size += 1 + |
| 9878 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 9879 | } |
| 9880 | |
| 9881 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9882 | SetCachedSize(cached_size); |
| 9883 | return total_size; |
| 9884 | } |
| 9885 | |
| 9886 | void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 9887 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse) |
| 9888 | GOOGLE_DCHECK_NE(&from, this); |
| 9889 | const GetLogLevelResponse* source = |
| 9890 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>( |
| 9891 | &from); |
| 9892 | if (source == nullptr) { |
| 9893 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse) |
| 9894 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9895 | } else { |
| 9896 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse) |
| 9897 | MergeFrom(*source); |
| 9898 | } |
| 9899 | } |
| 9900 | |
| 9901 | void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) { |
| 9902 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse) |
| 9903 | GOOGLE_DCHECK_NE(&from, this); |
| 9904 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9905 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9906 | (void) cached_has_bits; |
| 9907 | |
| 9908 | loglevels_.MergeFrom(from.loglevels_); |
| 9909 | if (from.reason_detail().size() > 0) { |
| 9910 | |
| 9911 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9912 | } |
| 9913 | if (from.has_device_uuid()) { |
| 9914 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9915 | } |
| 9916 | if (from.status() != 0) { |
| 9917 | set_status(from.status()); |
| 9918 | } |
| 9919 | if (from.reason() != 0) { |
| 9920 | set_reason(from.reason()); |
| 9921 | } |
| 9922 | } |
| 9923 | |
| 9924 | void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9925 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse) |
| 9926 | if (&from == this) return; |
| 9927 | Clear(); |
| 9928 | MergeFrom(from); |
| 9929 | } |
| 9930 | |
| 9931 | void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) { |
| 9932 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse) |
| 9933 | if (&from == this) return; |
| 9934 | Clear(); |
| 9935 | MergeFrom(from); |
| 9936 | } |
| 9937 | |
| 9938 | bool GetLogLevelResponse::IsInitialized() const { |
| 9939 | return true; |
| 9940 | } |
| 9941 | |
| 9942 | void GetLogLevelResponse::Swap(GetLogLevelResponse* other) { |
| 9943 | if (other == this) return; |
| 9944 | InternalSwap(other); |
| 9945 | } |
| 9946 | void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) { |
| 9947 | using std::swap; |
| 9948 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9949 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 9950 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9951 | GetArenaNoVirtual()); |
| 9952 | swap(device_uuid_, other->device_uuid_); |
| 9953 | swap(status_, other->status_); |
| 9954 | swap(reason_, other->reason_); |
| 9955 | } |
| 9956 | |
| 9957 | ::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const { |
| 9958 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9959 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9960 | } |
| 9961 | |
| 9962 | |
| 9963 | // =================================================================== |
| 9964 | |
| 9965 | void GetLoggableEntitiesRequest::InitAsDefaultInstance() { |
| 9966 | ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9967 | ::dmi::Uuid::internal_default_instance()); |
| 9968 | } |
| 9969 | class GetLoggableEntitiesRequest::HasBitSetters { |
| 9970 | public: |
| 9971 | static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg); |
| 9972 | }; |
| 9973 | |
| 9974 | const ::dmi::Uuid& |
| 9975 | GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) { |
| 9976 | return *msg->device_uuid_; |
| 9977 | } |
| 9978 | void GetLoggableEntitiesRequest::clear_device_uuid() { |
| 9979 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9980 | delete device_uuid_; |
| 9981 | } |
| 9982 | device_uuid_ = nullptr; |
| 9983 | } |
| 9984 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9985 | const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber; |
| 9986 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9987 | |
| 9988 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest() |
| 9989 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9990 | SharedCtor(); |
| 9991 | // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest) |
| 9992 | } |
| 9993 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from) |
| 9994 | : ::google::protobuf::Message(), |
| 9995 | _internal_metadata_(nullptr) { |
| 9996 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9997 | if (from.has_device_uuid()) { |
| 9998 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9999 | } else { |
| 10000 | device_uuid_ = nullptr; |
| 10001 | } |
| 10002 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest) |
| 10003 | } |
| 10004 | |
| 10005 | void GetLoggableEntitiesRequest::SharedCtor() { |
| 10006 | ::google::protobuf::internal::InitSCC( |
| 10007 | &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10008 | device_uuid_ = nullptr; |
| 10009 | } |
| 10010 | |
| 10011 | GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() { |
| 10012 | // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest) |
| 10013 | SharedDtor(); |
| 10014 | } |
| 10015 | |
| 10016 | void GetLoggableEntitiesRequest::SharedDtor() { |
| 10017 | if (this != internal_default_instance()) delete device_uuid_; |
| 10018 | } |
| 10019 | |
| 10020 | void GetLoggableEntitiesRequest::SetCachedSize(int size) const { |
| 10021 | _cached_size_.Set(size); |
| 10022 | } |
| 10023 | const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() { |
| 10024 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10025 | return *internal_default_instance(); |
| 10026 | } |
| 10027 | |
| 10028 | |
| 10029 | void GetLoggableEntitiesRequest::Clear() { |
| 10030 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest) |
| 10031 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10032 | // Prevent compiler warnings about cached_has_bits being unused |
| 10033 | (void) cached_has_bits; |
| 10034 | |
| 10035 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10036 | delete device_uuid_; |
| 10037 | } |
| 10038 | device_uuid_ = nullptr; |
| 10039 | _internal_metadata_.Clear(); |
| 10040 | } |
| 10041 | |
| 10042 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10043 | const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10044 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10045 | auto msg = static_cast<GetLoggableEntitiesRequest*>(object); |
| 10046 | ::google::protobuf::int32 size; (void)size; |
| 10047 | int depth; (void)depth; |
| 10048 | ::google::protobuf::uint32 tag; |
| 10049 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10050 | auto ptr = begin; |
| 10051 | while (ptr < end) { |
| 10052 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10053 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10054 | switch (tag >> 3) { |
| 10055 | // .dmi.Uuid device_uuid = 1; |
| 10056 | case 1: { |
| 10057 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10058 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10059 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10060 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10061 | object = msg->mutable_device_uuid(); |
| 10062 | if (size > end - ptr) goto len_delim_till_end; |
| 10063 | ptr += size; |
| 10064 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10065 | {parser_till_end, object}, ptr - size, ptr)); |
| 10066 | break; |
| 10067 | } |
| 10068 | default: { |
| 10069 | handle_unusual: |
| 10070 | if ((tag & 7) == 4 || tag == 0) { |
| 10071 | ctx->EndGroup(tag); |
| 10072 | return ptr; |
| 10073 | } |
| 10074 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10075 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10076 | ptr = res.first; |
| 10077 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10078 | if (res.second) return ptr; |
| 10079 | } |
| 10080 | } // switch |
| 10081 | } // while |
| 10082 | return ptr; |
| 10083 | len_delim_till_end: |
| 10084 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10085 | {parser_till_end, object}, size); |
| 10086 | } |
| 10087 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10088 | bool GetLoggableEntitiesRequest::MergePartialFromCodedStream( |
| 10089 | ::google::protobuf::io::CodedInputStream* input) { |
| 10090 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10091 | ::google::protobuf::uint32 tag; |
| 10092 | // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest) |
| 10093 | for (;;) { |
| 10094 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10095 | tag = p.first; |
| 10096 | if (!p.second) goto handle_unusual; |
| 10097 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10098 | // .dmi.Uuid device_uuid = 1; |
| 10099 | case 1: { |
| 10100 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10101 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10102 | input, mutable_device_uuid())); |
| 10103 | } else { |
| 10104 | goto handle_unusual; |
| 10105 | } |
| 10106 | break; |
| 10107 | } |
| 10108 | |
| 10109 | default: { |
| 10110 | handle_unusual: |
| 10111 | if (tag == 0) { |
| 10112 | goto success; |
| 10113 | } |
| 10114 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10115 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10116 | break; |
| 10117 | } |
| 10118 | } |
| 10119 | } |
| 10120 | success: |
| 10121 | // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest) |
| 10122 | return true; |
| 10123 | failure: |
| 10124 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest) |
| 10125 | return false; |
| 10126 | #undef DO_ |
| 10127 | } |
| 10128 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10129 | |
| 10130 | void GetLoggableEntitiesRequest::SerializeWithCachedSizes( |
| 10131 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10132 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest) |
| 10133 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10134 | (void) cached_has_bits; |
| 10135 | |
| 10136 | // .dmi.Uuid device_uuid = 1; |
| 10137 | if (this->has_device_uuid()) { |
| 10138 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10139 | 1, HasBitSetters::device_uuid(this), output); |
| 10140 | } |
| 10141 | |
| 10142 | if (_internal_metadata_.have_unknown_fields()) { |
| 10143 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10144 | _internal_metadata_.unknown_fields(), output); |
| 10145 | } |
| 10146 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest) |
| 10147 | } |
| 10148 | |
| 10149 | ::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray( |
| 10150 | ::google::protobuf::uint8* target) const { |
| 10151 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest) |
| 10152 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10153 | (void) cached_has_bits; |
| 10154 | |
| 10155 | // .dmi.Uuid device_uuid = 1; |
| 10156 | if (this->has_device_uuid()) { |
| 10157 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10158 | InternalWriteMessageToArray( |
| 10159 | 1, HasBitSetters::device_uuid(this), target); |
| 10160 | } |
| 10161 | |
| 10162 | if (_internal_metadata_.have_unknown_fields()) { |
| 10163 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10164 | _internal_metadata_.unknown_fields(), target); |
| 10165 | } |
| 10166 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest) |
| 10167 | return target; |
| 10168 | } |
| 10169 | |
| 10170 | size_t GetLoggableEntitiesRequest::ByteSizeLong() const { |
| 10171 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest) |
| 10172 | size_t total_size = 0; |
| 10173 | |
| 10174 | if (_internal_metadata_.have_unknown_fields()) { |
| 10175 | total_size += |
| 10176 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10177 | _internal_metadata_.unknown_fields()); |
| 10178 | } |
| 10179 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10180 | // Prevent compiler warnings about cached_has_bits being unused |
| 10181 | (void) cached_has_bits; |
| 10182 | |
| 10183 | // .dmi.Uuid device_uuid = 1; |
| 10184 | if (this->has_device_uuid()) { |
| 10185 | total_size += 1 + |
| 10186 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10187 | *device_uuid_); |
| 10188 | } |
| 10189 | |
| 10190 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10191 | SetCachedSize(cached_size); |
| 10192 | return total_size; |
| 10193 | } |
| 10194 | |
| 10195 | void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10196 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10197 | GOOGLE_DCHECK_NE(&from, this); |
| 10198 | const GetLoggableEntitiesRequest* source = |
| 10199 | ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>( |
| 10200 | &from); |
| 10201 | if (source == nullptr) { |
| 10202 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest) |
| 10203 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10204 | } else { |
| 10205 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest) |
| 10206 | MergeFrom(*source); |
| 10207 | } |
| 10208 | } |
| 10209 | |
| 10210 | void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) { |
| 10211 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10212 | GOOGLE_DCHECK_NE(&from, this); |
| 10213 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10214 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10215 | (void) cached_has_bits; |
| 10216 | |
| 10217 | if (from.has_device_uuid()) { |
| 10218 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10219 | } |
| 10220 | } |
| 10221 | |
| 10222 | void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10223 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10224 | if (&from == this) return; |
| 10225 | Clear(); |
| 10226 | MergeFrom(from); |
| 10227 | } |
| 10228 | |
| 10229 | void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) { |
| 10230 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10231 | if (&from == this) return; |
| 10232 | Clear(); |
| 10233 | MergeFrom(from); |
| 10234 | } |
| 10235 | |
| 10236 | bool GetLoggableEntitiesRequest::IsInitialized() const { |
| 10237 | return true; |
| 10238 | } |
| 10239 | |
| 10240 | void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) { |
| 10241 | if (other == this) return; |
| 10242 | InternalSwap(other); |
| 10243 | } |
| 10244 | void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) { |
| 10245 | using std::swap; |
| 10246 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10247 | swap(device_uuid_, other->device_uuid_); |
| 10248 | } |
| 10249 | |
| 10250 | ::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const { |
| 10251 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10252 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10253 | } |
| 10254 | |
| 10255 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 10256 | // =================================================================== |
| 10257 | |
| 10258 | void Heartbeat::InitAsDefaultInstance() { |
| 10259 | } |
| 10260 | class Heartbeat::HasBitSetters { |
| 10261 | public: |
| 10262 | }; |
| 10263 | |
| 10264 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10265 | const int Heartbeat::kHeartbeatSignatureFieldNumber; |
| 10266 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10267 | |
| 10268 | Heartbeat::Heartbeat() |
| 10269 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10270 | SharedCtor(); |
| 10271 | // @@protoc_insertion_point(constructor:dmi.Heartbeat) |
| 10272 | } |
| 10273 | Heartbeat::Heartbeat(const Heartbeat& from) |
| 10274 | : ::google::protobuf::Message(), |
| 10275 | _internal_metadata_(nullptr) { |
| 10276 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10277 | heartbeat_signature_ = from.heartbeat_signature_; |
| 10278 | // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat) |
| 10279 | } |
| 10280 | |
| 10281 | void Heartbeat::SharedCtor() { |
| 10282 | heartbeat_signature_ = 0u; |
| 10283 | } |
| 10284 | |
| 10285 | Heartbeat::~Heartbeat() { |
| 10286 | // @@protoc_insertion_point(destructor:dmi.Heartbeat) |
| 10287 | SharedDtor(); |
| 10288 | } |
| 10289 | |
| 10290 | void Heartbeat::SharedDtor() { |
| 10291 | } |
| 10292 | |
| 10293 | void Heartbeat::SetCachedSize(int size) const { |
| 10294 | _cached_size_.Set(size); |
| 10295 | } |
| 10296 | const Heartbeat& Heartbeat::default_instance() { |
| 10297 | ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10298 | return *internal_default_instance(); |
| 10299 | } |
| 10300 | |
| 10301 | |
| 10302 | void Heartbeat::Clear() { |
| 10303 | // @@protoc_insertion_point(message_clear_start:dmi.Heartbeat) |
| 10304 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10305 | // Prevent compiler warnings about cached_has_bits being unused |
| 10306 | (void) cached_has_bits; |
| 10307 | |
| 10308 | heartbeat_signature_ = 0u; |
| 10309 | _internal_metadata_.Clear(); |
| 10310 | } |
| 10311 | |
| 10312 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10313 | const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object, |
| 10314 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10315 | auto msg = static_cast<Heartbeat*>(object); |
| 10316 | ::google::protobuf::int32 size; (void)size; |
| 10317 | int depth; (void)depth; |
| 10318 | ::google::protobuf::uint32 tag; |
| 10319 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10320 | auto ptr = begin; |
| 10321 | while (ptr < end) { |
| 10322 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10323 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10324 | switch (tag >> 3) { |
| 10325 | // fixed32 heartbeat_signature = 1; |
| 10326 | case 1: { |
| 10327 | if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; |
| 10328 | msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr)); |
| 10329 | ptr += sizeof(::google::protobuf::uint32); |
| 10330 | break; |
| 10331 | } |
| 10332 | default: { |
| 10333 | handle_unusual: |
| 10334 | if ((tag & 7) == 4 || tag == 0) { |
| 10335 | ctx->EndGroup(tag); |
| 10336 | return ptr; |
| 10337 | } |
| 10338 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10339 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10340 | ptr = res.first; |
| 10341 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10342 | if (res.second) return ptr; |
| 10343 | } |
| 10344 | } // switch |
| 10345 | } // while |
| 10346 | return ptr; |
| 10347 | } |
| 10348 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10349 | bool Heartbeat::MergePartialFromCodedStream( |
| 10350 | ::google::protobuf::io::CodedInputStream* input) { |
| 10351 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10352 | ::google::protobuf::uint32 tag; |
| 10353 | // @@protoc_insertion_point(parse_start:dmi.Heartbeat) |
| 10354 | for (;;) { |
| 10355 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10356 | tag = p.first; |
| 10357 | if (!p.second) goto handle_unusual; |
| 10358 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10359 | // fixed32 heartbeat_signature = 1; |
| 10360 | case 1: { |
| 10361 | if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { |
| 10362 | |
| 10363 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10364 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
| 10365 | input, &heartbeat_signature_))); |
| 10366 | } else { |
| 10367 | goto handle_unusual; |
| 10368 | } |
| 10369 | break; |
| 10370 | } |
| 10371 | |
| 10372 | default: { |
| 10373 | handle_unusual: |
| 10374 | if (tag == 0) { |
| 10375 | goto success; |
| 10376 | } |
| 10377 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10378 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10379 | break; |
| 10380 | } |
| 10381 | } |
| 10382 | } |
| 10383 | success: |
| 10384 | // @@protoc_insertion_point(parse_success:dmi.Heartbeat) |
| 10385 | return true; |
| 10386 | failure: |
| 10387 | // @@protoc_insertion_point(parse_failure:dmi.Heartbeat) |
| 10388 | return false; |
| 10389 | #undef DO_ |
| 10390 | } |
| 10391 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10392 | |
| 10393 | void Heartbeat::SerializeWithCachedSizes( |
| 10394 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10395 | // @@protoc_insertion_point(serialize_start:dmi.Heartbeat) |
| 10396 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10397 | (void) cached_has_bits; |
| 10398 | |
| 10399 | // fixed32 heartbeat_signature = 1; |
| 10400 | if (this->heartbeat_signature() != 0) { |
| 10401 | ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output); |
| 10402 | } |
| 10403 | |
| 10404 | if (_internal_metadata_.have_unknown_fields()) { |
| 10405 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10406 | _internal_metadata_.unknown_fields(), output); |
| 10407 | } |
| 10408 | // @@protoc_insertion_point(serialize_end:dmi.Heartbeat) |
| 10409 | } |
| 10410 | |
| 10411 | ::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray( |
| 10412 | ::google::protobuf::uint8* target) const { |
| 10413 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat) |
| 10414 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10415 | (void) cached_has_bits; |
| 10416 | |
| 10417 | // fixed32 heartbeat_signature = 1; |
| 10418 | if (this->heartbeat_signature() != 0) { |
| 10419 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target); |
| 10420 | } |
| 10421 | |
| 10422 | if (_internal_metadata_.have_unknown_fields()) { |
| 10423 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10424 | _internal_metadata_.unknown_fields(), target); |
| 10425 | } |
| 10426 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat) |
| 10427 | return target; |
| 10428 | } |
| 10429 | |
| 10430 | size_t Heartbeat::ByteSizeLong() const { |
| 10431 | // @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat) |
| 10432 | size_t total_size = 0; |
| 10433 | |
| 10434 | if (_internal_metadata_.have_unknown_fields()) { |
| 10435 | total_size += |
| 10436 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10437 | _internal_metadata_.unknown_fields()); |
| 10438 | } |
| 10439 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10440 | // Prevent compiler warnings about cached_has_bits being unused |
| 10441 | (void) cached_has_bits; |
| 10442 | |
| 10443 | // fixed32 heartbeat_signature = 1; |
| 10444 | if (this->heartbeat_signature() != 0) { |
| 10445 | total_size += 1 + 4; |
| 10446 | } |
| 10447 | |
| 10448 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10449 | SetCachedSize(cached_size); |
| 10450 | return total_size; |
| 10451 | } |
| 10452 | |
| 10453 | void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) { |
| 10454 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat) |
| 10455 | GOOGLE_DCHECK_NE(&from, this); |
| 10456 | const Heartbeat* source = |
| 10457 | ::google::protobuf::DynamicCastToGenerated<Heartbeat>( |
| 10458 | &from); |
| 10459 | if (source == nullptr) { |
| 10460 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat) |
| 10461 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10462 | } else { |
| 10463 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat) |
| 10464 | MergeFrom(*source); |
| 10465 | } |
| 10466 | } |
| 10467 | |
| 10468 | void Heartbeat::MergeFrom(const Heartbeat& from) { |
| 10469 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat) |
| 10470 | GOOGLE_DCHECK_NE(&from, this); |
| 10471 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10472 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10473 | (void) cached_has_bits; |
| 10474 | |
| 10475 | if (from.heartbeat_signature() != 0) { |
| 10476 | set_heartbeat_signature(from.heartbeat_signature()); |
| 10477 | } |
| 10478 | } |
| 10479 | |
| 10480 | void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) { |
| 10481 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat) |
| 10482 | if (&from == this) return; |
| 10483 | Clear(); |
| 10484 | MergeFrom(from); |
| 10485 | } |
| 10486 | |
| 10487 | void Heartbeat::CopyFrom(const Heartbeat& from) { |
| 10488 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat) |
| 10489 | if (&from == this) return; |
| 10490 | Clear(); |
| 10491 | MergeFrom(from); |
| 10492 | } |
| 10493 | |
| 10494 | bool Heartbeat::IsInitialized() const { |
| 10495 | return true; |
| 10496 | } |
| 10497 | |
| 10498 | void Heartbeat::Swap(Heartbeat* other) { |
| 10499 | if (other == this) return; |
| 10500 | InternalSwap(other); |
| 10501 | } |
| 10502 | void Heartbeat::InternalSwap(Heartbeat* other) { |
| 10503 | using std::swap; |
| 10504 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10505 | swap(heartbeat_signature_, other->heartbeat_signature_); |
| 10506 | } |
| 10507 | |
| 10508 | ::google::protobuf::Metadata Heartbeat::GetMetadata() const { |
| 10509 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10510 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10511 | } |
| 10512 | |
| 10513 | |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 10514 | // =================================================================== |
| 10515 | |
| 10516 | void RebootDeviceRequest::InitAsDefaultInstance() { |
| 10517 | ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 10518 | ::dmi::Uuid::internal_default_instance()); |
| 10519 | } |
| 10520 | class RebootDeviceRequest::HasBitSetters { |
| 10521 | public: |
| 10522 | static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg); |
| 10523 | }; |
| 10524 | |
| 10525 | const ::dmi::Uuid& |
| 10526 | RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) { |
| 10527 | return *msg->device_uuid_; |
| 10528 | } |
| 10529 | void RebootDeviceRequest::clear_device_uuid() { |
| 10530 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10531 | delete device_uuid_; |
| 10532 | } |
| 10533 | device_uuid_ = nullptr; |
| 10534 | } |
| 10535 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10536 | const int RebootDeviceRequest::kDeviceUuidFieldNumber; |
| 10537 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10538 | |
| 10539 | RebootDeviceRequest::RebootDeviceRequest() |
| 10540 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10541 | SharedCtor(); |
| 10542 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest) |
| 10543 | } |
| 10544 | RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from) |
| 10545 | : ::google::protobuf::Message(), |
| 10546 | _internal_metadata_(nullptr) { |
| 10547 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10548 | if (from.has_device_uuid()) { |
| 10549 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 10550 | } else { |
| 10551 | device_uuid_ = nullptr; |
| 10552 | } |
| 10553 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest) |
| 10554 | } |
| 10555 | |
| 10556 | void RebootDeviceRequest::SharedCtor() { |
| 10557 | ::google::protobuf::internal::InitSCC( |
| 10558 | &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10559 | device_uuid_ = nullptr; |
| 10560 | } |
| 10561 | |
| 10562 | RebootDeviceRequest::~RebootDeviceRequest() { |
| 10563 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest) |
| 10564 | SharedDtor(); |
| 10565 | } |
| 10566 | |
| 10567 | void RebootDeviceRequest::SharedDtor() { |
| 10568 | if (this != internal_default_instance()) delete device_uuid_; |
| 10569 | } |
| 10570 | |
| 10571 | void RebootDeviceRequest::SetCachedSize(int size) const { |
| 10572 | _cached_size_.Set(size); |
| 10573 | } |
| 10574 | const RebootDeviceRequest& RebootDeviceRequest::default_instance() { |
| 10575 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10576 | return *internal_default_instance(); |
| 10577 | } |
| 10578 | |
| 10579 | |
| 10580 | void RebootDeviceRequest::Clear() { |
| 10581 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest) |
| 10582 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10583 | // Prevent compiler warnings about cached_has_bits being unused |
| 10584 | (void) cached_has_bits; |
| 10585 | |
| 10586 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10587 | delete device_uuid_; |
| 10588 | } |
| 10589 | device_uuid_ = nullptr; |
| 10590 | _internal_metadata_.Clear(); |
| 10591 | } |
| 10592 | |
| 10593 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10594 | const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10595 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10596 | auto msg = static_cast<RebootDeviceRequest*>(object); |
| 10597 | ::google::protobuf::int32 size; (void)size; |
| 10598 | int depth; (void)depth; |
| 10599 | ::google::protobuf::uint32 tag; |
| 10600 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10601 | auto ptr = begin; |
| 10602 | while (ptr < end) { |
| 10603 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10604 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10605 | switch (tag >> 3) { |
| 10606 | // .dmi.Uuid device_uuid = 1; |
| 10607 | case 1: { |
| 10608 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10609 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10610 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10611 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10612 | object = msg->mutable_device_uuid(); |
| 10613 | if (size > end - ptr) goto len_delim_till_end; |
| 10614 | ptr += size; |
| 10615 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10616 | {parser_till_end, object}, ptr - size, ptr)); |
| 10617 | break; |
| 10618 | } |
| 10619 | default: { |
| 10620 | handle_unusual: |
| 10621 | if ((tag & 7) == 4 || tag == 0) { |
| 10622 | ctx->EndGroup(tag); |
| 10623 | return ptr; |
| 10624 | } |
| 10625 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10626 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10627 | ptr = res.first; |
| 10628 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10629 | if (res.second) return ptr; |
| 10630 | } |
| 10631 | } // switch |
| 10632 | } // while |
| 10633 | return ptr; |
| 10634 | len_delim_till_end: |
| 10635 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10636 | {parser_till_end, object}, size); |
| 10637 | } |
| 10638 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10639 | bool RebootDeviceRequest::MergePartialFromCodedStream( |
| 10640 | ::google::protobuf::io::CodedInputStream* input) { |
| 10641 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10642 | ::google::protobuf::uint32 tag; |
| 10643 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest) |
| 10644 | for (;;) { |
| 10645 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10646 | tag = p.first; |
| 10647 | if (!p.second) goto handle_unusual; |
| 10648 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10649 | // .dmi.Uuid device_uuid = 1; |
| 10650 | case 1: { |
| 10651 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10652 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10653 | input, mutable_device_uuid())); |
| 10654 | } else { |
| 10655 | goto handle_unusual; |
| 10656 | } |
| 10657 | break; |
| 10658 | } |
| 10659 | |
| 10660 | default: { |
| 10661 | handle_unusual: |
| 10662 | if (tag == 0) { |
| 10663 | goto success; |
| 10664 | } |
| 10665 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10666 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10667 | break; |
| 10668 | } |
| 10669 | } |
| 10670 | } |
| 10671 | success: |
| 10672 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest) |
| 10673 | return true; |
| 10674 | failure: |
| 10675 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest) |
| 10676 | return false; |
| 10677 | #undef DO_ |
| 10678 | } |
| 10679 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10680 | |
| 10681 | void RebootDeviceRequest::SerializeWithCachedSizes( |
| 10682 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10683 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest) |
| 10684 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10685 | (void) cached_has_bits; |
| 10686 | |
| 10687 | // .dmi.Uuid device_uuid = 1; |
| 10688 | if (this->has_device_uuid()) { |
| 10689 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10690 | 1, HasBitSetters::device_uuid(this), output); |
| 10691 | } |
| 10692 | |
| 10693 | if (_internal_metadata_.have_unknown_fields()) { |
| 10694 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10695 | _internal_metadata_.unknown_fields(), output); |
| 10696 | } |
| 10697 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest) |
| 10698 | } |
| 10699 | |
| 10700 | ::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 10701 | ::google::protobuf::uint8* target) const { |
| 10702 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest) |
| 10703 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10704 | (void) cached_has_bits; |
| 10705 | |
| 10706 | // .dmi.Uuid device_uuid = 1; |
| 10707 | if (this->has_device_uuid()) { |
| 10708 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10709 | InternalWriteMessageToArray( |
| 10710 | 1, HasBitSetters::device_uuid(this), target); |
| 10711 | } |
| 10712 | |
| 10713 | if (_internal_metadata_.have_unknown_fields()) { |
| 10714 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10715 | _internal_metadata_.unknown_fields(), target); |
| 10716 | } |
| 10717 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest) |
| 10718 | return target; |
| 10719 | } |
| 10720 | |
| 10721 | size_t RebootDeviceRequest::ByteSizeLong() const { |
| 10722 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest) |
| 10723 | size_t total_size = 0; |
| 10724 | |
| 10725 | if (_internal_metadata_.have_unknown_fields()) { |
| 10726 | total_size += |
| 10727 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10728 | _internal_metadata_.unknown_fields()); |
| 10729 | } |
| 10730 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10731 | // Prevent compiler warnings about cached_has_bits being unused |
| 10732 | (void) cached_has_bits; |
| 10733 | |
| 10734 | // .dmi.Uuid device_uuid = 1; |
| 10735 | if (this->has_device_uuid()) { |
| 10736 | total_size += 1 + |
| 10737 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10738 | *device_uuid_); |
| 10739 | } |
| 10740 | |
| 10741 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10742 | SetCachedSize(cached_size); |
| 10743 | return total_size; |
| 10744 | } |
| 10745 | |
| 10746 | void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10747 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest) |
| 10748 | GOOGLE_DCHECK_NE(&from, this); |
| 10749 | const RebootDeviceRequest* source = |
| 10750 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>( |
| 10751 | &from); |
| 10752 | if (source == nullptr) { |
| 10753 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest) |
| 10754 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10755 | } else { |
| 10756 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest) |
| 10757 | MergeFrom(*source); |
| 10758 | } |
| 10759 | } |
| 10760 | |
| 10761 | void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) { |
| 10762 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest) |
| 10763 | GOOGLE_DCHECK_NE(&from, this); |
| 10764 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10765 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10766 | (void) cached_has_bits; |
| 10767 | |
| 10768 | if (from.has_device_uuid()) { |
| 10769 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10770 | } |
| 10771 | } |
| 10772 | |
| 10773 | void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10774 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest) |
| 10775 | if (&from == this) return; |
| 10776 | Clear(); |
| 10777 | MergeFrom(from); |
| 10778 | } |
| 10779 | |
| 10780 | void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) { |
| 10781 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest) |
| 10782 | if (&from == this) return; |
| 10783 | Clear(); |
| 10784 | MergeFrom(from); |
| 10785 | } |
| 10786 | |
| 10787 | bool RebootDeviceRequest::IsInitialized() const { |
| 10788 | return true; |
| 10789 | } |
| 10790 | |
| 10791 | void RebootDeviceRequest::Swap(RebootDeviceRequest* other) { |
| 10792 | if (other == this) return; |
| 10793 | InternalSwap(other); |
| 10794 | } |
| 10795 | void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) { |
| 10796 | using std::swap; |
| 10797 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10798 | swap(device_uuid_, other->device_uuid_); |
| 10799 | } |
| 10800 | |
| 10801 | ::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const { |
| 10802 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10803 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10804 | } |
| 10805 | |
| 10806 | |
| 10807 | // =================================================================== |
| 10808 | |
| 10809 | void RebootDeviceResponse::InitAsDefaultInstance() { |
| 10810 | } |
| 10811 | class RebootDeviceResponse::HasBitSetters { |
| 10812 | public: |
| 10813 | }; |
| 10814 | |
| 10815 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10816 | const int RebootDeviceResponse::kStatusFieldNumber; |
| 10817 | const int RebootDeviceResponse::kReasonFieldNumber; |
| 10818 | const int RebootDeviceResponse::kReasonDetailFieldNumber; |
| 10819 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10820 | |
| 10821 | RebootDeviceResponse::RebootDeviceResponse() |
| 10822 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10823 | SharedCtor(); |
| 10824 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse) |
| 10825 | } |
| 10826 | RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from) |
| 10827 | : ::google::protobuf::Message(), |
| 10828 | _internal_metadata_(nullptr) { |
| 10829 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10830 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10831 | if (from.reason_detail().size() > 0) { |
| 10832 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 10833 | } |
| 10834 | ::memcpy(&status_, &from.status_, |
| 10835 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 10836 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10837 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse) |
| 10838 | } |
| 10839 | |
| 10840 | void RebootDeviceResponse::SharedCtor() { |
| 10841 | ::google::protobuf::internal::InitSCC( |
| 10842 | &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10843 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10844 | ::memset(&status_, 0, static_cast<size_t>( |
| 10845 | reinterpret_cast<char*>(&reason_) - |
| 10846 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10847 | } |
| 10848 | |
| 10849 | RebootDeviceResponse::~RebootDeviceResponse() { |
| 10850 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse) |
| 10851 | SharedDtor(); |
| 10852 | } |
| 10853 | |
| 10854 | void RebootDeviceResponse::SharedDtor() { |
| 10855 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10856 | } |
| 10857 | |
| 10858 | void RebootDeviceResponse::SetCachedSize(int size) const { |
| 10859 | _cached_size_.Set(size); |
| 10860 | } |
| 10861 | const RebootDeviceResponse& RebootDeviceResponse::default_instance() { |
| 10862 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10863 | return *internal_default_instance(); |
| 10864 | } |
| 10865 | |
| 10866 | |
| 10867 | void RebootDeviceResponse::Clear() { |
| 10868 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse) |
| 10869 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10870 | // Prevent compiler warnings about cached_has_bits being unused |
| 10871 | (void) cached_has_bits; |
| 10872 | |
| 10873 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10874 | ::memset(&status_, 0, static_cast<size_t>( |
| 10875 | reinterpret_cast<char*>(&reason_) - |
| 10876 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10877 | _internal_metadata_.Clear(); |
| 10878 | } |
| 10879 | |
| 10880 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10881 | const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 10882 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10883 | auto msg = static_cast<RebootDeviceResponse*>(object); |
| 10884 | ::google::protobuf::int32 size; (void)size; |
| 10885 | int depth; (void)depth; |
| 10886 | ::google::protobuf::uint32 tag; |
| 10887 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10888 | auto ptr = begin; |
| 10889 | while (ptr < end) { |
| 10890 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10891 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10892 | switch (tag >> 3) { |
| 10893 | // .dmi.Status status = 3; |
| 10894 | case 3: { |
| 10895 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 10896 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10897 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 10898 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10899 | break; |
| 10900 | } |
| 10901 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 10902 | case 4: { |
| 10903 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 10904 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10905 | msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val)); |
| 10906 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10907 | break; |
| 10908 | } |
| 10909 | // string reason_detail = 5; |
| 10910 | case 5: { |
| 10911 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 10912 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10913 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10914 | ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail"); |
| 10915 | object = msg->mutable_reason_detail(); |
| 10916 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 10917 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 10918 | goto string_till_end; |
| 10919 | } |
| 10920 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 10921 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 10922 | ptr += size; |
| 10923 | break; |
| 10924 | } |
| 10925 | default: { |
| 10926 | handle_unusual: |
| 10927 | if ((tag & 7) == 4 || tag == 0) { |
| 10928 | ctx->EndGroup(tag); |
| 10929 | return ptr; |
| 10930 | } |
| 10931 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10932 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10933 | ptr = res.first; |
| 10934 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10935 | if (res.second) return ptr; |
| 10936 | } |
| 10937 | } // switch |
| 10938 | } // while |
| 10939 | return ptr; |
| 10940 | string_till_end: |
| 10941 | static_cast<::std::string*>(object)->clear(); |
| 10942 | static_cast<::std::string*>(object)->reserve(size); |
| 10943 | goto len_delim_till_end; |
| 10944 | len_delim_till_end: |
| 10945 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10946 | {parser_till_end, object}, size); |
| 10947 | } |
| 10948 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10949 | bool RebootDeviceResponse::MergePartialFromCodedStream( |
| 10950 | ::google::protobuf::io::CodedInputStream* input) { |
| 10951 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10952 | ::google::protobuf::uint32 tag; |
| 10953 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse) |
| 10954 | for (;;) { |
| 10955 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10956 | tag = p.first; |
| 10957 | if (!p.second) goto handle_unusual; |
| 10958 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10959 | // .dmi.Status status = 3; |
| 10960 | case 3: { |
| 10961 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 10962 | int value = 0; |
| 10963 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10964 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10965 | input, &value))); |
| 10966 | set_status(static_cast< ::dmi::Status >(value)); |
| 10967 | } else { |
| 10968 | goto handle_unusual; |
| 10969 | } |
| 10970 | break; |
| 10971 | } |
| 10972 | |
| 10973 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 10974 | case 4: { |
| 10975 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 10976 | int value = 0; |
| 10977 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10978 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10979 | input, &value))); |
| 10980 | set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value)); |
| 10981 | } else { |
| 10982 | goto handle_unusual; |
| 10983 | } |
| 10984 | break; |
| 10985 | } |
| 10986 | |
| 10987 | // string reason_detail = 5; |
| 10988 | case 5: { |
| 10989 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 10990 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 10991 | input, this->mutable_reason_detail())); |
| 10992 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 10993 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 10994 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 10995 | "dmi.RebootDeviceResponse.reason_detail")); |
| 10996 | } else { |
| 10997 | goto handle_unusual; |
| 10998 | } |
| 10999 | break; |
| 11000 | } |
| 11001 | |
| 11002 | default: { |
| 11003 | handle_unusual: |
| 11004 | if (tag == 0) { |
| 11005 | goto success; |
| 11006 | } |
| 11007 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11008 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 11009 | break; |
| 11010 | } |
| 11011 | } |
| 11012 | } |
| 11013 | success: |
| 11014 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse) |
| 11015 | return true; |
| 11016 | failure: |
| 11017 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse) |
| 11018 | return false; |
| 11019 | #undef DO_ |
| 11020 | } |
| 11021 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11022 | |
| 11023 | void RebootDeviceResponse::SerializeWithCachedSizes( |
| 11024 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11025 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse) |
| 11026 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11027 | (void) cached_has_bits; |
| 11028 | |
| 11029 | // .dmi.Status status = 3; |
| 11030 | if (this->status() != 0) { |
| 11031 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11032 | 3, this->status(), output); |
| 11033 | } |
| 11034 | |
| 11035 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11036 | if (this->reason() != 0) { |
| 11037 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11038 | 4, this->reason(), output); |
| 11039 | } |
| 11040 | |
| 11041 | // string reason_detail = 5; |
| 11042 | if (this->reason_detail().size() > 0) { |
| 11043 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11044 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11045 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11046 | "dmi.RebootDeviceResponse.reason_detail"); |
| 11047 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 11048 | 5, this->reason_detail(), output); |
| 11049 | } |
| 11050 | |
| 11051 | if (_internal_metadata_.have_unknown_fields()) { |
| 11052 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11053 | _internal_metadata_.unknown_fields(), output); |
| 11054 | } |
| 11055 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse) |
| 11056 | } |
| 11057 | |
| 11058 | ::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 11059 | ::google::protobuf::uint8* target) const { |
| 11060 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse) |
| 11061 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11062 | (void) cached_has_bits; |
| 11063 | |
| 11064 | // .dmi.Status status = 3; |
| 11065 | if (this->status() != 0) { |
| 11066 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11067 | 3, this->status(), target); |
| 11068 | } |
| 11069 | |
| 11070 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11071 | if (this->reason() != 0) { |
| 11072 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11073 | 4, this->reason(), target); |
| 11074 | } |
| 11075 | |
| 11076 | // string reason_detail = 5; |
| 11077 | if (this->reason_detail().size() > 0) { |
| 11078 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11079 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11080 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11081 | "dmi.RebootDeviceResponse.reason_detail"); |
| 11082 | target = |
| 11083 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 11084 | 5, this->reason_detail(), target); |
| 11085 | } |
| 11086 | |
| 11087 | if (_internal_metadata_.have_unknown_fields()) { |
| 11088 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11089 | _internal_metadata_.unknown_fields(), target); |
| 11090 | } |
| 11091 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse) |
| 11092 | return target; |
| 11093 | } |
| 11094 | |
| 11095 | size_t RebootDeviceResponse::ByteSizeLong() const { |
| 11096 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse) |
| 11097 | size_t total_size = 0; |
| 11098 | |
| 11099 | if (_internal_metadata_.have_unknown_fields()) { |
| 11100 | total_size += |
| 11101 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11102 | _internal_metadata_.unknown_fields()); |
| 11103 | } |
| 11104 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11105 | // Prevent compiler warnings about cached_has_bits being unused |
| 11106 | (void) cached_has_bits; |
| 11107 | |
| 11108 | // string reason_detail = 5; |
| 11109 | if (this->reason_detail().size() > 0) { |
| 11110 | total_size += 1 + |
| 11111 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 11112 | this->reason_detail()); |
| 11113 | } |
| 11114 | |
| 11115 | // .dmi.Status status = 3; |
| 11116 | if (this->status() != 0) { |
| 11117 | total_size += 1 + |
| 11118 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 11119 | } |
| 11120 | |
| 11121 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 11122 | if (this->reason() != 0) { |
| 11123 | total_size += 1 + |
| 11124 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 11125 | } |
| 11126 | |
| 11127 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11128 | SetCachedSize(cached_size); |
| 11129 | return total_size; |
| 11130 | } |
| 11131 | |
| 11132 | void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 11133 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse) |
| 11134 | GOOGLE_DCHECK_NE(&from, this); |
| 11135 | const RebootDeviceResponse* source = |
| 11136 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>( |
| 11137 | &from); |
| 11138 | if (source == nullptr) { |
| 11139 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse) |
| 11140 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11141 | } else { |
| 11142 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse) |
| 11143 | MergeFrom(*source); |
| 11144 | } |
| 11145 | } |
| 11146 | |
| 11147 | void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) { |
| 11148 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse) |
| 11149 | GOOGLE_DCHECK_NE(&from, this); |
| 11150 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11151 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11152 | (void) cached_has_bits; |
| 11153 | |
| 11154 | if (from.reason_detail().size() > 0) { |
| 11155 | |
| 11156 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11157 | } |
| 11158 | if (from.status() != 0) { |
| 11159 | set_status(from.status()); |
| 11160 | } |
| 11161 | if (from.reason() != 0) { |
| 11162 | set_reason(from.reason()); |
| 11163 | } |
| 11164 | } |
| 11165 | |
| 11166 | void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 11167 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse) |
| 11168 | if (&from == this) return; |
| 11169 | Clear(); |
| 11170 | MergeFrom(from); |
| 11171 | } |
| 11172 | |
| 11173 | void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) { |
| 11174 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse) |
| 11175 | if (&from == this) return; |
| 11176 | Clear(); |
| 11177 | MergeFrom(from); |
| 11178 | } |
| 11179 | |
| 11180 | bool RebootDeviceResponse::IsInitialized() const { |
| 11181 | return true; |
| 11182 | } |
| 11183 | |
| 11184 | void RebootDeviceResponse::Swap(RebootDeviceResponse* other) { |
| 11185 | if (other == this) return; |
| 11186 | InternalSwap(other); |
| 11187 | } |
| 11188 | void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) { |
| 11189 | using std::swap; |
| 11190 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11191 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 11192 | GetArenaNoVirtual()); |
| 11193 | swap(status_, other->status_); |
| 11194 | swap(reason_, other->reason_); |
| 11195 | } |
| 11196 | |
| 11197 | ::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const { |
| 11198 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 11199 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 11200 | } |
| 11201 | |
| 11202 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 11203 | // @@protoc_insertion_point(namespace_scope) |
| 11204 | } // namespace dmi |
| 11205 | namespace google { |
| 11206 | namespace protobuf { |
| 11207 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) { |
| 11208 | return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena); |
| 11209 | } |
| 11210 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) { |
| 11211 | return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena); |
| 11212 | } |
| 11213 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) { |
| 11214 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena); |
| 11215 | } |
| 11216 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) { |
| 11217 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena); |
| 11218 | } |
| 11219 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) { |
| 11220 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena); |
| 11221 | } |
| 11222 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) { |
| 11223 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena); |
| 11224 | } |
| 11225 | template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) { |
| 11226 | return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena); |
| 11227 | } |
| 11228 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) { |
| 11229 | return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena); |
| 11230 | } |
| 11231 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) { |
| 11232 | return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena); |
| 11233 | } |
| 11234 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) { |
| 11235 | return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena); |
| 11236 | } |
| 11237 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) { |
| 11238 | return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena); |
| 11239 | } |
| 11240 | template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) { |
| 11241 | return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena); |
| 11242 | } |
| 11243 | template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) { |
| 11244 | return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena); |
| 11245 | } |
| 11246 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) { |
| 11247 | return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena); |
| 11248 | } |
| 11249 | template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) { |
| 11250 | return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena); |
| 11251 | } |
| 11252 | template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) { |
| 11253 | return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena); |
| 11254 | } |
| 11255 | template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) { |
| 11256 | return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena); |
| 11257 | } |
| 11258 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) { |
| 11259 | return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena); |
| 11260 | } |
| 11261 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) { |
| 11262 | return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena); |
| 11263 | } |
| 11264 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) { |
| 11265 | return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena); |
| 11266 | } |
| 11267 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) { |
| 11268 | return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena); |
| 11269 | } |
| 11270 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) { |
| 11271 | return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena); |
| 11272 | } |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 11273 | template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) { |
| 11274 | return Arena::CreateInternal< ::dmi::Heartbeat >(arena); |
| 11275 | } |
Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 11276 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) { |
| 11277 | return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena); |
| 11278 | } |
| 11279 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) { |
| 11280 | return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena); |
| 11281 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 11282 | } // namespace protobuf |
| 11283 | } // namespace google |
| 11284 | |
| 11285 | // @@protoc_insertion_point(global_scope) |
| 11286 | #include <google/protobuf/port_undef.inc> |