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_; |
| 52 | } // namespace dmi |
| 53 | static void InitDefaultsSoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 54 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 55 | |
| 56 | { |
| 57 | void* ptr = &::dmi::_SoftwareVersionInformation_default_instance_; |
| 58 | new (ptr) ::dmi::SoftwareVersionInformation(); |
| 59 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 60 | } |
| 61 | ::dmi::SoftwareVersionInformation::InitAsDefaultInstance(); |
| 62 | } |
| 63 | |
| 64 | ::google::protobuf::internal::SCCInfo<1> scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 65 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 66 | &scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base,}}; |
| 67 | |
| 68 | static void InitDefaultsGetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 69 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 70 | |
| 71 | { |
| 72 | void* ptr = &::dmi::_GetSoftwareVersionInformationResponse_default_instance_; |
| 73 | new (ptr) ::dmi::GetSoftwareVersionInformationResponse(); |
| 74 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 75 | } |
| 76 | ::dmi::GetSoftwareVersionInformationResponse::InitAsDefaultInstance(); |
| 77 | } |
| 78 | |
| 79 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 80 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 81 | &scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base,}}; |
| 82 | |
| 83 | static void InitDefaultsDownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 84 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 85 | |
| 86 | { |
| 87 | void* ptr = &::dmi::_DownloadImageRequest_default_instance_; |
| 88 | new (ptr) ::dmi::DownloadImageRequest(); |
| 89 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 90 | } |
| 91 | ::dmi::DownloadImageRequest::InitAsDefaultInstance(); |
| 92 | } |
| 93 | |
| 94 | ::google::protobuf::internal::SCCInfo<2> scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 95 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 96 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 97 | &scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto.base,}}; |
| 98 | |
| 99 | static void InitDefaultsConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 100 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 101 | |
| 102 | { |
| 103 | void* ptr = &::dmi::_ConfigRequest_default_instance_; |
| 104 | new (ptr) ::dmi::ConfigRequest(); |
| 105 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 106 | } |
| 107 | ::dmi::ConfigRequest::InitAsDefaultInstance(); |
| 108 | } |
| 109 | |
| 110 | ::google::protobuf::internal::SCCInfo<1> scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 111 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 112 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 113 | |
| 114 | static void InitDefaultsConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 115 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 116 | |
| 117 | { |
| 118 | void* ptr = &::dmi::_ConfigResponse_default_instance_; |
| 119 | new (ptr) ::dmi::ConfigResponse(); |
| 120 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 121 | } |
| 122 | ::dmi::ConfigResponse::InitAsDefaultInstance(); |
| 123 | } |
| 124 | |
| 125 | ::google::protobuf::internal::SCCInfo<0> scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 126 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, {}}; |
| 127 | |
| 128 | static void InitDefaultsStartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 129 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 130 | |
| 131 | { |
| 132 | void* ptr = &::dmi::_StartupConfigInfoRequest_default_instance_; |
| 133 | new (ptr) ::dmi::StartupConfigInfoRequest(); |
| 134 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 135 | } |
| 136 | ::dmi::StartupConfigInfoRequest::InitAsDefaultInstance(); |
| 137 | } |
| 138 | |
| 139 | ::google::protobuf::internal::SCCInfo<1> scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 140 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto}, { |
| 141 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 142 | |
| 143 | static void InitDefaultsStartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 144 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 145 | |
| 146 | { |
| 147 | void* ptr = &::dmi::_StartupConfigInfoResponse_default_instance_; |
| 148 | new (ptr) ::dmi::StartupConfigInfoResponse(); |
| 149 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 150 | } |
| 151 | ::dmi::StartupConfigInfoResponse::InitAsDefaultInstance(); |
| 152 | } |
| 153 | |
| 154 | ::google::protobuf::internal::SCCInfo<0> scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto = |
| 155 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto}, {}}; |
| 156 | |
| 157 | void InitDefaults_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 158 | ::google::protobuf::internal::InitSCC(&scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 159 | ::google::protobuf::internal::InitSCC(&scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 160 | ::google::protobuf::internal::InitSCC(&scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 161 | ::google::protobuf::internal::InitSCC(&scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 162 | ::google::protobuf::internal::InitSCC(&scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 163 | ::google::protobuf::internal::InitSCC(&scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 164 | ::google::protobuf::internal::InitSCC(&scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 165 | } |
| 166 | |
| 167 | ::google::protobuf::Metadata file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[7]; |
| 168 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[3]; |
| 169 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto = nullptr; |
| 170 | |
| 171 | const ::google::protobuf::uint32 TableStruct_dmi_2fsw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 172 | ~0u, // no _has_bits_ |
| 173 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, _internal_metadata_), |
| 174 | ~0u, // no _extensions_ |
| 175 | ~0u, // no _oneof_case_ |
| 176 | ~0u, // no _weak_field_map_ |
| 177 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, active_versions_), |
| 178 | PROTOBUF_FIELD_OFFSET(::dmi::SoftwareVersionInformation, standby_versions_), |
| 179 | ~0u, // no _has_bits_ |
| 180 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, _internal_metadata_), |
| 181 | ~0u, // no _extensions_ |
| 182 | ~0u, // no _oneof_case_ |
| 183 | ~0u, // no _weak_field_map_ |
| 184 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, status_), |
| 185 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, reason_), |
| 186 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, info_), |
| 187 | PROTOBUF_FIELD_OFFSET(::dmi::GetSoftwareVersionInformationResponse, reason_detail_), |
| 188 | ~0u, // no _has_bits_ |
| 189 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, _internal_metadata_), |
| 190 | ~0u, // no _extensions_ |
| 191 | ~0u, // no _oneof_case_ |
| 192 | ~0u, // no _weak_field_map_ |
| 193 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, device_uuid_), |
| 194 | PROTOBUF_FIELD_OFFSET(::dmi::DownloadImageRequest, image_info_), |
| 195 | ~0u, // no _has_bits_ |
| 196 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, _internal_metadata_), |
| 197 | ~0u, // no _extensions_ |
| 198 | ~0u, // no _oneof_case_ |
| 199 | ~0u, // no _weak_field_map_ |
| 200 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, device_uuid_), |
| 201 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigRequest, config_url_), |
| 202 | ~0u, // no _has_bits_ |
| 203 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, _internal_metadata_), |
| 204 | ~0u, // no _extensions_ |
| 205 | ~0u, // no _oneof_case_ |
| 206 | ~0u, // no _weak_field_map_ |
| 207 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, status_), |
| 208 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, reason_), |
| 209 | PROTOBUF_FIELD_OFFSET(::dmi::ConfigResponse, reason_detail_), |
| 210 | ~0u, // no _has_bits_ |
| 211 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoRequest, _internal_metadata_), |
| 212 | ~0u, // no _extensions_ |
| 213 | ~0u, // no _oneof_case_ |
| 214 | ~0u, // no _weak_field_map_ |
| 215 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoRequest, device_uuid_), |
| 216 | ~0u, // no _has_bits_ |
| 217 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, _internal_metadata_), |
| 218 | ~0u, // no _extensions_ |
| 219 | ~0u, // no _oneof_case_ |
| 220 | ~0u, // no _weak_field_map_ |
| 221 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, status_), |
| 222 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, reason_), |
| 223 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, config_url_), |
| 224 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, version_), |
| 225 | PROTOBUF_FIELD_OFFSET(::dmi::StartupConfigInfoResponse, reason_detail_), |
| 226 | }; |
| 227 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 228 | { 0, -1, sizeof(::dmi::SoftwareVersionInformation)}, |
| 229 | { 7, -1, sizeof(::dmi::GetSoftwareVersionInformationResponse)}, |
| 230 | { 16, -1, sizeof(::dmi::DownloadImageRequest)}, |
| 231 | { 23, -1, sizeof(::dmi::ConfigRequest)}, |
| 232 | { 30, -1, sizeof(::dmi::ConfigResponse)}, |
| 233 | { 38, -1, sizeof(::dmi::StartupConfigInfoRequest)}, |
| 234 | { 44, -1, sizeof(::dmi::StartupConfigInfoResponse)}, |
| 235 | }; |
| 236 | |
| 237 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 238 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SoftwareVersionInformation_default_instance_), |
| 239 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetSoftwareVersionInformationResponse_default_instance_), |
| 240 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_DownloadImageRequest_default_instance_), |
| 241 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ConfigRequest_default_instance_), |
| 242 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ConfigResponse_default_instance_), |
| 243 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartupConfigInfoRequest_default_instance_), |
| 244 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartupConfigInfoResponse_default_instance_), |
| 245 | }; |
| 246 | |
| 247 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto = { |
| 248 | {}, AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, "dmi/sw_management_service.proto", schemas, |
| 249 | file_default_instances, TableStruct_dmi_2fsw_5fmanagement_5fservice_2eproto::offsets, |
| 250 | file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto, 7, file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, file_level_service_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto, |
| 251 | }; |
| 252 | |
| 253 | const char descriptor_table_protodef_dmi_2fsw_5fmanagement_5fservice_2eproto[] = |
| 254 | "\n\037dmi/sw_management_service.proto\022\003dmi\032\021" |
| 255 | "dmi/commons.proto\032\014dmi/hw.proto\032\022dmi/sw_" |
| 256 | "image.proto\"u\n\032SoftwareVersionInformatio" |
| 257 | "n\022*\n\017active_versions\030\001 \003(\0132\021.dmi.ImageVe" |
| 258 | "rsion\022+\n\020standby_versions\030\002 \003(\0132\021.dmi.Im" |
| 259 | "ageVersion\"\255\002\n%GetSoftwareVersionInforma" |
| 260 | "tionResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Statu" |
| 261 | "s\022A\n\006reason\030\002 \001(\01621.dmi.GetSoftwareVersi" |
| 262 | "onInformationResponse.Reason\022-\n\004info\030\003 \001" |
| 263 | "(\0132\037.dmi.SoftwareVersionInformation\022\025\n\rr" |
| 264 | "eason_detail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINE" |
| 265 | "D_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERN" |
| 266 | "AL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"a\n\024Do" |
| 267 | "wnloadImageRequest\022\036\n\013device_uuid\030\001 \001(\0132" |
| 268 | "\t.dmi.Uuid\022)\n\nimage_info\030\002 \001(\0132\025.dmi.Ima" |
| 269 | "geInformation\"C\n\rConfigRequest\022\036\n\013device" |
| 270 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022\022\n\nconfig_url\030\002 \001" |
| 271 | "(\t\"\243\002\n\016ConfigResponse\022\033\n\006status\030\001 \001(\0162\013." |
| 272 | "dmi.Status\022*\n\006reason\030\002 \001(\0162\032.dmi.ConfigR" |
| 273 | "esponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"\260\001" |
| 274 | "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOW" |
| 275 | "N_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\031\n\025ERROR_" |
| 276 | "FETCHING_CONFIG\020\003\022\022\n\016INVALID_CONFIG\020\004\022!\n" |
| 277 | "\035OPERATION_ALREADY_IN_PROGRESS\020\005\022\026\n\022DEVI" |
| 278 | "CE_UNREACHABLE\020\006\":\n\030StartupConfigInfoReq" |
| 279 | "uest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\"\213\002\n" |
| 280 | "\031StartupConfigInfoResponse\022\033\n\006status\030\001 \001" |
| 281 | "(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.St" |
| 282 | "artupConfigInfoResponse.Reason\022\022\n\nconfig" |
| 283 | "_url\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022\025\n\rreason_de" |
| 284 | "tail\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON" |
| 285 | "\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR" |
| 286 | "\020\002\022\026\n\022DEVICE_UNREACHABLE\020\0032\316\003\n\037NativeSof" |
| 287 | "twareManagementService\022Q\n\022GetSoftwareVer" |
| 288 | "sion\022\017.dmi.HardwareID\032*.dmi.GetSoftwareV" |
| 289 | "ersionInformationResponse\022>\n\rDownloadIma" |
| 290 | "ge\022\031.dmi.DownloadImageRequest\032\020.dmi.Imag" |
| 291 | "eStatus0\001\0224\n\rActivateImage\022\017.dmi.Hardwar" |
| 292 | "eID\032\020.dmi.ImageStatus0\001\022;\n\024RevertToStand" |
| 293 | "byImage\022\017.dmi.HardwareID\032\020.dmi.ImageStat" |
| 294 | "us0\001\022G\n\032UpdateStartupConfiguration\022\022.dmi" |
| 295 | ".ConfigRequest\032\023.dmi.ConfigResponse0\001\022\\\n" |
| 296 | "\033GetStartupConfigurationInfo\022\035.dmi.Start" |
| 297 | "upConfigInfoRequest\032\036.dmi.StartupConfigI" |
| 298 | "nfoResponseB;Z9github.com/opencord/devic" |
| 299 | "e-management-interface/v3/go/dmib\006proto3" |
| 300 | ; |
| 301 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fsw_5fmanagement_5fservice_2eproto = { |
| 302 | false, InitDefaults_dmi_2fsw_5fmanagement_5fservice_2eproto, |
| 303 | descriptor_table_protodef_dmi_2fsw_5fmanagement_5fservice_2eproto, |
| 304 | "dmi/sw_management_service.proto", &assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto, 1840, |
| 305 | }; |
| 306 | |
| 307 | void AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto() { |
| 308 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 309 | { |
| 310 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 311 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 312 | ::AddDescriptors_dmi_2fsw_5fimage_2eproto, |
| 313 | }; |
| 314 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fsw_5fmanagement_5fservice_2eproto, deps, 3); |
| 315 | } |
| 316 | |
| 317 | // Force running AddDescriptors() at dynamic initialization time. |
| 318 | static bool dynamic_init_dummy_dmi_2fsw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fsw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 319 | namespace dmi { |
| 320 | const ::google::protobuf::EnumDescriptor* GetSoftwareVersionInformationResponse_Reason_descriptor() { |
| 321 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 322 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[0]; |
| 323 | } |
| 324 | bool GetSoftwareVersionInformationResponse_Reason_IsValid(int value) { |
| 325 | switch (value) { |
| 326 | case 0: |
| 327 | case 1: |
| 328 | case 2: |
| 329 | case 3: |
| 330 | return true; |
| 331 | default: |
| 332 | return false; |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 337 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::UNDEFINED_REASON; |
| 338 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::UNKNOWN_DEVICE; |
| 339 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::INTERNAL_ERROR; |
| 340 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::DEVICE_UNREACHABLE; |
| 341 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::Reason_MIN; |
| 342 | const GetSoftwareVersionInformationResponse_Reason GetSoftwareVersionInformationResponse::Reason_MAX; |
| 343 | const int GetSoftwareVersionInformationResponse::Reason_ARRAYSIZE; |
| 344 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 345 | const ::google::protobuf::EnumDescriptor* ConfigResponse_Reason_descriptor() { |
| 346 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 347 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[1]; |
| 348 | } |
| 349 | bool ConfigResponse_Reason_IsValid(int value) { |
| 350 | switch (value) { |
| 351 | case 0: |
| 352 | case 1: |
| 353 | case 2: |
| 354 | case 3: |
| 355 | case 4: |
| 356 | case 5: |
| 357 | case 6: |
| 358 | return true; |
| 359 | default: |
| 360 | return false; |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 365 | const ConfigResponse_Reason ConfigResponse::UNDEFINED_REASON; |
| 366 | const ConfigResponse_Reason ConfigResponse::UNKNOWN_DEVICE; |
| 367 | const ConfigResponse_Reason ConfigResponse::INTERNAL_ERROR; |
| 368 | const ConfigResponse_Reason ConfigResponse::ERROR_FETCHING_CONFIG; |
| 369 | const ConfigResponse_Reason ConfigResponse::INVALID_CONFIG; |
| 370 | const ConfigResponse_Reason ConfigResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 371 | const ConfigResponse_Reason ConfigResponse::DEVICE_UNREACHABLE; |
| 372 | const ConfigResponse_Reason ConfigResponse::Reason_MIN; |
| 373 | const ConfigResponse_Reason ConfigResponse::Reason_MAX; |
| 374 | const int ConfigResponse::Reason_ARRAYSIZE; |
| 375 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 376 | const ::google::protobuf::EnumDescriptor* StartupConfigInfoResponse_Reason_descriptor() { |
| 377 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 378 | return file_level_enum_descriptors_dmi_2fsw_5fmanagement_5fservice_2eproto[2]; |
| 379 | } |
| 380 | bool StartupConfigInfoResponse_Reason_IsValid(int value) { |
| 381 | switch (value) { |
| 382 | case 0: |
| 383 | case 1: |
| 384 | case 2: |
| 385 | case 3: |
| 386 | return true; |
| 387 | default: |
| 388 | return false; |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 393 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::UNDEFINED_REASON; |
| 394 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::UNKNOWN_DEVICE; |
| 395 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::INTERNAL_ERROR; |
| 396 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::DEVICE_UNREACHABLE; |
| 397 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::Reason_MIN; |
| 398 | const StartupConfigInfoResponse_Reason StartupConfigInfoResponse::Reason_MAX; |
| 399 | const int StartupConfigInfoResponse::Reason_ARRAYSIZE; |
| 400 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 401 | |
| 402 | // =================================================================== |
| 403 | |
| 404 | void SoftwareVersionInformation::InitAsDefaultInstance() { |
| 405 | } |
| 406 | class SoftwareVersionInformation::HasBitSetters { |
| 407 | public: |
| 408 | }; |
| 409 | |
| 410 | void SoftwareVersionInformation::clear_active_versions() { |
| 411 | active_versions_.Clear(); |
| 412 | } |
| 413 | void SoftwareVersionInformation::clear_standby_versions() { |
| 414 | standby_versions_.Clear(); |
| 415 | } |
| 416 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 417 | const int SoftwareVersionInformation::kActiveVersionsFieldNumber; |
| 418 | const int SoftwareVersionInformation::kStandbyVersionsFieldNumber; |
| 419 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 420 | |
| 421 | SoftwareVersionInformation::SoftwareVersionInformation() |
| 422 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 423 | SharedCtor(); |
| 424 | // @@protoc_insertion_point(constructor:dmi.SoftwareVersionInformation) |
| 425 | } |
| 426 | SoftwareVersionInformation::SoftwareVersionInformation(const SoftwareVersionInformation& from) |
| 427 | : ::google::protobuf::Message(), |
| 428 | _internal_metadata_(nullptr), |
| 429 | active_versions_(from.active_versions_), |
| 430 | standby_versions_(from.standby_versions_) { |
| 431 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 432 | // @@protoc_insertion_point(copy_constructor:dmi.SoftwareVersionInformation) |
| 433 | } |
| 434 | |
| 435 | void SoftwareVersionInformation::SharedCtor() { |
| 436 | ::google::protobuf::internal::InitSCC( |
| 437 | &scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 438 | } |
| 439 | |
| 440 | SoftwareVersionInformation::~SoftwareVersionInformation() { |
| 441 | // @@protoc_insertion_point(destructor:dmi.SoftwareVersionInformation) |
| 442 | SharedDtor(); |
| 443 | } |
| 444 | |
| 445 | void SoftwareVersionInformation::SharedDtor() { |
| 446 | } |
| 447 | |
| 448 | void SoftwareVersionInformation::SetCachedSize(int size) const { |
| 449 | _cached_size_.Set(size); |
| 450 | } |
| 451 | const SoftwareVersionInformation& SoftwareVersionInformation::default_instance() { |
| 452 | ::google::protobuf::internal::InitSCC(&::scc_info_SoftwareVersionInformation_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 453 | return *internal_default_instance(); |
| 454 | } |
| 455 | |
| 456 | |
| 457 | void SoftwareVersionInformation::Clear() { |
| 458 | // @@protoc_insertion_point(message_clear_start:dmi.SoftwareVersionInformation) |
| 459 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 460 | // Prevent compiler warnings about cached_has_bits being unused |
| 461 | (void) cached_has_bits; |
| 462 | |
| 463 | active_versions_.Clear(); |
| 464 | standby_versions_.Clear(); |
| 465 | _internal_metadata_.Clear(); |
| 466 | } |
| 467 | |
| 468 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 469 | const char* SoftwareVersionInformation::_InternalParse(const char* begin, const char* end, void* object, |
| 470 | ::google::protobuf::internal::ParseContext* ctx) { |
| 471 | auto msg = static_cast<SoftwareVersionInformation*>(object); |
| 472 | ::google::protobuf::int32 size; (void)size; |
| 473 | int depth; (void)depth; |
| 474 | ::google::protobuf::uint32 tag; |
| 475 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 476 | auto ptr = begin; |
| 477 | while (ptr < end) { |
| 478 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 479 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 480 | switch (tag >> 3) { |
| 481 | // repeated .dmi.ImageVersion active_versions = 1; |
| 482 | case 1: { |
| 483 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 484 | do { |
| 485 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 486 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 487 | parser_till_end = ::dmi::ImageVersion::_InternalParse; |
| 488 | object = msg->add_active_versions(); |
| 489 | if (size > end - ptr) goto len_delim_till_end; |
| 490 | ptr += size; |
| 491 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 492 | {parser_till_end, object}, ptr - size, ptr)); |
| 493 | if (ptr >= end) break; |
| 494 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); |
| 495 | break; |
| 496 | } |
| 497 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 498 | case 2: { |
| 499 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 500 | do { |
| 501 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 502 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 503 | parser_till_end = ::dmi::ImageVersion::_InternalParse; |
| 504 | object = msg->add_standby_versions(); |
| 505 | if (size > end - ptr) goto len_delim_till_end; |
| 506 | ptr += size; |
| 507 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 508 | {parser_till_end, object}, ptr - size, ptr)); |
| 509 | if (ptr >= end) break; |
| 510 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 511 | break; |
| 512 | } |
| 513 | default: { |
| 514 | handle_unusual: |
| 515 | if ((tag & 7) == 4 || tag == 0) { |
| 516 | ctx->EndGroup(tag); |
| 517 | return ptr; |
| 518 | } |
| 519 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 520 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 521 | ptr = res.first; |
| 522 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 523 | if (res.second) return ptr; |
| 524 | } |
| 525 | } // switch |
| 526 | } // while |
| 527 | return ptr; |
| 528 | len_delim_till_end: |
| 529 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 530 | {parser_till_end, object}, size); |
| 531 | } |
| 532 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 533 | bool SoftwareVersionInformation::MergePartialFromCodedStream( |
| 534 | ::google::protobuf::io::CodedInputStream* input) { |
| 535 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 536 | ::google::protobuf::uint32 tag; |
| 537 | // @@protoc_insertion_point(parse_start:dmi.SoftwareVersionInformation) |
| 538 | for (;;) { |
| 539 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 540 | tag = p.first; |
| 541 | if (!p.second) goto handle_unusual; |
| 542 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 543 | // repeated .dmi.ImageVersion active_versions = 1; |
| 544 | case 1: { |
| 545 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 546 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 547 | input, add_active_versions())); |
| 548 | } else { |
| 549 | goto handle_unusual; |
| 550 | } |
| 551 | break; |
| 552 | } |
| 553 | |
| 554 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 555 | case 2: { |
| 556 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 557 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 558 | input, add_standby_versions())); |
| 559 | } else { |
| 560 | goto handle_unusual; |
| 561 | } |
| 562 | break; |
| 563 | } |
| 564 | |
| 565 | default: { |
| 566 | handle_unusual: |
| 567 | if (tag == 0) { |
| 568 | goto success; |
| 569 | } |
| 570 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 571 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 572 | break; |
| 573 | } |
| 574 | } |
| 575 | } |
| 576 | success: |
| 577 | // @@protoc_insertion_point(parse_success:dmi.SoftwareVersionInformation) |
| 578 | return true; |
| 579 | failure: |
| 580 | // @@protoc_insertion_point(parse_failure:dmi.SoftwareVersionInformation) |
| 581 | return false; |
| 582 | #undef DO_ |
| 583 | } |
| 584 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 585 | |
| 586 | void SoftwareVersionInformation::SerializeWithCachedSizes( |
| 587 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 588 | // @@protoc_insertion_point(serialize_start:dmi.SoftwareVersionInformation) |
| 589 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 590 | (void) cached_has_bits; |
| 591 | |
| 592 | // repeated .dmi.ImageVersion active_versions = 1; |
| 593 | for (unsigned int i = 0, |
| 594 | n = static_cast<unsigned int>(this->active_versions_size()); i < n; i++) { |
| 595 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 596 | 1, |
| 597 | this->active_versions(static_cast<int>(i)), |
| 598 | output); |
| 599 | } |
| 600 | |
| 601 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 602 | for (unsigned int i = 0, |
| 603 | n = static_cast<unsigned int>(this->standby_versions_size()); i < n; i++) { |
| 604 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 605 | 2, |
| 606 | this->standby_versions(static_cast<int>(i)), |
| 607 | output); |
| 608 | } |
| 609 | |
| 610 | if (_internal_metadata_.have_unknown_fields()) { |
| 611 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 612 | _internal_metadata_.unknown_fields(), output); |
| 613 | } |
| 614 | // @@protoc_insertion_point(serialize_end:dmi.SoftwareVersionInformation) |
| 615 | } |
| 616 | |
| 617 | ::google::protobuf::uint8* SoftwareVersionInformation::InternalSerializeWithCachedSizesToArray( |
| 618 | ::google::protobuf::uint8* target) const { |
| 619 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SoftwareVersionInformation) |
| 620 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 621 | (void) cached_has_bits; |
| 622 | |
| 623 | // repeated .dmi.ImageVersion active_versions = 1; |
| 624 | for (unsigned int i = 0, |
| 625 | n = static_cast<unsigned int>(this->active_versions_size()); i < n; i++) { |
| 626 | target = ::google::protobuf::internal::WireFormatLite:: |
| 627 | InternalWriteMessageToArray( |
| 628 | 1, this->active_versions(static_cast<int>(i)), target); |
| 629 | } |
| 630 | |
| 631 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 632 | for (unsigned int i = 0, |
| 633 | n = static_cast<unsigned int>(this->standby_versions_size()); i < n; i++) { |
| 634 | target = ::google::protobuf::internal::WireFormatLite:: |
| 635 | InternalWriteMessageToArray( |
| 636 | 2, this->standby_versions(static_cast<int>(i)), target); |
| 637 | } |
| 638 | |
| 639 | if (_internal_metadata_.have_unknown_fields()) { |
| 640 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 641 | _internal_metadata_.unknown_fields(), target); |
| 642 | } |
| 643 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SoftwareVersionInformation) |
| 644 | return target; |
| 645 | } |
| 646 | |
| 647 | size_t SoftwareVersionInformation::ByteSizeLong() const { |
| 648 | // @@protoc_insertion_point(message_byte_size_start:dmi.SoftwareVersionInformation) |
| 649 | size_t total_size = 0; |
| 650 | |
| 651 | if (_internal_metadata_.have_unknown_fields()) { |
| 652 | total_size += |
| 653 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 654 | _internal_metadata_.unknown_fields()); |
| 655 | } |
| 656 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 657 | // Prevent compiler warnings about cached_has_bits being unused |
| 658 | (void) cached_has_bits; |
| 659 | |
| 660 | // repeated .dmi.ImageVersion active_versions = 1; |
| 661 | { |
| 662 | unsigned int count = static_cast<unsigned int>(this->active_versions_size()); |
| 663 | total_size += 1UL * count; |
| 664 | for (unsigned int i = 0; i < count; i++) { |
| 665 | total_size += |
| 666 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 667 | this->active_versions(static_cast<int>(i))); |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | // repeated .dmi.ImageVersion standby_versions = 2; |
| 672 | { |
| 673 | unsigned int count = static_cast<unsigned int>(this->standby_versions_size()); |
| 674 | total_size += 1UL * count; |
| 675 | for (unsigned int i = 0; i < count; i++) { |
| 676 | total_size += |
| 677 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 678 | this->standby_versions(static_cast<int>(i))); |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 683 | SetCachedSize(cached_size); |
| 684 | return total_size; |
| 685 | } |
| 686 | |
| 687 | void SoftwareVersionInformation::MergeFrom(const ::google::protobuf::Message& from) { |
| 688 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SoftwareVersionInformation) |
| 689 | GOOGLE_DCHECK_NE(&from, this); |
| 690 | const SoftwareVersionInformation* source = |
| 691 | ::google::protobuf::DynamicCastToGenerated<SoftwareVersionInformation>( |
| 692 | &from); |
| 693 | if (source == nullptr) { |
| 694 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SoftwareVersionInformation) |
| 695 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 696 | } else { |
| 697 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SoftwareVersionInformation) |
| 698 | MergeFrom(*source); |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | void SoftwareVersionInformation::MergeFrom(const SoftwareVersionInformation& from) { |
| 703 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SoftwareVersionInformation) |
| 704 | GOOGLE_DCHECK_NE(&from, this); |
| 705 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 706 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 707 | (void) cached_has_bits; |
| 708 | |
| 709 | active_versions_.MergeFrom(from.active_versions_); |
| 710 | standby_versions_.MergeFrom(from.standby_versions_); |
| 711 | } |
| 712 | |
| 713 | void SoftwareVersionInformation::CopyFrom(const ::google::protobuf::Message& from) { |
| 714 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SoftwareVersionInformation) |
| 715 | if (&from == this) return; |
| 716 | Clear(); |
| 717 | MergeFrom(from); |
| 718 | } |
| 719 | |
| 720 | void SoftwareVersionInformation::CopyFrom(const SoftwareVersionInformation& from) { |
| 721 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SoftwareVersionInformation) |
| 722 | if (&from == this) return; |
| 723 | Clear(); |
| 724 | MergeFrom(from); |
| 725 | } |
| 726 | |
| 727 | bool SoftwareVersionInformation::IsInitialized() const { |
| 728 | return true; |
| 729 | } |
| 730 | |
| 731 | void SoftwareVersionInformation::Swap(SoftwareVersionInformation* other) { |
| 732 | if (other == this) return; |
| 733 | InternalSwap(other); |
| 734 | } |
| 735 | void SoftwareVersionInformation::InternalSwap(SoftwareVersionInformation* other) { |
| 736 | using std::swap; |
| 737 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 738 | CastToBase(&active_versions_)->InternalSwap(CastToBase(&other->active_versions_)); |
| 739 | CastToBase(&standby_versions_)->InternalSwap(CastToBase(&other->standby_versions_)); |
| 740 | } |
| 741 | |
| 742 | ::google::protobuf::Metadata SoftwareVersionInformation::GetMetadata() const { |
| 743 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 744 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 745 | } |
| 746 | |
| 747 | |
| 748 | // =================================================================== |
| 749 | |
| 750 | void GetSoftwareVersionInformationResponse::InitAsDefaultInstance() { |
| 751 | ::dmi::_GetSoftwareVersionInformationResponse_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::SoftwareVersionInformation*>( |
| 752 | ::dmi::SoftwareVersionInformation::internal_default_instance()); |
| 753 | } |
| 754 | class GetSoftwareVersionInformationResponse::HasBitSetters { |
| 755 | public: |
| 756 | static const ::dmi::SoftwareVersionInformation& info(const GetSoftwareVersionInformationResponse* msg); |
| 757 | }; |
| 758 | |
| 759 | const ::dmi::SoftwareVersionInformation& |
| 760 | GetSoftwareVersionInformationResponse::HasBitSetters::info(const GetSoftwareVersionInformationResponse* msg) { |
| 761 | return *msg->info_; |
| 762 | } |
| 763 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 764 | const int GetSoftwareVersionInformationResponse::kStatusFieldNumber; |
| 765 | const int GetSoftwareVersionInformationResponse::kReasonFieldNumber; |
| 766 | const int GetSoftwareVersionInformationResponse::kInfoFieldNumber; |
| 767 | const int GetSoftwareVersionInformationResponse::kReasonDetailFieldNumber; |
| 768 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 769 | |
| 770 | GetSoftwareVersionInformationResponse::GetSoftwareVersionInformationResponse() |
| 771 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 772 | SharedCtor(); |
| 773 | // @@protoc_insertion_point(constructor:dmi.GetSoftwareVersionInformationResponse) |
| 774 | } |
| 775 | GetSoftwareVersionInformationResponse::GetSoftwareVersionInformationResponse(const GetSoftwareVersionInformationResponse& from) |
| 776 | : ::google::protobuf::Message(), |
| 777 | _internal_metadata_(nullptr) { |
| 778 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 779 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 780 | if (from.reason_detail().size() > 0) { |
| 781 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 782 | } |
| 783 | if (from.has_info()) { |
| 784 | info_ = new ::dmi::SoftwareVersionInformation(*from.info_); |
| 785 | } else { |
| 786 | info_ = nullptr; |
| 787 | } |
| 788 | ::memcpy(&status_, &from.status_, |
| 789 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 790 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 791 | // @@protoc_insertion_point(copy_constructor:dmi.GetSoftwareVersionInformationResponse) |
| 792 | } |
| 793 | |
| 794 | void GetSoftwareVersionInformationResponse::SharedCtor() { |
| 795 | ::google::protobuf::internal::InitSCC( |
| 796 | &scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 797 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 798 | ::memset(&info_, 0, static_cast<size_t>( |
| 799 | reinterpret_cast<char*>(&reason_) - |
| 800 | reinterpret_cast<char*>(&info_)) + sizeof(reason_)); |
| 801 | } |
| 802 | |
| 803 | GetSoftwareVersionInformationResponse::~GetSoftwareVersionInformationResponse() { |
| 804 | // @@protoc_insertion_point(destructor:dmi.GetSoftwareVersionInformationResponse) |
| 805 | SharedDtor(); |
| 806 | } |
| 807 | |
| 808 | void GetSoftwareVersionInformationResponse::SharedDtor() { |
| 809 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 810 | if (this != internal_default_instance()) delete info_; |
| 811 | } |
| 812 | |
| 813 | void GetSoftwareVersionInformationResponse::SetCachedSize(int size) const { |
| 814 | _cached_size_.Set(size); |
| 815 | } |
| 816 | const GetSoftwareVersionInformationResponse& GetSoftwareVersionInformationResponse::default_instance() { |
| 817 | ::google::protobuf::internal::InitSCC(&::scc_info_GetSoftwareVersionInformationResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 818 | return *internal_default_instance(); |
| 819 | } |
| 820 | |
| 821 | |
| 822 | void GetSoftwareVersionInformationResponse::Clear() { |
| 823 | // @@protoc_insertion_point(message_clear_start:dmi.GetSoftwareVersionInformationResponse) |
| 824 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 825 | // Prevent compiler warnings about cached_has_bits being unused |
| 826 | (void) cached_has_bits; |
| 827 | |
| 828 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 829 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 830 | delete info_; |
| 831 | } |
| 832 | info_ = nullptr; |
| 833 | ::memset(&status_, 0, static_cast<size_t>( |
| 834 | reinterpret_cast<char*>(&reason_) - |
| 835 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 836 | _internal_metadata_.Clear(); |
| 837 | } |
| 838 | |
| 839 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 840 | const char* GetSoftwareVersionInformationResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 841 | ::google::protobuf::internal::ParseContext* ctx) { |
| 842 | auto msg = static_cast<GetSoftwareVersionInformationResponse*>(object); |
| 843 | ::google::protobuf::int32 size; (void)size; |
| 844 | int depth; (void)depth; |
| 845 | ::google::protobuf::uint32 tag; |
| 846 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 847 | auto ptr = begin; |
| 848 | while (ptr < end) { |
| 849 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 850 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 851 | switch (tag >> 3) { |
| 852 | // .dmi.Status status = 1; |
| 853 | case 1: { |
| 854 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 855 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 856 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 857 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 858 | break; |
| 859 | } |
| 860 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 861 | case 2: { |
| 862 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 863 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 864 | msg->set_reason(static_cast<::dmi::GetSoftwareVersionInformationResponse_Reason>(val)); |
| 865 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 866 | break; |
| 867 | } |
| 868 | // .dmi.SoftwareVersionInformation info = 3; |
| 869 | case 3: { |
| 870 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 871 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 872 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 873 | parser_till_end = ::dmi::SoftwareVersionInformation::_InternalParse; |
| 874 | object = msg->mutable_info(); |
| 875 | if (size > end - ptr) goto len_delim_till_end; |
| 876 | ptr += size; |
| 877 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 878 | {parser_till_end, object}, ptr - size, ptr)); |
| 879 | break; |
| 880 | } |
| 881 | // string reason_detail = 4; |
| 882 | case 4: { |
| 883 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 884 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 885 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 886 | ctx->extra_parse_data().SetFieldName("dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 887 | object = msg->mutable_reason_detail(); |
| 888 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 889 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 890 | goto string_till_end; |
| 891 | } |
| 892 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 893 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 894 | ptr += size; |
| 895 | break; |
| 896 | } |
| 897 | default: { |
| 898 | handle_unusual: |
| 899 | if ((tag & 7) == 4 || tag == 0) { |
| 900 | ctx->EndGroup(tag); |
| 901 | return ptr; |
| 902 | } |
| 903 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 904 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 905 | ptr = res.first; |
| 906 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 907 | if (res.second) return ptr; |
| 908 | } |
| 909 | } // switch |
| 910 | } // while |
| 911 | return ptr; |
| 912 | string_till_end: |
| 913 | static_cast<::std::string*>(object)->clear(); |
| 914 | static_cast<::std::string*>(object)->reserve(size); |
| 915 | goto len_delim_till_end; |
| 916 | len_delim_till_end: |
| 917 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 918 | {parser_till_end, object}, size); |
| 919 | } |
| 920 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 921 | bool GetSoftwareVersionInformationResponse::MergePartialFromCodedStream( |
| 922 | ::google::protobuf::io::CodedInputStream* input) { |
| 923 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 924 | ::google::protobuf::uint32 tag; |
| 925 | // @@protoc_insertion_point(parse_start:dmi.GetSoftwareVersionInformationResponse) |
| 926 | for (;;) { |
| 927 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 928 | tag = p.first; |
| 929 | if (!p.second) goto handle_unusual; |
| 930 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 931 | // .dmi.Status status = 1; |
| 932 | case 1: { |
| 933 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 934 | int value = 0; |
| 935 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 936 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 937 | input, &value))); |
| 938 | set_status(static_cast< ::dmi::Status >(value)); |
| 939 | } else { |
| 940 | goto handle_unusual; |
| 941 | } |
| 942 | break; |
| 943 | } |
| 944 | |
| 945 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 946 | case 2: { |
| 947 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 948 | int value = 0; |
| 949 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 950 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 951 | input, &value))); |
| 952 | set_reason(static_cast< ::dmi::GetSoftwareVersionInformationResponse_Reason >(value)); |
| 953 | } else { |
| 954 | goto handle_unusual; |
| 955 | } |
| 956 | break; |
| 957 | } |
| 958 | |
| 959 | // .dmi.SoftwareVersionInformation info = 3; |
| 960 | case 3: { |
| 961 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 962 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 963 | input, mutable_info())); |
| 964 | } else { |
| 965 | goto handle_unusual; |
| 966 | } |
| 967 | break; |
| 968 | } |
| 969 | |
| 970 | // string reason_detail = 4; |
| 971 | case 4: { |
| 972 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 973 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 974 | input, this->mutable_reason_detail())); |
| 975 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 976 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 977 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 978 | "dmi.GetSoftwareVersionInformationResponse.reason_detail")); |
| 979 | } else { |
| 980 | goto handle_unusual; |
| 981 | } |
| 982 | break; |
| 983 | } |
| 984 | |
| 985 | default: { |
| 986 | handle_unusual: |
| 987 | if (tag == 0) { |
| 988 | goto success; |
| 989 | } |
| 990 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 991 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 992 | break; |
| 993 | } |
| 994 | } |
| 995 | } |
| 996 | success: |
| 997 | // @@protoc_insertion_point(parse_success:dmi.GetSoftwareVersionInformationResponse) |
| 998 | return true; |
| 999 | failure: |
| 1000 | // @@protoc_insertion_point(parse_failure:dmi.GetSoftwareVersionInformationResponse) |
| 1001 | return false; |
| 1002 | #undef DO_ |
| 1003 | } |
| 1004 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1005 | |
| 1006 | void GetSoftwareVersionInformationResponse::SerializeWithCachedSizes( |
| 1007 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1008 | // @@protoc_insertion_point(serialize_start:dmi.GetSoftwareVersionInformationResponse) |
| 1009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1010 | (void) cached_has_bits; |
| 1011 | |
| 1012 | // .dmi.Status status = 1; |
| 1013 | if (this->status() != 0) { |
| 1014 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1015 | 1, this->status(), output); |
| 1016 | } |
| 1017 | |
| 1018 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1019 | if (this->reason() != 0) { |
| 1020 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1021 | 2, this->reason(), output); |
| 1022 | } |
| 1023 | |
| 1024 | // .dmi.SoftwareVersionInformation info = 3; |
| 1025 | if (this->has_info()) { |
| 1026 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1027 | 3, HasBitSetters::info(this), output); |
| 1028 | } |
| 1029 | |
| 1030 | // string reason_detail = 4; |
| 1031 | if (this->reason_detail().size() > 0) { |
| 1032 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1033 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1034 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1035 | "dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 1036 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1037 | 4, this->reason_detail(), output); |
| 1038 | } |
| 1039 | |
| 1040 | if (_internal_metadata_.have_unknown_fields()) { |
| 1041 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1042 | _internal_metadata_.unknown_fields(), output); |
| 1043 | } |
| 1044 | // @@protoc_insertion_point(serialize_end:dmi.GetSoftwareVersionInformationResponse) |
| 1045 | } |
| 1046 | |
| 1047 | ::google::protobuf::uint8* GetSoftwareVersionInformationResponse::InternalSerializeWithCachedSizesToArray( |
| 1048 | ::google::protobuf::uint8* target) const { |
| 1049 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetSoftwareVersionInformationResponse) |
| 1050 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1051 | (void) cached_has_bits; |
| 1052 | |
| 1053 | // .dmi.Status status = 1; |
| 1054 | if (this->status() != 0) { |
| 1055 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1056 | 1, this->status(), target); |
| 1057 | } |
| 1058 | |
| 1059 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1060 | if (this->reason() != 0) { |
| 1061 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1062 | 2, this->reason(), target); |
| 1063 | } |
| 1064 | |
| 1065 | // .dmi.SoftwareVersionInformation info = 3; |
| 1066 | if (this->has_info()) { |
| 1067 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1068 | InternalWriteMessageToArray( |
| 1069 | 3, HasBitSetters::info(this), target); |
| 1070 | } |
| 1071 | |
| 1072 | // string reason_detail = 4; |
| 1073 | if (this->reason_detail().size() > 0) { |
| 1074 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1075 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1076 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1077 | "dmi.GetSoftwareVersionInformationResponse.reason_detail"); |
| 1078 | target = |
| 1079 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1080 | 4, this->reason_detail(), target); |
| 1081 | } |
| 1082 | |
| 1083 | if (_internal_metadata_.have_unknown_fields()) { |
| 1084 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1085 | _internal_metadata_.unknown_fields(), target); |
| 1086 | } |
| 1087 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetSoftwareVersionInformationResponse) |
| 1088 | return target; |
| 1089 | } |
| 1090 | |
| 1091 | size_t GetSoftwareVersionInformationResponse::ByteSizeLong() const { |
| 1092 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetSoftwareVersionInformationResponse) |
| 1093 | size_t total_size = 0; |
| 1094 | |
| 1095 | if (_internal_metadata_.have_unknown_fields()) { |
| 1096 | total_size += |
| 1097 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1098 | _internal_metadata_.unknown_fields()); |
| 1099 | } |
| 1100 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1101 | // Prevent compiler warnings about cached_has_bits being unused |
| 1102 | (void) cached_has_bits; |
| 1103 | |
| 1104 | // string reason_detail = 4; |
| 1105 | if (this->reason_detail().size() > 0) { |
| 1106 | total_size += 1 + |
| 1107 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1108 | this->reason_detail()); |
| 1109 | } |
| 1110 | |
| 1111 | // .dmi.SoftwareVersionInformation info = 3; |
| 1112 | if (this->has_info()) { |
| 1113 | total_size += 1 + |
| 1114 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1115 | *info_); |
| 1116 | } |
| 1117 | |
| 1118 | // .dmi.Status status = 1; |
| 1119 | if (this->status() != 0) { |
| 1120 | total_size += 1 + |
| 1121 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 1122 | } |
| 1123 | |
| 1124 | // .dmi.GetSoftwareVersionInformationResponse.Reason reason = 2; |
| 1125 | if (this->reason() != 0) { |
| 1126 | total_size += 1 + |
| 1127 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 1128 | } |
| 1129 | |
| 1130 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1131 | SetCachedSize(cached_size); |
| 1132 | return total_size; |
| 1133 | } |
| 1134 | |
| 1135 | void GetSoftwareVersionInformationResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 1136 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1137 | GOOGLE_DCHECK_NE(&from, this); |
| 1138 | const GetSoftwareVersionInformationResponse* source = |
| 1139 | ::google::protobuf::DynamicCastToGenerated<GetSoftwareVersionInformationResponse>( |
| 1140 | &from); |
| 1141 | if (source == nullptr) { |
| 1142 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetSoftwareVersionInformationResponse) |
| 1143 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1144 | } else { |
| 1145 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetSoftwareVersionInformationResponse) |
| 1146 | MergeFrom(*source); |
| 1147 | } |
| 1148 | } |
| 1149 | |
| 1150 | void GetSoftwareVersionInformationResponse::MergeFrom(const GetSoftwareVersionInformationResponse& from) { |
| 1151 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1152 | GOOGLE_DCHECK_NE(&from, this); |
| 1153 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1154 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1155 | (void) cached_has_bits; |
| 1156 | |
| 1157 | if (from.reason_detail().size() > 0) { |
| 1158 | |
| 1159 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1160 | } |
| 1161 | if (from.has_info()) { |
| 1162 | mutable_info()->::dmi::SoftwareVersionInformation::MergeFrom(from.info()); |
| 1163 | } |
| 1164 | if (from.status() != 0) { |
| 1165 | set_status(from.status()); |
| 1166 | } |
| 1167 | if (from.reason() != 0) { |
| 1168 | set_reason(from.reason()); |
| 1169 | } |
| 1170 | } |
| 1171 | |
| 1172 | void GetSoftwareVersionInformationResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 1173 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1174 | if (&from == this) return; |
| 1175 | Clear(); |
| 1176 | MergeFrom(from); |
| 1177 | } |
| 1178 | |
| 1179 | void GetSoftwareVersionInformationResponse::CopyFrom(const GetSoftwareVersionInformationResponse& from) { |
| 1180 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetSoftwareVersionInformationResponse) |
| 1181 | if (&from == this) return; |
| 1182 | Clear(); |
| 1183 | MergeFrom(from); |
| 1184 | } |
| 1185 | |
| 1186 | bool GetSoftwareVersionInformationResponse::IsInitialized() const { |
| 1187 | return true; |
| 1188 | } |
| 1189 | |
| 1190 | void GetSoftwareVersionInformationResponse::Swap(GetSoftwareVersionInformationResponse* other) { |
| 1191 | if (other == this) return; |
| 1192 | InternalSwap(other); |
| 1193 | } |
| 1194 | void GetSoftwareVersionInformationResponse::InternalSwap(GetSoftwareVersionInformationResponse* other) { |
| 1195 | using std::swap; |
| 1196 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1197 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1198 | GetArenaNoVirtual()); |
| 1199 | swap(info_, other->info_); |
| 1200 | swap(status_, other->status_); |
| 1201 | swap(reason_, other->reason_); |
| 1202 | } |
| 1203 | |
| 1204 | ::google::protobuf::Metadata GetSoftwareVersionInformationResponse::GetMetadata() const { |
| 1205 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 1206 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1207 | } |
| 1208 | |
| 1209 | |
| 1210 | // =================================================================== |
| 1211 | |
| 1212 | void DownloadImageRequest::InitAsDefaultInstance() { |
| 1213 | ::dmi::_DownloadImageRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1214 | ::dmi::Uuid::internal_default_instance()); |
| 1215 | ::dmi::_DownloadImageRequest_default_instance_._instance.get_mutable()->image_info_ = const_cast< ::dmi::ImageInformation*>( |
| 1216 | ::dmi::ImageInformation::internal_default_instance()); |
| 1217 | } |
| 1218 | class DownloadImageRequest::HasBitSetters { |
| 1219 | public: |
| 1220 | static const ::dmi::Uuid& device_uuid(const DownloadImageRequest* msg); |
| 1221 | static const ::dmi::ImageInformation& image_info(const DownloadImageRequest* msg); |
| 1222 | }; |
| 1223 | |
| 1224 | const ::dmi::Uuid& |
| 1225 | DownloadImageRequest::HasBitSetters::device_uuid(const DownloadImageRequest* msg) { |
| 1226 | return *msg->device_uuid_; |
| 1227 | } |
| 1228 | const ::dmi::ImageInformation& |
| 1229 | DownloadImageRequest::HasBitSetters::image_info(const DownloadImageRequest* msg) { |
| 1230 | return *msg->image_info_; |
| 1231 | } |
| 1232 | void DownloadImageRequest::clear_device_uuid() { |
| 1233 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1234 | delete device_uuid_; |
| 1235 | } |
| 1236 | device_uuid_ = nullptr; |
| 1237 | } |
| 1238 | void DownloadImageRequest::clear_image_info() { |
| 1239 | if (GetArenaNoVirtual() == nullptr && image_info_ != nullptr) { |
| 1240 | delete image_info_; |
| 1241 | } |
| 1242 | image_info_ = nullptr; |
| 1243 | } |
| 1244 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1245 | const int DownloadImageRequest::kDeviceUuidFieldNumber; |
| 1246 | const int DownloadImageRequest::kImageInfoFieldNumber; |
| 1247 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1248 | |
| 1249 | DownloadImageRequest::DownloadImageRequest() |
| 1250 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1251 | SharedCtor(); |
| 1252 | // @@protoc_insertion_point(constructor:dmi.DownloadImageRequest) |
| 1253 | } |
| 1254 | DownloadImageRequest::DownloadImageRequest(const DownloadImageRequest& from) |
| 1255 | : ::google::protobuf::Message(), |
| 1256 | _internal_metadata_(nullptr) { |
| 1257 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1258 | if (from.has_device_uuid()) { |
| 1259 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1260 | } else { |
| 1261 | device_uuid_ = nullptr; |
| 1262 | } |
| 1263 | if (from.has_image_info()) { |
| 1264 | image_info_ = new ::dmi::ImageInformation(*from.image_info_); |
| 1265 | } else { |
| 1266 | image_info_ = nullptr; |
| 1267 | } |
| 1268 | // @@protoc_insertion_point(copy_constructor:dmi.DownloadImageRequest) |
| 1269 | } |
| 1270 | |
| 1271 | void DownloadImageRequest::SharedCtor() { |
| 1272 | ::google::protobuf::internal::InitSCC( |
| 1273 | &scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1274 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 1275 | reinterpret_cast<char*>(&image_info_) - |
| 1276 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(image_info_)); |
| 1277 | } |
| 1278 | |
| 1279 | DownloadImageRequest::~DownloadImageRequest() { |
| 1280 | // @@protoc_insertion_point(destructor:dmi.DownloadImageRequest) |
| 1281 | SharedDtor(); |
| 1282 | } |
| 1283 | |
| 1284 | void DownloadImageRequest::SharedDtor() { |
| 1285 | if (this != internal_default_instance()) delete device_uuid_; |
| 1286 | if (this != internal_default_instance()) delete image_info_; |
| 1287 | } |
| 1288 | |
| 1289 | void DownloadImageRequest::SetCachedSize(int size) const { |
| 1290 | _cached_size_.Set(size); |
| 1291 | } |
| 1292 | const DownloadImageRequest& DownloadImageRequest::default_instance() { |
| 1293 | ::google::protobuf::internal::InitSCC(&::scc_info_DownloadImageRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1294 | return *internal_default_instance(); |
| 1295 | } |
| 1296 | |
| 1297 | |
| 1298 | void DownloadImageRequest::Clear() { |
| 1299 | // @@protoc_insertion_point(message_clear_start:dmi.DownloadImageRequest) |
| 1300 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1301 | // Prevent compiler warnings about cached_has_bits being unused |
| 1302 | (void) cached_has_bits; |
| 1303 | |
| 1304 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1305 | delete device_uuid_; |
| 1306 | } |
| 1307 | device_uuid_ = nullptr; |
| 1308 | if (GetArenaNoVirtual() == nullptr && image_info_ != nullptr) { |
| 1309 | delete image_info_; |
| 1310 | } |
| 1311 | image_info_ = nullptr; |
| 1312 | _internal_metadata_.Clear(); |
| 1313 | } |
| 1314 | |
| 1315 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1316 | const char* DownloadImageRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1317 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1318 | auto msg = static_cast<DownloadImageRequest*>(object); |
| 1319 | ::google::protobuf::int32 size; (void)size; |
| 1320 | int depth; (void)depth; |
| 1321 | ::google::protobuf::uint32 tag; |
| 1322 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1323 | auto ptr = begin; |
| 1324 | while (ptr < end) { |
| 1325 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1326 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1327 | switch (tag >> 3) { |
| 1328 | // .dmi.Uuid device_uuid = 1; |
| 1329 | case 1: { |
| 1330 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1331 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1332 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1333 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1334 | object = msg->mutable_device_uuid(); |
| 1335 | if (size > end - ptr) goto len_delim_till_end; |
| 1336 | ptr += size; |
| 1337 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1338 | {parser_till_end, object}, ptr - size, ptr)); |
| 1339 | break; |
| 1340 | } |
| 1341 | // .dmi.ImageInformation image_info = 2; |
| 1342 | case 2: { |
| 1343 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1344 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1345 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1346 | parser_till_end = ::dmi::ImageInformation::_InternalParse; |
| 1347 | object = msg->mutable_image_info(); |
| 1348 | if (size > end - ptr) goto len_delim_till_end; |
| 1349 | ptr += size; |
| 1350 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1351 | {parser_till_end, object}, ptr - size, ptr)); |
| 1352 | break; |
| 1353 | } |
| 1354 | default: { |
| 1355 | handle_unusual: |
| 1356 | if ((tag & 7) == 4 || tag == 0) { |
| 1357 | ctx->EndGroup(tag); |
| 1358 | return ptr; |
| 1359 | } |
| 1360 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1361 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1362 | ptr = res.first; |
| 1363 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1364 | if (res.second) return ptr; |
| 1365 | } |
| 1366 | } // switch |
| 1367 | } // while |
| 1368 | return ptr; |
| 1369 | len_delim_till_end: |
| 1370 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1371 | {parser_till_end, object}, size); |
| 1372 | } |
| 1373 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1374 | bool DownloadImageRequest::MergePartialFromCodedStream( |
| 1375 | ::google::protobuf::io::CodedInputStream* input) { |
| 1376 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1377 | ::google::protobuf::uint32 tag; |
| 1378 | // @@protoc_insertion_point(parse_start:dmi.DownloadImageRequest) |
| 1379 | for (;;) { |
| 1380 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1381 | tag = p.first; |
| 1382 | if (!p.second) goto handle_unusual; |
| 1383 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1384 | // .dmi.Uuid device_uuid = 1; |
| 1385 | case 1: { |
| 1386 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1387 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1388 | input, mutable_device_uuid())); |
| 1389 | } else { |
| 1390 | goto handle_unusual; |
| 1391 | } |
| 1392 | break; |
| 1393 | } |
| 1394 | |
| 1395 | // .dmi.ImageInformation image_info = 2; |
| 1396 | case 2: { |
| 1397 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1398 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1399 | input, mutable_image_info())); |
| 1400 | } else { |
| 1401 | goto handle_unusual; |
| 1402 | } |
| 1403 | break; |
| 1404 | } |
| 1405 | |
| 1406 | default: { |
| 1407 | handle_unusual: |
| 1408 | if (tag == 0) { |
| 1409 | goto success; |
| 1410 | } |
| 1411 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1412 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1413 | break; |
| 1414 | } |
| 1415 | } |
| 1416 | } |
| 1417 | success: |
| 1418 | // @@protoc_insertion_point(parse_success:dmi.DownloadImageRequest) |
| 1419 | return true; |
| 1420 | failure: |
| 1421 | // @@protoc_insertion_point(parse_failure:dmi.DownloadImageRequest) |
| 1422 | return false; |
| 1423 | #undef DO_ |
| 1424 | } |
| 1425 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1426 | |
| 1427 | void DownloadImageRequest::SerializeWithCachedSizes( |
| 1428 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1429 | // @@protoc_insertion_point(serialize_start:dmi.DownloadImageRequest) |
| 1430 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1431 | (void) cached_has_bits; |
| 1432 | |
| 1433 | // .dmi.Uuid device_uuid = 1; |
| 1434 | if (this->has_device_uuid()) { |
| 1435 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1436 | 1, HasBitSetters::device_uuid(this), output); |
| 1437 | } |
| 1438 | |
| 1439 | // .dmi.ImageInformation image_info = 2; |
| 1440 | if (this->has_image_info()) { |
| 1441 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1442 | 2, HasBitSetters::image_info(this), output); |
| 1443 | } |
| 1444 | |
| 1445 | if (_internal_metadata_.have_unknown_fields()) { |
| 1446 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1447 | _internal_metadata_.unknown_fields(), output); |
| 1448 | } |
| 1449 | // @@protoc_insertion_point(serialize_end:dmi.DownloadImageRequest) |
| 1450 | } |
| 1451 | |
| 1452 | ::google::protobuf::uint8* DownloadImageRequest::InternalSerializeWithCachedSizesToArray( |
| 1453 | ::google::protobuf::uint8* target) const { |
| 1454 | // @@protoc_insertion_point(serialize_to_array_start:dmi.DownloadImageRequest) |
| 1455 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1456 | (void) cached_has_bits; |
| 1457 | |
| 1458 | // .dmi.Uuid device_uuid = 1; |
| 1459 | if (this->has_device_uuid()) { |
| 1460 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1461 | InternalWriteMessageToArray( |
| 1462 | 1, HasBitSetters::device_uuid(this), target); |
| 1463 | } |
| 1464 | |
| 1465 | // .dmi.ImageInformation image_info = 2; |
| 1466 | if (this->has_image_info()) { |
| 1467 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1468 | InternalWriteMessageToArray( |
| 1469 | 2, HasBitSetters::image_info(this), target); |
| 1470 | } |
| 1471 | |
| 1472 | if (_internal_metadata_.have_unknown_fields()) { |
| 1473 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1474 | _internal_metadata_.unknown_fields(), target); |
| 1475 | } |
| 1476 | // @@protoc_insertion_point(serialize_to_array_end:dmi.DownloadImageRequest) |
| 1477 | return target; |
| 1478 | } |
| 1479 | |
| 1480 | size_t DownloadImageRequest::ByteSizeLong() const { |
| 1481 | // @@protoc_insertion_point(message_byte_size_start:dmi.DownloadImageRequest) |
| 1482 | size_t total_size = 0; |
| 1483 | |
| 1484 | if (_internal_metadata_.have_unknown_fields()) { |
| 1485 | total_size += |
| 1486 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1487 | _internal_metadata_.unknown_fields()); |
| 1488 | } |
| 1489 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1490 | // Prevent compiler warnings about cached_has_bits being unused |
| 1491 | (void) cached_has_bits; |
| 1492 | |
| 1493 | // .dmi.Uuid device_uuid = 1; |
| 1494 | if (this->has_device_uuid()) { |
| 1495 | total_size += 1 + |
| 1496 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1497 | *device_uuid_); |
| 1498 | } |
| 1499 | |
| 1500 | // .dmi.ImageInformation image_info = 2; |
| 1501 | if (this->has_image_info()) { |
| 1502 | total_size += 1 + |
| 1503 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1504 | *image_info_); |
| 1505 | } |
| 1506 | |
| 1507 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1508 | SetCachedSize(cached_size); |
| 1509 | return total_size; |
| 1510 | } |
| 1511 | |
| 1512 | void DownloadImageRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1513 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.DownloadImageRequest) |
| 1514 | GOOGLE_DCHECK_NE(&from, this); |
| 1515 | const DownloadImageRequest* source = |
| 1516 | ::google::protobuf::DynamicCastToGenerated<DownloadImageRequest>( |
| 1517 | &from); |
| 1518 | if (source == nullptr) { |
| 1519 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.DownloadImageRequest) |
| 1520 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1521 | } else { |
| 1522 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.DownloadImageRequest) |
| 1523 | MergeFrom(*source); |
| 1524 | } |
| 1525 | } |
| 1526 | |
| 1527 | void DownloadImageRequest::MergeFrom(const DownloadImageRequest& from) { |
| 1528 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.DownloadImageRequest) |
| 1529 | GOOGLE_DCHECK_NE(&from, this); |
| 1530 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1531 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1532 | (void) cached_has_bits; |
| 1533 | |
| 1534 | if (from.has_device_uuid()) { |
| 1535 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1536 | } |
| 1537 | if (from.has_image_info()) { |
| 1538 | mutable_image_info()->::dmi::ImageInformation::MergeFrom(from.image_info()); |
| 1539 | } |
| 1540 | } |
| 1541 | |
| 1542 | void DownloadImageRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1543 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.DownloadImageRequest) |
| 1544 | if (&from == this) return; |
| 1545 | Clear(); |
| 1546 | MergeFrom(from); |
| 1547 | } |
| 1548 | |
| 1549 | void DownloadImageRequest::CopyFrom(const DownloadImageRequest& from) { |
| 1550 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.DownloadImageRequest) |
| 1551 | if (&from == this) return; |
| 1552 | Clear(); |
| 1553 | MergeFrom(from); |
| 1554 | } |
| 1555 | |
| 1556 | bool DownloadImageRequest::IsInitialized() const { |
| 1557 | return true; |
| 1558 | } |
| 1559 | |
| 1560 | void DownloadImageRequest::Swap(DownloadImageRequest* other) { |
| 1561 | if (other == this) return; |
| 1562 | InternalSwap(other); |
| 1563 | } |
| 1564 | void DownloadImageRequest::InternalSwap(DownloadImageRequest* other) { |
| 1565 | using std::swap; |
| 1566 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1567 | swap(device_uuid_, other->device_uuid_); |
| 1568 | swap(image_info_, other->image_info_); |
| 1569 | } |
| 1570 | |
| 1571 | ::google::protobuf::Metadata DownloadImageRequest::GetMetadata() const { |
| 1572 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 1573 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1574 | } |
| 1575 | |
| 1576 | |
| 1577 | // =================================================================== |
| 1578 | |
| 1579 | void ConfigRequest::InitAsDefaultInstance() { |
| 1580 | ::dmi::_ConfigRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1581 | ::dmi::Uuid::internal_default_instance()); |
| 1582 | } |
| 1583 | class ConfigRequest::HasBitSetters { |
| 1584 | public: |
| 1585 | static const ::dmi::Uuid& device_uuid(const ConfigRequest* msg); |
| 1586 | }; |
| 1587 | |
| 1588 | const ::dmi::Uuid& |
| 1589 | ConfigRequest::HasBitSetters::device_uuid(const ConfigRequest* msg) { |
| 1590 | return *msg->device_uuid_; |
| 1591 | } |
| 1592 | void ConfigRequest::clear_device_uuid() { |
| 1593 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1594 | delete device_uuid_; |
| 1595 | } |
| 1596 | device_uuid_ = nullptr; |
| 1597 | } |
| 1598 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1599 | const int ConfigRequest::kDeviceUuidFieldNumber; |
| 1600 | const int ConfigRequest::kConfigUrlFieldNumber; |
| 1601 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1602 | |
| 1603 | ConfigRequest::ConfigRequest() |
| 1604 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1605 | SharedCtor(); |
| 1606 | // @@protoc_insertion_point(constructor:dmi.ConfigRequest) |
| 1607 | } |
| 1608 | ConfigRequest::ConfigRequest(const ConfigRequest& from) |
| 1609 | : ::google::protobuf::Message(), |
| 1610 | _internal_metadata_(nullptr) { |
| 1611 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1612 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1613 | if (from.config_url().size() > 0) { |
| 1614 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 1615 | } |
| 1616 | if (from.has_device_uuid()) { |
| 1617 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1618 | } else { |
| 1619 | device_uuid_ = nullptr; |
| 1620 | } |
| 1621 | // @@protoc_insertion_point(copy_constructor:dmi.ConfigRequest) |
| 1622 | } |
| 1623 | |
| 1624 | void ConfigRequest::SharedCtor() { |
| 1625 | ::google::protobuf::internal::InitSCC( |
| 1626 | &scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1627 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1628 | device_uuid_ = nullptr; |
| 1629 | } |
| 1630 | |
| 1631 | ConfigRequest::~ConfigRequest() { |
| 1632 | // @@protoc_insertion_point(destructor:dmi.ConfigRequest) |
| 1633 | SharedDtor(); |
| 1634 | } |
| 1635 | |
| 1636 | void ConfigRequest::SharedDtor() { |
| 1637 | config_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1638 | if (this != internal_default_instance()) delete device_uuid_; |
| 1639 | } |
| 1640 | |
| 1641 | void ConfigRequest::SetCachedSize(int size) const { |
| 1642 | _cached_size_.Set(size); |
| 1643 | } |
| 1644 | const ConfigRequest& ConfigRequest::default_instance() { |
| 1645 | ::google::protobuf::internal::InitSCC(&::scc_info_ConfigRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1646 | return *internal_default_instance(); |
| 1647 | } |
| 1648 | |
| 1649 | |
| 1650 | void ConfigRequest::Clear() { |
| 1651 | // @@protoc_insertion_point(message_clear_start:dmi.ConfigRequest) |
| 1652 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1653 | // Prevent compiler warnings about cached_has_bits being unused |
| 1654 | (void) cached_has_bits; |
| 1655 | |
| 1656 | config_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1657 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1658 | delete device_uuid_; |
| 1659 | } |
| 1660 | device_uuid_ = nullptr; |
| 1661 | _internal_metadata_.Clear(); |
| 1662 | } |
| 1663 | |
| 1664 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1665 | const char* ConfigRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1666 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1667 | auto msg = static_cast<ConfigRequest*>(object); |
| 1668 | ::google::protobuf::int32 size; (void)size; |
| 1669 | int depth; (void)depth; |
| 1670 | ::google::protobuf::uint32 tag; |
| 1671 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1672 | auto ptr = begin; |
| 1673 | while (ptr < end) { |
| 1674 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1675 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1676 | switch (tag >> 3) { |
| 1677 | // .dmi.Uuid device_uuid = 1; |
| 1678 | case 1: { |
| 1679 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1680 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1681 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1682 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1683 | object = msg->mutable_device_uuid(); |
| 1684 | if (size > end - ptr) goto len_delim_till_end; |
| 1685 | ptr += size; |
| 1686 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1687 | {parser_till_end, object}, ptr - size, ptr)); |
| 1688 | break; |
| 1689 | } |
| 1690 | // string config_url = 2; |
| 1691 | case 2: { |
| 1692 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1693 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1694 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1695 | ctx->extra_parse_data().SetFieldName("dmi.ConfigRequest.config_url"); |
| 1696 | object = msg->mutable_config_url(); |
| 1697 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1698 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1699 | goto string_till_end; |
| 1700 | } |
| 1701 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1702 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1703 | ptr += size; |
| 1704 | break; |
| 1705 | } |
| 1706 | default: { |
| 1707 | handle_unusual: |
| 1708 | if ((tag & 7) == 4 || tag == 0) { |
| 1709 | ctx->EndGroup(tag); |
| 1710 | return ptr; |
| 1711 | } |
| 1712 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1713 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1714 | ptr = res.first; |
| 1715 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1716 | if (res.second) return ptr; |
| 1717 | } |
| 1718 | } // switch |
| 1719 | } // while |
| 1720 | return ptr; |
| 1721 | string_till_end: |
| 1722 | static_cast<::std::string*>(object)->clear(); |
| 1723 | static_cast<::std::string*>(object)->reserve(size); |
| 1724 | goto len_delim_till_end; |
| 1725 | len_delim_till_end: |
| 1726 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1727 | {parser_till_end, object}, size); |
| 1728 | } |
| 1729 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1730 | bool ConfigRequest::MergePartialFromCodedStream( |
| 1731 | ::google::protobuf::io::CodedInputStream* input) { |
| 1732 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1733 | ::google::protobuf::uint32 tag; |
| 1734 | // @@protoc_insertion_point(parse_start:dmi.ConfigRequest) |
| 1735 | for (;;) { |
| 1736 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1737 | tag = p.first; |
| 1738 | if (!p.second) goto handle_unusual; |
| 1739 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1740 | // .dmi.Uuid device_uuid = 1; |
| 1741 | case 1: { |
| 1742 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1743 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1744 | input, mutable_device_uuid())); |
| 1745 | } else { |
| 1746 | goto handle_unusual; |
| 1747 | } |
| 1748 | break; |
| 1749 | } |
| 1750 | |
| 1751 | // string config_url = 2; |
| 1752 | case 2: { |
| 1753 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1754 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1755 | input, this->mutable_config_url())); |
| 1756 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1757 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1758 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1759 | "dmi.ConfigRequest.config_url")); |
| 1760 | } else { |
| 1761 | goto handle_unusual; |
| 1762 | } |
| 1763 | break; |
| 1764 | } |
| 1765 | |
| 1766 | default: { |
| 1767 | handle_unusual: |
| 1768 | if (tag == 0) { |
| 1769 | goto success; |
| 1770 | } |
| 1771 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1772 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1773 | break; |
| 1774 | } |
| 1775 | } |
| 1776 | } |
| 1777 | success: |
| 1778 | // @@protoc_insertion_point(parse_success:dmi.ConfigRequest) |
| 1779 | return true; |
| 1780 | failure: |
| 1781 | // @@protoc_insertion_point(parse_failure:dmi.ConfigRequest) |
| 1782 | return false; |
| 1783 | #undef DO_ |
| 1784 | } |
| 1785 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1786 | |
| 1787 | void ConfigRequest::SerializeWithCachedSizes( |
| 1788 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1789 | // @@protoc_insertion_point(serialize_start:dmi.ConfigRequest) |
| 1790 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1791 | (void) cached_has_bits; |
| 1792 | |
| 1793 | // .dmi.Uuid device_uuid = 1; |
| 1794 | if (this->has_device_uuid()) { |
| 1795 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1796 | 1, HasBitSetters::device_uuid(this), output); |
| 1797 | } |
| 1798 | |
| 1799 | // string config_url = 2; |
| 1800 | if (this->config_url().size() > 0) { |
| 1801 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1802 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1803 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1804 | "dmi.ConfigRequest.config_url"); |
| 1805 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1806 | 2, this->config_url(), output); |
| 1807 | } |
| 1808 | |
| 1809 | if (_internal_metadata_.have_unknown_fields()) { |
| 1810 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1811 | _internal_metadata_.unknown_fields(), output); |
| 1812 | } |
| 1813 | // @@protoc_insertion_point(serialize_end:dmi.ConfigRequest) |
| 1814 | } |
| 1815 | |
| 1816 | ::google::protobuf::uint8* ConfigRequest::InternalSerializeWithCachedSizesToArray( |
| 1817 | ::google::protobuf::uint8* target) const { |
| 1818 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ConfigRequest) |
| 1819 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1820 | (void) cached_has_bits; |
| 1821 | |
| 1822 | // .dmi.Uuid device_uuid = 1; |
| 1823 | if (this->has_device_uuid()) { |
| 1824 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1825 | InternalWriteMessageToArray( |
| 1826 | 1, HasBitSetters::device_uuid(this), target); |
| 1827 | } |
| 1828 | |
| 1829 | // string config_url = 2; |
| 1830 | if (this->config_url().size() > 0) { |
| 1831 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1832 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 1833 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1834 | "dmi.ConfigRequest.config_url"); |
| 1835 | target = |
| 1836 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1837 | 2, this->config_url(), target); |
| 1838 | } |
| 1839 | |
| 1840 | if (_internal_metadata_.have_unknown_fields()) { |
| 1841 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1842 | _internal_metadata_.unknown_fields(), target); |
| 1843 | } |
| 1844 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ConfigRequest) |
| 1845 | return target; |
| 1846 | } |
| 1847 | |
| 1848 | size_t ConfigRequest::ByteSizeLong() const { |
| 1849 | // @@protoc_insertion_point(message_byte_size_start:dmi.ConfigRequest) |
| 1850 | size_t total_size = 0; |
| 1851 | |
| 1852 | if (_internal_metadata_.have_unknown_fields()) { |
| 1853 | total_size += |
| 1854 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1855 | _internal_metadata_.unknown_fields()); |
| 1856 | } |
| 1857 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1858 | // Prevent compiler warnings about cached_has_bits being unused |
| 1859 | (void) cached_has_bits; |
| 1860 | |
| 1861 | // string config_url = 2; |
| 1862 | if (this->config_url().size() > 0) { |
| 1863 | total_size += 1 + |
| 1864 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1865 | this->config_url()); |
| 1866 | } |
| 1867 | |
| 1868 | // .dmi.Uuid device_uuid = 1; |
| 1869 | if (this->has_device_uuid()) { |
| 1870 | total_size += 1 + |
| 1871 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1872 | *device_uuid_); |
| 1873 | } |
| 1874 | |
| 1875 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1876 | SetCachedSize(cached_size); |
| 1877 | return total_size; |
| 1878 | } |
| 1879 | |
| 1880 | void ConfigRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1881 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ConfigRequest) |
| 1882 | GOOGLE_DCHECK_NE(&from, this); |
| 1883 | const ConfigRequest* source = |
| 1884 | ::google::protobuf::DynamicCastToGenerated<ConfigRequest>( |
| 1885 | &from); |
| 1886 | if (source == nullptr) { |
| 1887 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ConfigRequest) |
| 1888 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1889 | } else { |
| 1890 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ConfigRequest) |
| 1891 | MergeFrom(*source); |
| 1892 | } |
| 1893 | } |
| 1894 | |
| 1895 | void ConfigRequest::MergeFrom(const ConfigRequest& from) { |
| 1896 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ConfigRequest) |
| 1897 | GOOGLE_DCHECK_NE(&from, this); |
| 1898 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1899 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1900 | (void) cached_has_bits; |
| 1901 | |
| 1902 | if (from.config_url().size() > 0) { |
| 1903 | |
| 1904 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 1905 | } |
| 1906 | if (from.has_device_uuid()) { |
| 1907 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1908 | } |
| 1909 | } |
| 1910 | |
| 1911 | void ConfigRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1912 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ConfigRequest) |
| 1913 | if (&from == this) return; |
| 1914 | Clear(); |
| 1915 | MergeFrom(from); |
| 1916 | } |
| 1917 | |
| 1918 | void ConfigRequest::CopyFrom(const ConfigRequest& from) { |
| 1919 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ConfigRequest) |
| 1920 | if (&from == this) return; |
| 1921 | Clear(); |
| 1922 | MergeFrom(from); |
| 1923 | } |
| 1924 | |
| 1925 | bool ConfigRequest::IsInitialized() const { |
| 1926 | return true; |
| 1927 | } |
| 1928 | |
| 1929 | void ConfigRequest::Swap(ConfigRequest* other) { |
| 1930 | if (other == this) return; |
| 1931 | InternalSwap(other); |
| 1932 | } |
| 1933 | void ConfigRequest::InternalSwap(ConfigRequest* other) { |
| 1934 | using std::swap; |
| 1935 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1936 | config_url_.Swap(&other->config_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1937 | GetArenaNoVirtual()); |
| 1938 | swap(device_uuid_, other->device_uuid_); |
| 1939 | } |
| 1940 | |
| 1941 | ::google::protobuf::Metadata ConfigRequest::GetMetadata() const { |
| 1942 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 1943 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1944 | } |
| 1945 | |
| 1946 | |
| 1947 | // =================================================================== |
| 1948 | |
| 1949 | void ConfigResponse::InitAsDefaultInstance() { |
| 1950 | } |
| 1951 | class ConfigResponse::HasBitSetters { |
| 1952 | public: |
| 1953 | }; |
| 1954 | |
| 1955 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1956 | const int ConfigResponse::kStatusFieldNumber; |
| 1957 | const int ConfigResponse::kReasonFieldNumber; |
| 1958 | const int ConfigResponse::kReasonDetailFieldNumber; |
| 1959 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1960 | |
| 1961 | ConfigResponse::ConfigResponse() |
| 1962 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1963 | SharedCtor(); |
| 1964 | // @@protoc_insertion_point(constructor:dmi.ConfigResponse) |
| 1965 | } |
| 1966 | ConfigResponse::ConfigResponse(const ConfigResponse& from) |
| 1967 | : ::google::protobuf::Message(), |
| 1968 | _internal_metadata_(nullptr) { |
| 1969 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1970 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1971 | if (from.reason_detail().size() > 0) { |
| 1972 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1973 | } |
| 1974 | ::memcpy(&status_, &from.status_, |
| 1975 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 1976 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1977 | // @@protoc_insertion_point(copy_constructor:dmi.ConfigResponse) |
| 1978 | } |
| 1979 | |
| 1980 | void ConfigResponse::SharedCtor() { |
| 1981 | ::google::protobuf::internal::InitSCC( |
| 1982 | &scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 1983 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1984 | ::memset(&status_, 0, static_cast<size_t>( |
| 1985 | reinterpret_cast<char*>(&reason_) - |
| 1986 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1987 | } |
| 1988 | |
| 1989 | ConfigResponse::~ConfigResponse() { |
| 1990 | // @@protoc_insertion_point(destructor:dmi.ConfigResponse) |
| 1991 | SharedDtor(); |
| 1992 | } |
| 1993 | |
| 1994 | void ConfigResponse::SharedDtor() { |
| 1995 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1996 | } |
| 1997 | |
| 1998 | void ConfigResponse::SetCachedSize(int size) const { |
| 1999 | _cached_size_.Set(size); |
| 2000 | } |
| 2001 | const ConfigResponse& ConfigResponse::default_instance() { |
| 2002 | ::google::protobuf::internal::InitSCC(&::scc_info_ConfigResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2003 | return *internal_default_instance(); |
| 2004 | } |
| 2005 | |
| 2006 | |
| 2007 | void ConfigResponse::Clear() { |
| 2008 | // @@protoc_insertion_point(message_clear_start:dmi.ConfigResponse) |
| 2009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2010 | // Prevent compiler warnings about cached_has_bits being unused |
| 2011 | (void) cached_has_bits; |
| 2012 | |
| 2013 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2014 | ::memset(&status_, 0, static_cast<size_t>( |
| 2015 | reinterpret_cast<char*>(&reason_) - |
| 2016 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2017 | _internal_metadata_.Clear(); |
| 2018 | } |
| 2019 | |
| 2020 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2021 | const char* ConfigResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2022 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2023 | auto msg = static_cast<ConfigResponse*>(object); |
| 2024 | ::google::protobuf::int32 size; (void)size; |
| 2025 | int depth; (void)depth; |
| 2026 | ::google::protobuf::uint32 tag; |
| 2027 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2028 | auto ptr = begin; |
| 2029 | while (ptr < end) { |
| 2030 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2031 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2032 | switch (tag >> 3) { |
| 2033 | // .dmi.Status status = 1; |
| 2034 | case 1: { |
| 2035 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2036 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2037 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2038 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2039 | break; |
| 2040 | } |
| 2041 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2042 | case 2: { |
| 2043 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2044 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2045 | msg->set_reason(static_cast<::dmi::ConfigResponse_Reason>(val)); |
| 2046 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2047 | break; |
| 2048 | } |
| 2049 | // string reason_detail = 3; |
| 2050 | case 3: { |
| 2051 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2052 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2053 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2054 | ctx->extra_parse_data().SetFieldName("dmi.ConfigResponse.reason_detail"); |
| 2055 | object = msg->mutable_reason_detail(); |
| 2056 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2057 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2058 | goto string_till_end; |
| 2059 | } |
| 2060 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2061 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2062 | ptr += size; |
| 2063 | break; |
| 2064 | } |
| 2065 | default: { |
| 2066 | handle_unusual: |
| 2067 | if ((tag & 7) == 4 || tag == 0) { |
| 2068 | ctx->EndGroup(tag); |
| 2069 | return ptr; |
| 2070 | } |
| 2071 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2072 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2073 | ptr = res.first; |
| 2074 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2075 | if (res.second) return ptr; |
| 2076 | } |
| 2077 | } // switch |
| 2078 | } // while |
| 2079 | return ptr; |
| 2080 | string_till_end: |
| 2081 | static_cast<::std::string*>(object)->clear(); |
| 2082 | static_cast<::std::string*>(object)->reserve(size); |
| 2083 | goto len_delim_till_end; |
| 2084 | len_delim_till_end: |
| 2085 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2086 | {parser_till_end, object}, size); |
| 2087 | } |
| 2088 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2089 | bool ConfigResponse::MergePartialFromCodedStream( |
| 2090 | ::google::protobuf::io::CodedInputStream* input) { |
| 2091 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2092 | ::google::protobuf::uint32 tag; |
| 2093 | // @@protoc_insertion_point(parse_start:dmi.ConfigResponse) |
| 2094 | for (;;) { |
| 2095 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2096 | tag = p.first; |
| 2097 | if (!p.second) goto handle_unusual; |
| 2098 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2099 | // .dmi.Status status = 1; |
| 2100 | case 1: { |
| 2101 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2102 | int value = 0; |
| 2103 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2104 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2105 | input, &value))); |
| 2106 | set_status(static_cast< ::dmi::Status >(value)); |
| 2107 | } else { |
| 2108 | goto handle_unusual; |
| 2109 | } |
| 2110 | break; |
| 2111 | } |
| 2112 | |
| 2113 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2114 | case 2: { |
| 2115 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2116 | int value = 0; |
| 2117 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2118 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2119 | input, &value))); |
| 2120 | set_reason(static_cast< ::dmi::ConfigResponse_Reason >(value)); |
| 2121 | } else { |
| 2122 | goto handle_unusual; |
| 2123 | } |
| 2124 | break; |
| 2125 | } |
| 2126 | |
| 2127 | // string reason_detail = 3; |
| 2128 | case 3: { |
| 2129 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2130 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2131 | input, this->mutable_reason_detail())); |
| 2132 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2133 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2134 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2135 | "dmi.ConfigResponse.reason_detail")); |
| 2136 | } else { |
| 2137 | goto handle_unusual; |
| 2138 | } |
| 2139 | break; |
| 2140 | } |
| 2141 | |
| 2142 | default: { |
| 2143 | handle_unusual: |
| 2144 | if (tag == 0) { |
| 2145 | goto success; |
| 2146 | } |
| 2147 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2148 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2149 | break; |
| 2150 | } |
| 2151 | } |
| 2152 | } |
| 2153 | success: |
| 2154 | // @@protoc_insertion_point(parse_success:dmi.ConfigResponse) |
| 2155 | return true; |
| 2156 | failure: |
| 2157 | // @@protoc_insertion_point(parse_failure:dmi.ConfigResponse) |
| 2158 | return false; |
| 2159 | #undef DO_ |
| 2160 | } |
| 2161 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2162 | |
| 2163 | void ConfigResponse::SerializeWithCachedSizes( |
| 2164 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2165 | // @@protoc_insertion_point(serialize_start:dmi.ConfigResponse) |
| 2166 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2167 | (void) cached_has_bits; |
| 2168 | |
| 2169 | // .dmi.Status status = 1; |
| 2170 | if (this->status() != 0) { |
| 2171 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2172 | 1, this->status(), output); |
| 2173 | } |
| 2174 | |
| 2175 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2176 | if (this->reason() != 0) { |
| 2177 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2178 | 2, this->reason(), output); |
| 2179 | } |
| 2180 | |
| 2181 | // string reason_detail = 3; |
| 2182 | if (this->reason_detail().size() > 0) { |
| 2183 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2184 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2185 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2186 | "dmi.ConfigResponse.reason_detail"); |
| 2187 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2188 | 3, this->reason_detail(), output); |
| 2189 | } |
| 2190 | |
| 2191 | if (_internal_metadata_.have_unknown_fields()) { |
| 2192 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2193 | _internal_metadata_.unknown_fields(), output); |
| 2194 | } |
| 2195 | // @@protoc_insertion_point(serialize_end:dmi.ConfigResponse) |
| 2196 | } |
| 2197 | |
| 2198 | ::google::protobuf::uint8* ConfigResponse::InternalSerializeWithCachedSizesToArray( |
| 2199 | ::google::protobuf::uint8* target) const { |
| 2200 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ConfigResponse) |
| 2201 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2202 | (void) cached_has_bits; |
| 2203 | |
| 2204 | // .dmi.Status status = 1; |
| 2205 | if (this->status() != 0) { |
| 2206 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2207 | 1, this->status(), target); |
| 2208 | } |
| 2209 | |
| 2210 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2211 | if (this->reason() != 0) { |
| 2212 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2213 | 2, this->reason(), target); |
| 2214 | } |
| 2215 | |
| 2216 | // string reason_detail = 3; |
| 2217 | if (this->reason_detail().size() > 0) { |
| 2218 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2219 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2220 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2221 | "dmi.ConfigResponse.reason_detail"); |
| 2222 | target = |
| 2223 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2224 | 3, this->reason_detail(), target); |
| 2225 | } |
| 2226 | |
| 2227 | if (_internal_metadata_.have_unknown_fields()) { |
| 2228 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2229 | _internal_metadata_.unknown_fields(), target); |
| 2230 | } |
| 2231 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ConfigResponse) |
| 2232 | return target; |
| 2233 | } |
| 2234 | |
| 2235 | size_t ConfigResponse::ByteSizeLong() const { |
| 2236 | // @@protoc_insertion_point(message_byte_size_start:dmi.ConfigResponse) |
| 2237 | size_t total_size = 0; |
| 2238 | |
| 2239 | if (_internal_metadata_.have_unknown_fields()) { |
| 2240 | total_size += |
| 2241 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2242 | _internal_metadata_.unknown_fields()); |
| 2243 | } |
| 2244 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2245 | // Prevent compiler warnings about cached_has_bits being unused |
| 2246 | (void) cached_has_bits; |
| 2247 | |
| 2248 | // string reason_detail = 3; |
| 2249 | if (this->reason_detail().size() > 0) { |
| 2250 | total_size += 1 + |
| 2251 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2252 | this->reason_detail()); |
| 2253 | } |
| 2254 | |
| 2255 | // .dmi.Status status = 1; |
| 2256 | if (this->status() != 0) { |
| 2257 | total_size += 1 + |
| 2258 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2259 | } |
| 2260 | |
| 2261 | // .dmi.ConfigResponse.Reason reason = 2; |
| 2262 | if (this->reason() != 0) { |
| 2263 | total_size += 1 + |
| 2264 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2265 | } |
| 2266 | |
| 2267 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2268 | SetCachedSize(cached_size); |
| 2269 | return total_size; |
| 2270 | } |
| 2271 | |
| 2272 | void ConfigResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2273 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ConfigResponse) |
| 2274 | GOOGLE_DCHECK_NE(&from, this); |
| 2275 | const ConfigResponse* source = |
| 2276 | ::google::protobuf::DynamicCastToGenerated<ConfigResponse>( |
| 2277 | &from); |
| 2278 | if (source == nullptr) { |
| 2279 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ConfigResponse) |
| 2280 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2281 | } else { |
| 2282 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ConfigResponse) |
| 2283 | MergeFrom(*source); |
| 2284 | } |
| 2285 | } |
| 2286 | |
| 2287 | void ConfigResponse::MergeFrom(const ConfigResponse& from) { |
| 2288 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ConfigResponse) |
| 2289 | GOOGLE_DCHECK_NE(&from, this); |
| 2290 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2291 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2292 | (void) cached_has_bits; |
| 2293 | |
| 2294 | if (from.reason_detail().size() > 0) { |
| 2295 | |
| 2296 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2297 | } |
| 2298 | if (from.status() != 0) { |
| 2299 | set_status(from.status()); |
| 2300 | } |
| 2301 | if (from.reason() != 0) { |
| 2302 | set_reason(from.reason()); |
| 2303 | } |
| 2304 | } |
| 2305 | |
| 2306 | void ConfigResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2307 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ConfigResponse) |
| 2308 | if (&from == this) return; |
| 2309 | Clear(); |
| 2310 | MergeFrom(from); |
| 2311 | } |
| 2312 | |
| 2313 | void ConfigResponse::CopyFrom(const ConfigResponse& from) { |
| 2314 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ConfigResponse) |
| 2315 | if (&from == this) return; |
| 2316 | Clear(); |
| 2317 | MergeFrom(from); |
| 2318 | } |
| 2319 | |
| 2320 | bool ConfigResponse::IsInitialized() const { |
| 2321 | return true; |
| 2322 | } |
| 2323 | |
| 2324 | void ConfigResponse::Swap(ConfigResponse* other) { |
| 2325 | if (other == this) return; |
| 2326 | InternalSwap(other); |
| 2327 | } |
| 2328 | void ConfigResponse::InternalSwap(ConfigResponse* other) { |
| 2329 | using std::swap; |
| 2330 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2331 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2332 | GetArenaNoVirtual()); |
| 2333 | swap(status_, other->status_); |
| 2334 | swap(reason_, other->reason_); |
| 2335 | } |
| 2336 | |
| 2337 | ::google::protobuf::Metadata ConfigResponse::GetMetadata() const { |
| 2338 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 2339 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2340 | } |
| 2341 | |
| 2342 | |
| 2343 | // =================================================================== |
| 2344 | |
| 2345 | void StartupConfigInfoRequest::InitAsDefaultInstance() { |
| 2346 | ::dmi::_StartupConfigInfoRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2347 | ::dmi::Uuid::internal_default_instance()); |
| 2348 | } |
| 2349 | class StartupConfigInfoRequest::HasBitSetters { |
| 2350 | public: |
| 2351 | static const ::dmi::Uuid& device_uuid(const StartupConfigInfoRequest* msg); |
| 2352 | }; |
| 2353 | |
| 2354 | const ::dmi::Uuid& |
| 2355 | StartupConfigInfoRequest::HasBitSetters::device_uuid(const StartupConfigInfoRequest* msg) { |
| 2356 | return *msg->device_uuid_; |
| 2357 | } |
| 2358 | void StartupConfigInfoRequest::clear_device_uuid() { |
| 2359 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2360 | delete device_uuid_; |
| 2361 | } |
| 2362 | device_uuid_ = nullptr; |
| 2363 | } |
| 2364 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2365 | const int StartupConfigInfoRequest::kDeviceUuidFieldNumber; |
| 2366 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2367 | |
| 2368 | StartupConfigInfoRequest::StartupConfigInfoRequest() |
| 2369 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2370 | SharedCtor(); |
| 2371 | // @@protoc_insertion_point(constructor:dmi.StartupConfigInfoRequest) |
| 2372 | } |
| 2373 | StartupConfigInfoRequest::StartupConfigInfoRequest(const StartupConfigInfoRequest& from) |
| 2374 | : ::google::protobuf::Message(), |
| 2375 | _internal_metadata_(nullptr) { |
| 2376 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2377 | if (from.has_device_uuid()) { |
| 2378 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2379 | } else { |
| 2380 | device_uuid_ = nullptr; |
| 2381 | } |
| 2382 | // @@protoc_insertion_point(copy_constructor:dmi.StartupConfigInfoRequest) |
| 2383 | } |
| 2384 | |
| 2385 | void StartupConfigInfoRequest::SharedCtor() { |
| 2386 | ::google::protobuf::internal::InitSCC( |
| 2387 | &scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2388 | device_uuid_ = nullptr; |
| 2389 | } |
| 2390 | |
| 2391 | StartupConfigInfoRequest::~StartupConfigInfoRequest() { |
| 2392 | // @@protoc_insertion_point(destructor:dmi.StartupConfigInfoRequest) |
| 2393 | SharedDtor(); |
| 2394 | } |
| 2395 | |
| 2396 | void StartupConfigInfoRequest::SharedDtor() { |
| 2397 | if (this != internal_default_instance()) delete device_uuid_; |
| 2398 | } |
| 2399 | |
| 2400 | void StartupConfigInfoRequest::SetCachedSize(int size) const { |
| 2401 | _cached_size_.Set(size); |
| 2402 | } |
| 2403 | const StartupConfigInfoRequest& StartupConfigInfoRequest::default_instance() { |
| 2404 | ::google::protobuf::internal::InitSCC(&::scc_info_StartupConfigInfoRequest_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2405 | return *internal_default_instance(); |
| 2406 | } |
| 2407 | |
| 2408 | |
| 2409 | void StartupConfigInfoRequest::Clear() { |
| 2410 | // @@protoc_insertion_point(message_clear_start:dmi.StartupConfigInfoRequest) |
| 2411 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2412 | // Prevent compiler warnings about cached_has_bits being unused |
| 2413 | (void) cached_has_bits; |
| 2414 | |
| 2415 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2416 | delete device_uuid_; |
| 2417 | } |
| 2418 | device_uuid_ = nullptr; |
| 2419 | _internal_metadata_.Clear(); |
| 2420 | } |
| 2421 | |
| 2422 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2423 | const char* StartupConfigInfoRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2424 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2425 | auto msg = static_cast<StartupConfigInfoRequest*>(object); |
| 2426 | ::google::protobuf::int32 size; (void)size; |
| 2427 | int depth; (void)depth; |
| 2428 | ::google::protobuf::uint32 tag; |
| 2429 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2430 | auto ptr = begin; |
| 2431 | while (ptr < end) { |
| 2432 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2433 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2434 | switch (tag >> 3) { |
| 2435 | // .dmi.Uuid device_uuid = 1; |
| 2436 | case 1: { |
| 2437 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2438 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2439 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2440 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2441 | object = msg->mutable_device_uuid(); |
| 2442 | if (size > end - ptr) goto len_delim_till_end; |
| 2443 | ptr += size; |
| 2444 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2445 | {parser_till_end, object}, ptr - size, ptr)); |
| 2446 | break; |
| 2447 | } |
| 2448 | default: { |
| 2449 | handle_unusual: |
| 2450 | if ((tag & 7) == 4 || tag == 0) { |
| 2451 | ctx->EndGroup(tag); |
| 2452 | return ptr; |
| 2453 | } |
| 2454 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2455 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2456 | ptr = res.first; |
| 2457 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2458 | if (res.second) return ptr; |
| 2459 | } |
| 2460 | } // switch |
| 2461 | } // while |
| 2462 | return ptr; |
| 2463 | len_delim_till_end: |
| 2464 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2465 | {parser_till_end, object}, size); |
| 2466 | } |
| 2467 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2468 | bool StartupConfigInfoRequest::MergePartialFromCodedStream( |
| 2469 | ::google::protobuf::io::CodedInputStream* input) { |
| 2470 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2471 | ::google::protobuf::uint32 tag; |
| 2472 | // @@protoc_insertion_point(parse_start:dmi.StartupConfigInfoRequest) |
| 2473 | for (;;) { |
| 2474 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2475 | tag = p.first; |
| 2476 | if (!p.second) goto handle_unusual; |
| 2477 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2478 | // .dmi.Uuid device_uuid = 1; |
| 2479 | case 1: { |
| 2480 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2481 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2482 | input, mutable_device_uuid())); |
| 2483 | } else { |
| 2484 | goto handle_unusual; |
| 2485 | } |
| 2486 | break; |
| 2487 | } |
| 2488 | |
| 2489 | default: { |
| 2490 | handle_unusual: |
| 2491 | if (tag == 0) { |
| 2492 | goto success; |
| 2493 | } |
| 2494 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2495 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2496 | break; |
| 2497 | } |
| 2498 | } |
| 2499 | } |
| 2500 | success: |
| 2501 | // @@protoc_insertion_point(parse_success:dmi.StartupConfigInfoRequest) |
| 2502 | return true; |
| 2503 | failure: |
| 2504 | // @@protoc_insertion_point(parse_failure:dmi.StartupConfigInfoRequest) |
| 2505 | return false; |
| 2506 | #undef DO_ |
| 2507 | } |
| 2508 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2509 | |
| 2510 | void StartupConfigInfoRequest::SerializeWithCachedSizes( |
| 2511 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2512 | // @@protoc_insertion_point(serialize_start:dmi.StartupConfigInfoRequest) |
| 2513 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2514 | (void) cached_has_bits; |
| 2515 | |
| 2516 | // .dmi.Uuid device_uuid = 1; |
| 2517 | if (this->has_device_uuid()) { |
| 2518 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2519 | 1, HasBitSetters::device_uuid(this), output); |
| 2520 | } |
| 2521 | |
| 2522 | if (_internal_metadata_.have_unknown_fields()) { |
| 2523 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2524 | _internal_metadata_.unknown_fields(), output); |
| 2525 | } |
| 2526 | // @@protoc_insertion_point(serialize_end:dmi.StartupConfigInfoRequest) |
| 2527 | } |
| 2528 | |
| 2529 | ::google::protobuf::uint8* StartupConfigInfoRequest::InternalSerializeWithCachedSizesToArray( |
| 2530 | ::google::protobuf::uint8* target) const { |
| 2531 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartupConfigInfoRequest) |
| 2532 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2533 | (void) cached_has_bits; |
| 2534 | |
| 2535 | // .dmi.Uuid device_uuid = 1; |
| 2536 | if (this->has_device_uuid()) { |
| 2537 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2538 | InternalWriteMessageToArray( |
| 2539 | 1, HasBitSetters::device_uuid(this), target); |
| 2540 | } |
| 2541 | |
| 2542 | if (_internal_metadata_.have_unknown_fields()) { |
| 2543 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2544 | _internal_metadata_.unknown_fields(), target); |
| 2545 | } |
| 2546 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartupConfigInfoRequest) |
| 2547 | return target; |
| 2548 | } |
| 2549 | |
| 2550 | size_t StartupConfigInfoRequest::ByteSizeLong() const { |
| 2551 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartupConfigInfoRequest) |
| 2552 | size_t total_size = 0; |
| 2553 | |
| 2554 | if (_internal_metadata_.have_unknown_fields()) { |
| 2555 | total_size += |
| 2556 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2557 | _internal_metadata_.unknown_fields()); |
| 2558 | } |
| 2559 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2560 | // Prevent compiler warnings about cached_has_bits being unused |
| 2561 | (void) cached_has_bits; |
| 2562 | |
| 2563 | // .dmi.Uuid device_uuid = 1; |
| 2564 | if (this->has_device_uuid()) { |
| 2565 | total_size += 1 + |
| 2566 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2567 | *device_uuid_); |
| 2568 | } |
| 2569 | |
| 2570 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2571 | SetCachedSize(cached_size); |
| 2572 | return total_size; |
| 2573 | } |
| 2574 | |
| 2575 | void StartupConfigInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2576 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartupConfigInfoRequest) |
| 2577 | GOOGLE_DCHECK_NE(&from, this); |
| 2578 | const StartupConfigInfoRequest* source = |
| 2579 | ::google::protobuf::DynamicCastToGenerated<StartupConfigInfoRequest>( |
| 2580 | &from); |
| 2581 | if (source == nullptr) { |
| 2582 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartupConfigInfoRequest) |
| 2583 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2584 | } else { |
| 2585 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartupConfigInfoRequest) |
| 2586 | MergeFrom(*source); |
| 2587 | } |
| 2588 | } |
| 2589 | |
| 2590 | void StartupConfigInfoRequest::MergeFrom(const StartupConfigInfoRequest& from) { |
| 2591 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartupConfigInfoRequest) |
| 2592 | GOOGLE_DCHECK_NE(&from, this); |
| 2593 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2594 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2595 | (void) cached_has_bits; |
| 2596 | |
| 2597 | if (from.has_device_uuid()) { |
| 2598 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2599 | } |
| 2600 | } |
| 2601 | |
| 2602 | void StartupConfigInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2603 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartupConfigInfoRequest) |
| 2604 | if (&from == this) return; |
| 2605 | Clear(); |
| 2606 | MergeFrom(from); |
| 2607 | } |
| 2608 | |
| 2609 | void StartupConfigInfoRequest::CopyFrom(const StartupConfigInfoRequest& from) { |
| 2610 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartupConfigInfoRequest) |
| 2611 | if (&from == this) return; |
| 2612 | Clear(); |
| 2613 | MergeFrom(from); |
| 2614 | } |
| 2615 | |
| 2616 | bool StartupConfigInfoRequest::IsInitialized() const { |
| 2617 | return true; |
| 2618 | } |
| 2619 | |
| 2620 | void StartupConfigInfoRequest::Swap(StartupConfigInfoRequest* other) { |
| 2621 | if (other == this) return; |
| 2622 | InternalSwap(other); |
| 2623 | } |
| 2624 | void StartupConfigInfoRequest::InternalSwap(StartupConfigInfoRequest* other) { |
| 2625 | using std::swap; |
| 2626 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2627 | swap(device_uuid_, other->device_uuid_); |
| 2628 | } |
| 2629 | |
| 2630 | ::google::protobuf::Metadata StartupConfigInfoRequest::GetMetadata() const { |
| 2631 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 2632 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2633 | } |
| 2634 | |
| 2635 | |
| 2636 | // =================================================================== |
| 2637 | |
| 2638 | void StartupConfigInfoResponse::InitAsDefaultInstance() { |
| 2639 | } |
| 2640 | class StartupConfigInfoResponse::HasBitSetters { |
| 2641 | public: |
| 2642 | }; |
| 2643 | |
| 2644 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2645 | const int StartupConfigInfoResponse::kStatusFieldNumber; |
| 2646 | const int StartupConfigInfoResponse::kReasonFieldNumber; |
| 2647 | const int StartupConfigInfoResponse::kConfigUrlFieldNumber; |
| 2648 | const int StartupConfigInfoResponse::kVersionFieldNumber; |
| 2649 | const int StartupConfigInfoResponse::kReasonDetailFieldNumber; |
| 2650 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2651 | |
| 2652 | StartupConfigInfoResponse::StartupConfigInfoResponse() |
| 2653 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2654 | SharedCtor(); |
| 2655 | // @@protoc_insertion_point(constructor:dmi.StartupConfigInfoResponse) |
| 2656 | } |
| 2657 | StartupConfigInfoResponse::StartupConfigInfoResponse(const StartupConfigInfoResponse& from) |
| 2658 | : ::google::protobuf::Message(), |
| 2659 | _internal_metadata_(nullptr) { |
| 2660 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2661 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2662 | if (from.config_url().size() > 0) { |
| 2663 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 2664 | } |
| 2665 | version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2666 | if (from.version().size() > 0) { |
| 2667 | version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); |
| 2668 | } |
| 2669 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2670 | if (from.reason_detail().size() > 0) { |
| 2671 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2672 | } |
| 2673 | ::memcpy(&status_, &from.status_, |
| 2674 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2675 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2676 | // @@protoc_insertion_point(copy_constructor:dmi.StartupConfigInfoResponse) |
| 2677 | } |
| 2678 | |
| 2679 | void StartupConfigInfoResponse::SharedCtor() { |
| 2680 | ::google::protobuf::internal::InitSCC( |
| 2681 | &scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2682 | config_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2683 | version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2684 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2685 | ::memset(&status_, 0, static_cast<size_t>( |
| 2686 | reinterpret_cast<char*>(&reason_) - |
| 2687 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2688 | } |
| 2689 | |
| 2690 | StartupConfigInfoResponse::~StartupConfigInfoResponse() { |
| 2691 | // @@protoc_insertion_point(destructor:dmi.StartupConfigInfoResponse) |
| 2692 | SharedDtor(); |
| 2693 | } |
| 2694 | |
| 2695 | void StartupConfigInfoResponse::SharedDtor() { |
| 2696 | config_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2697 | version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2698 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2699 | } |
| 2700 | |
| 2701 | void StartupConfigInfoResponse::SetCachedSize(int size) const { |
| 2702 | _cached_size_.Set(size); |
| 2703 | } |
| 2704 | const StartupConfigInfoResponse& StartupConfigInfoResponse::default_instance() { |
| 2705 | ::google::protobuf::internal::InitSCC(&::scc_info_StartupConfigInfoResponse_dmi_2fsw_5fmanagement_5fservice_2eproto.base); |
| 2706 | return *internal_default_instance(); |
| 2707 | } |
| 2708 | |
| 2709 | |
| 2710 | void StartupConfigInfoResponse::Clear() { |
| 2711 | // @@protoc_insertion_point(message_clear_start:dmi.StartupConfigInfoResponse) |
| 2712 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2713 | // Prevent compiler warnings about cached_has_bits being unused |
| 2714 | (void) cached_has_bits; |
| 2715 | |
| 2716 | config_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2717 | version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2718 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2719 | ::memset(&status_, 0, static_cast<size_t>( |
| 2720 | reinterpret_cast<char*>(&reason_) - |
| 2721 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2722 | _internal_metadata_.Clear(); |
| 2723 | } |
| 2724 | |
| 2725 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2726 | const char* StartupConfigInfoResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2727 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2728 | auto msg = static_cast<StartupConfigInfoResponse*>(object); |
| 2729 | ::google::protobuf::int32 size; (void)size; |
| 2730 | int depth; (void)depth; |
| 2731 | ::google::protobuf::uint32 tag; |
| 2732 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2733 | auto ptr = begin; |
| 2734 | while (ptr < end) { |
| 2735 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2736 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2737 | switch (tag >> 3) { |
| 2738 | // .dmi.Status status = 1; |
| 2739 | case 1: { |
| 2740 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2741 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2742 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2743 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2744 | break; |
| 2745 | } |
| 2746 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2747 | case 2: { |
| 2748 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2749 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2750 | msg->set_reason(static_cast<::dmi::StartupConfigInfoResponse_Reason>(val)); |
| 2751 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2752 | break; |
| 2753 | } |
| 2754 | // string config_url = 3; |
| 2755 | case 3: { |
| 2756 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2757 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2758 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2759 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.config_url"); |
| 2760 | object = msg->mutable_config_url(); |
| 2761 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2762 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2763 | goto string_till_end; |
| 2764 | } |
| 2765 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2766 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2767 | ptr += size; |
| 2768 | break; |
| 2769 | } |
| 2770 | // string version = 4; |
| 2771 | case 4: { |
| 2772 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2773 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2774 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2775 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.version"); |
| 2776 | object = msg->mutable_version(); |
| 2777 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2778 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2779 | goto string_till_end; |
| 2780 | } |
| 2781 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2782 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2783 | ptr += size; |
| 2784 | break; |
| 2785 | } |
| 2786 | // string reason_detail = 5; |
| 2787 | case 5: { |
| 2788 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 2789 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2790 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2791 | ctx->extra_parse_data().SetFieldName("dmi.StartupConfigInfoResponse.reason_detail"); |
| 2792 | object = msg->mutable_reason_detail(); |
| 2793 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2794 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2795 | goto string_till_end; |
| 2796 | } |
| 2797 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2798 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2799 | ptr += size; |
| 2800 | break; |
| 2801 | } |
| 2802 | default: { |
| 2803 | handle_unusual: |
| 2804 | if ((tag & 7) == 4 || tag == 0) { |
| 2805 | ctx->EndGroup(tag); |
| 2806 | return ptr; |
| 2807 | } |
| 2808 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2809 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2810 | ptr = res.first; |
| 2811 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2812 | if (res.second) return ptr; |
| 2813 | } |
| 2814 | } // switch |
| 2815 | } // while |
| 2816 | return ptr; |
| 2817 | string_till_end: |
| 2818 | static_cast<::std::string*>(object)->clear(); |
| 2819 | static_cast<::std::string*>(object)->reserve(size); |
| 2820 | goto len_delim_till_end; |
| 2821 | len_delim_till_end: |
| 2822 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2823 | {parser_till_end, object}, size); |
| 2824 | } |
| 2825 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2826 | bool StartupConfigInfoResponse::MergePartialFromCodedStream( |
| 2827 | ::google::protobuf::io::CodedInputStream* input) { |
| 2828 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2829 | ::google::protobuf::uint32 tag; |
| 2830 | // @@protoc_insertion_point(parse_start:dmi.StartupConfigInfoResponse) |
| 2831 | for (;;) { |
| 2832 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2833 | tag = p.first; |
| 2834 | if (!p.second) goto handle_unusual; |
| 2835 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2836 | // .dmi.Status status = 1; |
| 2837 | case 1: { |
| 2838 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2839 | int value = 0; |
| 2840 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2841 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2842 | input, &value))); |
| 2843 | set_status(static_cast< ::dmi::Status >(value)); |
| 2844 | } else { |
| 2845 | goto handle_unusual; |
| 2846 | } |
| 2847 | break; |
| 2848 | } |
| 2849 | |
| 2850 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2851 | case 2: { |
| 2852 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2853 | int value = 0; |
| 2854 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2855 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2856 | input, &value))); |
| 2857 | set_reason(static_cast< ::dmi::StartupConfigInfoResponse_Reason >(value)); |
| 2858 | } else { |
| 2859 | goto handle_unusual; |
| 2860 | } |
| 2861 | break; |
| 2862 | } |
| 2863 | |
| 2864 | // string config_url = 3; |
| 2865 | case 3: { |
| 2866 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2867 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2868 | input, this->mutable_config_url())); |
| 2869 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2870 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 2871 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2872 | "dmi.StartupConfigInfoResponse.config_url")); |
| 2873 | } else { |
| 2874 | goto handle_unusual; |
| 2875 | } |
| 2876 | break; |
| 2877 | } |
| 2878 | |
| 2879 | // string version = 4; |
| 2880 | case 4: { |
| 2881 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2882 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2883 | input, this->mutable_version())); |
| 2884 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2885 | this->version().data(), static_cast<int>(this->version().length()), |
| 2886 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2887 | "dmi.StartupConfigInfoResponse.version")); |
| 2888 | } else { |
| 2889 | goto handle_unusual; |
| 2890 | } |
| 2891 | break; |
| 2892 | } |
| 2893 | |
| 2894 | // string reason_detail = 5; |
| 2895 | case 5: { |
| 2896 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 2897 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2898 | input, this->mutable_reason_detail())); |
| 2899 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2900 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2901 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2902 | "dmi.StartupConfigInfoResponse.reason_detail")); |
| 2903 | } else { |
| 2904 | goto handle_unusual; |
| 2905 | } |
| 2906 | break; |
| 2907 | } |
| 2908 | |
| 2909 | default: { |
| 2910 | handle_unusual: |
| 2911 | if (tag == 0) { |
| 2912 | goto success; |
| 2913 | } |
| 2914 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2915 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2916 | break; |
| 2917 | } |
| 2918 | } |
| 2919 | } |
| 2920 | success: |
| 2921 | // @@protoc_insertion_point(parse_success:dmi.StartupConfigInfoResponse) |
| 2922 | return true; |
| 2923 | failure: |
| 2924 | // @@protoc_insertion_point(parse_failure:dmi.StartupConfigInfoResponse) |
| 2925 | return false; |
| 2926 | #undef DO_ |
| 2927 | } |
| 2928 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2929 | |
| 2930 | void StartupConfigInfoResponse::SerializeWithCachedSizes( |
| 2931 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2932 | // @@protoc_insertion_point(serialize_start:dmi.StartupConfigInfoResponse) |
| 2933 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2934 | (void) cached_has_bits; |
| 2935 | |
| 2936 | // .dmi.Status status = 1; |
| 2937 | if (this->status() != 0) { |
| 2938 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2939 | 1, this->status(), output); |
| 2940 | } |
| 2941 | |
| 2942 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2943 | if (this->reason() != 0) { |
| 2944 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2945 | 2, this->reason(), output); |
| 2946 | } |
| 2947 | |
| 2948 | // string config_url = 3; |
| 2949 | if (this->config_url().size() > 0) { |
| 2950 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2951 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 2952 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2953 | "dmi.StartupConfigInfoResponse.config_url"); |
| 2954 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2955 | 3, this->config_url(), output); |
| 2956 | } |
| 2957 | |
| 2958 | // string version = 4; |
| 2959 | if (this->version().size() > 0) { |
| 2960 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2961 | this->version().data(), static_cast<int>(this->version().length()), |
| 2962 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2963 | "dmi.StartupConfigInfoResponse.version"); |
| 2964 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2965 | 4, this->version(), output); |
| 2966 | } |
| 2967 | |
| 2968 | // string reason_detail = 5; |
| 2969 | if (this->reason_detail().size() > 0) { |
| 2970 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2971 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2972 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2973 | "dmi.StartupConfigInfoResponse.reason_detail"); |
| 2974 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2975 | 5, this->reason_detail(), output); |
| 2976 | } |
| 2977 | |
| 2978 | if (_internal_metadata_.have_unknown_fields()) { |
| 2979 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2980 | _internal_metadata_.unknown_fields(), output); |
| 2981 | } |
| 2982 | // @@protoc_insertion_point(serialize_end:dmi.StartupConfigInfoResponse) |
| 2983 | } |
| 2984 | |
| 2985 | ::google::protobuf::uint8* StartupConfigInfoResponse::InternalSerializeWithCachedSizesToArray( |
| 2986 | ::google::protobuf::uint8* target) const { |
| 2987 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartupConfigInfoResponse) |
| 2988 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2989 | (void) cached_has_bits; |
| 2990 | |
| 2991 | // .dmi.Status status = 1; |
| 2992 | if (this->status() != 0) { |
| 2993 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2994 | 1, this->status(), target); |
| 2995 | } |
| 2996 | |
| 2997 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 2998 | if (this->reason() != 0) { |
| 2999 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3000 | 2, this->reason(), target); |
| 3001 | } |
| 3002 | |
| 3003 | // string config_url = 3; |
| 3004 | if (this->config_url().size() > 0) { |
| 3005 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3006 | this->config_url().data(), static_cast<int>(this->config_url().length()), |
| 3007 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3008 | "dmi.StartupConfigInfoResponse.config_url"); |
| 3009 | target = |
| 3010 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3011 | 3, this->config_url(), target); |
| 3012 | } |
| 3013 | |
| 3014 | // string version = 4; |
| 3015 | if (this->version().size() > 0) { |
| 3016 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3017 | this->version().data(), static_cast<int>(this->version().length()), |
| 3018 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3019 | "dmi.StartupConfigInfoResponse.version"); |
| 3020 | target = |
| 3021 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3022 | 4, this->version(), target); |
| 3023 | } |
| 3024 | |
| 3025 | // string reason_detail = 5; |
| 3026 | if (this->reason_detail().size() > 0) { |
| 3027 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3028 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3029 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3030 | "dmi.StartupConfigInfoResponse.reason_detail"); |
| 3031 | target = |
| 3032 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3033 | 5, this->reason_detail(), target); |
| 3034 | } |
| 3035 | |
| 3036 | if (_internal_metadata_.have_unknown_fields()) { |
| 3037 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3038 | _internal_metadata_.unknown_fields(), target); |
| 3039 | } |
| 3040 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartupConfigInfoResponse) |
| 3041 | return target; |
| 3042 | } |
| 3043 | |
| 3044 | size_t StartupConfigInfoResponse::ByteSizeLong() const { |
| 3045 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartupConfigInfoResponse) |
| 3046 | size_t total_size = 0; |
| 3047 | |
| 3048 | if (_internal_metadata_.have_unknown_fields()) { |
| 3049 | total_size += |
| 3050 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3051 | _internal_metadata_.unknown_fields()); |
| 3052 | } |
| 3053 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3054 | // Prevent compiler warnings about cached_has_bits being unused |
| 3055 | (void) cached_has_bits; |
| 3056 | |
| 3057 | // string config_url = 3; |
| 3058 | if (this->config_url().size() > 0) { |
| 3059 | total_size += 1 + |
| 3060 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3061 | this->config_url()); |
| 3062 | } |
| 3063 | |
| 3064 | // string version = 4; |
| 3065 | if (this->version().size() > 0) { |
| 3066 | total_size += 1 + |
| 3067 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3068 | this->version()); |
| 3069 | } |
| 3070 | |
| 3071 | // string reason_detail = 5; |
| 3072 | if (this->reason_detail().size() > 0) { |
| 3073 | total_size += 1 + |
| 3074 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3075 | this->reason_detail()); |
| 3076 | } |
| 3077 | |
| 3078 | // .dmi.Status status = 1; |
| 3079 | if (this->status() != 0) { |
| 3080 | total_size += 1 + |
| 3081 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3082 | } |
| 3083 | |
| 3084 | // .dmi.StartupConfigInfoResponse.Reason reason = 2; |
| 3085 | if (this->reason() != 0) { |
| 3086 | total_size += 1 + |
| 3087 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3088 | } |
| 3089 | |
| 3090 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3091 | SetCachedSize(cached_size); |
| 3092 | return total_size; |
| 3093 | } |
| 3094 | |
| 3095 | void StartupConfigInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3096 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartupConfigInfoResponse) |
| 3097 | GOOGLE_DCHECK_NE(&from, this); |
| 3098 | const StartupConfigInfoResponse* source = |
| 3099 | ::google::protobuf::DynamicCastToGenerated<StartupConfigInfoResponse>( |
| 3100 | &from); |
| 3101 | if (source == nullptr) { |
| 3102 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartupConfigInfoResponse) |
| 3103 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3104 | } else { |
| 3105 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartupConfigInfoResponse) |
| 3106 | MergeFrom(*source); |
| 3107 | } |
| 3108 | } |
| 3109 | |
| 3110 | void StartupConfigInfoResponse::MergeFrom(const StartupConfigInfoResponse& from) { |
| 3111 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartupConfigInfoResponse) |
| 3112 | GOOGLE_DCHECK_NE(&from, this); |
| 3113 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3114 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3115 | (void) cached_has_bits; |
| 3116 | |
| 3117 | if (from.config_url().size() > 0) { |
| 3118 | |
| 3119 | config_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.config_url_); |
| 3120 | } |
| 3121 | if (from.version().size() > 0) { |
| 3122 | |
| 3123 | version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); |
| 3124 | } |
| 3125 | if (from.reason_detail().size() > 0) { |
| 3126 | |
| 3127 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3128 | } |
| 3129 | if (from.status() != 0) { |
| 3130 | set_status(from.status()); |
| 3131 | } |
| 3132 | if (from.reason() != 0) { |
| 3133 | set_reason(from.reason()); |
| 3134 | } |
| 3135 | } |
| 3136 | |
| 3137 | void StartupConfigInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3138 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartupConfigInfoResponse) |
| 3139 | if (&from == this) return; |
| 3140 | Clear(); |
| 3141 | MergeFrom(from); |
| 3142 | } |
| 3143 | |
| 3144 | void StartupConfigInfoResponse::CopyFrom(const StartupConfigInfoResponse& from) { |
| 3145 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartupConfigInfoResponse) |
| 3146 | if (&from == this) return; |
| 3147 | Clear(); |
| 3148 | MergeFrom(from); |
| 3149 | } |
| 3150 | |
| 3151 | bool StartupConfigInfoResponse::IsInitialized() const { |
| 3152 | return true; |
| 3153 | } |
| 3154 | |
| 3155 | void StartupConfigInfoResponse::Swap(StartupConfigInfoResponse* other) { |
| 3156 | if (other == this) return; |
| 3157 | InternalSwap(other); |
| 3158 | } |
| 3159 | void StartupConfigInfoResponse::InternalSwap(StartupConfigInfoResponse* other) { |
| 3160 | using std::swap; |
| 3161 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3162 | config_url_.Swap(&other->config_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3163 | GetArenaNoVirtual()); |
| 3164 | version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3165 | GetArenaNoVirtual()); |
| 3166 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3167 | GetArenaNoVirtual()); |
| 3168 | swap(status_, other->status_); |
| 3169 | swap(reason_, other->reason_); |
| 3170 | } |
| 3171 | |
| 3172 | ::google::protobuf::Metadata StartupConfigInfoResponse::GetMetadata() const { |
| 3173 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fmanagement_5fservice_2eproto); |
| 3174 | return ::file_level_metadata_dmi_2fsw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3175 | } |
| 3176 | |
| 3177 | |
| 3178 | // @@protoc_insertion_point(namespace_scope) |
| 3179 | } // namespace dmi |
| 3180 | namespace google { |
| 3181 | namespace protobuf { |
| 3182 | template<> PROTOBUF_NOINLINE ::dmi::SoftwareVersionInformation* Arena::CreateMaybeMessage< ::dmi::SoftwareVersionInformation >(Arena* arena) { |
| 3183 | return Arena::CreateInternal< ::dmi::SoftwareVersionInformation >(arena); |
| 3184 | } |
| 3185 | template<> PROTOBUF_NOINLINE ::dmi::GetSoftwareVersionInformationResponse* Arena::CreateMaybeMessage< ::dmi::GetSoftwareVersionInformationResponse >(Arena* arena) { |
| 3186 | return Arena::CreateInternal< ::dmi::GetSoftwareVersionInformationResponse >(arena); |
| 3187 | } |
| 3188 | template<> PROTOBUF_NOINLINE ::dmi::DownloadImageRequest* Arena::CreateMaybeMessage< ::dmi::DownloadImageRequest >(Arena* arena) { |
| 3189 | return Arena::CreateInternal< ::dmi::DownloadImageRequest >(arena); |
| 3190 | } |
| 3191 | template<> PROTOBUF_NOINLINE ::dmi::ConfigRequest* Arena::CreateMaybeMessage< ::dmi::ConfigRequest >(Arena* arena) { |
| 3192 | return Arena::CreateInternal< ::dmi::ConfigRequest >(arena); |
| 3193 | } |
| 3194 | template<> PROTOBUF_NOINLINE ::dmi::ConfigResponse* Arena::CreateMaybeMessage< ::dmi::ConfigResponse >(Arena* arena) { |
| 3195 | return Arena::CreateInternal< ::dmi::ConfigResponse >(arena); |
| 3196 | } |
| 3197 | template<> PROTOBUF_NOINLINE ::dmi::StartupConfigInfoRequest* Arena::CreateMaybeMessage< ::dmi::StartupConfigInfoRequest >(Arena* arena) { |
| 3198 | return Arena::CreateInternal< ::dmi::StartupConfigInfoRequest >(arena); |
| 3199 | } |
| 3200 | template<> PROTOBUF_NOINLINE ::dmi::StartupConfigInfoResponse* Arena::CreateMaybeMessage< ::dmi::StartupConfigInfoResponse >(Arena* arena) { |
| 3201 | return Arena::CreateInternal< ::dmi::StartupConfigInfoResponse >(arena); |
| 3202 | } |
| 3203 | } // namespace protobuf |
| 3204 | } // namespace google |
| 3205 | |
| 3206 | // @@protoc_insertion_point(global_scope) |
| 3207 | #include <google/protobuf/port_undef.inc> |