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/sw_management_service.proto |
| 3 | |
| 4 | #include "dmi/sw_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_2fsw_5fimage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto; |
| 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fsw_5fimage_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto; |
| 22 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fsw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto; |
| 23 | namespace dmi { |
| 24 | class SoftwareVersionInformationDefaultTypeInternal { |
| 25 | public: |
| 26 | ::google::protobuf::internal::ExplicitlyConstructed<SoftwareVersionInformation> _instance; |
| 27 | } _SoftwareVersionInformation_default_instance_; |
| 28 | class GetSoftwareVersionInformationResponseDefaultTypeInternal { |
| 29 | public: |
| 30 | ::google::protobuf::internal::ExplicitlyConstructed<GetSoftwareVersionInformationResponse> _instance; |
| 31 | } _GetSoftwareVersionInformationResponse_default_instance_; |
| 32 | class DownloadImageRequestDefaultTypeInternal { |
| 33 | public: |
| 34 | ::google::protobuf::internal::ExplicitlyConstructed<DownloadImageRequest> _instance; |
| 35 | } _DownloadImageRequest_default_instance_; |
| 36 | class ConfigRequestDefaultTypeInternal { |
| 37 | public: |
| 38 | ::google::protobuf::internal::ExplicitlyConstructed<ConfigRequest> _instance; |
| 39 | } _ConfigRequest_default_instance_; |
| 40 | class ConfigResponseDefaultTypeInternal { |
| 41 | public: |
| 42 | ::google::protobuf::internal::ExplicitlyConstructed<ConfigResponse> _instance; |
| 43 | } _ConfigResponse_default_instance_; |
| 44 | class StartupConfigInfoRequestDefaultTypeInternal { |
| 45 | public: |
| 46 | ::google::protobuf::internal::ExplicitlyConstructed<StartupConfigInfoRequest> _instance; |
| 47 | } _StartupConfigInfoRequest_default_instance_; |
| 48 | class StartupConfigInfoResponseDefaultTypeInternal { |
| 49 | public: |
| 50 | ::google::protobuf::internal::ExplicitlyConstructed<StartupConfigInfoResponse> _instance; |
| 51 | } _StartupConfigInfoResponse_default_instance_; |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 52 | class UploadDebugInfoRequestDefaultTypeInternal { |
| 53 | public: |
| 54 | ::google::protobuf::internal::ExplicitlyConstructed<UploadDebugInfoRequest> _instance; |
| 55 | } _UploadDebugInfoRequest_default_instance_; |
| 56 | class UploadDebugInfoStatusDefaultTypeInternal { |
| 57 | public: |
| 58 | ::google::protobuf::internal::ExplicitlyConstructed<UploadDebugInfoStatus> _instance; |
| 59 | } _UploadDebugInfoStatus_default_instance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 60 | } // namespace dmi |
| 61 | static void InitDefaultsSoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 62 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 63 | |
| 64 | { |
| 65 | void* ptr = &::dmi::_SoftwareVersionInformation_default_instance_; |
| 66 | new (ptr) ::dmi::SoftwareVersionInformation(); |
| 67 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 68 | } |
| 69 | ::dmi::SoftwareVersionInformation::InitAsDefaultInstance(); |
| 70 | } |
| 71 | |
| 72 | ::google::protobuf::internal::SCCInfo<1> scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 73 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 74 | &scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base,}}; |
| 75 | |
| 76 | static void InitDefaultsGetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 77 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 78 | |
| 79 | { |
| 80 | void* ptr = &::dmi::_GetSoftwareVersionInformationResponse_default_instance_; |
| 81 | new (ptr) ::dmi::GetSoftwareVersionInformationResponse(); |
| 82 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 83 | } |
| 84 | ::dmi::GetSoftwareVersionInformationResponse::InitAsDefaultInstance(); |
| 85 | } |
| 86 | |
| 87 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 88 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 89 | &scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base,}}; |
| 90 | |
| 91 | static void InitDefaultsDownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 92 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 93 | |
| 94 | { |
| 95 | void* ptr = &::dmi::_DownloadImageRequest_default_instance_; |
| 96 | new (ptr) ::dmi::DownloadImageRequest(); |
| 97 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 98 | } |
| 99 | ::dmi::DownloadImageRequest::InitAsDefaultInstance(); |
| 100 | } |
| 101 | |
| 102 | ::google::protobuf::internal::SCCInfo<2> scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 103 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 104 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 105 | &scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto.base,}}; |
| 106 | |
| 107 | static void InitDefaultsConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 108 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 109 | |
| 110 | { |
| 111 | void* ptr = &::dmi::_ConfigRequest_default_instance_; |
| 112 | new (ptr) ::dmi::ConfigRequest(); |
| 113 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 114 | } |
| 115 | ::dmi::ConfigRequest::InitAsDefaultInstance(); |
| 116 | } |
| 117 | |
| 118 | ::google::protobuf::internal::SCCInfo<1> scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 119 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 120 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 121 | |
| 122 | static void InitDefaultsConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 123 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 124 | |
| 125 | { |
| 126 | void* ptr = &::dmi::_ConfigResponse_default_instance_; |
| 127 | new (ptr) ::dmi::ConfigResponse(); |
| 128 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 129 | } |
| 130 | ::dmi::ConfigResponse::InitAsDefaultInstance(); |
| 131 | } |
| 132 | |
| 133 | ::google::protobuf::internal::SCCInfo<0> scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 134 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, {}}; |
| 135 | |
| 136 | static void InitDefaultsStartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 137 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 138 | |
| 139 | { |
| 140 | void* ptr = &::dmi::_StartupConfigInfoRequest_default_instance_; |
| 141 | new (ptr) ::dmi::StartupConfigInfoRequest(); |
| 142 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 143 | } |
| 144 | ::dmi::StartupConfigInfoRequest::InitAsDefaultInstance(); |
| 145 | } |
| 146 | |
| 147 | ::google::protobuf::internal::SCCInfo<1> scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 148 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 149 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 150 | |
| 151 | static void InitDefaultsStartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 152 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 153 | |
| 154 | { |
| 155 | void* ptr = &::dmi::_StartupConfigInfoResponse_default_instance_; |
| 156 | new (ptr) ::dmi::StartupConfigInfoResponse(); |
| 157 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 158 | } |
| 159 | ::dmi::StartupConfigInfoResponse::InitAsDefaultInstance(); |
| 160 | } |
| 161 | |
| 162 | ::google::protobuf::internal::SCCInfo<0> scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 163 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, {}}; |
| 164 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 165 | static void InitDefaultsUploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 166 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 167 | |
| 168 | { |
| 169 | void* ptr = &::dmi::_UploadDebugInfoRequest_default_instance_; |
| 170 | new (ptr) ::dmi::UploadDebugInfoRequest(); |
| 171 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 172 | } |
| 173 | ::dmi::UploadDebugInfoRequest::InitAsDefaultInstance(); |
| 174 | } |
| 175 | |
| 176 | ::google::protobuf::internal::SCCInfo<1> scc_info_UploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 177 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 178 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 179 | |
| 180 | static void InitDefaultsUploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 181 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 182 | |
| 183 | { |
| 184 | void* ptr = &::dmi::_UploadDebugInfoStatus_default_instance_; |
| 185 | new (ptr) ::dmi::UploadDebugInfoStatus(); |
| 186 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 187 | } |
| 188 | ::dmi::UploadDebugInfoStatus::InitAsDefaultInstance(); |
| 189 | } |
| 190 | |
| 191 | ::google::protobuf::internal::SCCInfo<1> scc_info_UploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 192 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 193 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 194 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 195 | void InitDefaults_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 196 | ::google::protobuf::internal::InitSCC(&scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 197 | ::google::protobuf::internal::InitSCC(&scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 198 | ::google::protobuf::internal::InitSCC(&scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 199 | ::google::protobuf::internal::InitSCC(&scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 200 | ::google::protobuf::internal::InitSCC(&scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 201 | ::google::protobuf::internal::InitSCC(&scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 202 | ::google::protobuf::internal::InitSCC(&scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 203 | ::google::protobuf::internal::InitSCC(&scc_info_UploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 204 | ::google::protobuf::internal::InitSCC(&scc_info_UploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 205 | } |
| 206 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 207 | ::google::protobuf::Metadata file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[9]; |
| 208 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[5]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 209 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto = nullptr; |
| 210 | |
| 211 | const ::google::protobuf::uint32 TableStruct_dmi_2fsw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 212 | ~0u, // no _has_bits_ |
| 213 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, _internal_metadata_), |
| 214 | ~0u, // no _extensions_ |
| 215 | ~0u, // no _oneof_case_ |
| 216 | ~0u, // no _weak_field_map_ |
| 217 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, active_versions_), |
| 218 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, standby_versions_), |
| 219 | ~0u, // no _has_bits_ |
| 220 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, _internal_metadata_), |
| 221 | ~0u, // no _extensions_ |
| 222 | ~0u, // no _oneof_case_ |
| 223 | ~0u, // no _weak_field_map_ |
| 224 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, status_), |
| 225 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, reason_), |
| 226 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, info_), |
| 227 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, reason_detail_), |
| 228 | ~0u, // no _has_bits_ |
| 229 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, _internal_metadata_), |
| 230 | ~0u, // no _extensions_ |
| 231 | ~0u, // no _oneof_case_ |
| 232 | ~0u, // no _weak_field_map_ |
| 233 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, device_uuid_), |
| 234 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, image_info_), |
| 235 | ~0u, // no _has_bits_ |
| 236 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, _internal_metadata_), |
| 237 | ~0u, // no _extensions_ |
| 238 | ~0u, // no _oneof_case_ |
| 239 | ~0u, // no _weak_field_map_ |
| 240 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, device_uuid_), |
| 241 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, config_url_), |
| 242 | ~0u, // no _has_bits_ |
| 243 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, _internal_metadata_), |
| 244 | ~0u, // no _extensions_ |
| 245 | ~0u, // no _oneof_case_ |
| 246 | ~0u, // no _weak_field_map_ |
| 247 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, status_), |
| 248 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, reason_), |
| 249 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, reason_detail_), |
| 250 | ~0u, // no _has_bits_ |
| 251 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoRequest, _internal_metadata_), |
| 252 | ~0u, // no _extensions_ |
| 253 | ~0u, // no _oneof_case_ |
| 254 | ~0u, // no _weak_field_map_ |
| 255 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoRequest, device_uuid_), |
| 256 | ~0u, // no _has_bits_ |
| 257 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, _internal_metadata_), |
| 258 | ~0u, // no _extensions_ |
| 259 | ~0u, // no _oneof_case_ |
| 260 | ~0u, // no _weak_field_map_ |
| 261 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, status_), |
| 262 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, reason_), |
| 263 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, config_url_), |
| 264 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, version_), |
| 265 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, reason_detail_), |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 266 | ~0u, // no _has_bits_ |
| 267 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoRequest, _internal_metadata_), |
| 268 | ~0u, // no _extensions_ |
| 269 | ~0u, // no _oneof_case_ |
| 270 | ~0u, // no _weak_field_map_ |
| 271 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoRequest, device_uuid_), |
| 272 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoRequest, location_url_), |
| 273 | ~0u, // no _has_bits_ |
| 274 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, _internal_metadata_), |
| 275 | ~0u, // no _extensions_ |
| 276 | ~0u, // no _oneof_case_ |
| 277 | ~0u, // no _weak_field_map_ |
| 278 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, device_uuid_), |
| 279 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, status_), |
| 280 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, percent_uploaded_), |
| 281 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, reason_), |
| 282 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, location_url_), |
| 283 | PROTOBUF_FIELD_OFFSET(::dmi::UploadDebugInfoStatus, file_name_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 284 | }; |
| 285 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 286 | { 0, -1, sizeof(::dmi::SoftwareVersionInformation)}, |
| 287 | { 7, -1, sizeof(::dmi::GetSoftwareVersionInformationResponse)}, |
| 288 | { 16, -1, sizeof(::dmi::DownloadImageRequest)}, |
| 289 | { 23, -1, sizeof(::dmi::ConfigRequest)}, |
| 290 | { 30, -1, sizeof(::dmi::ConfigResponse)}, |
| 291 | { 38, -1, sizeof(::dmi::StartupConfigInfoRequest)}, |
| 292 | { 44, -1, sizeof(::dmi::StartupConfigInfoResponse)}, |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 293 | { 54, -1, sizeof(::dmi::UploadDebugInfoRequest)}, |
| 294 | { 61, -1, sizeof(::dmi::UploadDebugInfoStatus)}, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 295 | }; |
| 296 | |
| 297 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 298 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SoftwareVersionInformation_default_instance_), |
| 299 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetSoftwareVersionInformationResponse_default_instance_), |
| 300 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_DownloadImageRequest_default_instance_), |
| 301 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ConfigRequest_default_instance_), |
| 302 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ConfigResponse_default_instance_), |
| 303 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartupConfigInfoRequest_default_instance_), |
| 304 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartupConfigInfoResponse_default_instance_), |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 305 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_UploadDebugInfoRequest_default_instance_), |
| 306 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_UploadDebugInfoStatus_default_instance_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto = { |
| 310 | {}, AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, "dmi/sw_management_service.proto", schemas, |
| 311 | file_default_instances, TableStruct_dmi_2fsw_5fmanagement_5fservice_2eproto::offsets, |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 312 | file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto, 9, file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, file_level_service_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 313 | }; |
| 314 | |
| 315 | const char descriptor_table_protodef_dmi_2fsw_5fmanagement_5fservice_2eproto[] = |
| 316 | "\n\037dmi/sw_management_service.proto\022\003dmi\032\021" |
| 317 | "dmi/commons.proto\032\014dmi/hw.proto\032\022dmi/sw_" |
| 318 | "image.proto\"u\n\032SoftwareVersionInformatio" |
| 319 | "n\022*\n\017active_versions\030\001 \003(\0132\021.dmi.ImageVe" |
| 320 | "rsion\022+\n\020standby_versions\030\002 \003(\0132\021.dmi.Im" |
| 321 | "ageVersion\"\255\002\n%GetSoftwareVersionInforma" |
| 322 | "tionResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Statu" |
| 323 | "s\022A\n\006reason\030\002 \001(\01621.dmi.GetSoftwareVersi" |
| 324 | "onInformationResponse.Reason\022-\n\004info\030\003 \001" |
| 325 | "(\0132\037.dmi.SoftwareVersionInformation\022\025\n\rr" |
| 326 | "eason_detail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINE" |
| 327 | "D_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERN" |
| 328 | "AL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"a\n\024Do" |
| 329 | "wnloadImageRequest\022\036\n\013device_uuid\030\001 \001(\0132" |
| 330 | "\t.dmi.Uuid\022)\n\nimage_info\030\002 \001(\0132\025.dmi.Ima" |
| 331 | "geInformation\"C\n\rConfigRequest\022\036\n\013device" |
| 332 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022\022\n\nconfig_url\030\002 \001" |
| 333 | "(\t\"\243\002\n\016ConfigResponse\022\033\n\006status\030\001 \001(\0162\013." |
| 334 | "dmi.Status\022*\n\006reason\030\002 \001(\0162\032.dmi.ConfigR" |
| 335 | "esponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"\260\001" |
| 336 | "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOW" |
| 337 | "N_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\031\n\025ERROR_" |
| 338 | "FETCHING_CONFIG\020\003\022\022\n\016INVALID_CONFIG\020\004\022!\n" |
| 339 | "\035OPERATION_ALREADY_IN_PROGRESS\020\005\022\026\n\022DEVI" |
| 340 | "CE_UNREACHABLE\020\006\":\n\030StartupConfigInfoReq" |
| 341 | "uest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\"\213\002\n" |
| 342 | "\031StartupConfigInfoResponse\022\033\n\006status\030\001 \001" |
| 343 | "(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.St" |
| 344 | "artupConfigInfoResponse.Reason\022\022\n\nconfig" |
| 345 | "_url\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\025\n\rreason_de" |
| 346 | "tail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON" |
| 347 | "\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR" |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 348 | "\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"N\n\026UploadDebu" |
| 349 | "gInfoRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi." |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 350 | "Uuid\022\024\n\014location_url\030\003 \001(\t\"\220\004\n\025UploadDeb" |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 351 | "ugInfoStatus\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi." |
| 352 | "Uuid\0227\n\006status\030\002 \001(\0162\'.dmi.UploadDebugIn" |
| 353 | "foStatus.UploadStatus\022\030\n\020percent_uploade" |
| 354 | "d\030\003 \001(\005\0221\n\006reason\030\004 \001(\0162!.dmi.UploadDebu" |
| 355 | "gInfoStatus.Reason\022\024\n\014location_url\030\005 \001(\t" |
| 356 | "\022\021\n\tfile_name\030\006 \001(\t\"U\n\014UploadStatus\022\033\n\027U" |
| 357 | "NDEFINED_UPLOAD_STATUS\020\000\022\014\n\010COMPLETE\020\001\022\017" |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 358 | "\n\013IN_PROGRESS\020\002\022\t\n\005ERROR\020\003\"\320\001\n\006Reason\022\024\n" |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 359 | "\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022" |
| 360 | "\022\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABL" |
| 361 | "E\020\003\022\037\n\033REMOTE_LOCATION_UNREACHABLE\020\004\022%\n!" |
| 362 | "REMOTE_LOCATION_PERMISSION_DENIED\020\005\022\027\n\023E" |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 363 | "RROR_DURING_UPLOAD\020\006\022\017\n\013DEVICE_BUSY\020\0072\234\004" |
| 364 | "\n\037NativeSoftwareManagementService\022Q\n\022Get" |
| 365 | "SoftwareVersion\022\017.dmi.HardwareID\032*.dmi.G" |
| 366 | "etSoftwareVersionInformationResponse\022>\n\r" |
| 367 | "DownloadImage\022\031.dmi.DownloadImageRequest" |
| 368 | "\032\020.dmi.ImageStatus0\001\0224\n\rActivateImage\022\017." |
| 369 | "dmi.HardwareID\032\020.dmi.ImageStatus0\001\022;\n\024Re" |
| 370 | "vertToStandbyImage\022\017.dmi.HardwareID\032\020.dm" |
| 371 | "i.ImageStatus0\001\022G\n\032UpdateStartupConfigur" |
| 372 | "ation\022\022.dmi.ConfigRequest\032\023.dmi.ConfigRe" |
| 373 | "sponse0\001\022\\\n\033GetStartupConfigurationInfo\022" |
| 374 | "\035.dmi.StartupConfigInfoRequest\032\036.dmi.Sta" |
| 375 | "rtupConfigInfoResponse\022L\n\017UploadDebugInf" |
| 376 | "o\022\033.dmi.UploadDebugInfoRequest\032\032.dmi.Upl" |
| 377 | "oadDebugInfoStatus0\001B;Z9github.com/openc" |
| 378 | "ord/device-management-interface/v3/go/dm" |
| 379 | "ib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 380 | ; |
| 381 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fsw_5fmanagement_5fservice_2eproto = { |
| 382 | false, InitDefaults_dmi_2fsw_5fmanagement_5fservice_2eproto, |
| 383 | descriptor_table_protodef_dmi_2fsw_5fmanagement_5fservice_2eproto, |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 384 | "dmi/sw_management_service.proto", &assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto, 2529, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 385 | }; |
| 386 | |
| 387 | void AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 388 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 389 | { |
| 390 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 391 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 392 | ::AddDescriptors_dmi_2fsw_5fimage_2eproto, |
| 393 | }; |
| 394 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fsw_5fmanagement_5fservice_2eproto, deps, 3); |
| 395 | } |
| 396 | |
| 397 | // Force running AddDescriptors() at dynamic initialization time. |
| 398 | static bool dynamic_init_dummy_dmi_2fsw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 399 | namespace dmi { |
| 400 | const ::google::protobuf::EnumDescriptor* GetSoftwareVersionInformationResponse_Reason_descriptor() { |
| 401 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 402 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[0]; |
| 403 | } |
| 404 | bool GetSoftwareVersionInformationResponse_Reason_IsValid(int value) { |
| 405 | switch (value) { |
| 406 | case 0: |
| 407 | case 1: |
| 408 | case 2: |
| 409 | case 3: |
| 410 | return true; |
| 411 | default: |
| 412 | return false; |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 417 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::UNDEFINED_REASON; |
| 418 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::UNKNOWN_DEVICE; |
| 419 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::INTERNAL_ERROR; |
| 420 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::DEVICE_UNREACHABLE; |
| 421 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::Reason_MIN; |
| 422 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::Reason_MAX; |
| 423 | const int GetSoftwareVersionInformationResponse::Reason_ARRAYSIZE; |
| 424 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 425 | const ::google::protobuf::EnumDescriptor* ConfigResponse_Reason_descriptor() { |
| 426 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 427 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[1]; |
| 428 | } |
| 429 | bool ConfigResponse_Reason_IsValid(int value) { |
| 430 | switch (value) { |
| 431 | case 0: |
| 432 | case 1: |
| 433 | case 2: |
| 434 | case 3: |
| 435 | case 4: |
| 436 | case 5: |
| 437 | case 6: |
| 438 | return true; |
| 439 | default: |
| 440 | return false; |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 445 | const ConfigResponse_Reason ConfigResponse::UNDEFINED_REASON; |
| 446 | const ConfigResponse_Reason ConfigResponse::UNKNOWN_DEVICE; |
| 447 | const ConfigResponse_Reason ConfigResponse::INTERNAL_ERROR; |
| 448 | const ConfigResponse_Reason ConfigResponse::ERROR_FETCHING_CONFIG; |
| 449 | const ConfigResponse_Reason ConfigResponse::INVALID_CONFIG; |
| 450 | const ConfigResponse_Reason ConfigResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 451 | const ConfigResponse_Reason ConfigResponse::DEVICE_UNREACHABLE; |
| 452 | const ConfigResponse_Reason ConfigResponse::Reason_MIN; |
| 453 | const ConfigResponse_Reason ConfigResponse::Reason_MAX; |
| 454 | const int ConfigResponse::Reason_ARRAYSIZE; |
| 455 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 456 | const ::google::protobuf::EnumDescriptor* StartupConfigInfoResponse_Reason_descriptor() { |
| 457 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 458 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[2]; |
| 459 | } |
| 460 | bool StartupConfigInfoResponse_Reason_IsValid(int value) { |
| 461 | switch (value) { |
| 462 | case 0: |
| 463 | case 1: |
| 464 | case 2: |
| 465 | case 3: |
| 466 | return true; |
| 467 | default: |
| 468 | return false; |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 473 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::UNDEFINED_REASON; |
| 474 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::UNKNOWN_DEVICE; |
| 475 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::INTERNAL_ERROR; |
| 476 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::DEVICE_UNREACHABLE; |
| 477 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::Reason_MIN; |
| 478 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::Reason_MAX; |
| 479 | const int StartupConfigInfoResponse::Reason_ARRAYSIZE; |
| 480 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 481 | const ::google::protobuf::EnumDescriptor* UploadDebugInfoStatus_UploadStatus_descriptor() { |
| 482 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 483 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[3]; |
| 484 | } |
| 485 | bool UploadDebugInfoStatus_UploadStatus_IsValid(int value) { |
| 486 | switch (value) { |
| 487 | case 0: |
| 488 | case 1: |
| 489 | case 2: |
| 490 | case 3: |
| 491 | return true; |
| 492 | default: |
| 493 | return false; |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 498 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::UNDEFINED_UPLOAD_STATUS; |
| 499 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::COMPLETE; |
| 500 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::IN_PROGRESS; |
| 501 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::ERROR; |
| 502 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::UploadStatus_MIN; |
| 503 | const UploadDebugInfoStatus_UploadStatus UploadDebugInfoStatus::UploadStatus_MAX; |
| 504 | const int UploadDebugInfoStatus::UploadStatus_ARRAYSIZE; |
| 505 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 506 | const ::google::protobuf::EnumDescriptor* UploadDebugInfoStatus_Reason_descriptor() { |
| 507 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 508 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[4]; |
| 509 | } |
| 510 | bool UploadDebugInfoStatus_Reason_IsValid(int value) { |
| 511 | switch (value) { |
| 512 | case 0: |
| 513 | case 1: |
| 514 | case 2: |
| 515 | case 3: |
| 516 | case 4: |
| 517 | case 5: |
| 518 | case 6: |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 519 | case 7: |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 520 | return true; |
| 521 | default: |
| 522 | return false; |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 527 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::UNDEFINED_REASON; |
| 528 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::UNKNOWN_DEVICE; |
| 529 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::INTERNAL_ERROR; |
| 530 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::DEVICE_UNREACHABLE; |
| 531 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::REMOTE_LOCATION_UNREACHABLE; |
| 532 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::REMOTE_LOCATION_PERMISSION_DENIED; |
| 533 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::ERROR_DURING_UPLOAD; |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame^] | 534 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::DEVICE_BUSY; |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 535 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::Reason_MIN; |
| 536 | const UploadDebugInfoStatus_Reason UploadDebugInfoStatus::Reason_MAX; |
| 537 | const int UploadDebugInfoStatus::Reason_ARRAYSIZE; |
| 538 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 539 | |
| 540 | // =================================================================== |
| 541 | |
| 542 | void SoftwareVersionInformation::InitAsDefaultInstance() { |
| 543 | } |
| 544 | class SoftwareVersionInformation::HasBitSetters { |
| 545 | public: |
| 546 | }; |
| 547 | |
| 548 | void SoftwareVersionInformation::clear_active_versions() { |
| 549 | active_versions_.Clear(); |
| 550 | } |
| 551 | void SoftwareVersionInformation::clear_standby_versions() { |
| 552 | standby_versions_.Clear(); |
| 553 | } |
| 554 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 555 | const int SoftwareVersionInformation::kActiveVersionsFieldNumber; |
| 556 | const int SoftwareVersionInformation::kStandbyVersionsFieldNumber; |
| 557 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 558 | |
| 559 | SoftwareVersionInformation::SoftwareVersionInformation() |
| 560 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 561 | SharedCtor(); |
| 562 | // @@protoc_insertion_point(constructor:dmi.SoftwareVersionInformation) |
| 563 | } |
| 564 | SoftwareVersionInformation::SoftwareVersionInformation(const SoftwareVersionInformation& from) |
| 565 | : ::google::protobuf::Message(), |
| 566 | _internal_metadata_(nullptr), |
| 567 | active_versions_(from.active_versions_), |
| 568 | standby_versions_(from.standby_versions_) { |
| 569 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 570 | // @@protoc_insertion_point(copy_constructor:dmi.SoftwareVersionInformation) |
| 571 | } |
| 572 | |
| 573 | void SoftwareVersionInformation::SharedCtor() { |
| 574 | ::google::protobuf::internal::InitSCC( |
| 575 | &scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 576 | } |
| 577 | |
| 578 | SoftwareVersionInformation::~SoftwareVersionInformation() { |
| 579 | // @@protoc_insertion_point(destructor:dmi.SoftwareVersionInformation) |
| 580 | SharedDtor(); |
| 581 | } |
| 582 | |
| 583 | void SoftwareVersionInformation::SharedDtor() { |
| 584 | } |
| 585 | |
| 586 | void SoftwareVersionInformation::SetCachedSize(int size) const { |
| 587 | _cached_size_.Set(size); |
| 588 | } |
| 589 | const SoftwareVersionInformation& SoftwareVersionInformation::default_instance() { |
| 590 | ::google::protobuf::internal::InitSCC(&::scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 591 | return *internal_default_instance(); |
| 592 | } |
| 593 | |
| 594 | |
| 595 | void SoftwareVersionInformation::Clear() { |
| 596 | // @@protoc_insertion_point(message_clear_start:dmi.SoftwareVersionInformation) |
| 597 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 598 | // Prevent compiler warnings about cached_has_bits being unused |
| 599 | (void) cached_has_bits; |
| 600 | |
| 601 | active_versions_.Clear(); |
| 602 | standby_versions_.Clear(); |
| 603 | _internal_metadata_.Clear(); |
| 604 | } |
| 605 | |
| 606 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 607 | const char* SoftwareVersionInformation::_InternalParse(const char* begin, const char* end, void* object, |
| 608 | ::google::protobuf::internal::ParseContext* ctx) { |
| 609 | auto msg = static_cast<SoftwareVersionInformation*>(object); |
| 610 | ::google::protobuf::int32 size; (void)size; |
| 611 | int depth; (void)depth; |
| 612 | ::google::protobuf::uint32 tag; |
| 613 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 614 | auto ptr = begin; |
| 615 | while (ptr < end) { |
| 616 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 617 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 618 | switch (tag >> 3) { |
| 619 | // repeated .dmi.ImageVersion active_versions = 1; |
| 620 | case 1: { |
| 621 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 622 | do { |
| 623 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 624 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 625 | parser_till_end = ::dmi::ImageVersion::_InternalParse; |
| 626 | object = msg->add_active_versions(); |
| 627 | if (size > end - ptr) goto len_delim_till_end; |
| 628 | ptr += size; |
| 629 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 630 | {parser_till_end, object}, ptr - size, ptr)); |
| 631 | if (ptr >= end) break; |
| 632 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); |
| 633 | break; |
| 634 | } |
| 635 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 636 | case 2: { |
| 637 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 638 | do { |
| 639 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 640 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 641 | parser_till_end = ::dmi::ImageVersion::_InternalParse; |
| 642 | object = msg->add_standby_versions(); |
| 643 | if (size > end - ptr) goto len_delim_till_end; |
| 644 | ptr += size; |
| 645 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 646 | {parser_till_end, object}, ptr - size, ptr)); |
| 647 | if (ptr >= end) break; |
| 648 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 649 | break; |
| 650 | } |
| 651 | default: { |
| 652 | handle_unusual: |
| 653 | if ((tag & 7) == 4 || tag == 0) { |
| 654 | ctx->EndGroup(tag); |
| 655 | return ptr; |
| 656 | } |
| 657 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 658 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 659 | ptr = res.first; |
| 660 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 661 | if (res.second) return ptr; |
| 662 | } |
| 663 | } // switch |
| 664 | } // while |
| 665 | return ptr; |
| 666 | len_delim_till_end: |
| 667 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 668 | {parser_till_end, object}, size); |
| 669 | } |
| 670 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 671 | bool SoftwareVersionInformation::MergePartialFromCodedStream( |
| 672 | ::google::protobuf::io::CodedInputStream* input) { |
| 673 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 674 | ::google::protobuf::uint32 tag; |
| 675 | // @@protoc_insertion_point(parse_start:dmi.SoftwareVersionInformation) |
| 676 | for (;;) { |
| 677 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 678 | tag = p.first; |
| 679 | if (!p.second) goto handle_unusual; |
| 680 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 681 | // repeated .dmi.ImageVersion active_versions = 1; |
| 682 | case 1: { |
| 683 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 684 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 685 | input, add_active_versions())); |
| 686 | } else { |
| 687 | goto handle_unusual; |
| 688 | } |
| 689 | break; |
| 690 | } |
| 691 | |
| 692 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 693 | case 2: { |
| 694 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 695 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 696 | input, add_standby_versions())); |
| 697 | } else { |
| 698 | goto handle_unusual; |
| 699 | } |
| 700 | break; |
| 701 | } |
| 702 | |
| 703 | default: { |
| 704 | handle_unusual: |
| 705 | if (tag == 0) { |
| 706 | goto success; |
| 707 | } |
| 708 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 709 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 710 | break; |
| 711 | } |
| 712 | } |
| 713 | } |
| 714 | success: |
| 715 | // @@protoc_insertion_point(parse_success:dmi.SoftwareVersionInformation) |
| 716 | return true; |
| 717 | failure: |
| 718 | // @@protoc_insertion_point(parse_failure:dmi.SoftwareVersionInformation) |
| 719 | return false; |
| 720 | #undef DO_ |
| 721 | } |
| 722 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 723 | |
| 724 | void SoftwareVersionInformation::SerializeWithCachedSizes( |
| 725 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 726 | // @@protoc_insertion_point(serialize_start:dmi.SoftwareVersionInformation) |
| 727 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 728 | (void) cached_has_bits; |
| 729 | |
| 730 | // repeated .dmi.ImageVersion active_versions = 1; |
| 731 | for (unsigned int i = 0, |
| 732 | n = static_cast<unsigned int>(this->active_versions_size()); i < n; i++) { |
| 733 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 734 | 1, |
| 735 | this->active_versions(static_cast<int>(i)), |
| 736 | output); |
| 737 | } |
| 738 | |
| 739 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 740 | for (unsigned int i = 0, |
| 741 | n = static_cast<unsigned int>(this->standby_versions_size()); i < n; i++) { |
| 742 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 743 | 2, |
| 744 | this->standby_versions(static_cast<int>(i)), |
| 745 | output); |
| 746 | } |
| 747 | |
| 748 | if (_internal_metadata_.have_unknown_fields()) { |
| 749 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 750 | _internal_metadata_.unknown_fields(), output); |
| 751 | } |
| 752 | // @@protoc_insertion_point(serialize_end:dmi.SoftwareVersionInformation) |
| 753 | } |
| 754 | |
| 755 | ::google::protobuf::uint8* SoftwareVersionInformation::InternalSerializeWithCachedSizesToArray( |
| 756 | ::google::protobuf::uint8* target) const { |
| 757 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SoftwareVersionInformation) |
| 758 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 759 | (void) cached_has_bits; |
| 760 | |
| 761 | // repeated .dmi.ImageVersion active_versions = 1; |
| 762 | for (unsigned int i = 0, |
| 763 | n = static_cast<unsigned int>(this->active_versions_size()); i < n; i++) { |
| 764 | target = ::google::protobuf::internal::WireFormatLite:: |
| 765 | InternalWriteMessageToArray( |
| 766 | 1, this->active_versions(static_cast<int>(i)), target); |
| 767 | } |
| 768 | |
| 769 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 770 | for (unsigned int i = 0, |
| 771 | n = static_cast<unsigned int>(this->standby_versions_size()); i < n; i++) { |
| 772 | target = ::google::protobuf::internal::WireFormatLite:: |
| 773 | InternalWriteMessageToArray( |
| 774 | 2, this->standby_versions(static_cast<int>(i)), target); |
| 775 | } |
| 776 | |
| 777 | if (_internal_metadata_.have_unknown_fields()) { |
| 778 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 779 | _internal_metadata_.unknown_fields(), target); |
| 780 | } |
| 781 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SoftwareVersionInformation) |
| 782 | return target; |
| 783 | } |
| 784 | |
| 785 | size_t SoftwareVersionInformation::ByteSizeLong() const { |
| 786 | // @@protoc_insertion_point(message_byte_size_start:dmi.SoftwareVersionInformation) |
| 787 | size_t total_size = 0; |
| 788 | |
| 789 | if (_internal_metadata_.have_unknown_fields()) { |
| 790 | total_size += |
| 791 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 792 | _internal_metadata_.unknown_fields()); |
| 793 | } |
| 794 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 795 | // Prevent compiler warnings about cached_has_bits being unused |
| 796 | (void) cached_has_bits; |
| 797 | |
| 798 | // repeated .dmi.ImageVersion active_versions = 1; |
| 799 | { |
| 800 | unsigned int count = static_cast<unsigned int>(this->active_versions_size()); |
| 801 | total_size += 1UL * count; |
| 802 | for (unsigned int i = 0; i < count; i++) { |
| 803 | total_size += |
| 804 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 805 | this->active_versions(static_cast<int>(i))); |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 810 | { |
| 811 | unsigned int count = static_cast<unsigned int>(this->standby_versions_size()); |
| 812 | total_size += 1UL * count; |
| 813 | for (unsigned int i = 0; i < count; i++) { |
| 814 | total_size += |
| 815 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 816 | this->standby_versions(static_cast<int>(i))); |
| 817 | } |
| 818 | } |
| 819 | |
| 820 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 821 | SetCachedSize(cached_size); |
| 822 | return total_size; |
| 823 | } |
| 824 | |
| 825 | void SoftwareVersionInformation::MergeFrom(const ::google::protobuf::Message& from) { |
| 826 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SoftwareVersionInformation) |
| 827 | GOOGLE_DCHECK_NE(&from, this); |
| 828 | const SoftwareVersionInformation* source = |
| 829 | ::google::protobuf::DynamicCastToGenerated<SoftwareVersionInformation>( |
| 830 | &from); |
| 831 | if (source == nullptr) { |
| 832 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SoftwareVersionInformation) |
| 833 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 834 | } else { |
| 835 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SoftwareVersionInformation) |
| 836 | MergeFrom(*source); |
| 837 | } |
| 838 | } |
| 839 | |
| 840 | void SoftwareVersionInformation::MergeFrom(const SoftwareVersionInformation& from) { |
| 841 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SoftwareVersionInformation) |
| 842 | GOOGLE_DCHECK_NE(&from, this); |
| 843 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 844 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 845 | (void) cached_has_bits; |
| 846 | |
| 847 | active_versions_.MergeFrom(from.active_versions_); |
| 848 | standby_versions_.MergeFrom(from.standby_versions_); |
| 849 | } |
| 850 | |
| 851 | void SoftwareVersionInformation::CopyFrom(const ::google::protobuf::Message& from) { |
| 852 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SoftwareVersionInformation) |
| 853 | if (&from == this) return; |
| 854 | Clear(); |
| 855 | MergeFrom(from); |
| 856 | } |
| 857 | |
| 858 | void SoftwareVersionInformation::CopyFrom(const SoftwareVersionInformation& from) { |
| 859 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SoftwareVersionInformation) |
| 860 | if (&from == this) return; |
| 861 | Clear(); |
| 862 | MergeFrom(from); |
| 863 | } |
| 864 | |
| 865 | bool SoftwareVersionInformation::IsInitialized() const { |
| 866 | return true; |
| 867 | } |
| 868 | |
| 869 | void SoftwareVersionInformation::Swap(SoftwareVersionInformation* other) { |
| 870 | if (other == this) return; |
| 871 | InternalSwap(other); |
| 872 | } |
| 873 | void SoftwareVersionInformation::InternalSwap(SoftwareVersionInformation* other) { |
| 874 | using std::swap; |
| 875 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 876 | CastToBase(&active_versions_)->InternalSwap(CastToBase(&other->active_versions_)); |
| 877 | CastToBase(&standby_versions_)->InternalSwap(CastToBase(&other->standby_versions_)); |
| 878 | } |
| 879 | |
| 880 | ::google::protobuf::Metadata SoftwareVersionInformation::GetMetadata() const { |
| 881 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 882 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 883 | } |
| 884 | |
| 885 | |
| 886 | // =================================================================== |
| 887 | |
| 888 | void GetSoftwareVersionInformationResponse::InitAsDefaultInstance() { |
| 889 | ::dmi::_GetSoftwareVersionInformationResponse_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::SoftwareVersionInformation*>( |
| 890 | ::dmi::SoftwareVersionInformation::internal_default_instance()); |
| 891 | } |
| 892 | class GetSoftwareVersionInformationResponse::HasBitSetters { |
| 893 | public: |
| 894 | static const ::dmi::SoftwareVersionInformation& info(const GetSoftwareVersionInformationResponse* msg); |
| 895 | }; |
| 896 | |
| 897 | const ::dmi::SoftwareVersionInformation& |
| 898 | GetSoftwareVersionInformationResponse::HasBitSetters::info(const GetSoftwareVersionInformationResponse* msg) { |
| 899 | return *msg->info_; |
| 900 | } |
| 901 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 902 | const int GetSoftwareVersionInformationResponse::kStatusFieldNumber; |
| 903 | const int GetSoftwareVersionInformationResponse::kReasonFieldNumber; |
| 904 | const int GetSoftwareVersionInformationResponse::kInfoFieldNumber; |
| 905 | const int GetSoftwareVersionInformationResponse::kReasonDetailFieldNumber; |
| 906 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 907 | |
| 908 | GetSoftwareVersionInformationResponse::GetSoftwareVersionInformationResponse() |
| 909 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 910 | SharedCtor(); |
| 911 | // @@protoc_insertion_point(constructor:dmi.GetSoftwareVersionInformationResponse) |
| 912 | } |
| 913 | GetSoftwareVersionInformationResponse::GetSoftwareVersionInformationResponse(const GetSoftwareVersionInformationResponse& from) |
| 914 | : ::google::protobuf::Message(), |
| 915 | _internal_metadata_(nullptr) { |
| 916 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 917 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 918 | if (from.reason_detail().size() > 0) { |
| 919 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 920 | } |
| 921 | if (from.has_info()) { |
| 922 | info_ = new ::dmi::SoftwareVersionInformation(*from.info_); |
| 923 | } else { |
| 924 | info_ = nullptr; |
| 925 | } |
| 926 | ::memcpy(&status_, &from.status_, |
| 927 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 928 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 929 | // @@protoc_insertion_point(copy_constructor:dmi.GetSoftwareVersionInformationResponse) |
| 930 | } |
| 931 | |
| 932 | void GetSoftwareVersionInformationResponse::SharedCtor() { |
| 933 | ::google::protobuf::internal::InitSCC( |
| 934 | &scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 935 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 936 | ::memset(&info_, 0, static_cast<size_t>( |
| 937 | reinterpret_cast<char*>(&reason_) - |
| 938 | reinterpret_cast<char*>(&info_)) + sizeof(reason_)); |
| 939 | } |
| 940 | |
| 941 | GetSoftwareVersionInformationResponse::~GetSoftwareVersionInformationResponse() { |
| 942 | // @@protoc_insertion_point(destructor:dmi.GetSoftwareVersionInformationResponse) |
| 943 | SharedDtor(); |
| 944 | } |
| 945 | |
| 946 | void GetSoftwareVersionInformationResponse::SharedDtor() { |
| 947 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 948 | if (this != internal_default_instance()) delete info_; |
| 949 | } |
| 950 | |
| 951 | void GetSoftwareVersionInformationResponse::SetCachedSize(int size) const { |
| 952 | _cached_size_.Set(size); |
| 953 | } |
| 954 | const GetSoftwareVersionInformationResponse& GetSoftwareVersionInformationResponse::default_instance() { |
| 955 | ::google::protobuf::internal::InitSCC(&::scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 956 | return *internal_default_instance(); |
| 957 | } |
| 958 | |
| 959 | |
| 960 | void GetSoftwareVersionInformationResponse::Clear() { |
| 961 | // @@protoc_insertion_point(message_clear_start:dmi.GetSoftwareVersionInformationResponse) |
| 962 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 963 | // Prevent compiler warnings about cached_has_bits being unused |
| 964 | (void) cached_has_bits; |
| 965 | |
| 966 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 967 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 968 | delete info_; |
| 969 | } |
| 970 | info_ = nullptr; |
| 971 | ::memset(&status_, 0, static_cast<size_t>( |
| 972 | reinterpret_cast<char*>(&reason_) - |
| 973 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 974 | _internal_metadata_.Clear(); |
| 975 | } |
| 976 | |
| 977 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 978 | const char* GetSoftwareVersionInformationResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 979 | ::google::protobuf::internal::ParseContext* ctx) { |
| 980 | auto msg = static_cast<GetSoftwareVersionInformationResponse*>(object); |
| 981 | ::google::protobuf::int32 size; (void)size; |
| 982 | int depth; (void)depth; |
| 983 | ::google::protobuf::uint32 tag; |
| 984 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 985 | auto ptr = begin; |
| 986 | while (ptr < end) { |
| 987 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 988 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 989 | switch (tag >> 3) { |
| 990 | // .dmi.Status status = 1; |
| 991 | case 1: { |
| 992 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 993 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 994 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 995 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 996 | break; |
| 997 | } |
| 998 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 999 | case 2: { |
| 1000 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 1001 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1002 | msg->set_reason(static_cast<::dmi::GetSoftwareVersionInformationResponse_Reason>(val)); |
| 1003 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1004 | break; |
| 1005 | } |
| 1006 | // .dmi.SoftwareVersionInformation info = 3; |
| 1007 | case 3: { |
| 1008 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 1009 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1010 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1011 | parser_till_end = ::dmi::SoftwareVersionInformation::_InternalParse; |
| 1012 | object = msg->mutable_info(); |
| 1013 | if (size > end - ptr) goto len_delim_till_end; |
| 1014 | ptr += size; |
| 1015 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1016 | {parser_till_end, object}, ptr - size, ptr)); |
| 1017 | break; |
| 1018 | } |
| 1019 | // string reason_detail = 4; |
| 1020 | case 4: { |
| 1021 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 1022 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1023 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1024 | ctx->extra_parse_data().SetFieldName("dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 1025 | object = msg->mutable_reason_detail(); |
| 1026 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1027 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1028 | goto string_till_end; |
| 1029 | } |
| 1030 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1031 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1032 | ptr += size; |
| 1033 | break; |
| 1034 | } |
| 1035 | default: { |
| 1036 | handle_unusual: |
| 1037 | if ((tag & 7) == 4 || tag == 0) { |
| 1038 | ctx->EndGroup(tag); |
| 1039 | return ptr; |
| 1040 | } |
| 1041 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1042 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1043 | ptr = res.first; |
| 1044 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1045 | if (res.second) return ptr; |
| 1046 | } |
| 1047 | } // switch |
| 1048 | } // while |
| 1049 | return ptr; |
| 1050 | string_till_end: |
| 1051 | static_cast<::std::string*>(object)->clear(); |
| 1052 | static_cast<::std::string*>(object)->reserve(size); |
| 1053 | goto len_delim_till_end; |
| 1054 | len_delim_till_end: |
| 1055 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1056 | {parser_till_end, object}, size); |
| 1057 | } |
| 1058 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1059 | bool GetSoftwareVersionInformationResponse::MergePartialFromCodedStream( |
| 1060 | ::google::protobuf::io::CodedInputStream* input) { |
| 1061 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1062 | ::google::protobuf::uint32 tag; |
| 1063 | // @@protoc_insertion_point(parse_start:dmi.GetSoftwareVersionInformationResponse) |
| 1064 | for (;;) { |
| 1065 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1066 | tag = p.first; |
| 1067 | if (!p.second) goto handle_unusual; |
| 1068 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1069 | // .dmi.Status status = 1; |
| 1070 | case 1: { |
| 1071 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 1072 | int value = 0; |
| 1073 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1074 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1075 | input, &value))); |
| 1076 | set_status(static_cast< ::dmi::Status >(value)); |
| 1077 | } else { |
| 1078 | goto handle_unusual; |
| 1079 | } |
| 1080 | break; |
| 1081 | } |
| 1082 | |
| 1083 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1084 | case 2: { |
| 1085 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 1086 | int value = 0; |
| 1087 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1088 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1089 | input, &value))); |
| 1090 | set_reason(static_cast< ::dmi::GetSoftwareVersionInformationResponse_Reason >(value)); |
| 1091 | } else { |
| 1092 | goto handle_unusual; |
| 1093 | } |
| 1094 | break; |
| 1095 | } |
| 1096 | |
| 1097 | // .dmi.SoftwareVersionInformation info = 3; |
| 1098 | case 3: { |
| 1099 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 1100 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1101 | input, mutable_info())); |
| 1102 | } else { |
| 1103 | goto handle_unusual; |
| 1104 | } |
| 1105 | break; |
| 1106 | } |
| 1107 | |
| 1108 | // string reason_detail = 4; |
| 1109 | case 4: { |
| 1110 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 1111 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1112 | input, this->mutable_reason_detail())); |
| 1113 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1114 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1115 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1116 | "dmi.GetSoftwareVersionInformationResponse.reason_detail")); |
| 1117 | } else { |
| 1118 | goto handle_unusual; |
| 1119 | } |
| 1120 | break; |
| 1121 | } |
| 1122 | |
| 1123 | default: { |
| 1124 | handle_unusual: |
| 1125 | if (tag == 0) { |
| 1126 | goto success; |
| 1127 | } |
| 1128 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1129 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1130 | break; |
| 1131 | } |
| 1132 | } |
| 1133 | } |
| 1134 | success: |
| 1135 | // @@protoc_insertion_point(parse_success:dmi.GetSoftwareVersionInformationResponse) |
| 1136 | return true; |
| 1137 | failure: |
| 1138 | // @@protoc_insertion_point(parse_failure:dmi.GetSoftwareVersionInformationResponse) |
| 1139 | return false; |
| 1140 | #undef DO_ |
| 1141 | } |
| 1142 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1143 | |
| 1144 | void GetSoftwareVersionInformationResponse::SerializeWithCachedSizes( |
| 1145 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1146 | // @@protoc_insertion_point(serialize_start:dmi.GetSoftwareVersionInformationResponse) |
| 1147 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1148 | (void) cached_has_bits; |
| 1149 | |
| 1150 | // .dmi.Status status = 1; |
| 1151 | if (this->status() != 0) { |
| 1152 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1153 | 1, this->status(), output); |
| 1154 | } |
| 1155 | |
| 1156 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1157 | if (this->reason() != 0) { |
| 1158 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1159 | 2, this->reason(), output); |
| 1160 | } |
| 1161 | |
| 1162 | // .dmi.SoftwareVersionInformation info = 3; |
| 1163 | if (this->has_info()) { |
| 1164 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1165 | 3, HasBitSetters::info(this), output); |
| 1166 | } |
| 1167 | |
| 1168 | // string reason_detail = 4; |
| 1169 | if (this->reason_detail().size() > 0) { |
| 1170 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1171 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1172 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1173 | "dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 1174 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1175 | 4, this->reason_detail(), output); |
| 1176 | } |
| 1177 | |
| 1178 | if (_internal_metadata_.have_unknown_fields()) { |
| 1179 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1180 | _internal_metadata_.unknown_fields(), output); |
| 1181 | } |
| 1182 | // @@protoc_insertion_point(serialize_end:dmi.GetSoftwareVersionInformationResponse) |
| 1183 | } |
| 1184 | |
| 1185 | ::google::protobuf::uint8* GetSoftwareVersionInformationResponse::InternalSerializeWithCachedSizesToArray( |
| 1186 | ::google::protobuf::uint8* target) const { |
| 1187 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetSoftwareVersionInformationResponse) |
| 1188 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1189 | (void) cached_has_bits; |
| 1190 | |
| 1191 | // .dmi.Status status = 1; |
| 1192 | if (this->status() != 0) { |
| 1193 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1194 | 1, this->status(), target); |
| 1195 | } |
| 1196 | |
| 1197 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1198 | if (this->reason() != 0) { |
| 1199 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1200 | 2, this->reason(), target); |
| 1201 | } |
| 1202 | |
| 1203 | // .dmi.SoftwareVersionInformation info = 3; |
| 1204 | if (this->has_info()) { |
| 1205 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1206 | InternalWriteMessageToArray( |
| 1207 | 3, HasBitSetters::info(this), target); |
| 1208 | } |
| 1209 | |
| 1210 | // string reason_detail = 4; |
| 1211 | if (this->reason_detail().size() > 0) { |
| 1212 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1213 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1214 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1215 | "dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 1216 | target = |
| 1217 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1218 | 4, this->reason_detail(), target); |
| 1219 | } |
| 1220 | |
| 1221 | if (_internal_metadata_.have_unknown_fields()) { |
| 1222 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1223 | _internal_metadata_.unknown_fields(), target); |
| 1224 | } |
| 1225 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetSoftwareVersionInformationResponse) |
| 1226 | return target; |
| 1227 | } |
| 1228 | |
| 1229 | size_t GetSoftwareVersionInformationResponse::ByteSizeLong() const { |
| 1230 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetSoftwareVersionInformationResponse) |
| 1231 | size_t total_size = 0; |
| 1232 | |
| 1233 | if (_internal_metadata_.have_unknown_fields()) { |
| 1234 | total_size += |
| 1235 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1236 | _internal_metadata_.unknown_fields()); |
| 1237 | } |
| 1238 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1239 | // Prevent compiler warnings about cached_has_bits being unused |
| 1240 | (void) cached_has_bits; |
| 1241 | |
| 1242 | // string reason_detail = 4; |
| 1243 | if (this->reason_detail().size() > 0) { |
| 1244 | total_size += 1 + |
| 1245 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1246 | this->reason_detail()); |
| 1247 | } |
| 1248 | |
| 1249 | // .dmi.SoftwareVersionInformation info = 3; |
| 1250 | if (this->has_info()) { |
| 1251 | total_size += 1 + |
| 1252 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1253 | *info_); |
| 1254 | } |
| 1255 | |
| 1256 | // .dmi.Status status = 1; |
| 1257 | if (this->status() != 0) { |
| 1258 | total_size += 1 + |
| 1259 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 1260 | } |
| 1261 | |
| 1262 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1263 | if (this->reason() != 0) { |
| 1264 | total_size += 1 + |
| 1265 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 1266 | } |
| 1267 | |
| 1268 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1269 | SetCachedSize(cached_size); |
| 1270 | return total_size; |
| 1271 | } |
| 1272 | |
| 1273 | void GetSoftwareVersionInformationResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 1274 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1275 | GOOGLE_DCHECK_NE(&from, this); |
| 1276 | const GetSoftwareVersionInformationResponse* source = |
| 1277 | ::google::protobuf::DynamicCastToGenerated<GetSoftwareVersionInformationResponse>( |
| 1278 | &from); |
| 1279 | if (source == nullptr) { |
| 1280 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetSoftwareVersionInformationResponse) |
| 1281 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1282 | } else { |
| 1283 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetSoftwareVersionInformationResponse) |
| 1284 | MergeFrom(*source); |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | void GetSoftwareVersionInformationResponse::MergeFrom(const GetSoftwareVersionInformationResponse& from) { |
| 1289 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1290 | GOOGLE_DCHECK_NE(&from, this); |
| 1291 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1292 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1293 | (void) cached_has_bits; |
| 1294 | |
| 1295 | if (from.reason_detail().size() > 0) { |
| 1296 | |
| 1297 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1298 | } |
| 1299 | if (from.has_info()) { |
| 1300 | mutable_info()->::dmi::SoftwareVersionInformation::MergeFrom(from.info()); |
| 1301 | } |
| 1302 | if (from.status() != 0) { |
| 1303 | set_status(from.status()); |
| 1304 | } |
| 1305 | if (from.reason() != 0) { |
| 1306 | set_reason(from.reason()); |
| 1307 | } |
| 1308 | } |
| 1309 | |
| 1310 | void GetSoftwareVersionInformationResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 1311 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1312 | if (&from == this) return; |
| 1313 | Clear(); |
| 1314 | MergeFrom(from); |
| 1315 | } |
| 1316 | |
| 1317 | void GetSoftwareVersionInformationResponse::CopyFrom(const GetSoftwareVersionInformationResponse& from) { |
| 1318 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1319 | if (&from == this) return; |
| 1320 | Clear(); |
| 1321 | MergeFrom(from); |
| 1322 | } |
| 1323 | |
| 1324 | bool GetSoftwareVersionInformationResponse::IsInitialized() const { |
| 1325 | return true; |
| 1326 | } |
| 1327 | |
| 1328 | void GetSoftwareVersionInformationResponse::Swap(GetSoftwareVersionInformationResponse* other) { |
| 1329 | if (other == this) return; |
| 1330 | InternalSwap(other); |
| 1331 | } |
| 1332 | void GetSoftwareVersionInformationResponse::InternalSwap(GetSoftwareVersionInformationResponse* other) { |
| 1333 | using std::swap; |
| 1334 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1335 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1336 | GetArenaNoVirtual()); |
| 1337 | swap(info_, other->info_); |
| 1338 | swap(status_, other->status_); |
| 1339 | swap(reason_, other->reason_); |
| 1340 | } |
| 1341 | |
| 1342 | ::google::protobuf::Metadata GetSoftwareVersionInformationResponse::GetMetadata() const { |
| 1343 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 1344 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1345 | } |
| 1346 | |
| 1347 | |
| 1348 | // =================================================================== |
| 1349 | |
| 1350 | void DownloadImageRequest::InitAsDefaultInstance() { |
| 1351 | ::dmi::_DownloadImageRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1352 | ::dmi::Uuid::internal_default_instance()); |
| 1353 | ::dmi::_DownloadImageRequest_default_instance_._instance.get_mutable()->image_info_ = const_cast< ::dmi::ImageInformation*>( |
| 1354 | ::dmi::ImageInformation::internal_default_instance()); |
| 1355 | } |
| 1356 | class DownloadImageRequest::HasBitSetters { |
| 1357 | public: |
| 1358 | static const ::dmi::Uuid& device_uuid(const DownloadImageRequest* msg); |
| 1359 | static const ::dmi::ImageInformation& image_info(const DownloadImageRequest* msg); |
| 1360 | }; |
| 1361 | |
| 1362 | const ::dmi::Uuid& |
| 1363 | DownloadImageRequest::HasBitSetters::device_uuid(const DownloadImageRequest* msg) { |
| 1364 | return *msg->device_uuid_; |
| 1365 | } |
| 1366 | const ::dmi::ImageInformation& |
| 1367 | DownloadImageRequest::HasBitSetters::image_info(const DownloadImageRequest* msg) { |
| 1368 | return *msg->image_info_; |
| 1369 | } |
| 1370 | void DownloadImageRequest::clear_device_uuid() { |
| 1371 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1372 | delete device_uuid_; |
| 1373 | } |
| 1374 | device_uuid_ = nullptr; |
| 1375 | } |
| 1376 | void DownloadImageRequest::clear_image_info() { |
| 1377 | if (GetArenaNoVirtual() == nullptr && image_info_ != nullptr) { |
| 1378 | delete image_info_; |
| 1379 | } |
| 1380 | image_info_ = nullptr; |
| 1381 | } |
| 1382 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1383 | const int DownloadImageRequest::kDeviceUuidFieldNumber; |
| 1384 | const int DownloadImageRequest::kImageInfoFieldNumber; |
| 1385 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1386 | |
| 1387 | DownloadImageRequest::DownloadImageRequest() |
| 1388 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1389 | SharedCtor(); |
| 1390 | // @@protoc_insertion_point(constructor:dmi.DownloadImageRequest) |
| 1391 | } |
| 1392 | DownloadImageRequest::DownloadImageRequest(const DownloadImageRequest& from) |
| 1393 | : ::google::protobuf::Message(), |
| 1394 | _internal_metadata_(nullptr) { |
| 1395 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1396 | if (from.has_device_uuid()) { |
| 1397 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1398 | } else { |
| 1399 | device_uuid_ = nullptr; |
| 1400 | } |
| 1401 | if (from.has_image_info()) { |
| 1402 | image_info_ = new ::dmi::ImageInformation(*from.image_info_); |
| 1403 | } else { |
| 1404 | image_info_ = nullptr; |
| 1405 | } |
| 1406 | // @@protoc_insertion_point(copy_constructor:dmi.DownloadImageRequest) |
| 1407 | } |
| 1408 | |
| 1409 | void DownloadImageRequest::SharedCtor() { |
| 1410 | ::google::protobuf::internal::InitSCC( |
| 1411 | &scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1412 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 1413 | reinterpret_cast<char*>(&image_info_) - |
| 1414 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(image_info_)); |
| 1415 | } |
| 1416 | |
| 1417 | DownloadImageRequest::~DownloadImageRequest() { |
| 1418 | // @@protoc_insertion_point(destructor:dmi.DownloadImageRequest) |
| 1419 | SharedDtor(); |
| 1420 | } |
| 1421 | |
| 1422 | void DownloadImageRequest::SharedDtor() { |
| 1423 | if (this != internal_default_instance()) delete device_uuid_; |
| 1424 | if (this != internal_default_instance()) delete image_info_; |
| 1425 | } |
| 1426 | |
| 1427 | void DownloadImageRequest::SetCachedSize(int size) const { |
| 1428 | _cached_size_.Set(size); |
| 1429 | } |
| 1430 | const DownloadImageRequest& DownloadImageRequest::default_instance() { |
| 1431 | ::google::protobuf::internal::InitSCC(&::scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1432 | return *internal_default_instance(); |
| 1433 | } |
| 1434 | |
| 1435 | |
| 1436 | void DownloadImageRequest::Clear() { |
| 1437 | // @@protoc_insertion_point(message_clear_start:dmi.DownloadImageRequest) |
| 1438 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1439 | // Prevent compiler warnings about cached_has_bits being unused |
| 1440 | (void) cached_has_bits; |
| 1441 | |
| 1442 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1443 | delete device_uuid_; |
| 1444 | } |
| 1445 | device_uuid_ = nullptr; |
| 1446 | if (GetArenaNoVirtual() == nullptr && image_info_ != nullptr) { |
| 1447 | delete image_info_; |
| 1448 | } |
| 1449 | image_info_ = nullptr; |
| 1450 | _internal_metadata_.Clear(); |
| 1451 | } |
| 1452 | |
| 1453 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1454 | const char* DownloadImageRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1455 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1456 | auto msg = static_cast<DownloadImageRequest*>(object); |
| 1457 | ::google::protobuf::int32 size; (void)size; |
| 1458 | int depth; (void)depth; |
| 1459 | ::google::protobuf::uint32 tag; |
| 1460 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1461 | auto ptr = begin; |
| 1462 | while (ptr < end) { |
| 1463 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1464 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1465 | switch (tag >> 3) { |
| 1466 | // .dmi.Uuid device_uuid = 1; |
| 1467 | case 1: { |
| 1468 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1469 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1470 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1471 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1472 | object = msg->mutable_device_uuid(); |
| 1473 | if (size > end - ptr) goto len_delim_till_end; |
| 1474 | ptr += size; |
| 1475 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1476 | {parser_till_end, object}, ptr - size, ptr)); |
| 1477 | break; |
| 1478 | } |
| 1479 | // .dmi.ImageInformation image_info = 2; |
| 1480 | case 2: { |
| 1481 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1482 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1483 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1484 | parser_till_end = ::dmi::ImageInformation::_InternalParse; |
| 1485 | object = msg->mutable_image_info(); |
| 1486 | if (size > end - ptr) goto len_delim_till_end; |
| 1487 | ptr += size; |
| 1488 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1489 | {parser_till_end, object}, ptr - size, ptr)); |
| 1490 | break; |
| 1491 | } |
| 1492 | default: { |
| 1493 | handle_unusual: |
| 1494 | if ((tag & 7) == 4 || tag == 0) { |
| 1495 | ctx->EndGroup(tag); |
| 1496 | return ptr; |
| 1497 | } |
| 1498 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1499 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1500 | ptr = res.first; |
| 1501 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1502 | if (res.second) return ptr; |
| 1503 | } |
| 1504 | } // switch |
| 1505 | } // while |
| 1506 | return ptr; |
| 1507 | len_delim_till_end: |
| 1508 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1509 | {parser_till_end, object}, size); |
| 1510 | } |
| 1511 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1512 | bool DownloadImageRequest::MergePartialFromCodedStream( |
| 1513 | ::google::protobuf::io::CodedInputStream* input) { |
| 1514 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1515 | ::google::protobuf::uint32 tag; |
| 1516 | // @@protoc_insertion_point(parse_start:dmi.DownloadImageRequest) |
| 1517 | for (;;) { |
| 1518 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1519 | tag = p.first; |
| 1520 | if (!p.second) goto handle_unusual; |
| 1521 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1522 | // .dmi.Uuid device_uuid = 1; |
| 1523 | case 1: { |
| 1524 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1525 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1526 | input, mutable_device_uuid())); |
| 1527 | } else { |
| 1528 | goto handle_unusual; |
| 1529 | } |
| 1530 | break; |
| 1531 | } |
| 1532 | |
| 1533 | // .dmi.ImageInformation image_info = 2; |
| 1534 | case 2: { |
| 1535 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1536 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1537 | input, mutable_image_info())); |
| 1538 | } else { |
| 1539 | goto handle_unusual; |
| 1540 | } |
| 1541 | break; |
| 1542 | } |
| 1543 | |
| 1544 | default: { |
| 1545 | handle_unusual: |
| 1546 | if (tag == 0) { |
| 1547 | goto success; |
| 1548 | } |
| 1549 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1550 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1551 | break; |
| 1552 | } |
| 1553 | } |
| 1554 | } |
| 1555 | success: |
| 1556 | // @@protoc_insertion_point(parse_success:dmi.DownloadImageRequest) |
| 1557 | return true; |
| 1558 | failure: |
| 1559 | // @@protoc_insertion_point(parse_failure:dmi.DownloadImageRequest) |
| 1560 | return false; |
| 1561 | #undef DO_ |
| 1562 | } |
| 1563 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1564 | |
| 1565 | void DownloadImageRequest::SerializeWithCachedSizes( |
| 1566 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1567 | // @@protoc_insertion_point(serialize_start:dmi.DownloadImageRequest) |
| 1568 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1569 | (void) cached_has_bits; |
| 1570 | |
| 1571 | // .dmi.Uuid device_uuid = 1; |
| 1572 | if (this->has_device_uuid()) { |
| 1573 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1574 | 1, HasBitSetters::device_uuid(this), output); |
| 1575 | } |
| 1576 | |
| 1577 | // .dmi.ImageInformation image_info = 2; |
| 1578 | if (this->has_image_info()) { |
| 1579 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1580 | 2, HasBitSetters::image_info(this), output); |
| 1581 | } |
| 1582 | |
| 1583 | if (_internal_metadata_.have_unknown_fields()) { |
| 1584 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1585 | _internal_metadata_.unknown_fields(), output); |
| 1586 | } |
| 1587 | // @@protoc_insertion_point(serialize_end:dmi.DownloadImageRequest) |
| 1588 | } |
| 1589 | |
| 1590 | ::google::protobuf::uint8* DownloadImageRequest::InternalSerializeWithCachedSizesToArray( |
| 1591 | ::google::protobuf::uint8* target) const { |
| 1592 | // @@protoc_insertion_point(serialize_to_array_start:dmi.DownloadImageRequest) |
| 1593 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1594 | (void) cached_has_bits; |
| 1595 | |
| 1596 | // .dmi.Uuid device_uuid = 1; |
| 1597 | if (this->has_device_uuid()) { |
| 1598 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1599 | InternalWriteMessageToArray( |
| 1600 | 1, HasBitSetters::device_uuid(this), target); |
| 1601 | } |
| 1602 | |
| 1603 | // .dmi.ImageInformation image_info = 2; |
| 1604 | if (this->has_image_info()) { |
| 1605 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1606 | InternalWriteMessageToArray( |
| 1607 | 2, HasBitSetters::image_info(this), target); |
| 1608 | } |
| 1609 | |
| 1610 | if (_internal_metadata_.have_unknown_fields()) { |
| 1611 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1612 | _internal_metadata_.unknown_fields(), target); |
| 1613 | } |
| 1614 | // @@protoc_insertion_point(serialize_to_array_end:dmi.DownloadImageRequest) |
| 1615 | return target; |
| 1616 | } |
| 1617 | |
| 1618 | size_t DownloadImageRequest::ByteSizeLong() const { |
| 1619 | // @@protoc_insertion_point(message_byte_size_start:dmi.DownloadImageRequest) |
| 1620 | size_t total_size = 0; |
| 1621 | |
| 1622 | if (_internal_metadata_.have_unknown_fields()) { |
| 1623 | total_size += |
| 1624 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1625 | _internal_metadata_.unknown_fields()); |
| 1626 | } |
| 1627 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1628 | // Prevent compiler warnings about cached_has_bits being unused |
| 1629 | (void) cached_has_bits; |
| 1630 | |
| 1631 | // .dmi.Uuid device_uuid = 1; |
| 1632 | if (this->has_device_uuid()) { |
| 1633 | total_size += 1 + |
| 1634 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1635 | *device_uuid_); |
| 1636 | } |
| 1637 | |
| 1638 | // .dmi.ImageInformation image_info = 2; |
| 1639 | if (this->has_image_info()) { |
| 1640 | total_size += 1 + |
| 1641 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1642 | *image_info_); |
| 1643 | } |
| 1644 | |
| 1645 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1646 | SetCachedSize(cached_size); |
| 1647 | return total_size; |
| 1648 | } |
| 1649 | |
| 1650 | void DownloadImageRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1651 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.DownloadImageRequest) |
| 1652 | GOOGLE_DCHECK_NE(&from, this); |
| 1653 | const DownloadImageRequest* source = |
| 1654 | ::google::protobuf::DynamicCastToGenerated<DownloadImageRequest>( |
| 1655 | &from); |
| 1656 | if (source == nullptr) { |
| 1657 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.DownloadImageRequest) |
| 1658 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1659 | } else { |
| 1660 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.DownloadImageRequest) |
| 1661 | MergeFrom(*source); |
| 1662 | } |
| 1663 | } |
| 1664 | |
| 1665 | void DownloadImageRequest::MergeFrom(const DownloadImageRequest& from) { |
| 1666 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.DownloadImageRequest) |
| 1667 | GOOGLE_DCHECK_NE(&from, this); |
| 1668 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1669 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1670 | (void) cached_has_bits; |
| 1671 | |
| 1672 | if (from.has_device_uuid()) { |
| 1673 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1674 | } |
| 1675 | if (from.has_image_info()) { |
| 1676 | mutable_image_info()->::dmi::ImageInformation::MergeFrom(from.image_info()); |
| 1677 | } |
| 1678 | } |
| 1679 | |
| 1680 | void DownloadImageRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1681 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.DownloadImageRequest) |
| 1682 | if (&from == this) return; |
| 1683 | Clear(); |
| 1684 | MergeFrom(from); |
| 1685 | } |
| 1686 | |
| 1687 | void DownloadImageRequest::CopyFrom(const DownloadImageRequest& from) { |
| 1688 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.DownloadImageRequest) |
| 1689 | if (&from == this) return; |
| 1690 | Clear(); |
| 1691 | MergeFrom(from); |
| 1692 | } |
| 1693 | |
| 1694 | bool DownloadImageRequest::IsInitialized() const { |
| 1695 | return true; |
| 1696 | } |
| 1697 | |
| 1698 | void DownloadImageRequest::Swap(DownloadImageRequest* other) { |
| 1699 | if (other == this) return; |
| 1700 | InternalSwap(other); |
| 1701 | } |
| 1702 | void DownloadImageRequest::InternalSwap(DownloadImageRequest* other) { |
| 1703 | using std::swap; |
| 1704 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1705 | swap(device_uuid_, other->device_uuid_); |
| 1706 | swap(image_info_, other->image_info_); |
| 1707 | } |
| 1708 | |
| 1709 | ::google::protobuf::Metadata DownloadImageRequest::GetMetadata() const { |
| 1710 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 1711 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1712 | } |
| 1713 | |
| 1714 | |
| 1715 | // =================================================================== |
| 1716 | |
| 1717 | void ConfigRequest::InitAsDefaultInstance() { |
| 1718 | ::dmi::_ConfigRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1719 | ::dmi::Uuid::internal_default_instance()); |
| 1720 | } |
| 1721 | class ConfigRequest::HasBitSetters { |
| 1722 | public: |
| 1723 | static const ::dmi::Uuid& device_uuid(const ConfigRequest* msg); |
| 1724 | }; |
| 1725 | |
| 1726 | const ::dmi::Uuid& |
| 1727 | ConfigRequest::HasBitSetters::device_uuid(const ConfigRequest* msg) { |
| 1728 | return *msg->device_uuid_; |
| 1729 | } |
| 1730 | void ConfigRequest::clear_device_uuid() { |
| 1731 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1732 | delete device_uuid_; |
| 1733 | } |
| 1734 | device_uuid_ = nullptr; |
| 1735 | } |
| 1736 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1737 | const int ConfigRequest::kDeviceUuidFieldNumber; |
| 1738 | const int ConfigRequest::kConfigUrlFieldNumber; |
| 1739 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1740 | |
| 1741 | ConfigRequest::ConfigRequest() |
| 1742 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1743 | SharedCtor(); |
| 1744 | // @@protoc_insertion_point(constructor:dmi.ConfigRequest) |
| 1745 | } |
| 1746 | ConfigRequest::ConfigRequest(const ConfigRequest& from) |
| 1747 | : ::google::protobuf::Message(), |
| 1748 | _internal_metadata_(nullptr) { |
| 1749 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1750 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1751 | if (from.config_url().size() > 0) { |
| 1752 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 1753 | } |
| 1754 | if (from.has_device_uuid()) { |
| 1755 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1756 | } else { |
| 1757 | device_uuid_ = nullptr; |
| 1758 | } |
| 1759 | // @@protoc_insertion_point(copy_constructor:dmi.ConfigRequest) |
| 1760 | } |
| 1761 | |
| 1762 | void ConfigRequest::SharedCtor() { |
| 1763 | ::google::protobuf::internal::InitSCC( |
| 1764 | &scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1765 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1766 | device_uuid_ = nullptr; |
| 1767 | } |
| 1768 | |
| 1769 | ConfigRequest::~ConfigRequest() { |
| 1770 | // @@protoc_insertion_point(destructor:dmi.ConfigRequest) |
| 1771 | SharedDtor(); |
| 1772 | } |
| 1773 | |
| 1774 | void ConfigRequest::SharedDtor() { |
| 1775 | config_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1776 | if (this != internal_default_instance()) delete device_uuid_; |
| 1777 | } |
| 1778 | |
| 1779 | void ConfigRequest::SetCachedSize(int size) const { |
| 1780 | _cached_size_.Set(size); |
| 1781 | } |
| 1782 | const ConfigRequest& ConfigRequest::default_instance() { |
| 1783 | ::google::protobuf::internal::InitSCC(&::scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1784 | return *internal_default_instance(); |
| 1785 | } |
| 1786 | |
| 1787 | |
| 1788 | void ConfigRequest::Clear() { |
| 1789 | // @@protoc_insertion_point(message_clear_start:dmi.ConfigRequest) |
| 1790 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1791 | // Prevent compiler warnings about cached_has_bits being unused |
| 1792 | (void) cached_has_bits; |
| 1793 | |
| 1794 | config_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1795 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1796 | delete device_uuid_; |
| 1797 | } |
| 1798 | device_uuid_ = nullptr; |
| 1799 | _internal_metadata_.Clear(); |
| 1800 | } |
| 1801 | |
| 1802 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1803 | const char* ConfigRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1804 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1805 | auto msg = static_cast<ConfigRequest*>(object); |
| 1806 | ::google::protobuf::int32 size; (void)size; |
| 1807 | int depth; (void)depth; |
| 1808 | ::google::protobuf::uint32 tag; |
| 1809 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1810 | auto ptr = begin; |
| 1811 | while (ptr < end) { |
| 1812 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1813 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1814 | switch (tag >> 3) { |
| 1815 | // .dmi.Uuid device_uuid = 1; |
| 1816 | case 1: { |
| 1817 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1818 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1819 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1820 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1821 | object = msg->mutable_device_uuid(); |
| 1822 | if (size > end - ptr) goto len_delim_till_end; |
| 1823 | ptr += size; |
| 1824 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1825 | {parser_till_end, object}, ptr - size, ptr)); |
| 1826 | break; |
| 1827 | } |
| 1828 | // string config_url = 2; |
| 1829 | case 2: { |
| 1830 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1831 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1832 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1833 | ctx->extra_parse_data().SetFieldName("dmi.ConfigRequest.config_url"); |
| 1834 | object = msg->mutable_config_url(); |
| 1835 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1836 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1837 | goto string_till_end; |
| 1838 | } |
| 1839 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1840 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1841 | ptr += size; |
| 1842 | break; |
| 1843 | } |
| 1844 | default: { |
| 1845 | handle_unusual: |
| 1846 | if ((tag & 7) == 4 || tag == 0) { |
| 1847 | ctx->EndGroup(tag); |
| 1848 | return ptr; |
| 1849 | } |
| 1850 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1851 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1852 | ptr = res.first; |
| 1853 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1854 | if (res.second) return ptr; |
| 1855 | } |
| 1856 | } // switch |
| 1857 | } // while |
| 1858 | return ptr; |
| 1859 | string_till_end: |
| 1860 | static_cast<::std::string*>(object)->clear(); |
| 1861 | static_cast<::std::string*>(object)->reserve(size); |
| 1862 | goto len_delim_till_end; |
| 1863 | len_delim_till_end: |
| 1864 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1865 | {parser_till_end, object}, size); |
| 1866 | } |
| 1867 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1868 | bool ConfigRequest::MergePartialFromCodedStream( |
| 1869 | ::google::protobuf::io::CodedInputStream* input) { |
| 1870 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1871 | ::google::protobuf::uint32 tag; |
| 1872 | // @@protoc_insertion_point(parse_start:dmi.ConfigRequest) |
| 1873 | for (;;) { |
| 1874 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1875 | tag = p.first; |
| 1876 | if (!p.second) goto handle_unusual; |
| 1877 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1878 | // .dmi.Uuid device_uuid = 1; |
| 1879 | case 1: { |
| 1880 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1881 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1882 | input, mutable_device_uuid())); |
| 1883 | } else { |
| 1884 | goto handle_unusual; |
| 1885 | } |
| 1886 | break; |
| 1887 | } |
| 1888 | |
| 1889 | // string config_url = 2; |
| 1890 | case 2: { |
| 1891 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1892 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1893 | input, this->mutable_config_url())); |
| 1894 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1895 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1896 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1897 | "dmi.ConfigRequest.config_url")); |
| 1898 | } else { |
| 1899 | goto handle_unusual; |
| 1900 | } |
| 1901 | break; |
| 1902 | } |
| 1903 | |
| 1904 | default: { |
| 1905 | handle_unusual: |
| 1906 | if (tag == 0) { |
| 1907 | goto success; |
| 1908 | } |
| 1909 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1910 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1911 | break; |
| 1912 | } |
| 1913 | } |
| 1914 | } |
| 1915 | success: |
| 1916 | // @@protoc_insertion_point(parse_success:dmi.ConfigRequest) |
| 1917 | return true; |
| 1918 | failure: |
| 1919 | // @@protoc_insertion_point(parse_failure:dmi.ConfigRequest) |
| 1920 | return false; |
| 1921 | #undef DO_ |
| 1922 | } |
| 1923 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1924 | |
| 1925 | void ConfigRequest::SerializeWithCachedSizes( |
| 1926 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1927 | // @@protoc_insertion_point(serialize_start:dmi.ConfigRequest) |
| 1928 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1929 | (void) cached_has_bits; |
| 1930 | |
| 1931 | // .dmi.Uuid device_uuid = 1; |
| 1932 | if (this->has_device_uuid()) { |
| 1933 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1934 | 1, HasBitSetters::device_uuid(this), output); |
| 1935 | } |
| 1936 | |
| 1937 | // string config_url = 2; |
| 1938 | if (this->config_url().size() > 0) { |
| 1939 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1940 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1941 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1942 | "dmi.ConfigRequest.config_url"); |
| 1943 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1944 | 2, this->config_url(), output); |
| 1945 | } |
| 1946 | |
| 1947 | if (_internal_metadata_.have_unknown_fields()) { |
| 1948 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1949 | _internal_metadata_.unknown_fields(), output); |
| 1950 | } |
| 1951 | // @@protoc_insertion_point(serialize_end:dmi.ConfigRequest) |
| 1952 | } |
| 1953 | |
| 1954 | ::google::protobuf::uint8* ConfigRequest::InternalSerializeWithCachedSizesToArray( |
| 1955 | ::google::protobuf::uint8* target) const { |
| 1956 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ConfigRequest) |
| 1957 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1958 | (void) cached_has_bits; |
| 1959 | |
| 1960 | // .dmi.Uuid device_uuid = 1; |
| 1961 | if (this->has_device_uuid()) { |
| 1962 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1963 | InternalWriteMessageToArray( |
| 1964 | 1, HasBitSetters::device_uuid(this), target); |
| 1965 | } |
| 1966 | |
| 1967 | // string config_url = 2; |
| 1968 | if (this->config_url().size() > 0) { |
| 1969 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1970 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1971 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1972 | "dmi.ConfigRequest.config_url"); |
| 1973 | target = |
| 1974 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1975 | 2, this->config_url(), target); |
| 1976 | } |
| 1977 | |
| 1978 | if (_internal_metadata_.have_unknown_fields()) { |
| 1979 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1980 | _internal_metadata_.unknown_fields(), target); |
| 1981 | } |
| 1982 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ConfigRequest) |
| 1983 | return target; |
| 1984 | } |
| 1985 | |
| 1986 | size_t ConfigRequest::ByteSizeLong() const { |
| 1987 | // @@protoc_insertion_point(message_byte_size_start:dmi.ConfigRequest) |
| 1988 | size_t total_size = 0; |
| 1989 | |
| 1990 | if (_internal_metadata_.have_unknown_fields()) { |
| 1991 | total_size += |
| 1992 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1993 | _internal_metadata_.unknown_fields()); |
| 1994 | } |
| 1995 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1996 | // Prevent compiler warnings about cached_has_bits being unused |
| 1997 | (void) cached_has_bits; |
| 1998 | |
| 1999 | // string config_url = 2; |
| 2000 | if (this->config_url().size() > 0) { |
| 2001 | total_size += 1 + |
| 2002 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2003 | this->config_url()); |
| 2004 | } |
| 2005 | |
| 2006 | // .dmi.Uuid device_uuid = 1; |
| 2007 | if (this->has_device_uuid()) { |
| 2008 | total_size += 1 + |
| 2009 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2010 | *device_uuid_); |
| 2011 | } |
| 2012 | |
| 2013 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2014 | SetCachedSize(cached_size); |
| 2015 | return total_size; |
| 2016 | } |
| 2017 | |
| 2018 | void ConfigRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2019 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ConfigRequest) |
| 2020 | GOOGLE_DCHECK_NE(&from, this); |
| 2021 | const ConfigRequest* source = |
| 2022 | ::google::protobuf::DynamicCastToGenerated<ConfigRequest>( |
| 2023 | &from); |
| 2024 | if (source == nullptr) { |
| 2025 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ConfigRequest) |
| 2026 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2027 | } else { |
| 2028 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ConfigRequest) |
| 2029 | MergeFrom(*source); |
| 2030 | } |
| 2031 | } |
| 2032 | |
| 2033 | void ConfigRequest::MergeFrom(const ConfigRequest& from) { |
| 2034 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ConfigRequest) |
| 2035 | GOOGLE_DCHECK_NE(&from, this); |
| 2036 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2037 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2038 | (void) cached_has_bits; |
| 2039 | |
| 2040 | if (from.config_url().size() > 0) { |
| 2041 | |
| 2042 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 2043 | } |
| 2044 | if (from.has_device_uuid()) { |
| 2045 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2046 | } |
| 2047 | } |
| 2048 | |
| 2049 | void ConfigRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2050 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ConfigRequest) |
| 2051 | if (&from == this) return; |
| 2052 | Clear(); |
| 2053 | MergeFrom(from); |
| 2054 | } |
| 2055 | |
| 2056 | void ConfigRequest::CopyFrom(const ConfigRequest& from) { |
| 2057 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ConfigRequest) |
| 2058 | if (&from == this) return; |
| 2059 | Clear(); |
| 2060 | MergeFrom(from); |
| 2061 | } |
| 2062 | |
| 2063 | bool ConfigRequest::IsInitialized() const { |
| 2064 | return true; |
| 2065 | } |
| 2066 | |
| 2067 | void ConfigRequest::Swap(ConfigRequest* other) { |
| 2068 | if (other == this) return; |
| 2069 | InternalSwap(other); |
| 2070 | } |
| 2071 | void ConfigRequest::InternalSwap(ConfigRequest* other) { |
| 2072 | using std::swap; |
| 2073 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2074 | config_url_.Swap(&other->config_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2075 | GetArenaNoVirtual()); |
| 2076 | swap(device_uuid_, other->device_uuid_); |
| 2077 | } |
| 2078 | |
| 2079 | ::google::protobuf::Metadata ConfigRequest::GetMetadata() const { |
| 2080 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 2081 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2082 | } |
| 2083 | |
| 2084 | |
| 2085 | // =================================================================== |
| 2086 | |
| 2087 | void ConfigResponse::InitAsDefaultInstance() { |
| 2088 | } |
| 2089 | class ConfigResponse::HasBitSetters { |
| 2090 | public: |
| 2091 | }; |
| 2092 | |
| 2093 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2094 | const int ConfigResponse::kStatusFieldNumber; |
| 2095 | const int ConfigResponse::kReasonFieldNumber; |
| 2096 | const int ConfigResponse::kReasonDetailFieldNumber; |
| 2097 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2098 | |
| 2099 | ConfigResponse::ConfigResponse() |
| 2100 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2101 | SharedCtor(); |
| 2102 | // @@protoc_insertion_point(constructor:dmi.ConfigResponse) |
| 2103 | } |
| 2104 | ConfigResponse::ConfigResponse(const ConfigResponse& from) |
| 2105 | : ::google::protobuf::Message(), |
| 2106 | _internal_metadata_(nullptr) { |
| 2107 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2108 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2109 | if (from.reason_detail().size() > 0) { |
| 2110 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2111 | } |
| 2112 | ::memcpy(&status_, &from.status_, |
| 2113 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2114 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2115 | // @@protoc_insertion_point(copy_constructor:dmi.ConfigResponse) |
| 2116 | } |
| 2117 | |
| 2118 | void ConfigResponse::SharedCtor() { |
| 2119 | ::google::protobuf::internal::InitSCC( |
| 2120 | &scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2121 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2122 | ::memset(&status_, 0, static_cast<size_t>( |
| 2123 | reinterpret_cast<char*>(&reason_) - |
| 2124 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2125 | } |
| 2126 | |
| 2127 | ConfigResponse::~ConfigResponse() { |
| 2128 | // @@protoc_insertion_point(destructor:dmi.ConfigResponse) |
| 2129 | SharedDtor(); |
| 2130 | } |
| 2131 | |
| 2132 | void ConfigResponse::SharedDtor() { |
| 2133 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2134 | } |
| 2135 | |
| 2136 | void ConfigResponse::SetCachedSize(int size) const { |
| 2137 | _cached_size_.Set(size); |
| 2138 | } |
| 2139 | const ConfigResponse& ConfigResponse::default_instance() { |
| 2140 | ::google::protobuf::internal::InitSCC(&::scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2141 | return *internal_default_instance(); |
| 2142 | } |
| 2143 | |
| 2144 | |
| 2145 | void ConfigResponse::Clear() { |
| 2146 | // @@protoc_insertion_point(message_clear_start:dmi.ConfigResponse) |
| 2147 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2148 | // Prevent compiler warnings about cached_has_bits being unused |
| 2149 | (void) cached_has_bits; |
| 2150 | |
| 2151 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2152 | ::memset(&status_, 0, static_cast<size_t>( |
| 2153 | reinterpret_cast<char*>(&reason_) - |
| 2154 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2155 | _internal_metadata_.Clear(); |
| 2156 | } |
| 2157 | |
| 2158 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2159 | const char* ConfigResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2160 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2161 | auto msg = static_cast<ConfigResponse*>(object); |
| 2162 | ::google::protobuf::int32 size; (void)size; |
| 2163 | int depth; (void)depth; |
| 2164 | ::google::protobuf::uint32 tag; |
| 2165 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2166 | auto ptr = begin; |
| 2167 | while (ptr < end) { |
| 2168 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2170 | switch (tag >> 3) { |
| 2171 | // .dmi.Status status = 1; |
| 2172 | case 1: { |
| 2173 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2174 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2175 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2176 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2177 | break; |
| 2178 | } |
| 2179 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2180 | case 2: { |
| 2181 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2182 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2183 | msg->set_reason(static_cast<::dmi::ConfigResponse_Reason>(val)); |
| 2184 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2185 | break; |
| 2186 | } |
| 2187 | // string reason_detail = 3; |
| 2188 | case 3: { |
| 2189 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2190 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2191 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2192 | ctx->extra_parse_data().SetFieldName("dmi.ConfigResponse.reason_detail"); |
| 2193 | object = msg->mutable_reason_detail(); |
| 2194 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2195 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2196 | goto string_till_end; |
| 2197 | } |
| 2198 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2199 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2200 | ptr += size; |
| 2201 | break; |
| 2202 | } |
| 2203 | default: { |
| 2204 | handle_unusual: |
| 2205 | if ((tag & 7) == 4 || tag == 0) { |
| 2206 | ctx->EndGroup(tag); |
| 2207 | return ptr; |
| 2208 | } |
| 2209 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2210 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2211 | ptr = res.first; |
| 2212 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2213 | if (res.second) return ptr; |
| 2214 | } |
| 2215 | } // switch |
| 2216 | } // while |
| 2217 | return ptr; |
| 2218 | string_till_end: |
| 2219 | static_cast<::std::string*>(object)->clear(); |
| 2220 | static_cast<::std::string*>(object)->reserve(size); |
| 2221 | goto len_delim_till_end; |
| 2222 | len_delim_till_end: |
| 2223 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2224 | {parser_till_end, object}, size); |
| 2225 | } |
| 2226 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2227 | bool ConfigResponse::MergePartialFromCodedStream( |
| 2228 | ::google::protobuf::io::CodedInputStream* input) { |
| 2229 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2230 | ::google::protobuf::uint32 tag; |
| 2231 | // @@protoc_insertion_point(parse_start:dmi.ConfigResponse) |
| 2232 | for (;;) { |
| 2233 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2234 | tag = p.first; |
| 2235 | if (!p.second) goto handle_unusual; |
| 2236 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2237 | // .dmi.Status status = 1; |
| 2238 | case 1: { |
| 2239 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2240 | int value = 0; |
| 2241 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2242 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2243 | input, &value))); |
| 2244 | set_status(static_cast< ::dmi::Status >(value)); |
| 2245 | } else { |
| 2246 | goto handle_unusual; |
| 2247 | } |
| 2248 | break; |
| 2249 | } |
| 2250 | |
| 2251 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2252 | case 2: { |
| 2253 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2254 | int value = 0; |
| 2255 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2256 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2257 | input, &value))); |
| 2258 | set_reason(static_cast< ::dmi::ConfigResponse_Reason >(value)); |
| 2259 | } else { |
| 2260 | goto handle_unusual; |
| 2261 | } |
| 2262 | break; |
| 2263 | } |
| 2264 | |
| 2265 | // string reason_detail = 3; |
| 2266 | case 3: { |
| 2267 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2268 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2269 | input, this->mutable_reason_detail())); |
| 2270 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2271 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2272 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2273 | "dmi.ConfigResponse.reason_detail")); |
| 2274 | } else { |
| 2275 | goto handle_unusual; |
| 2276 | } |
| 2277 | break; |
| 2278 | } |
| 2279 | |
| 2280 | default: { |
| 2281 | handle_unusual: |
| 2282 | if (tag == 0) { |
| 2283 | goto success; |
| 2284 | } |
| 2285 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2286 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2287 | break; |
| 2288 | } |
| 2289 | } |
| 2290 | } |
| 2291 | success: |
| 2292 | // @@protoc_insertion_point(parse_success:dmi.ConfigResponse) |
| 2293 | return true; |
| 2294 | failure: |
| 2295 | // @@protoc_insertion_point(parse_failure:dmi.ConfigResponse) |
| 2296 | return false; |
| 2297 | #undef DO_ |
| 2298 | } |
| 2299 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2300 | |
| 2301 | void ConfigResponse::SerializeWithCachedSizes( |
| 2302 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2303 | // @@protoc_insertion_point(serialize_start:dmi.ConfigResponse) |
| 2304 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2305 | (void) cached_has_bits; |
| 2306 | |
| 2307 | // .dmi.Status status = 1; |
| 2308 | if (this->status() != 0) { |
| 2309 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2310 | 1, this->status(), output); |
| 2311 | } |
| 2312 | |
| 2313 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2314 | if (this->reason() != 0) { |
| 2315 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2316 | 2, this->reason(), output); |
| 2317 | } |
| 2318 | |
| 2319 | // string reason_detail = 3; |
| 2320 | if (this->reason_detail().size() > 0) { |
| 2321 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2322 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2323 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2324 | "dmi.ConfigResponse.reason_detail"); |
| 2325 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2326 | 3, this->reason_detail(), output); |
| 2327 | } |
| 2328 | |
| 2329 | if (_internal_metadata_.have_unknown_fields()) { |
| 2330 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2331 | _internal_metadata_.unknown_fields(), output); |
| 2332 | } |
| 2333 | // @@protoc_insertion_point(serialize_end:dmi.ConfigResponse) |
| 2334 | } |
| 2335 | |
| 2336 | ::google::protobuf::uint8* ConfigResponse::InternalSerializeWithCachedSizesToArray( |
| 2337 | ::google::protobuf::uint8* target) const { |
| 2338 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ConfigResponse) |
| 2339 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2340 | (void) cached_has_bits; |
| 2341 | |
| 2342 | // .dmi.Status status = 1; |
| 2343 | if (this->status() != 0) { |
| 2344 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2345 | 1, this->status(), target); |
| 2346 | } |
| 2347 | |
| 2348 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2349 | if (this->reason() != 0) { |
| 2350 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2351 | 2, this->reason(), target); |
| 2352 | } |
| 2353 | |
| 2354 | // string reason_detail = 3; |
| 2355 | if (this->reason_detail().size() > 0) { |
| 2356 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2357 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2358 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2359 | "dmi.ConfigResponse.reason_detail"); |
| 2360 | target = |
| 2361 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2362 | 3, this->reason_detail(), target); |
| 2363 | } |
| 2364 | |
| 2365 | if (_internal_metadata_.have_unknown_fields()) { |
| 2366 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2367 | _internal_metadata_.unknown_fields(), target); |
| 2368 | } |
| 2369 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ConfigResponse) |
| 2370 | return target; |
| 2371 | } |
| 2372 | |
| 2373 | size_t ConfigResponse::ByteSizeLong() const { |
| 2374 | // @@protoc_insertion_point(message_byte_size_start:dmi.ConfigResponse) |
| 2375 | size_t total_size = 0; |
| 2376 | |
| 2377 | if (_internal_metadata_.have_unknown_fields()) { |
| 2378 | total_size += |
| 2379 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2380 | _internal_metadata_.unknown_fields()); |
| 2381 | } |
| 2382 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2383 | // Prevent compiler warnings about cached_has_bits being unused |
| 2384 | (void) cached_has_bits; |
| 2385 | |
| 2386 | // string reason_detail = 3; |
| 2387 | if (this->reason_detail().size() > 0) { |
| 2388 | total_size += 1 + |
| 2389 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2390 | this->reason_detail()); |
| 2391 | } |
| 2392 | |
| 2393 | // .dmi.Status status = 1; |
| 2394 | if (this->status() != 0) { |
| 2395 | total_size += 1 + |
| 2396 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2397 | } |
| 2398 | |
| 2399 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2400 | if (this->reason() != 0) { |
| 2401 | total_size += 1 + |
| 2402 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2403 | } |
| 2404 | |
| 2405 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2406 | SetCachedSize(cached_size); |
| 2407 | return total_size; |
| 2408 | } |
| 2409 | |
| 2410 | void ConfigResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2411 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ConfigResponse) |
| 2412 | GOOGLE_DCHECK_NE(&from, this); |
| 2413 | const ConfigResponse* source = |
| 2414 | ::google::protobuf::DynamicCastToGenerated<ConfigResponse>( |
| 2415 | &from); |
| 2416 | if (source == nullptr) { |
| 2417 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ConfigResponse) |
| 2418 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2419 | } else { |
| 2420 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ConfigResponse) |
| 2421 | MergeFrom(*source); |
| 2422 | } |
| 2423 | } |
| 2424 | |
| 2425 | void ConfigResponse::MergeFrom(const ConfigResponse& from) { |
| 2426 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ConfigResponse) |
| 2427 | GOOGLE_DCHECK_NE(&from, this); |
| 2428 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2429 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2430 | (void) cached_has_bits; |
| 2431 | |
| 2432 | if (from.reason_detail().size() > 0) { |
| 2433 | |
| 2434 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2435 | } |
| 2436 | if (from.status() != 0) { |
| 2437 | set_status(from.status()); |
| 2438 | } |
| 2439 | if (from.reason() != 0) { |
| 2440 | set_reason(from.reason()); |
| 2441 | } |
| 2442 | } |
| 2443 | |
| 2444 | void ConfigResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2445 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ConfigResponse) |
| 2446 | if (&from == this) return; |
| 2447 | Clear(); |
| 2448 | MergeFrom(from); |
| 2449 | } |
| 2450 | |
| 2451 | void ConfigResponse::CopyFrom(const ConfigResponse& from) { |
| 2452 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ConfigResponse) |
| 2453 | if (&from == this) return; |
| 2454 | Clear(); |
| 2455 | MergeFrom(from); |
| 2456 | } |
| 2457 | |
| 2458 | bool ConfigResponse::IsInitialized() const { |
| 2459 | return true; |
| 2460 | } |
| 2461 | |
| 2462 | void ConfigResponse::Swap(ConfigResponse* other) { |
| 2463 | if (other == this) return; |
| 2464 | InternalSwap(other); |
| 2465 | } |
| 2466 | void ConfigResponse::InternalSwap(ConfigResponse* other) { |
| 2467 | using std::swap; |
| 2468 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2469 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2470 | GetArenaNoVirtual()); |
| 2471 | swap(status_, other->status_); |
| 2472 | swap(reason_, other->reason_); |
| 2473 | } |
| 2474 | |
| 2475 | ::google::protobuf::Metadata ConfigResponse::GetMetadata() const { |
| 2476 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 2477 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2478 | } |
| 2479 | |
| 2480 | |
| 2481 | // =================================================================== |
| 2482 | |
| 2483 | void StartupConfigInfoRequest::InitAsDefaultInstance() { |
| 2484 | ::dmi::_StartupConfigInfoRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2485 | ::dmi::Uuid::internal_default_instance()); |
| 2486 | } |
| 2487 | class StartupConfigInfoRequest::HasBitSetters { |
| 2488 | public: |
| 2489 | static const ::dmi::Uuid& device_uuid(const StartupConfigInfoRequest* msg); |
| 2490 | }; |
| 2491 | |
| 2492 | const ::dmi::Uuid& |
| 2493 | StartupConfigInfoRequest::HasBitSetters::device_uuid(const StartupConfigInfoRequest* msg) { |
| 2494 | return *msg->device_uuid_; |
| 2495 | } |
| 2496 | void StartupConfigInfoRequest::clear_device_uuid() { |
| 2497 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2498 | delete device_uuid_; |
| 2499 | } |
| 2500 | device_uuid_ = nullptr; |
| 2501 | } |
| 2502 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2503 | const int StartupConfigInfoRequest::kDeviceUuidFieldNumber; |
| 2504 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2505 | |
| 2506 | StartupConfigInfoRequest::StartupConfigInfoRequest() |
| 2507 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2508 | SharedCtor(); |
| 2509 | // @@protoc_insertion_point(constructor:dmi.StartupConfigInfoRequest) |
| 2510 | } |
| 2511 | StartupConfigInfoRequest::StartupConfigInfoRequest(const StartupConfigInfoRequest& from) |
| 2512 | : ::google::protobuf::Message(), |
| 2513 | _internal_metadata_(nullptr) { |
| 2514 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2515 | if (from.has_device_uuid()) { |
| 2516 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2517 | } else { |
| 2518 | device_uuid_ = nullptr; |
| 2519 | } |
| 2520 | // @@protoc_insertion_point(copy_constructor:dmi.StartupConfigInfoRequest) |
| 2521 | } |
| 2522 | |
| 2523 | void StartupConfigInfoRequest::SharedCtor() { |
| 2524 | ::google::protobuf::internal::InitSCC( |
| 2525 | &scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2526 | device_uuid_ = nullptr; |
| 2527 | } |
| 2528 | |
| 2529 | StartupConfigInfoRequest::~StartupConfigInfoRequest() { |
| 2530 | // @@protoc_insertion_point(destructor:dmi.StartupConfigInfoRequest) |
| 2531 | SharedDtor(); |
| 2532 | } |
| 2533 | |
| 2534 | void StartupConfigInfoRequest::SharedDtor() { |
| 2535 | if (this != internal_default_instance()) delete device_uuid_; |
| 2536 | } |
| 2537 | |
| 2538 | void StartupConfigInfoRequest::SetCachedSize(int size) const { |
| 2539 | _cached_size_.Set(size); |
| 2540 | } |
| 2541 | const StartupConfigInfoRequest& StartupConfigInfoRequest::default_instance() { |
| 2542 | ::google::protobuf::internal::InitSCC(&::scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2543 | return *internal_default_instance(); |
| 2544 | } |
| 2545 | |
| 2546 | |
| 2547 | void StartupConfigInfoRequest::Clear() { |
| 2548 | // @@protoc_insertion_point(message_clear_start:dmi.StartupConfigInfoRequest) |
| 2549 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2550 | // Prevent compiler warnings about cached_has_bits being unused |
| 2551 | (void) cached_has_bits; |
| 2552 | |
| 2553 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2554 | delete device_uuid_; |
| 2555 | } |
| 2556 | device_uuid_ = nullptr; |
| 2557 | _internal_metadata_.Clear(); |
| 2558 | } |
| 2559 | |
| 2560 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2561 | const char* StartupConfigInfoRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2562 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2563 | auto msg = static_cast<StartupConfigInfoRequest*>(object); |
| 2564 | ::google::protobuf::int32 size; (void)size; |
| 2565 | int depth; (void)depth; |
| 2566 | ::google::protobuf::uint32 tag; |
| 2567 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2568 | auto ptr = begin; |
| 2569 | while (ptr < end) { |
| 2570 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2571 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2572 | switch (tag >> 3) { |
| 2573 | // .dmi.Uuid device_uuid = 1; |
| 2574 | case 1: { |
| 2575 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2576 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2577 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2578 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2579 | object = msg->mutable_device_uuid(); |
| 2580 | if (size > end - ptr) goto len_delim_till_end; |
| 2581 | ptr += size; |
| 2582 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2583 | {parser_till_end, object}, ptr - size, ptr)); |
| 2584 | break; |
| 2585 | } |
| 2586 | default: { |
| 2587 | handle_unusual: |
| 2588 | if ((tag & 7) == 4 || tag == 0) { |
| 2589 | ctx->EndGroup(tag); |
| 2590 | return ptr; |
| 2591 | } |
| 2592 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2593 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2594 | ptr = res.first; |
| 2595 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2596 | if (res.second) return ptr; |
| 2597 | } |
| 2598 | } // switch |
| 2599 | } // while |
| 2600 | return ptr; |
| 2601 | len_delim_till_end: |
| 2602 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2603 | {parser_till_end, object}, size); |
| 2604 | } |
| 2605 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2606 | bool StartupConfigInfoRequest::MergePartialFromCodedStream( |
| 2607 | ::google::protobuf::io::CodedInputStream* input) { |
| 2608 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2609 | ::google::protobuf::uint32 tag; |
| 2610 | // @@protoc_insertion_point(parse_start:dmi.StartupConfigInfoRequest) |
| 2611 | for (;;) { |
| 2612 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2613 | tag = p.first; |
| 2614 | if (!p.second) goto handle_unusual; |
| 2615 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2616 | // .dmi.Uuid device_uuid = 1; |
| 2617 | case 1: { |
| 2618 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2619 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2620 | input, mutable_device_uuid())); |
| 2621 | } else { |
| 2622 | goto handle_unusual; |
| 2623 | } |
| 2624 | break; |
| 2625 | } |
| 2626 | |
| 2627 | default: { |
| 2628 | handle_unusual: |
| 2629 | if (tag == 0) { |
| 2630 | goto success; |
| 2631 | } |
| 2632 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2633 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2634 | break; |
| 2635 | } |
| 2636 | } |
| 2637 | } |
| 2638 | success: |
| 2639 | // @@protoc_insertion_point(parse_success:dmi.StartupConfigInfoRequest) |
| 2640 | return true; |
| 2641 | failure: |
| 2642 | // @@protoc_insertion_point(parse_failure:dmi.StartupConfigInfoRequest) |
| 2643 | return false; |
| 2644 | #undef DO_ |
| 2645 | } |
| 2646 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2647 | |
| 2648 | void StartupConfigInfoRequest::SerializeWithCachedSizes( |
| 2649 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2650 | // @@protoc_insertion_point(serialize_start:dmi.StartupConfigInfoRequest) |
| 2651 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2652 | (void) cached_has_bits; |
| 2653 | |
| 2654 | // .dmi.Uuid device_uuid = 1; |
| 2655 | if (this->has_device_uuid()) { |
| 2656 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2657 | 1, HasBitSetters::device_uuid(this), output); |
| 2658 | } |
| 2659 | |
| 2660 | if (_internal_metadata_.have_unknown_fields()) { |
| 2661 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2662 | _internal_metadata_.unknown_fields(), output); |
| 2663 | } |
| 2664 | // @@protoc_insertion_point(serialize_end:dmi.StartupConfigInfoRequest) |
| 2665 | } |
| 2666 | |
| 2667 | ::google::protobuf::uint8* StartupConfigInfoRequest::InternalSerializeWithCachedSizesToArray( |
| 2668 | ::google::protobuf::uint8* target) const { |
| 2669 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartupConfigInfoRequest) |
| 2670 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2671 | (void) cached_has_bits; |
| 2672 | |
| 2673 | // .dmi.Uuid device_uuid = 1; |
| 2674 | if (this->has_device_uuid()) { |
| 2675 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2676 | InternalWriteMessageToArray( |
| 2677 | 1, HasBitSetters::device_uuid(this), target); |
| 2678 | } |
| 2679 | |
| 2680 | if (_internal_metadata_.have_unknown_fields()) { |
| 2681 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2682 | _internal_metadata_.unknown_fields(), target); |
| 2683 | } |
| 2684 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartupConfigInfoRequest) |
| 2685 | return target; |
| 2686 | } |
| 2687 | |
| 2688 | size_t StartupConfigInfoRequest::ByteSizeLong() const { |
| 2689 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartupConfigInfoRequest) |
| 2690 | size_t total_size = 0; |
| 2691 | |
| 2692 | if (_internal_metadata_.have_unknown_fields()) { |
| 2693 | total_size += |
| 2694 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2695 | _internal_metadata_.unknown_fields()); |
| 2696 | } |
| 2697 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2698 | // Prevent compiler warnings about cached_has_bits being unused |
| 2699 | (void) cached_has_bits; |
| 2700 | |
| 2701 | // .dmi.Uuid device_uuid = 1; |
| 2702 | if (this->has_device_uuid()) { |
| 2703 | total_size += 1 + |
| 2704 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2705 | *device_uuid_); |
| 2706 | } |
| 2707 | |
| 2708 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2709 | SetCachedSize(cached_size); |
| 2710 | return total_size; |
| 2711 | } |
| 2712 | |
| 2713 | void StartupConfigInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2714 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartupConfigInfoRequest) |
| 2715 | GOOGLE_DCHECK_NE(&from, this); |
| 2716 | const StartupConfigInfoRequest* source = |
| 2717 | ::google::protobuf::DynamicCastToGenerated<StartupConfigInfoRequest>( |
| 2718 | &from); |
| 2719 | if (source == nullptr) { |
| 2720 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartupConfigInfoRequest) |
| 2721 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2722 | } else { |
| 2723 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartupConfigInfoRequest) |
| 2724 | MergeFrom(*source); |
| 2725 | } |
| 2726 | } |
| 2727 | |
| 2728 | void StartupConfigInfoRequest::MergeFrom(const StartupConfigInfoRequest& from) { |
| 2729 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartupConfigInfoRequest) |
| 2730 | GOOGLE_DCHECK_NE(&from, this); |
| 2731 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2732 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2733 | (void) cached_has_bits; |
| 2734 | |
| 2735 | if (from.has_device_uuid()) { |
| 2736 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2737 | } |
| 2738 | } |
| 2739 | |
| 2740 | void StartupConfigInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2741 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartupConfigInfoRequest) |
| 2742 | if (&from == this) return; |
| 2743 | Clear(); |
| 2744 | MergeFrom(from); |
| 2745 | } |
| 2746 | |
| 2747 | void StartupConfigInfoRequest::CopyFrom(const StartupConfigInfoRequest& from) { |
| 2748 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartupConfigInfoRequest) |
| 2749 | if (&from == this) return; |
| 2750 | Clear(); |
| 2751 | MergeFrom(from); |
| 2752 | } |
| 2753 | |
| 2754 | bool StartupConfigInfoRequest::IsInitialized() const { |
| 2755 | return true; |
| 2756 | } |
| 2757 | |
| 2758 | void StartupConfigInfoRequest::Swap(StartupConfigInfoRequest* other) { |
| 2759 | if (other == this) return; |
| 2760 | InternalSwap(other); |
| 2761 | } |
| 2762 | void StartupConfigInfoRequest::InternalSwap(StartupConfigInfoRequest* other) { |
| 2763 | using std::swap; |
| 2764 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2765 | swap(device_uuid_, other->device_uuid_); |
| 2766 | } |
| 2767 | |
| 2768 | ::google::protobuf::Metadata StartupConfigInfoRequest::GetMetadata() const { |
| 2769 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 2770 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2771 | } |
| 2772 | |
| 2773 | |
| 2774 | // =================================================================== |
| 2775 | |
| 2776 | void StartupConfigInfoResponse::InitAsDefaultInstance() { |
| 2777 | } |
| 2778 | class StartupConfigInfoResponse::HasBitSetters { |
| 2779 | public: |
| 2780 | }; |
| 2781 | |
| 2782 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2783 | const int StartupConfigInfoResponse::kStatusFieldNumber; |
| 2784 | const int StartupConfigInfoResponse::kReasonFieldNumber; |
| 2785 | const int StartupConfigInfoResponse::kConfigUrlFieldNumber; |
| 2786 | const int StartupConfigInfoResponse::kVersionFieldNumber; |
| 2787 | const int StartupConfigInfoResponse::kReasonDetailFieldNumber; |
| 2788 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2789 | |
| 2790 | StartupConfigInfoResponse::StartupConfigInfoResponse() |
| 2791 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2792 | SharedCtor(); |
| 2793 | // @@protoc_insertion_point(constructor:dmi.StartupConfigInfoResponse) |
| 2794 | } |
| 2795 | StartupConfigInfoResponse::StartupConfigInfoResponse(const StartupConfigInfoResponse& from) |
| 2796 | : ::google::protobuf::Message(), |
| 2797 | _internal_metadata_(nullptr) { |
| 2798 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2799 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2800 | if (from.config_url().size() > 0) { |
| 2801 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 2802 | } |
| 2803 | version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2804 | if (from.version().size() > 0) { |
| 2805 | version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); |
| 2806 | } |
| 2807 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2808 | if (from.reason_detail().size() > 0) { |
| 2809 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2810 | } |
| 2811 | ::memcpy(&status_, &from.status_, |
| 2812 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2813 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2814 | // @@protoc_insertion_point(copy_constructor:dmi.StartupConfigInfoResponse) |
| 2815 | } |
| 2816 | |
| 2817 | void StartupConfigInfoResponse::SharedCtor() { |
| 2818 | ::google::protobuf::internal::InitSCC( |
| 2819 | &scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2820 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2821 | version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2822 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2823 | ::memset(&status_, 0, static_cast<size_t>( |
| 2824 | reinterpret_cast<char*>(&reason_) - |
| 2825 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2826 | } |
| 2827 | |
| 2828 | StartupConfigInfoResponse::~StartupConfigInfoResponse() { |
| 2829 | // @@protoc_insertion_point(destructor:dmi.StartupConfigInfoResponse) |
| 2830 | SharedDtor(); |
| 2831 | } |
| 2832 | |
| 2833 | void StartupConfigInfoResponse::SharedDtor() { |
| 2834 | config_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2835 | version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2836 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2837 | } |
| 2838 | |
| 2839 | void StartupConfigInfoResponse::SetCachedSize(int size) const { |
| 2840 | _cached_size_.Set(size); |
| 2841 | } |
| 2842 | const StartupConfigInfoResponse& StartupConfigInfoResponse::default_instance() { |
| 2843 | ::google::protobuf::internal::InitSCC(&::scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2844 | return *internal_default_instance(); |
| 2845 | } |
| 2846 | |
| 2847 | |
| 2848 | void StartupConfigInfoResponse::Clear() { |
| 2849 | // @@protoc_insertion_point(message_clear_start:dmi.StartupConfigInfoResponse) |
| 2850 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2851 | // Prevent compiler warnings about cached_has_bits being unused |
| 2852 | (void) cached_has_bits; |
| 2853 | |
| 2854 | config_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2855 | version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2856 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2857 | ::memset(&status_, 0, static_cast<size_t>( |
| 2858 | reinterpret_cast<char*>(&reason_) - |
| 2859 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2860 | _internal_metadata_.Clear(); |
| 2861 | } |
| 2862 | |
| 2863 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2864 | const char* StartupConfigInfoResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2865 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2866 | auto msg = static_cast<StartupConfigInfoResponse*>(object); |
| 2867 | ::google::protobuf::int32 size; (void)size; |
| 2868 | int depth; (void)depth; |
| 2869 | ::google::protobuf::uint32 tag; |
| 2870 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2871 | auto ptr = begin; |
| 2872 | while (ptr < end) { |
| 2873 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2874 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2875 | switch (tag >> 3) { |
| 2876 | // .dmi.Status status = 1; |
| 2877 | case 1: { |
| 2878 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2879 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2880 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2881 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2882 | break; |
| 2883 | } |
| 2884 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2885 | case 2: { |
| 2886 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2887 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2888 | msg->set_reason(static_cast<::dmi::StartupConfigInfoResponse_Reason>(val)); |
| 2889 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2890 | break; |
| 2891 | } |
| 2892 | // string config_url = 3; |
| 2893 | case 3: { |
| 2894 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2895 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2896 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2897 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.config_url"); |
| 2898 | object = msg->mutable_config_url(); |
| 2899 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2900 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2901 | goto string_till_end; |
| 2902 | } |
| 2903 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2904 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2905 | ptr += size; |
| 2906 | break; |
| 2907 | } |
| 2908 | // string version = 4; |
| 2909 | case 4: { |
| 2910 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2911 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2912 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2913 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.version"); |
| 2914 | object = msg->mutable_version(); |
| 2915 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2916 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2917 | goto string_till_end; |
| 2918 | } |
| 2919 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2920 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2921 | ptr += size; |
| 2922 | break; |
| 2923 | } |
| 2924 | // string reason_detail = 5; |
| 2925 | case 5: { |
| 2926 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 2927 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2928 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2929 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.reason_detail"); |
| 2930 | object = msg->mutable_reason_detail(); |
| 2931 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2932 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2933 | goto string_till_end; |
| 2934 | } |
| 2935 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2936 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2937 | ptr += size; |
| 2938 | break; |
| 2939 | } |
| 2940 | default: { |
| 2941 | handle_unusual: |
| 2942 | if ((tag & 7) == 4 || tag == 0) { |
| 2943 | ctx->EndGroup(tag); |
| 2944 | return ptr; |
| 2945 | } |
| 2946 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2947 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2948 | ptr = res.first; |
| 2949 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2950 | if (res.second) return ptr; |
| 2951 | } |
| 2952 | } // switch |
| 2953 | } // while |
| 2954 | return ptr; |
| 2955 | string_till_end: |
| 2956 | static_cast<::std::string*>(object)->clear(); |
| 2957 | static_cast<::std::string*>(object)->reserve(size); |
| 2958 | goto len_delim_till_end; |
| 2959 | len_delim_till_end: |
| 2960 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2961 | {parser_till_end, object}, size); |
| 2962 | } |
| 2963 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2964 | bool StartupConfigInfoResponse::MergePartialFromCodedStream( |
| 2965 | ::google::protobuf::io::CodedInputStream* input) { |
| 2966 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2967 | ::google::protobuf::uint32 tag; |
| 2968 | // @@protoc_insertion_point(parse_start:dmi.StartupConfigInfoResponse) |
| 2969 | for (;;) { |
| 2970 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2971 | tag = p.first; |
| 2972 | if (!p.second) goto handle_unusual; |
| 2973 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2974 | // .dmi.Status status = 1; |
| 2975 | case 1: { |
| 2976 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2977 | int value = 0; |
| 2978 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2979 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2980 | input, &value))); |
| 2981 | set_status(static_cast< ::dmi::Status >(value)); |
| 2982 | } else { |
| 2983 | goto handle_unusual; |
| 2984 | } |
| 2985 | break; |
| 2986 | } |
| 2987 | |
| 2988 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2989 | case 2: { |
| 2990 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2991 | int value = 0; |
| 2992 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2993 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2994 | input, &value))); |
| 2995 | set_reason(static_cast< ::dmi::StartupConfigInfoResponse_Reason >(value)); |
| 2996 | } else { |
| 2997 | goto handle_unusual; |
| 2998 | } |
| 2999 | break; |
| 3000 | } |
| 3001 | |
| 3002 | // string config_url = 3; |
| 3003 | case 3: { |
| 3004 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3005 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3006 | input, this->mutable_config_url())); |
| 3007 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3008 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 3009 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3010 | "dmi.StartupConfigInfoResponse.config_url")); |
| 3011 | } else { |
| 3012 | goto handle_unusual; |
| 3013 | } |
| 3014 | break; |
| 3015 | } |
| 3016 | |
| 3017 | // string version = 4; |
| 3018 | case 4: { |
| 3019 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3020 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3021 | input, this->mutable_version())); |
| 3022 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3023 | this->version().data(), static_cast<int>(this->version().length()), |
| 3024 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3025 | "dmi.StartupConfigInfoResponse.version")); |
| 3026 | } else { |
| 3027 | goto handle_unusual; |
| 3028 | } |
| 3029 | break; |
| 3030 | } |
| 3031 | |
| 3032 | // string reason_detail = 5; |
| 3033 | case 5: { |
| 3034 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 3035 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3036 | input, this->mutable_reason_detail())); |
| 3037 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3038 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3039 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3040 | "dmi.StartupConfigInfoResponse.reason_detail")); |
| 3041 | } else { |
| 3042 | goto handle_unusual; |
| 3043 | } |
| 3044 | break; |
| 3045 | } |
| 3046 | |
| 3047 | default: { |
| 3048 | handle_unusual: |
| 3049 | if (tag == 0) { |
| 3050 | goto success; |
| 3051 | } |
| 3052 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3053 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3054 | break; |
| 3055 | } |
| 3056 | } |
| 3057 | } |
| 3058 | success: |
| 3059 | // @@protoc_insertion_point(parse_success:dmi.StartupConfigInfoResponse) |
| 3060 | return true; |
| 3061 | failure: |
| 3062 | // @@protoc_insertion_point(parse_failure:dmi.StartupConfigInfoResponse) |
| 3063 | return false; |
| 3064 | #undef DO_ |
| 3065 | } |
| 3066 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3067 | |
| 3068 | void StartupConfigInfoResponse::SerializeWithCachedSizes( |
| 3069 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3070 | // @@protoc_insertion_point(serialize_start:dmi.StartupConfigInfoResponse) |
| 3071 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3072 | (void) cached_has_bits; |
| 3073 | |
| 3074 | // .dmi.Status status = 1; |
| 3075 | if (this->status() != 0) { |
| 3076 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3077 | 1, this->status(), output); |
| 3078 | } |
| 3079 | |
| 3080 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 3081 | if (this->reason() != 0) { |
| 3082 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3083 | 2, this->reason(), output); |
| 3084 | } |
| 3085 | |
| 3086 | // string config_url = 3; |
| 3087 | if (this->config_url().size() > 0) { |
| 3088 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3089 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 3090 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3091 | "dmi.StartupConfigInfoResponse.config_url"); |
| 3092 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3093 | 3, this->config_url(), output); |
| 3094 | } |
| 3095 | |
| 3096 | // string version = 4; |
| 3097 | if (this->version().size() > 0) { |
| 3098 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3099 | this->version().data(), static_cast<int>(this->version().length()), |
| 3100 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3101 | "dmi.StartupConfigInfoResponse.version"); |
| 3102 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3103 | 4, this->version(), output); |
| 3104 | } |
| 3105 | |
| 3106 | // string reason_detail = 5; |
| 3107 | if (this->reason_detail().size() > 0) { |
| 3108 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3109 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3110 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3111 | "dmi.StartupConfigInfoResponse.reason_detail"); |
| 3112 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3113 | 5, this->reason_detail(), output); |
| 3114 | } |
| 3115 | |
| 3116 | if (_internal_metadata_.have_unknown_fields()) { |
| 3117 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3118 | _internal_metadata_.unknown_fields(), output); |
| 3119 | } |
| 3120 | // @@protoc_insertion_point(serialize_end:dmi.StartupConfigInfoResponse) |
| 3121 | } |
| 3122 | |
| 3123 | ::google::protobuf::uint8* StartupConfigInfoResponse::InternalSerializeWithCachedSizesToArray( |
| 3124 | ::google::protobuf::uint8* target) const { |
| 3125 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartupConfigInfoResponse) |
| 3126 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3127 | (void) cached_has_bits; |
| 3128 | |
| 3129 | // .dmi.Status status = 1; |
| 3130 | if (this->status() != 0) { |
| 3131 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3132 | 1, this->status(), target); |
| 3133 | } |
| 3134 | |
| 3135 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 3136 | if (this->reason() != 0) { |
| 3137 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3138 | 2, this->reason(), target); |
| 3139 | } |
| 3140 | |
| 3141 | // string config_url = 3; |
| 3142 | if (this->config_url().size() > 0) { |
| 3143 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3144 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 3145 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3146 | "dmi.StartupConfigInfoResponse.config_url"); |
| 3147 | target = |
| 3148 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3149 | 3, this->config_url(), target); |
| 3150 | } |
| 3151 | |
| 3152 | // string version = 4; |
| 3153 | if (this->version().size() > 0) { |
| 3154 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3155 | this->version().data(), static_cast<int>(this->version().length()), |
| 3156 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3157 | "dmi.StartupConfigInfoResponse.version"); |
| 3158 | target = |
| 3159 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3160 | 4, this->version(), target); |
| 3161 | } |
| 3162 | |
| 3163 | // string reason_detail = 5; |
| 3164 | if (this->reason_detail().size() > 0) { |
| 3165 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3166 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3167 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3168 | "dmi.StartupConfigInfoResponse.reason_detail"); |
| 3169 | target = |
| 3170 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3171 | 5, this->reason_detail(), target); |
| 3172 | } |
| 3173 | |
| 3174 | if (_internal_metadata_.have_unknown_fields()) { |
| 3175 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3176 | _internal_metadata_.unknown_fields(), target); |
| 3177 | } |
| 3178 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartupConfigInfoResponse) |
| 3179 | return target; |
| 3180 | } |
| 3181 | |
| 3182 | size_t StartupConfigInfoResponse::ByteSizeLong() const { |
| 3183 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartupConfigInfoResponse) |
| 3184 | size_t total_size = 0; |
| 3185 | |
| 3186 | if (_internal_metadata_.have_unknown_fields()) { |
| 3187 | total_size += |
| 3188 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3189 | _internal_metadata_.unknown_fields()); |
| 3190 | } |
| 3191 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3192 | // Prevent compiler warnings about cached_has_bits being unused |
| 3193 | (void) cached_has_bits; |
| 3194 | |
| 3195 | // string config_url = 3; |
| 3196 | if (this->config_url().size() > 0) { |
| 3197 | total_size += 1 + |
| 3198 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3199 | this->config_url()); |
| 3200 | } |
| 3201 | |
| 3202 | // string version = 4; |
| 3203 | if (this->version().size() > 0) { |
| 3204 | total_size += 1 + |
| 3205 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3206 | this->version()); |
| 3207 | } |
| 3208 | |
| 3209 | // string reason_detail = 5; |
| 3210 | if (this->reason_detail().size() > 0) { |
| 3211 | total_size += 1 + |
| 3212 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3213 | this->reason_detail()); |
| 3214 | } |
| 3215 | |
| 3216 | // .dmi.Status status = 1; |
| 3217 | if (this->status() != 0) { |
| 3218 | total_size += 1 + |
| 3219 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3220 | } |
| 3221 | |
| 3222 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 3223 | if (this->reason() != 0) { |
| 3224 | total_size += 1 + |
| 3225 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3226 | } |
| 3227 | |
| 3228 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3229 | SetCachedSize(cached_size); |
| 3230 | return total_size; |
| 3231 | } |
| 3232 | |
| 3233 | void StartupConfigInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3234 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartupConfigInfoResponse) |
| 3235 | GOOGLE_DCHECK_NE(&from, this); |
| 3236 | const StartupConfigInfoResponse* source = |
| 3237 | ::google::protobuf::DynamicCastToGenerated<StartupConfigInfoResponse>( |
| 3238 | &from); |
| 3239 | if (source == nullptr) { |
| 3240 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartupConfigInfoResponse) |
| 3241 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3242 | } else { |
| 3243 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartupConfigInfoResponse) |
| 3244 | MergeFrom(*source); |
| 3245 | } |
| 3246 | } |
| 3247 | |
| 3248 | void StartupConfigInfoResponse::MergeFrom(const StartupConfigInfoResponse& from) { |
| 3249 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartupConfigInfoResponse) |
| 3250 | GOOGLE_DCHECK_NE(&from, this); |
| 3251 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3252 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3253 | (void) cached_has_bits; |
| 3254 | |
| 3255 | if (from.config_url().size() > 0) { |
| 3256 | |
| 3257 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 3258 | } |
| 3259 | if (from.version().size() > 0) { |
| 3260 | |
| 3261 | version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); |
| 3262 | } |
| 3263 | if (from.reason_detail().size() > 0) { |
| 3264 | |
| 3265 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3266 | } |
| 3267 | if (from.status() != 0) { |
| 3268 | set_status(from.status()); |
| 3269 | } |
| 3270 | if (from.reason() != 0) { |
| 3271 | set_reason(from.reason()); |
| 3272 | } |
| 3273 | } |
| 3274 | |
| 3275 | void StartupConfigInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3276 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartupConfigInfoResponse) |
| 3277 | if (&from == this) return; |
| 3278 | Clear(); |
| 3279 | MergeFrom(from); |
| 3280 | } |
| 3281 | |
| 3282 | void StartupConfigInfoResponse::CopyFrom(const StartupConfigInfoResponse& from) { |
| 3283 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartupConfigInfoResponse) |
| 3284 | if (&from == this) return; |
| 3285 | Clear(); |
| 3286 | MergeFrom(from); |
| 3287 | } |
| 3288 | |
| 3289 | bool StartupConfigInfoResponse::IsInitialized() const { |
| 3290 | return true; |
| 3291 | } |
| 3292 | |
| 3293 | void StartupConfigInfoResponse::Swap(StartupConfigInfoResponse* other) { |
| 3294 | if (other == this) return; |
| 3295 | InternalSwap(other); |
| 3296 | } |
| 3297 | void StartupConfigInfoResponse::InternalSwap(StartupConfigInfoResponse* other) { |
| 3298 | using std::swap; |
| 3299 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3300 | config_url_.Swap(&other->config_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3301 | GetArenaNoVirtual()); |
| 3302 | version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3303 | GetArenaNoVirtual()); |
| 3304 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3305 | GetArenaNoVirtual()); |
| 3306 | swap(status_, other->status_); |
| 3307 | swap(reason_, other->reason_); |
| 3308 | } |
| 3309 | |
| 3310 | ::google::protobuf::Metadata StartupConfigInfoResponse::GetMetadata() const { |
| 3311 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 3312 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3313 | } |
| 3314 | |
| 3315 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 3316 | // =================================================================== |
| 3317 | |
| 3318 | void UploadDebugInfoRequest::InitAsDefaultInstance() { |
| 3319 | ::dmi::_UploadDebugInfoRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3320 | ::dmi::Uuid::internal_default_instance()); |
| 3321 | } |
| 3322 | class UploadDebugInfoRequest::HasBitSetters { |
| 3323 | public: |
| 3324 | static const ::dmi::Uuid& device_uuid(const UploadDebugInfoRequest* msg); |
| 3325 | }; |
| 3326 | |
| 3327 | const ::dmi::Uuid& |
| 3328 | UploadDebugInfoRequest::HasBitSetters::device_uuid(const UploadDebugInfoRequest* msg) { |
| 3329 | return *msg->device_uuid_; |
| 3330 | } |
| 3331 | void UploadDebugInfoRequest::clear_device_uuid() { |
| 3332 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3333 | delete device_uuid_; |
| 3334 | } |
| 3335 | device_uuid_ = nullptr; |
| 3336 | } |
| 3337 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3338 | const int UploadDebugInfoRequest::kDeviceUuidFieldNumber; |
| 3339 | const int UploadDebugInfoRequest::kLocationUrlFieldNumber; |
| 3340 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3341 | |
| 3342 | UploadDebugInfoRequest::UploadDebugInfoRequest() |
| 3343 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3344 | SharedCtor(); |
| 3345 | // @@protoc_insertion_point(constructor:dmi.UploadDebugInfoRequest) |
| 3346 | } |
| 3347 | UploadDebugInfoRequest::UploadDebugInfoRequest(const UploadDebugInfoRequest& from) |
| 3348 | : ::google::protobuf::Message(), |
| 3349 | _internal_metadata_(nullptr) { |
| 3350 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3351 | location_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3352 | if (from.location_url().size() > 0) { |
| 3353 | location_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_url_); |
| 3354 | } |
| 3355 | if (from.has_device_uuid()) { |
| 3356 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3357 | } else { |
| 3358 | device_uuid_ = nullptr; |
| 3359 | } |
| 3360 | // @@protoc_insertion_point(copy_constructor:dmi.UploadDebugInfoRequest) |
| 3361 | } |
| 3362 | |
| 3363 | void UploadDebugInfoRequest::SharedCtor() { |
| 3364 | ::google::protobuf::internal::InitSCC( |
| 3365 | &scc_info_UploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 3366 | location_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3367 | device_uuid_ = nullptr; |
| 3368 | } |
| 3369 | |
| 3370 | UploadDebugInfoRequest::~UploadDebugInfoRequest() { |
| 3371 | // @@protoc_insertion_point(destructor:dmi.UploadDebugInfoRequest) |
| 3372 | SharedDtor(); |
| 3373 | } |
| 3374 | |
| 3375 | void UploadDebugInfoRequest::SharedDtor() { |
| 3376 | location_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3377 | if (this != internal_default_instance()) delete device_uuid_; |
| 3378 | } |
| 3379 | |
| 3380 | void UploadDebugInfoRequest::SetCachedSize(int size) const { |
| 3381 | _cached_size_.Set(size); |
| 3382 | } |
| 3383 | const UploadDebugInfoRequest& UploadDebugInfoRequest::default_instance() { |
| 3384 | ::google::protobuf::internal::InitSCC(&::scc_info_UploadDebugInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 3385 | return *internal_default_instance(); |
| 3386 | } |
| 3387 | |
| 3388 | |
| 3389 | void UploadDebugInfoRequest::Clear() { |
| 3390 | // @@protoc_insertion_point(message_clear_start:dmi.UploadDebugInfoRequest) |
| 3391 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3392 | // Prevent compiler warnings about cached_has_bits being unused |
| 3393 | (void) cached_has_bits; |
| 3394 | |
| 3395 | location_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3396 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3397 | delete device_uuid_; |
| 3398 | } |
| 3399 | device_uuid_ = nullptr; |
| 3400 | _internal_metadata_.Clear(); |
| 3401 | } |
| 3402 | |
| 3403 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3404 | const char* UploadDebugInfoRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3405 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3406 | auto msg = static_cast<UploadDebugInfoRequest*>(object); |
| 3407 | ::google::protobuf::int32 size; (void)size; |
| 3408 | int depth; (void)depth; |
| 3409 | ::google::protobuf::uint32 tag; |
| 3410 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3411 | auto ptr = begin; |
| 3412 | while (ptr < end) { |
| 3413 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3414 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3415 | switch (tag >> 3) { |
| 3416 | // .dmi.Uuid device_uuid = 1; |
| 3417 | case 1: { |
| 3418 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3419 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3420 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3421 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3422 | object = msg->mutable_device_uuid(); |
| 3423 | if (size > end - ptr) goto len_delim_till_end; |
| 3424 | ptr += size; |
| 3425 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3426 | {parser_till_end, object}, ptr - size, ptr)); |
| 3427 | break; |
| 3428 | } |
| 3429 | // string location_url = 3; |
| 3430 | case 3: { |
| 3431 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3432 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3433 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3434 | ctx->extra_parse_data().SetFieldName("dmi.UploadDebugInfoRequest.location_url"); |
| 3435 | object = msg->mutable_location_url(); |
| 3436 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3437 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3438 | goto string_till_end; |
| 3439 | } |
| 3440 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3441 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3442 | ptr += size; |
| 3443 | break; |
| 3444 | } |
| 3445 | default: { |
| 3446 | handle_unusual: |
| 3447 | if ((tag & 7) == 4 || tag == 0) { |
| 3448 | ctx->EndGroup(tag); |
| 3449 | return ptr; |
| 3450 | } |
| 3451 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3452 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3453 | ptr = res.first; |
| 3454 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3455 | if (res.second) return ptr; |
| 3456 | } |
| 3457 | } // switch |
| 3458 | } // while |
| 3459 | return ptr; |
| 3460 | string_till_end: |
| 3461 | static_cast<::std::string*>(object)->clear(); |
| 3462 | static_cast<::std::string*>(object)->reserve(size); |
| 3463 | goto len_delim_till_end; |
| 3464 | len_delim_till_end: |
| 3465 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3466 | {parser_till_end, object}, size); |
| 3467 | } |
| 3468 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3469 | bool UploadDebugInfoRequest::MergePartialFromCodedStream( |
| 3470 | ::google::protobuf::io::CodedInputStream* input) { |
| 3471 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3472 | ::google::protobuf::uint32 tag; |
| 3473 | // @@protoc_insertion_point(parse_start:dmi.UploadDebugInfoRequest) |
| 3474 | for (;;) { |
| 3475 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3476 | tag = p.first; |
| 3477 | if (!p.second) goto handle_unusual; |
| 3478 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3479 | // .dmi.Uuid device_uuid = 1; |
| 3480 | case 1: { |
| 3481 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3482 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3483 | input, mutable_device_uuid())); |
| 3484 | } else { |
| 3485 | goto handle_unusual; |
| 3486 | } |
| 3487 | break; |
| 3488 | } |
| 3489 | |
| 3490 | // string location_url = 3; |
| 3491 | case 3: { |
| 3492 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3493 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3494 | input, this->mutable_location_url())); |
| 3495 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3496 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 3497 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3498 | "dmi.UploadDebugInfoRequest.location_url")); |
| 3499 | } else { |
| 3500 | goto handle_unusual; |
| 3501 | } |
| 3502 | break; |
| 3503 | } |
| 3504 | |
| 3505 | default: { |
| 3506 | handle_unusual: |
| 3507 | if (tag == 0) { |
| 3508 | goto success; |
| 3509 | } |
| 3510 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3511 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3512 | break; |
| 3513 | } |
| 3514 | } |
| 3515 | } |
| 3516 | success: |
| 3517 | // @@protoc_insertion_point(parse_success:dmi.UploadDebugInfoRequest) |
| 3518 | return true; |
| 3519 | failure: |
| 3520 | // @@protoc_insertion_point(parse_failure:dmi.UploadDebugInfoRequest) |
| 3521 | return false; |
| 3522 | #undef DO_ |
| 3523 | } |
| 3524 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3525 | |
| 3526 | void UploadDebugInfoRequest::SerializeWithCachedSizes( |
| 3527 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3528 | // @@protoc_insertion_point(serialize_start:dmi.UploadDebugInfoRequest) |
| 3529 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3530 | (void) cached_has_bits; |
| 3531 | |
| 3532 | // .dmi.Uuid device_uuid = 1; |
| 3533 | if (this->has_device_uuid()) { |
| 3534 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3535 | 1, HasBitSetters::device_uuid(this), output); |
| 3536 | } |
| 3537 | |
| 3538 | // string location_url = 3; |
| 3539 | if (this->location_url().size() > 0) { |
| 3540 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3541 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 3542 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3543 | "dmi.UploadDebugInfoRequest.location_url"); |
| 3544 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3545 | 3, this->location_url(), output); |
| 3546 | } |
| 3547 | |
| 3548 | if (_internal_metadata_.have_unknown_fields()) { |
| 3549 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3550 | _internal_metadata_.unknown_fields(), output); |
| 3551 | } |
| 3552 | // @@protoc_insertion_point(serialize_end:dmi.UploadDebugInfoRequest) |
| 3553 | } |
| 3554 | |
| 3555 | ::google::protobuf::uint8* UploadDebugInfoRequest::InternalSerializeWithCachedSizesToArray( |
| 3556 | ::google::protobuf::uint8* target) const { |
| 3557 | // @@protoc_insertion_point(serialize_to_array_start:dmi.UploadDebugInfoRequest) |
| 3558 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3559 | (void) cached_has_bits; |
| 3560 | |
| 3561 | // .dmi.Uuid device_uuid = 1; |
| 3562 | if (this->has_device_uuid()) { |
| 3563 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3564 | InternalWriteMessageToArray( |
| 3565 | 1, HasBitSetters::device_uuid(this), target); |
| 3566 | } |
| 3567 | |
| 3568 | // string location_url = 3; |
| 3569 | if (this->location_url().size() > 0) { |
| 3570 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3571 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 3572 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3573 | "dmi.UploadDebugInfoRequest.location_url"); |
| 3574 | target = |
| 3575 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3576 | 3, this->location_url(), target); |
| 3577 | } |
| 3578 | |
| 3579 | if (_internal_metadata_.have_unknown_fields()) { |
| 3580 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3581 | _internal_metadata_.unknown_fields(), target); |
| 3582 | } |
| 3583 | // @@protoc_insertion_point(serialize_to_array_end:dmi.UploadDebugInfoRequest) |
| 3584 | return target; |
| 3585 | } |
| 3586 | |
| 3587 | size_t UploadDebugInfoRequest::ByteSizeLong() const { |
| 3588 | // @@protoc_insertion_point(message_byte_size_start:dmi.UploadDebugInfoRequest) |
| 3589 | size_t total_size = 0; |
| 3590 | |
| 3591 | if (_internal_metadata_.have_unknown_fields()) { |
| 3592 | total_size += |
| 3593 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3594 | _internal_metadata_.unknown_fields()); |
| 3595 | } |
| 3596 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3597 | // Prevent compiler warnings about cached_has_bits being unused |
| 3598 | (void) cached_has_bits; |
| 3599 | |
| 3600 | // string location_url = 3; |
| 3601 | if (this->location_url().size() > 0) { |
| 3602 | total_size += 1 + |
| 3603 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3604 | this->location_url()); |
| 3605 | } |
| 3606 | |
| 3607 | // .dmi.Uuid device_uuid = 1; |
| 3608 | if (this->has_device_uuid()) { |
| 3609 | total_size += 1 + |
| 3610 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3611 | *device_uuid_); |
| 3612 | } |
| 3613 | |
| 3614 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3615 | SetCachedSize(cached_size); |
| 3616 | return total_size; |
| 3617 | } |
| 3618 | |
| 3619 | void UploadDebugInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3620 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.UploadDebugInfoRequest) |
| 3621 | GOOGLE_DCHECK_NE(&from, this); |
| 3622 | const UploadDebugInfoRequest* source = |
| 3623 | ::google::protobuf::DynamicCastToGenerated<UploadDebugInfoRequest>( |
| 3624 | &from); |
| 3625 | if (source == nullptr) { |
| 3626 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.UploadDebugInfoRequest) |
| 3627 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3628 | } else { |
| 3629 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.UploadDebugInfoRequest) |
| 3630 | MergeFrom(*source); |
| 3631 | } |
| 3632 | } |
| 3633 | |
| 3634 | void UploadDebugInfoRequest::MergeFrom(const UploadDebugInfoRequest& from) { |
| 3635 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.UploadDebugInfoRequest) |
| 3636 | GOOGLE_DCHECK_NE(&from, this); |
| 3637 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3638 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3639 | (void) cached_has_bits; |
| 3640 | |
| 3641 | if (from.location_url().size() > 0) { |
| 3642 | |
| 3643 | location_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_url_); |
| 3644 | } |
| 3645 | if (from.has_device_uuid()) { |
| 3646 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3647 | } |
| 3648 | } |
| 3649 | |
| 3650 | void UploadDebugInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3651 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.UploadDebugInfoRequest) |
| 3652 | if (&from == this) return; |
| 3653 | Clear(); |
| 3654 | MergeFrom(from); |
| 3655 | } |
| 3656 | |
| 3657 | void UploadDebugInfoRequest::CopyFrom(const UploadDebugInfoRequest& from) { |
| 3658 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.UploadDebugInfoRequest) |
| 3659 | if (&from == this) return; |
| 3660 | Clear(); |
| 3661 | MergeFrom(from); |
| 3662 | } |
| 3663 | |
| 3664 | bool UploadDebugInfoRequest::IsInitialized() const { |
| 3665 | return true; |
| 3666 | } |
| 3667 | |
| 3668 | void UploadDebugInfoRequest::Swap(UploadDebugInfoRequest* other) { |
| 3669 | if (other == this) return; |
| 3670 | InternalSwap(other); |
| 3671 | } |
| 3672 | void UploadDebugInfoRequest::InternalSwap(UploadDebugInfoRequest* other) { |
| 3673 | using std::swap; |
| 3674 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3675 | location_url_.Swap(&other->location_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3676 | GetArenaNoVirtual()); |
| 3677 | swap(device_uuid_, other->device_uuid_); |
| 3678 | } |
| 3679 | |
| 3680 | ::google::protobuf::Metadata UploadDebugInfoRequest::GetMetadata() const { |
| 3681 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 3682 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3683 | } |
| 3684 | |
| 3685 | |
| 3686 | // =================================================================== |
| 3687 | |
| 3688 | void UploadDebugInfoStatus::InitAsDefaultInstance() { |
| 3689 | ::dmi::_UploadDebugInfoStatus_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3690 | ::dmi::Uuid::internal_default_instance()); |
| 3691 | } |
| 3692 | class UploadDebugInfoStatus::HasBitSetters { |
| 3693 | public: |
| 3694 | static const ::dmi::Uuid& device_uuid(const UploadDebugInfoStatus* msg); |
| 3695 | }; |
| 3696 | |
| 3697 | const ::dmi::Uuid& |
| 3698 | UploadDebugInfoStatus::HasBitSetters::device_uuid(const UploadDebugInfoStatus* msg) { |
| 3699 | return *msg->device_uuid_; |
| 3700 | } |
| 3701 | void UploadDebugInfoStatus::clear_device_uuid() { |
| 3702 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3703 | delete device_uuid_; |
| 3704 | } |
| 3705 | device_uuid_ = nullptr; |
| 3706 | } |
| 3707 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3708 | const int UploadDebugInfoStatus::kDeviceUuidFieldNumber; |
| 3709 | const int UploadDebugInfoStatus::kStatusFieldNumber; |
| 3710 | const int UploadDebugInfoStatus::kPercentUploadedFieldNumber; |
| 3711 | const int UploadDebugInfoStatus::kReasonFieldNumber; |
| 3712 | const int UploadDebugInfoStatus::kLocationUrlFieldNumber; |
| 3713 | const int UploadDebugInfoStatus::kFileNameFieldNumber; |
| 3714 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3715 | |
| 3716 | UploadDebugInfoStatus::UploadDebugInfoStatus() |
| 3717 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3718 | SharedCtor(); |
| 3719 | // @@protoc_insertion_point(constructor:dmi.UploadDebugInfoStatus) |
| 3720 | } |
| 3721 | UploadDebugInfoStatus::UploadDebugInfoStatus(const UploadDebugInfoStatus& from) |
| 3722 | : ::google::protobuf::Message(), |
| 3723 | _internal_metadata_(nullptr) { |
| 3724 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3725 | location_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3726 | if (from.location_url().size() > 0) { |
| 3727 | location_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_url_); |
| 3728 | } |
| 3729 | file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3730 | if (from.file_name().size() > 0) { |
| 3731 | file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); |
| 3732 | } |
| 3733 | if (from.has_device_uuid()) { |
| 3734 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3735 | } else { |
| 3736 | device_uuid_ = nullptr; |
| 3737 | } |
| 3738 | ::memcpy(&status_, &from.status_, |
| 3739 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3740 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3741 | // @@protoc_insertion_point(copy_constructor:dmi.UploadDebugInfoStatus) |
| 3742 | } |
| 3743 | |
| 3744 | void UploadDebugInfoStatus::SharedCtor() { |
| 3745 | ::google::protobuf::internal::InitSCC( |
| 3746 | &scc_info_UploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 3747 | location_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3748 | file_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3749 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3750 | reinterpret_cast<char*>(&reason_) - |
| 3751 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 3752 | } |
| 3753 | |
| 3754 | UploadDebugInfoStatus::~UploadDebugInfoStatus() { |
| 3755 | // @@protoc_insertion_point(destructor:dmi.UploadDebugInfoStatus) |
| 3756 | SharedDtor(); |
| 3757 | } |
| 3758 | |
| 3759 | void UploadDebugInfoStatus::SharedDtor() { |
| 3760 | location_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3761 | file_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3762 | if (this != internal_default_instance()) delete device_uuid_; |
| 3763 | } |
| 3764 | |
| 3765 | void UploadDebugInfoStatus::SetCachedSize(int size) const { |
| 3766 | _cached_size_.Set(size); |
| 3767 | } |
| 3768 | const UploadDebugInfoStatus& UploadDebugInfoStatus::default_instance() { |
| 3769 | ::google::protobuf::internal::InitSCC(&::scc_info_UploadDebugInfoStatus_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 3770 | return *internal_default_instance(); |
| 3771 | } |
| 3772 | |
| 3773 | |
| 3774 | void UploadDebugInfoStatus::Clear() { |
| 3775 | // @@protoc_insertion_point(message_clear_start:dmi.UploadDebugInfoStatus) |
| 3776 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3777 | // Prevent compiler warnings about cached_has_bits being unused |
| 3778 | (void) cached_has_bits; |
| 3779 | |
| 3780 | location_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3781 | file_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3782 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3783 | delete device_uuid_; |
| 3784 | } |
| 3785 | device_uuid_ = nullptr; |
| 3786 | ::memset(&status_, 0, static_cast<size_t>( |
| 3787 | reinterpret_cast<char*>(&reason_) - |
| 3788 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3789 | _internal_metadata_.Clear(); |
| 3790 | } |
| 3791 | |
| 3792 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3793 | const char* UploadDebugInfoStatus::_InternalParse(const char* begin, const char* end, void* object, |
| 3794 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3795 | auto msg = static_cast<UploadDebugInfoStatus*>(object); |
| 3796 | ::google::protobuf::int32 size; (void)size; |
| 3797 | int depth; (void)depth; |
| 3798 | ::google::protobuf::uint32 tag; |
| 3799 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3800 | auto ptr = begin; |
| 3801 | while (ptr < end) { |
| 3802 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3803 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3804 | switch (tag >> 3) { |
| 3805 | // .dmi.Uuid device_uuid = 1; |
| 3806 | case 1: { |
| 3807 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3808 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3809 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3810 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3811 | object = msg->mutable_device_uuid(); |
| 3812 | if (size > end - ptr) goto len_delim_till_end; |
| 3813 | ptr += size; |
| 3814 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3815 | {parser_till_end, object}, ptr - size, ptr)); |
| 3816 | break; |
| 3817 | } |
| 3818 | // .dmi.UploadDebugInfoStatus.UploadStatus status = 2; |
| 3819 | case 2: { |
| 3820 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3821 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3822 | msg->set_status(static_cast<::dmi::UploadDebugInfoStatus_UploadStatus>(val)); |
| 3823 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3824 | break; |
| 3825 | } |
| 3826 | // int32 percent_uploaded = 3; |
| 3827 | case 3: { |
| 3828 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 3829 | msg->set_percent_uploaded(::google::protobuf::internal::ReadVarint(&ptr)); |
| 3830 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3831 | break; |
| 3832 | } |
| 3833 | // .dmi.UploadDebugInfoStatus.Reason reason = 4; |
| 3834 | case 4: { |
| 3835 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 3836 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3837 | msg->set_reason(static_cast<::dmi::UploadDebugInfoStatus_Reason>(val)); |
| 3838 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3839 | break; |
| 3840 | } |
| 3841 | // string location_url = 5; |
| 3842 | case 5: { |
| 3843 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 3844 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3845 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3846 | ctx->extra_parse_data().SetFieldName("dmi.UploadDebugInfoStatus.location_url"); |
| 3847 | object = msg->mutable_location_url(); |
| 3848 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3849 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3850 | goto string_till_end; |
| 3851 | } |
| 3852 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3853 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3854 | ptr += size; |
| 3855 | break; |
| 3856 | } |
| 3857 | // string file_name = 6; |
| 3858 | case 6: { |
| 3859 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 3860 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3861 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3862 | ctx->extra_parse_data().SetFieldName("dmi.UploadDebugInfoStatus.file_name"); |
| 3863 | object = msg->mutable_file_name(); |
| 3864 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3865 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3866 | goto string_till_end; |
| 3867 | } |
| 3868 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3869 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3870 | ptr += size; |
| 3871 | break; |
| 3872 | } |
| 3873 | default: { |
| 3874 | handle_unusual: |
| 3875 | if ((tag & 7) == 4 || tag == 0) { |
| 3876 | ctx->EndGroup(tag); |
| 3877 | return ptr; |
| 3878 | } |
| 3879 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3880 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3881 | ptr = res.first; |
| 3882 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3883 | if (res.second) return ptr; |
| 3884 | } |
| 3885 | } // switch |
| 3886 | } // while |
| 3887 | return ptr; |
| 3888 | string_till_end: |
| 3889 | static_cast<::std::string*>(object)->clear(); |
| 3890 | static_cast<::std::string*>(object)->reserve(size); |
| 3891 | goto len_delim_till_end; |
| 3892 | len_delim_till_end: |
| 3893 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3894 | {parser_till_end, object}, size); |
| 3895 | } |
| 3896 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3897 | bool UploadDebugInfoStatus::MergePartialFromCodedStream( |
| 3898 | ::google::protobuf::io::CodedInputStream* input) { |
| 3899 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3900 | ::google::protobuf::uint32 tag; |
| 3901 | // @@protoc_insertion_point(parse_start:dmi.UploadDebugInfoStatus) |
| 3902 | for (;;) { |
| 3903 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3904 | tag = p.first; |
| 3905 | if (!p.second) goto handle_unusual; |
| 3906 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3907 | // .dmi.Uuid device_uuid = 1; |
| 3908 | case 1: { |
| 3909 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3910 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3911 | input, mutable_device_uuid())); |
| 3912 | } else { |
| 3913 | goto handle_unusual; |
| 3914 | } |
| 3915 | break; |
| 3916 | } |
| 3917 | |
| 3918 | // .dmi.UploadDebugInfoStatus.UploadStatus status = 2; |
| 3919 | case 2: { |
| 3920 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3921 | int value = 0; |
| 3922 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3923 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3924 | input, &value))); |
| 3925 | set_status(static_cast< ::dmi::UploadDebugInfoStatus_UploadStatus >(value)); |
| 3926 | } else { |
| 3927 | goto handle_unusual; |
| 3928 | } |
| 3929 | break; |
| 3930 | } |
| 3931 | |
| 3932 | // int32 percent_uploaded = 3; |
| 3933 | case 3: { |
| 3934 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 3935 | |
| 3936 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3937 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 3938 | input, &percent_uploaded_))); |
| 3939 | } else { |
| 3940 | goto handle_unusual; |
| 3941 | } |
| 3942 | break; |
| 3943 | } |
| 3944 | |
| 3945 | // .dmi.UploadDebugInfoStatus.Reason reason = 4; |
| 3946 | case 4: { |
| 3947 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 3948 | int value = 0; |
| 3949 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3950 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3951 | input, &value))); |
| 3952 | set_reason(static_cast< ::dmi::UploadDebugInfoStatus_Reason >(value)); |
| 3953 | } else { |
| 3954 | goto handle_unusual; |
| 3955 | } |
| 3956 | break; |
| 3957 | } |
| 3958 | |
| 3959 | // string location_url = 5; |
| 3960 | case 5: { |
| 3961 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 3962 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3963 | input, this->mutable_location_url())); |
| 3964 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3965 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 3966 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3967 | "dmi.UploadDebugInfoStatus.location_url")); |
| 3968 | } else { |
| 3969 | goto handle_unusual; |
| 3970 | } |
| 3971 | break; |
| 3972 | } |
| 3973 | |
| 3974 | // string file_name = 6; |
| 3975 | case 6: { |
| 3976 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 3977 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3978 | input, this->mutable_file_name())); |
| 3979 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3980 | this->file_name().data(), static_cast<int>(this->file_name().length()), |
| 3981 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3982 | "dmi.UploadDebugInfoStatus.file_name")); |
| 3983 | } else { |
| 3984 | goto handle_unusual; |
| 3985 | } |
| 3986 | break; |
| 3987 | } |
| 3988 | |
| 3989 | default: { |
| 3990 | handle_unusual: |
| 3991 | if (tag == 0) { |
| 3992 | goto success; |
| 3993 | } |
| 3994 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3995 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3996 | break; |
| 3997 | } |
| 3998 | } |
| 3999 | } |
| 4000 | success: |
| 4001 | // @@protoc_insertion_point(parse_success:dmi.UploadDebugInfoStatus) |
| 4002 | return true; |
| 4003 | failure: |
| 4004 | // @@protoc_insertion_point(parse_failure:dmi.UploadDebugInfoStatus) |
| 4005 | return false; |
| 4006 | #undef DO_ |
| 4007 | } |
| 4008 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4009 | |
| 4010 | void UploadDebugInfoStatus::SerializeWithCachedSizes( |
| 4011 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4012 | // @@protoc_insertion_point(serialize_start:dmi.UploadDebugInfoStatus) |
| 4013 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4014 | (void) cached_has_bits; |
| 4015 | |
| 4016 | // .dmi.Uuid device_uuid = 1; |
| 4017 | if (this->has_device_uuid()) { |
| 4018 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4019 | 1, HasBitSetters::device_uuid(this), output); |
| 4020 | } |
| 4021 | |
| 4022 | // .dmi.UploadDebugInfoStatus.UploadStatus status = 2; |
| 4023 | if (this->status() != 0) { |
| 4024 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4025 | 2, this->status(), output); |
| 4026 | } |
| 4027 | |
| 4028 | // int32 percent_uploaded = 3; |
| 4029 | if (this->percent_uploaded() != 0) { |
| 4030 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->percent_uploaded(), output); |
| 4031 | } |
| 4032 | |
| 4033 | // .dmi.UploadDebugInfoStatus.Reason reason = 4; |
| 4034 | if (this->reason() != 0) { |
| 4035 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4036 | 4, this->reason(), output); |
| 4037 | } |
| 4038 | |
| 4039 | // string location_url = 5; |
| 4040 | if (this->location_url().size() > 0) { |
| 4041 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4042 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 4043 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4044 | "dmi.UploadDebugInfoStatus.location_url"); |
| 4045 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4046 | 5, this->location_url(), output); |
| 4047 | } |
| 4048 | |
| 4049 | // string file_name = 6; |
| 4050 | if (this->file_name().size() > 0) { |
| 4051 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4052 | this->file_name().data(), static_cast<int>(this->file_name().length()), |
| 4053 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4054 | "dmi.UploadDebugInfoStatus.file_name"); |
| 4055 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4056 | 6, this->file_name(), output); |
| 4057 | } |
| 4058 | |
| 4059 | if (_internal_metadata_.have_unknown_fields()) { |
| 4060 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4061 | _internal_metadata_.unknown_fields(), output); |
| 4062 | } |
| 4063 | // @@protoc_insertion_point(serialize_end:dmi.UploadDebugInfoStatus) |
| 4064 | } |
| 4065 | |
| 4066 | ::google::protobuf::uint8* UploadDebugInfoStatus::InternalSerializeWithCachedSizesToArray( |
| 4067 | ::google::protobuf::uint8* target) const { |
| 4068 | // @@protoc_insertion_point(serialize_to_array_start:dmi.UploadDebugInfoStatus) |
| 4069 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4070 | (void) cached_has_bits; |
| 4071 | |
| 4072 | // .dmi.Uuid device_uuid = 1; |
| 4073 | if (this->has_device_uuid()) { |
| 4074 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4075 | InternalWriteMessageToArray( |
| 4076 | 1, HasBitSetters::device_uuid(this), target); |
| 4077 | } |
| 4078 | |
| 4079 | // .dmi.UploadDebugInfoStatus.UploadStatus status = 2; |
| 4080 | if (this->status() != 0) { |
| 4081 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4082 | 2, this->status(), target); |
| 4083 | } |
| 4084 | |
| 4085 | // int32 percent_uploaded = 3; |
| 4086 | if (this->percent_uploaded() != 0) { |
| 4087 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->percent_uploaded(), target); |
| 4088 | } |
| 4089 | |
| 4090 | // .dmi.UploadDebugInfoStatus.Reason reason = 4; |
| 4091 | if (this->reason() != 0) { |
| 4092 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4093 | 4, this->reason(), target); |
| 4094 | } |
| 4095 | |
| 4096 | // string location_url = 5; |
| 4097 | if (this->location_url().size() > 0) { |
| 4098 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4099 | this->location_url().data(), static_cast<int>(this->location_url().length()), |
| 4100 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4101 | "dmi.UploadDebugInfoStatus.location_url"); |
| 4102 | target = |
| 4103 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4104 | 5, this->location_url(), target); |
| 4105 | } |
| 4106 | |
| 4107 | // string file_name = 6; |
| 4108 | if (this->file_name().size() > 0) { |
| 4109 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4110 | this->file_name().data(), static_cast<int>(this->file_name().length()), |
| 4111 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4112 | "dmi.UploadDebugInfoStatus.file_name"); |
| 4113 | target = |
| 4114 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4115 | 6, this->file_name(), target); |
| 4116 | } |
| 4117 | |
| 4118 | if (_internal_metadata_.have_unknown_fields()) { |
| 4119 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4120 | _internal_metadata_.unknown_fields(), target); |
| 4121 | } |
| 4122 | // @@protoc_insertion_point(serialize_to_array_end:dmi.UploadDebugInfoStatus) |
| 4123 | return target; |
| 4124 | } |
| 4125 | |
| 4126 | size_t UploadDebugInfoStatus::ByteSizeLong() const { |
| 4127 | // @@protoc_insertion_point(message_byte_size_start:dmi.UploadDebugInfoStatus) |
| 4128 | size_t total_size = 0; |
| 4129 | |
| 4130 | if (_internal_metadata_.have_unknown_fields()) { |
| 4131 | total_size += |
| 4132 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4133 | _internal_metadata_.unknown_fields()); |
| 4134 | } |
| 4135 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4136 | // Prevent compiler warnings about cached_has_bits being unused |
| 4137 | (void) cached_has_bits; |
| 4138 | |
| 4139 | // string location_url = 5; |
| 4140 | if (this->location_url().size() > 0) { |
| 4141 | total_size += 1 + |
| 4142 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4143 | this->location_url()); |
| 4144 | } |
| 4145 | |
| 4146 | // string file_name = 6; |
| 4147 | if (this->file_name().size() > 0) { |
| 4148 | total_size += 1 + |
| 4149 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4150 | this->file_name()); |
| 4151 | } |
| 4152 | |
| 4153 | // .dmi.Uuid device_uuid = 1; |
| 4154 | if (this->has_device_uuid()) { |
| 4155 | total_size += 1 + |
| 4156 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4157 | *device_uuid_); |
| 4158 | } |
| 4159 | |
| 4160 | // .dmi.UploadDebugInfoStatus.UploadStatus status = 2; |
| 4161 | if (this->status() != 0) { |
| 4162 | total_size += 1 + |
| 4163 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4164 | } |
| 4165 | |
| 4166 | // int32 percent_uploaded = 3; |
| 4167 | if (this->percent_uploaded() != 0) { |
| 4168 | total_size += 1 + |
| 4169 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 4170 | this->percent_uploaded()); |
| 4171 | } |
| 4172 | |
| 4173 | // .dmi.UploadDebugInfoStatus.Reason reason = 4; |
| 4174 | if (this->reason() != 0) { |
| 4175 | total_size += 1 + |
| 4176 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4177 | } |
| 4178 | |
| 4179 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4180 | SetCachedSize(cached_size); |
| 4181 | return total_size; |
| 4182 | } |
| 4183 | |
| 4184 | void UploadDebugInfoStatus::MergeFrom(const ::google::protobuf::Message& from) { |
| 4185 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.UploadDebugInfoStatus) |
| 4186 | GOOGLE_DCHECK_NE(&from, this); |
| 4187 | const UploadDebugInfoStatus* source = |
| 4188 | ::google::protobuf::DynamicCastToGenerated<UploadDebugInfoStatus>( |
| 4189 | &from); |
| 4190 | if (source == nullptr) { |
| 4191 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.UploadDebugInfoStatus) |
| 4192 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4193 | } else { |
| 4194 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.UploadDebugInfoStatus) |
| 4195 | MergeFrom(*source); |
| 4196 | } |
| 4197 | } |
| 4198 | |
| 4199 | void UploadDebugInfoStatus::MergeFrom(const UploadDebugInfoStatus& from) { |
| 4200 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.UploadDebugInfoStatus) |
| 4201 | GOOGLE_DCHECK_NE(&from, this); |
| 4202 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4203 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4204 | (void) cached_has_bits; |
| 4205 | |
| 4206 | if (from.location_url().size() > 0) { |
| 4207 | |
| 4208 | location_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.location_url_); |
| 4209 | } |
| 4210 | if (from.file_name().size() > 0) { |
| 4211 | |
| 4212 | file_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.file_name_); |
| 4213 | } |
| 4214 | if (from.has_device_uuid()) { |
| 4215 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4216 | } |
| 4217 | if (from.status() != 0) { |
| 4218 | set_status(from.status()); |
| 4219 | } |
| 4220 | if (from.percent_uploaded() != 0) { |
| 4221 | set_percent_uploaded(from.percent_uploaded()); |
| 4222 | } |
| 4223 | if (from.reason() != 0) { |
| 4224 | set_reason(from.reason()); |
| 4225 | } |
| 4226 | } |
| 4227 | |
| 4228 | void UploadDebugInfoStatus::CopyFrom(const ::google::protobuf::Message& from) { |
| 4229 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.UploadDebugInfoStatus) |
| 4230 | if (&from == this) return; |
| 4231 | Clear(); |
| 4232 | MergeFrom(from); |
| 4233 | } |
| 4234 | |
| 4235 | void UploadDebugInfoStatus::CopyFrom(const UploadDebugInfoStatus& from) { |
| 4236 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.UploadDebugInfoStatus) |
| 4237 | if (&from == this) return; |
| 4238 | Clear(); |
| 4239 | MergeFrom(from); |
| 4240 | } |
| 4241 | |
| 4242 | bool UploadDebugInfoStatus::IsInitialized() const { |
| 4243 | return true; |
| 4244 | } |
| 4245 | |
| 4246 | void UploadDebugInfoStatus::Swap(UploadDebugInfoStatus* other) { |
| 4247 | if (other == this) return; |
| 4248 | InternalSwap(other); |
| 4249 | } |
| 4250 | void UploadDebugInfoStatus::InternalSwap(UploadDebugInfoStatus* other) { |
| 4251 | using std::swap; |
| 4252 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4253 | location_url_.Swap(&other->location_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4254 | GetArenaNoVirtual()); |
| 4255 | file_name_.Swap(&other->file_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4256 | GetArenaNoVirtual()); |
| 4257 | swap(device_uuid_, other->device_uuid_); |
| 4258 | swap(status_, other->status_); |
| 4259 | swap(percent_uploaded_, other->percent_uploaded_); |
| 4260 | swap(reason_, other->reason_); |
| 4261 | } |
| 4262 | |
| 4263 | ::google::protobuf::Metadata UploadDebugInfoStatus::GetMetadata() const { |
| 4264 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 4265 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4266 | } |
| 4267 | |
| 4268 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 4269 | // @@protoc_insertion_point(namespace_scope) |
| 4270 | } // namespace dmi |
| 4271 | namespace google { |
| 4272 | namespace protobuf { |
| 4273 | template<> PROTOBUF_NOINLINE ::dmi::SoftwareVersionInformation* Arena::CreateMaybeMessage< ::dmi::SoftwareVersionInformation >(Arena* arena) { |
| 4274 | return Arena::CreateInternal< ::dmi::SoftwareVersionInformation >(arena); |
| 4275 | } |
| 4276 | template<> PROTOBUF_NOINLINE ::dmi::GetSoftwareVersionInformationResponse* Arena::CreateMaybeMessage< ::dmi::GetSoftwareVersionInformationResponse >(Arena* arena) { |
| 4277 | return Arena::CreateInternal< ::dmi::GetSoftwareVersionInformationResponse >(arena); |
| 4278 | } |
| 4279 | template<> PROTOBUF_NOINLINE ::dmi::DownloadImageRequest* Arena::CreateMaybeMessage< ::dmi::DownloadImageRequest >(Arena* arena) { |
| 4280 | return Arena::CreateInternal< ::dmi::DownloadImageRequest >(arena); |
| 4281 | } |
| 4282 | template<> PROTOBUF_NOINLINE ::dmi::ConfigRequest* Arena::CreateMaybeMessage< ::dmi::ConfigRequest >(Arena* arena) { |
| 4283 | return Arena::CreateInternal< ::dmi::ConfigRequest >(arena); |
| 4284 | } |
| 4285 | template<> PROTOBUF_NOINLINE ::dmi::ConfigResponse* Arena::CreateMaybeMessage< ::dmi::ConfigResponse >(Arena* arena) { |
| 4286 | return Arena::CreateInternal< ::dmi::ConfigResponse >(arena); |
| 4287 | } |
| 4288 | template<> PROTOBUF_NOINLINE ::dmi::StartupConfigInfoRequest* Arena::CreateMaybeMessage< ::dmi::StartupConfigInfoRequest >(Arena* arena) { |
| 4289 | return Arena::CreateInternal< ::dmi::StartupConfigInfoRequest >(arena); |
| 4290 | } |
| 4291 | template<> PROTOBUF_NOINLINE ::dmi::StartupConfigInfoResponse* Arena::CreateMaybeMessage< ::dmi::StartupConfigInfoResponse >(Arena* arena) { |
| 4292 | return Arena::CreateInternal< ::dmi::StartupConfigInfoResponse >(arena); |
| 4293 | } |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 4294 | template<> PROTOBUF_NOINLINE ::dmi::UploadDebugInfoRequest* Arena::CreateMaybeMessage< ::dmi::UploadDebugInfoRequest >(Arena* arena) { |
| 4295 | return Arena::CreateInternal< ::dmi::UploadDebugInfoRequest >(arena); |
| 4296 | } |
| 4297 | template<> PROTOBUF_NOINLINE ::dmi::UploadDebugInfoStatus* Arena::CreateMaybeMessage< ::dmi::UploadDebugInfoStatus >(Arena* arena) { |
| 4298 | return Arena::CreateInternal< ::dmi::UploadDebugInfoStatus >(arena); |
| 4299 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 4300 | } // namespace protobuf |
| 4301 | } // namespace google |
| 4302 | |
| 4303 | // @@protoc_insertion_point(global_scope) |
| 4304 | #include <google/protobuf/port_undef.inc> |