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