blob: b96d874f02ca2e4afc5acb6d8529fea6b4e94797 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dmi/sw_image.proto
3
4#include "dmi/sw_image.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_2fsw_5fimage_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto;
20namespace dmi {
21class ImageVersionDefaultTypeInternal {
22 public:
23 ::google::protobuf::internal::ExplicitlyConstructed<ImageVersion> _instance;
24} _ImageVersion_default_instance_;
25class ImageInformationDefaultTypeInternal {
26 public:
27 ::google::protobuf::internal::ExplicitlyConstructed<ImageInformation> _instance;
28} _ImageInformation_default_instance_;
29class ImageStatusDefaultTypeInternal {
30 public:
31 ::google::protobuf::internal::ExplicitlyConstructed<ImageStatus> _instance;
32} _ImageStatus_default_instance_;
33} // namespace dmi
34static void InitDefaultsImageVersion_dmi_2fsw_5fimage_2eproto() {
35 GOOGLE_PROTOBUF_VERIFY_VERSION;
36
37 {
38 void* ptr = &::dmi::_ImageVersion_default_instance_;
39 new (ptr) ::dmi::ImageVersion();
40 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
41 }
42 ::dmi::ImageVersion::InitAsDefaultInstance();
43}
44
45::google::protobuf::internal::SCCInfo<0> scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto =
46 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsImageVersion_dmi_2fsw_5fimage_2eproto}, {}};
47
48static void InitDefaultsImageInformation_dmi_2fsw_5fimage_2eproto() {
49 GOOGLE_PROTOBUF_VERIFY_VERSION;
50
51 {
52 void* ptr = &::dmi::_ImageInformation_default_instance_;
53 new (ptr) ::dmi::ImageInformation();
54 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
55 }
56 ::dmi::ImageInformation::InitAsDefaultInstance();
57}
58
59::google::protobuf::internal::SCCInfo<1> scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto =
60 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsImageInformation_dmi_2fsw_5fimage_2eproto}, {
61 &scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base,}};
62
63static void InitDefaultsImageStatus_dmi_2fsw_5fimage_2eproto() {
64 GOOGLE_PROTOBUF_VERIFY_VERSION;
65
66 {
67 void* ptr = &::dmi::_ImageStatus_default_instance_;
68 new (ptr) ::dmi::ImageStatus();
69 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
70 }
71 ::dmi::ImageStatus::InitAsDefaultInstance();
72}
73
74::google::protobuf::internal::SCCInfo<0> scc_info_ImageStatus_dmi_2fsw_5fimage_2eproto =
75 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsImageStatus_dmi_2fsw_5fimage_2eproto}, {}};
76
77void InitDefaults_dmi_2fsw_5fimage_2eproto() {
78 ::google::protobuf::internal::InitSCC(&scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base);
79 ::google::protobuf::internal::InitSCC(&scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto.base);
80 ::google::protobuf::internal::InitSCC(&scc_info_ImageStatus_dmi_2fsw_5fimage_2eproto.base);
81}
82
83::google::protobuf::Metadata file_level_metadata_dmi_2fsw_5fimage_2eproto[3];
84const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fsw_5fimage_2eproto[2];
85constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fsw_5fimage_2eproto = nullptr;
86
87const ::google::protobuf::uint32 TableStruct_dmi_2fsw_5fimage_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
88 ~0u, // no _has_bits_
89 PROTOBUF_FIELD_OFFSET(::dmi::ImageVersion, _internal_metadata_),
90 ~0u, // no _extensions_
91 ~0u, // no _oneof_case_
92 ~0u, // no _weak_field_map_
93 PROTOBUF_FIELD_OFFSET(::dmi::ImageVersion, image_name_),
94 PROTOBUF_FIELD_OFFSET(::dmi::ImageVersion, version_),
95 ~0u, // no _has_bits_
96 PROTOBUF_FIELD_OFFSET(::dmi::ImageInformation, _internal_metadata_),
97 ~0u, // no _extensions_
98 ~0u, // no _oneof_case_
99 ~0u, // no _weak_field_map_
100 PROTOBUF_FIELD_OFFSET(::dmi::ImageInformation, image_),
101 PROTOBUF_FIELD_OFFSET(::dmi::ImageInformation, image_install_script_),
102 PROTOBUF_FIELD_OFFSET(::dmi::ImageInformation, image_url_),
103 PROTOBUF_FIELD_OFFSET(::dmi::ImageInformation, sha256sum_),
104 ~0u, // no _has_bits_
105 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, _internal_metadata_),
106 ~0u, // no _extensions_
107 ~0u, // no _oneof_case_
108 ~0u, // no _weak_field_map_
109 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, status_),
110 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, reason_),
111 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, state_),
112 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, description_),
113 PROTOBUF_FIELD_OFFSET(::dmi::ImageStatus, reason_detail_),
114};
115static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
116 { 0, -1, sizeof(::dmi::ImageVersion)},
117 { 7, -1, sizeof(::dmi::ImageInformation)},
118 { 16, -1, sizeof(::dmi::ImageStatus)},
119};
120
121static ::google::protobuf::Message const * const file_default_instances[] = {
122 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ImageVersion_default_instance_),
123 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ImageInformation_default_instance_),
124 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ImageStatus_default_instance_),
125};
126
127::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fsw_5fimage_2eproto = {
128 {}, AddDescriptors_dmi_2fsw_5fimage_2eproto, "dmi/sw_image.proto", schemas,
129 file_default_instances, TableStruct_dmi_2fsw_5fimage_2eproto::offsets,
130 file_level_metadata_dmi_2fsw_5fimage_2eproto, 3, file_level_enum_descriptors_dmi_2fsw_5fimage_2eproto, file_level_service_descriptors_dmi_2fsw_5fimage_2eproto,
131};
132
133const char descriptor_table_protodef_dmi_2fsw_5fimage_2eproto[] =
134 "\n\022dmi/sw_image.proto\022\003dmi\032\021dmi/commons.p"
135 "roto\"3\n\014ImageVersion\022\022\n\nimage_name\030\001 \001(\t"
136 "\022\017\n\007version\030\002 \001(\t\"x\n\020ImageInformation\022 \n"
137 "\005image\030\001 \001(\0132\021.dmi.ImageVersion\022\034\n\024image"
138 "_install_script\030\002 \001(\t\022\021\n\timage_url\030\003 \001(\t"
139 "\022\021\n\tsha256sum\030\005 \001(\t\"\342\004\n\013ImageStatus\022\033\n\006s"
140 "tatus\030\001 \001(\0162\013.dmi.Status\022\'\n\006reason\030\002 \001(\016"
141 "2\027.dmi.ImageStatus.Reason\022*\n\005state\030\003 \001(\016"
142 "2\033.dmi.ImageStatus.ImageState\022\023\n\013descrip"
143 "tion\030\004 \001(\t\022\025\n\rreason_detail\030\005 \001(\t\"\320\001\n\nIm"
144 "ageState\022\023\n\017UNDEFINED_STATE\020\000\022\021\n\rCOPYING"
145 "_IMAGE\020\001\022\024\n\020INSTALLING_IMAGE\020\002\022\024\n\020COMMIT"
146 "TING_IMAGE\020\003\022\024\n\020REBOOTING_DEVICE\020\004\022\024\n\020UP"
147 "GRADE_COMPLETE\020\005\022\022\n\016UPGRADE_FAILED\020\006\022\027\n\023"
148 "ACTIVATION_COMPLETE\020\007\022\025\n\021ACTIVATION_FAIL"
149 "ED\020\010\"\341\001\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\024\n"
150 "\020ERROR_IN_REQUEST\020\001\022\022\n\016INTERNAL_ERROR\020\002\022"
151 "\031\n\025DEVICE_IN_WRONG_STATE\020\003\022\021\n\rINVALID_IM"
152 "AGE\020\004\022\030\n\024WRONG_IMAGE_CHECKSUM\020\005\022!\n\035OPERA"
153 "TION_ALREADY_IN_PROGRESS\020\006\022\022\n\016UNKNOWN_DE"
154 "VICE\020\007\022\030\n\024DEVICE_NOT_REACHABLE\020\010B;Z9gith"
155 "ub.com/opencord/device-management-interf"
156 "ace/v3/go/dmib\006proto3"
157 ;
158::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fsw_5fimage_2eproto = {
159 false, InitDefaults_dmi_2fsw_5fimage_2eproto,
160 descriptor_table_protodef_dmi_2fsw_5fimage_2eproto,
161 "dmi/sw_image.proto", &assign_descriptors_table_dmi_2fsw_5fimage_2eproto, 901,
162};
163
164void AddDescriptors_dmi_2fsw_5fimage_2eproto() {
165 static constexpr ::google::protobuf::internal::InitFunc deps[1] =
166 {
167 ::AddDescriptors_dmi_2fcommons_2eproto,
168 };
169 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fsw_5fimage_2eproto, deps, 1);
170}
171
172// Force running AddDescriptors() at dynamic initialization time.
173static bool dynamic_init_dummy_dmi_2fsw_5fimage_2eproto = []() { AddDescriptors_dmi_2fsw_5fimage_2eproto(); return true; }();
174namespace dmi {
175const ::google::protobuf::EnumDescriptor* ImageStatus_ImageState_descriptor() {
176 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fimage_2eproto);
177 return file_level_enum_descriptors_dmi_2fsw_5fimage_2eproto[0];
178}
179bool ImageStatus_ImageState_IsValid(int value) {
180 switch (value) {
181 case 0:
182 case 1:
183 case 2:
184 case 3:
185 case 4:
186 case 5:
187 case 6:
188 case 7:
189 case 8:
190 return true;
191 default:
192 return false;
193 }
194}
195
196#if !defined(_MSC_VER) || _MSC_VER >= 1900
197const ImageStatus_ImageState ImageStatus::UNDEFINED_STATE;
198const ImageStatus_ImageState ImageStatus::COPYING_IMAGE;
199const ImageStatus_ImageState ImageStatus::INSTALLING_IMAGE;
200const ImageStatus_ImageState ImageStatus::COMMITTING_IMAGE;
201const ImageStatus_ImageState ImageStatus::REBOOTING_DEVICE;
202const ImageStatus_ImageState ImageStatus::UPGRADE_COMPLETE;
203const ImageStatus_ImageState ImageStatus::UPGRADE_FAILED;
204const ImageStatus_ImageState ImageStatus::ACTIVATION_COMPLETE;
205const ImageStatus_ImageState ImageStatus::ACTIVATION_FAILED;
206const ImageStatus_ImageState ImageStatus::ImageState_MIN;
207const ImageStatus_ImageState ImageStatus::ImageState_MAX;
208const int ImageStatus::ImageState_ARRAYSIZE;
209#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
210const ::google::protobuf::EnumDescriptor* ImageStatus_Reason_descriptor() {
211 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fsw_5fimage_2eproto);
212 return file_level_enum_descriptors_dmi_2fsw_5fimage_2eproto[1];
213}
214bool ImageStatus_Reason_IsValid(int value) {
215 switch (value) {
216 case 0:
217 case 1:
218 case 2:
219 case 3:
220 case 4:
221 case 5:
222 case 6:
223 case 7:
224 case 8:
225 return true;
226 default:
227 return false;
228 }
229}
230
231#if !defined(_MSC_VER) || _MSC_VER >= 1900
232const ImageStatus_Reason ImageStatus::UNDEFINED_REASON;
233const ImageStatus_Reason ImageStatus::ERROR_IN_REQUEST;
234const ImageStatus_Reason ImageStatus::INTERNAL_ERROR;
235const ImageStatus_Reason ImageStatus::DEVICE_IN_WRONG_STATE;
236const ImageStatus_Reason ImageStatus::INVALID_IMAGE;
237const ImageStatus_Reason ImageStatus::WRONG_IMAGE_CHECKSUM;
238const ImageStatus_Reason ImageStatus::OPERATION_ALREADY_IN_PROGRESS;
239const ImageStatus_Reason ImageStatus::UNKNOWN_DEVICE;
240const ImageStatus_Reason ImageStatus::DEVICE_NOT_REACHABLE;
241const ImageStatus_Reason ImageStatus::Reason_MIN;
242const ImageStatus_Reason ImageStatus::Reason_MAX;
243const int ImageStatus::Reason_ARRAYSIZE;
244#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
245
246// ===================================================================
247
248void ImageVersion::InitAsDefaultInstance() {
249}
250class ImageVersion::HasBitSetters {
251 public:
252};
253
254#if !defined(_MSC_VER) || _MSC_VER >= 1900
255const int ImageVersion::kImageNameFieldNumber;
256const int ImageVersion::kVersionFieldNumber;
257#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
258
259ImageVersion::ImageVersion()
260 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
261 SharedCtor();
262 // @@protoc_insertion_point(constructor:dmi.ImageVersion)
263}
264ImageVersion::ImageVersion(const ImageVersion& from)
265 : ::google::protobuf::Message(),
266 _internal_metadata_(nullptr) {
267 _internal_metadata_.MergeFrom(from._internal_metadata_);
268 image_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
269 if (from.image_name().size() > 0) {
270 image_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_name_);
271 }
272 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
273 if (from.version().size() > 0) {
274 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
275 }
276 // @@protoc_insertion_point(copy_constructor:dmi.ImageVersion)
277}
278
279void ImageVersion::SharedCtor() {
280 ::google::protobuf::internal::InitSCC(
281 &scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base);
282 image_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
283 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
284}
285
286ImageVersion::~ImageVersion() {
287 // @@protoc_insertion_point(destructor:dmi.ImageVersion)
288 SharedDtor();
289}
290
291void ImageVersion::SharedDtor() {
292 image_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
294}
295
296void ImageVersion::SetCachedSize(int size) const {
297 _cached_size_.Set(size);
298}
299const ImageVersion& ImageVersion::default_instance() {
300 ::google::protobuf::internal::InitSCC(&::scc_info_ImageVersion_dmi_2fsw_5fimage_2eproto.base);
301 return *internal_default_instance();
302}
303
304
305void ImageVersion::Clear() {
306// @@protoc_insertion_point(message_clear_start:dmi.ImageVersion)
307 ::google::protobuf::uint32 cached_has_bits = 0;
308 // Prevent compiler warnings about cached_has_bits being unused
309 (void) cached_has_bits;
310
311 image_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
313 _internal_metadata_.Clear();
314}
315
316#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
317const char* ImageVersion::_InternalParse(const char* begin, const char* end, void* object,
318 ::google::protobuf::internal::ParseContext* ctx) {
319 auto msg = static_cast<ImageVersion*>(object);
320 ::google::protobuf::int32 size; (void)size;
321 int depth; (void)depth;
322 ::google::protobuf::uint32 tag;
323 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
324 auto ptr = begin;
325 while (ptr < end) {
326 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
327 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
328 switch (tag >> 3) {
329 // string image_name = 1;
330 case 1: {
331 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
332 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
333 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
334 ctx->extra_parse_data().SetFieldName("dmi.ImageVersion.image_name");
335 object = msg->mutable_image_name();
336 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
337 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
338 goto string_till_end;
339 }
340 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
341 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
342 ptr += size;
343 break;
344 }
345 // string version = 2;
346 case 2: {
347 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
348 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
349 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
350 ctx->extra_parse_data().SetFieldName("dmi.ImageVersion.version");
351 object = msg->mutable_version();
352 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
353 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
354 goto string_till_end;
355 }
356 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
357 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
358 ptr += size;
359 break;
360 }
361 default: {
362 handle_unusual:
363 if ((tag & 7) == 4 || tag == 0) {
364 ctx->EndGroup(tag);
365 return ptr;
366 }
367 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
368 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
369 ptr = res.first;
370 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
371 if (res.second) return ptr;
372 }
373 } // switch
374 } // while
375 return ptr;
376string_till_end:
377 static_cast<::std::string*>(object)->clear();
378 static_cast<::std::string*>(object)->reserve(size);
379 goto len_delim_till_end;
380len_delim_till_end:
381 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
382 {parser_till_end, object}, size);
383}
384#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
385bool ImageVersion::MergePartialFromCodedStream(
386 ::google::protobuf::io::CodedInputStream* input) {
387#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
388 ::google::protobuf::uint32 tag;
389 // @@protoc_insertion_point(parse_start:dmi.ImageVersion)
390 for (;;) {
391 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
392 tag = p.first;
393 if (!p.second) goto handle_unusual;
394 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
395 // string image_name = 1;
396 case 1: {
397 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
398 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
399 input, this->mutable_image_name()));
400 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
401 this->image_name().data(), static_cast<int>(this->image_name().length()),
402 ::google::protobuf::internal::WireFormatLite::PARSE,
403 "dmi.ImageVersion.image_name"));
404 } else {
405 goto handle_unusual;
406 }
407 break;
408 }
409
410 // string version = 2;
411 case 2: {
412 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
413 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
414 input, this->mutable_version()));
415 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
416 this->version().data(), static_cast<int>(this->version().length()),
417 ::google::protobuf::internal::WireFormatLite::PARSE,
418 "dmi.ImageVersion.version"));
419 } else {
420 goto handle_unusual;
421 }
422 break;
423 }
424
425 default: {
426 handle_unusual:
427 if (tag == 0) {
428 goto success;
429 }
430 DO_(::google::protobuf::internal::WireFormat::SkipField(
431 input, tag, _internal_metadata_.mutable_unknown_fields()));
432 break;
433 }
434 }
435 }
436success:
437 // @@protoc_insertion_point(parse_success:dmi.ImageVersion)
438 return true;
439failure:
440 // @@protoc_insertion_point(parse_failure:dmi.ImageVersion)
441 return false;
442#undef DO_
443}
444#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
445
446void ImageVersion::SerializeWithCachedSizes(
447 ::google::protobuf::io::CodedOutputStream* output) const {
448 // @@protoc_insertion_point(serialize_start:dmi.ImageVersion)
449 ::google::protobuf::uint32 cached_has_bits = 0;
450 (void) cached_has_bits;
451
452 // string image_name = 1;
453 if (this->image_name().size() > 0) {
454 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
455 this->image_name().data(), static_cast<int>(this->image_name().length()),
456 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
457 "dmi.ImageVersion.image_name");
458 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
459 1, this->image_name(), output);
460 }
461
462 // string version = 2;
463 if (this->version().size() > 0) {
464 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
465 this->version().data(), static_cast<int>(this->version().length()),
466 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
467 "dmi.ImageVersion.version");
468 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
469 2, this->version(), output);
470 }
471
472 if (_internal_metadata_.have_unknown_fields()) {
473 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
474 _internal_metadata_.unknown_fields(), output);
475 }
476 // @@protoc_insertion_point(serialize_end:dmi.ImageVersion)
477}
478
479::google::protobuf::uint8* ImageVersion::InternalSerializeWithCachedSizesToArray(
480 ::google::protobuf::uint8* target) const {
481 // @@protoc_insertion_point(serialize_to_array_start:dmi.ImageVersion)
482 ::google::protobuf::uint32 cached_has_bits = 0;
483 (void) cached_has_bits;
484
485 // string image_name = 1;
486 if (this->image_name().size() > 0) {
487 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
488 this->image_name().data(), static_cast<int>(this->image_name().length()),
489 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
490 "dmi.ImageVersion.image_name");
491 target =
492 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
493 1, this->image_name(), target);
494 }
495
496 // string version = 2;
497 if (this->version().size() > 0) {
498 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
499 this->version().data(), static_cast<int>(this->version().length()),
500 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
501 "dmi.ImageVersion.version");
502 target =
503 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
504 2, this->version(), target);
505 }
506
507 if (_internal_metadata_.have_unknown_fields()) {
508 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
509 _internal_metadata_.unknown_fields(), target);
510 }
511 // @@protoc_insertion_point(serialize_to_array_end:dmi.ImageVersion)
512 return target;
513}
514
515size_t ImageVersion::ByteSizeLong() const {
516// @@protoc_insertion_point(message_byte_size_start:dmi.ImageVersion)
517 size_t total_size = 0;
518
519 if (_internal_metadata_.have_unknown_fields()) {
520 total_size +=
521 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
522 _internal_metadata_.unknown_fields());
523 }
524 ::google::protobuf::uint32 cached_has_bits = 0;
525 // Prevent compiler warnings about cached_has_bits being unused
526 (void) cached_has_bits;
527
528 // string image_name = 1;
529 if (this->image_name().size() > 0) {
530 total_size += 1 +
531 ::google::protobuf::internal::WireFormatLite::StringSize(
532 this->image_name());
533 }
534
535 // string version = 2;
536 if (this->version().size() > 0) {
537 total_size += 1 +
538 ::google::protobuf::internal::WireFormatLite::StringSize(
539 this->version());
540 }
541
542 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
543 SetCachedSize(cached_size);
544 return total_size;
545}
546
547void ImageVersion::MergeFrom(const ::google::protobuf::Message& from) {
548// @@protoc_insertion_point(generalized_merge_from_start:dmi.ImageVersion)
549 GOOGLE_DCHECK_NE(&from, this);
550 const ImageVersion* source =
551 ::google::protobuf::DynamicCastToGenerated<ImageVersion>(
552 &from);
553 if (source == nullptr) {
554 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ImageVersion)
555 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
556 } else {
557 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ImageVersion)
558 MergeFrom(*source);
559 }
560}
561
562void ImageVersion::MergeFrom(const ImageVersion& from) {
563// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ImageVersion)
564 GOOGLE_DCHECK_NE(&from, this);
565 _internal_metadata_.MergeFrom(from._internal_metadata_);
566 ::google::protobuf::uint32 cached_has_bits = 0;
567 (void) cached_has_bits;
568
569 if (from.image_name().size() > 0) {
570
571 image_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_name_);
572 }
573 if (from.version().size() > 0) {
574
575 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
576 }
577}
578
579void ImageVersion::CopyFrom(const ::google::protobuf::Message& from) {
580// @@protoc_insertion_point(generalized_copy_from_start:dmi.ImageVersion)
581 if (&from == this) return;
582 Clear();
583 MergeFrom(from);
584}
585
586void ImageVersion::CopyFrom(const ImageVersion& from) {
587// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ImageVersion)
588 if (&from == this) return;
589 Clear();
590 MergeFrom(from);
591}
592
593bool ImageVersion::IsInitialized() const {
594 return true;
595}
596
597void ImageVersion::Swap(ImageVersion* other) {
598 if (other == this) return;
599 InternalSwap(other);
600}
601void ImageVersion::InternalSwap(ImageVersion* other) {
602 using std::swap;
603 _internal_metadata_.Swap(&other->_internal_metadata_);
604 image_name_.Swap(&other->image_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
605 GetArenaNoVirtual());
606 version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
607 GetArenaNoVirtual());
608}
609
610::google::protobuf::Metadata ImageVersion::GetMetadata() const {
611 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fimage_2eproto);
612 return ::file_level_metadata_dmi_2fsw_5fimage_2eproto[kIndexInFileMessages];
613}
614
615
616// ===================================================================
617
618void ImageInformation::InitAsDefaultInstance() {
619 ::dmi::_ImageInformation_default_instance_._instance.get_mutable()->image_ = const_cast< ::dmi::ImageVersion*>(
620 ::dmi::ImageVersion::internal_default_instance());
621}
622class ImageInformation::HasBitSetters {
623 public:
624 static const ::dmi::ImageVersion& image(const ImageInformation* msg);
625};
626
627const ::dmi::ImageVersion&
628ImageInformation::HasBitSetters::image(const ImageInformation* msg) {
629 return *msg->image_;
630}
631#if !defined(_MSC_VER) || _MSC_VER >= 1900
632const int ImageInformation::kImageFieldNumber;
633const int ImageInformation::kImageInstallScriptFieldNumber;
634const int ImageInformation::kImageUrlFieldNumber;
635const int ImageInformation::kSha256SumFieldNumber;
636#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
637
638ImageInformation::ImageInformation()
639 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
640 SharedCtor();
641 // @@protoc_insertion_point(constructor:dmi.ImageInformation)
642}
643ImageInformation::ImageInformation(const ImageInformation& from)
644 : ::google::protobuf::Message(),
645 _internal_metadata_(nullptr) {
646 _internal_metadata_.MergeFrom(from._internal_metadata_);
647 image_install_script_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
648 if (from.image_install_script().size() > 0) {
649 image_install_script_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_install_script_);
650 }
651 image_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
652 if (from.image_url().size() > 0) {
653 image_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_url_);
654 }
655 sha256sum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
656 if (from.sha256sum().size() > 0) {
657 sha256sum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sha256sum_);
658 }
659 if (from.has_image()) {
660 image_ = new ::dmi::ImageVersion(*from.image_);
661 } else {
662 image_ = nullptr;
663 }
664 // @@protoc_insertion_point(copy_constructor:dmi.ImageInformation)
665}
666
667void ImageInformation::SharedCtor() {
668 ::google::protobuf::internal::InitSCC(
669 &scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto.base);
670 image_install_script_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
671 image_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
672 sha256sum_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
673 image_ = nullptr;
674}
675
676ImageInformation::~ImageInformation() {
677 // @@protoc_insertion_point(destructor:dmi.ImageInformation)
678 SharedDtor();
679}
680
681void ImageInformation::SharedDtor() {
682 image_install_script_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
683 image_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684 sha256sum_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
685 if (this != internal_default_instance()) delete image_;
686}
687
688void ImageInformation::SetCachedSize(int size) const {
689 _cached_size_.Set(size);
690}
691const ImageInformation& ImageInformation::default_instance() {
692 ::google::protobuf::internal::InitSCC(&::scc_info_ImageInformation_dmi_2fsw_5fimage_2eproto.base);
693 return *internal_default_instance();
694}
695
696
697void ImageInformation::Clear() {
698// @@protoc_insertion_point(message_clear_start:dmi.ImageInformation)
699 ::google::protobuf::uint32 cached_has_bits = 0;
700 // Prevent compiler warnings about cached_has_bits being unused
701 (void) cached_has_bits;
702
703 image_install_script_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
704 image_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705 sha256sum_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
706 if (GetArenaNoVirtual() == nullptr && image_ != nullptr) {
707 delete image_;
708 }
709 image_ = nullptr;
710 _internal_metadata_.Clear();
711}
712
713#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
714const char* ImageInformation::_InternalParse(const char* begin, const char* end, void* object,
715 ::google::protobuf::internal::ParseContext* ctx) {
716 auto msg = static_cast<ImageInformation*>(object);
717 ::google::protobuf::int32 size; (void)size;
718 int depth; (void)depth;
719 ::google::protobuf::uint32 tag;
720 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
721 auto ptr = begin;
722 while (ptr < end) {
723 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
724 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
725 switch (tag >> 3) {
726 // .dmi.ImageVersion image = 1;
727 case 1: {
728 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
729 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
730 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
731 parser_till_end = ::dmi::ImageVersion::_InternalParse;
732 object = msg->mutable_image();
733 if (size > end - ptr) goto len_delim_till_end;
734 ptr += size;
735 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
736 {parser_till_end, object}, ptr - size, ptr));
737 break;
738 }
739 // string image_install_script = 2;
740 case 2: {
741 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
742 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
743 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
744 ctx->extra_parse_data().SetFieldName("dmi.ImageInformation.image_install_script");
745 object = msg->mutable_image_install_script();
746 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
747 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
748 goto string_till_end;
749 }
750 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
751 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
752 ptr += size;
753 break;
754 }
755 // string image_url = 3;
756 case 3: {
757 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
758 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
759 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
760 ctx->extra_parse_data().SetFieldName("dmi.ImageInformation.image_url");
761 object = msg->mutable_image_url();
762 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
763 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
764 goto string_till_end;
765 }
766 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
767 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
768 ptr += size;
769 break;
770 }
771 // string sha256sum = 5;
772 case 5: {
773 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
774 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
775 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
776 ctx->extra_parse_data().SetFieldName("dmi.ImageInformation.sha256sum");
777 object = msg->mutable_sha256sum();
778 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
779 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
780 goto string_till_end;
781 }
782 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
783 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
784 ptr += size;
785 break;
786 }
787 default: {
788 handle_unusual:
789 if ((tag & 7) == 4 || tag == 0) {
790 ctx->EndGroup(tag);
791 return ptr;
792 }
793 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
794 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
795 ptr = res.first;
796 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
797 if (res.second) return ptr;
798 }
799 } // switch
800 } // while
801 return ptr;
802string_till_end:
803 static_cast<::std::string*>(object)->clear();
804 static_cast<::std::string*>(object)->reserve(size);
805 goto len_delim_till_end;
806len_delim_till_end:
807 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
808 {parser_till_end, object}, size);
809}
810#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
811bool ImageInformation::MergePartialFromCodedStream(
812 ::google::protobuf::io::CodedInputStream* input) {
813#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
814 ::google::protobuf::uint32 tag;
815 // @@protoc_insertion_point(parse_start:dmi.ImageInformation)
816 for (;;) {
817 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
818 tag = p.first;
819 if (!p.second) goto handle_unusual;
820 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
821 // .dmi.ImageVersion image = 1;
822 case 1: {
823 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
824 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
825 input, mutable_image()));
826 } else {
827 goto handle_unusual;
828 }
829 break;
830 }
831
832 // string image_install_script = 2;
833 case 2: {
834 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
835 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
836 input, this->mutable_image_install_script()));
837 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
838 this->image_install_script().data(), static_cast<int>(this->image_install_script().length()),
839 ::google::protobuf::internal::WireFormatLite::PARSE,
840 "dmi.ImageInformation.image_install_script"));
841 } else {
842 goto handle_unusual;
843 }
844 break;
845 }
846
847 // string image_url = 3;
848 case 3: {
849 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
850 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
851 input, this->mutable_image_url()));
852 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
853 this->image_url().data(), static_cast<int>(this->image_url().length()),
854 ::google::protobuf::internal::WireFormatLite::PARSE,
855 "dmi.ImageInformation.image_url"));
856 } else {
857 goto handle_unusual;
858 }
859 break;
860 }
861
862 // string sha256sum = 5;
863 case 5: {
864 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
865 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
866 input, this->mutable_sha256sum()));
867 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
868 this->sha256sum().data(), static_cast<int>(this->sha256sum().length()),
869 ::google::protobuf::internal::WireFormatLite::PARSE,
870 "dmi.ImageInformation.sha256sum"));
871 } else {
872 goto handle_unusual;
873 }
874 break;
875 }
876
877 default: {
878 handle_unusual:
879 if (tag == 0) {
880 goto success;
881 }
882 DO_(::google::protobuf::internal::WireFormat::SkipField(
883 input, tag, _internal_metadata_.mutable_unknown_fields()));
884 break;
885 }
886 }
887 }
888success:
889 // @@protoc_insertion_point(parse_success:dmi.ImageInformation)
890 return true;
891failure:
892 // @@protoc_insertion_point(parse_failure:dmi.ImageInformation)
893 return false;
894#undef DO_
895}
896#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
897
898void ImageInformation::SerializeWithCachedSizes(
899 ::google::protobuf::io::CodedOutputStream* output) const {
900 // @@protoc_insertion_point(serialize_start:dmi.ImageInformation)
901 ::google::protobuf::uint32 cached_has_bits = 0;
902 (void) cached_has_bits;
903
904 // .dmi.ImageVersion image = 1;
905 if (this->has_image()) {
906 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
907 1, HasBitSetters::image(this), output);
908 }
909
910 // string image_install_script = 2;
911 if (this->image_install_script().size() > 0) {
912 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
913 this->image_install_script().data(), static_cast<int>(this->image_install_script().length()),
914 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
915 "dmi.ImageInformation.image_install_script");
916 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
917 2, this->image_install_script(), output);
918 }
919
920 // string image_url = 3;
921 if (this->image_url().size() > 0) {
922 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
923 this->image_url().data(), static_cast<int>(this->image_url().length()),
924 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
925 "dmi.ImageInformation.image_url");
926 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
927 3, this->image_url(), output);
928 }
929
930 // string sha256sum = 5;
931 if (this->sha256sum().size() > 0) {
932 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
933 this->sha256sum().data(), static_cast<int>(this->sha256sum().length()),
934 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
935 "dmi.ImageInformation.sha256sum");
936 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
937 5, this->sha256sum(), output);
938 }
939
940 if (_internal_metadata_.have_unknown_fields()) {
941 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
942 _internal_metadata_.unknown_fields(), output);
943 }
944 // @@protoc_insertion_point(serialize_end:dmi.ImageInformation)
945}
946
947::google::protobuf::uint8* ImageInformation::InternalSerializeWithCachedSizesToArray(
948 ::google::protobuf::uint8* target) const {
949 // @@protoc_insertion_point(serialize_to_array_start:dmi.ImageInformation)
950 ::google::protobuf::uint32 cached_has_bits = 0;
951 (void) cached_has_bits;
952
953 // .dmi.ImageVersion image = 1;
954 if (this->has_image()) {
955 target = ::google::protobuf::internal::WireFormatLite::
956 InternalWriteMessageToArray(
957 1, HasBitSetters::image(this), target);
958 }
959
960 // string image_install_script = 2;
961 if (this->image_install_script().size() > 0) {
962 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
963 this->image_install_script().data(), static_cast<int>(this->image_install_script().length()),
964 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
965 "dmi.ImageInformation.image_install_script");
966 target =
967 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
968 2, this->image_install_script(), target);
969 }
970
971 // string image_url = 3;
972 if (this->image_url().size() > 0) {
973 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
974 this->image_url().data(), static_cast<int>(this->image_url().length()),
975 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
976 "dmi.ImageInformation.image_url");
977 target =
978 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
979 3, this->image_url(), target);
980 }
981
982 // string sha256sum = 5;
983 if (this->sha256sum().size() > 0) {
984 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
985 this->sha256sum().data(), static_cast<int>(this->sha256sum().length()),
986 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
987 "dmi.ImageInformation.sha256sum");
988 target =
989 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
990 5, this->sha256sum(), target);
991 }
992
993 if (_internal_metadata_.have_unknown_fields()) {
994 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
995 _internal_metadata_.unknown_fields(), target);
996 }
997 // @@protoc_insertion_point(serialize_to_array_end:dmi.ImageInformation)
998 return target;
999}
1000
1001size_t ImageInformation::ByteSizeLong() const {
1002// @@protoc_insertion_point(message_byte_size_start:dmi.ImageInformation)
1003 size_t total_size = 0;
1004
1005 if (_internal_metadata_.have_unknown_fields()) {
1006 total_size +=
1007 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1008 _internal_metadata_.unknown_fields());
1009 }
1010 ::google::protobuf::uint32 cached_has_bits = 0;
1011 // Prevent compiler warnings about cached_has_bits being unused
1012 (void) cached_has_bits;
1013
1014 // string image_install_script = 2;
1015 if (this->image_install_script().size() > 0) {
1016 total_size += 1 +
1017 ::google::protobuf::internal::WireFormatLite::StringSize(
1018 this->image_install_script());
1019 }
1020
1021 // string image_url = 3;
1022 if (this->image_url().size() > 0) {
1023 total_size += 1 +
1024 ::google::protobuf::internal::WireFormatLite::StringSize(
1025 this->image_url());
1026 }
1027
1028 // string sha256sum = 5;
1029 if (this->sha256sum().size() > 0) {
1030 total_size += 1 +
1031 ::google::protobuf::internal::WireFormatLite::StringSize(
1032 this->sha256sum());
1033 }
1034
1035 // .dmi.ImageVersion image = 1;
1036 if (this->has_image()) {
1037 total_size += 1 +
1038 ::google::protobuf::internal::WireFormatLite::MessageSize(
1039 *image_);
1040 }
1041
1042 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1043 SetCachedSize(cached_size);
1044 return total_size;
1045}
1046
1047void ImageInformation::MergeFrom(const ::google::protobuf::Message& from) {
1048// @@protoc_insertion_point(generalized_merge_from_start:dmi.ImageInformation)
1049 GOOGLE_DCHECK_NE(&from, this);
1050 const ImageInformation* source =
1051 ::google::protobuf::DynamicCastToGenerated<ImageInformation>(
1052 &from);
1053 if (source == nullptr) {
1054 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ImageInformation)
1055 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1056 } else {
1057 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ImageInformation)
1058 MergeFrom(*source);
1059 }
1060}
1061
1062void ImageInformation::MergeFrom(const ImageInformation& from) {
1063// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ImageInformation)
1064 GOOGLE_DCHECK_NE(&from, this);
1065 _internal_metadata_.MergeFrom(from._internal_metadata_);
1066 ::google::protobuf::uint32 cached_has_bits = 0;
1067 (void) cached_has_bits;
1068
1069 if (from.image_install_script().size() > 0) {
1070
1071 image_install_script_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_install_script_);
1072 }
1073 if (from.image_url().size() > 0) {
1074
1075 image_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_url_);
1076 }
1077 if (from.sha256sum().size() > 0) {
1078
1079 sha256sum_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sha256sum_);
1080 }
1081 if (from.has_image()) {
1082 mutable_image()->::dmi::ImageVersion::MergeFrom(from.image());
1083 }
1084}
1085
1086void ImageInformation::CopyFrom(const ::google::protobuf::Message& from) {
1087// @@protoc_insertion_point(generalized_copy_from_start:dmi.ImageInformation)
1088 if (&from == this) return;
1089 Clear();
1090 MergeFrom(from);
1091}
1092
1093void ImageInformation::CopyFrom(const ImageInformation& from) {
1094// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ImageInformation)
1095 if (&from == this) return;
1096 Clear();
1097 MergeFrom(from);
1098}
1099
1100bool ImageInformation::IsInitialized() const {
1101 return true;
1102}
1103
1104void ImageInformation::Swap(ImageInformation* other) {
1105 if (other == this) return;
1106 InternalSwap(other);
1107}
1108void ImageInformation::InternalSwap(ImageInformation* other) {
1109 using std::swap;
1110 _internal_metadata_.Swap(&other->_internal_metadata_);
1111 image_install_script_.Swap(&other->image_install_script_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1112 GetArenaNoVirtual());
1113 image_url_.Swap(&other->image_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1114 GetArenaNoVirtual());
1115 sha256sum_.Swap(&other->sha256sum_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1116 GetArenaNoVirtual());
1117 swap(image_, other->image_);
1118}
1119
1120::google::protobuf::Metadata ImageInformation::GetMetadata() const {
1121 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fimage_2eproto);
1122 return ::file_level_metadata_dmi_2fsw_5fimage_2eproto[kIndexInFileMessages];
1123}
1124
1125
1126// ===================================================================
1127
1128void ImageStatus::InitAsDefaultInstance() {
1129}
1130class ImageStatus::HasBitSetters {
1131 public:
1132};
1133
1134#if !defined(_MSC_VER) || _MSC_VER >= 1900
1135const int ImageStatus::kStatusFieldNumber;
1136const int ImageStatus::kReasonFieldNumber;
1137const int ImageStatus::kStateFieldNumber;
1138const int ImageStatus::kDescriptionFieldNumber;
1139const int ImageStatus::kReasonDetailFieldNumber;
1140#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1141
1142ImageStatus::ImageStatus()
1143 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1144 SharedCtor();
1145 // @@protoc_insertion_point(constructor:dmi.ImageStatus)
1146}
1147ImageStatus::ImageStatus(const ImageStatus& from)
1148 : ::google::protobuf::Message(),
1149 _internal_metadata_(nullptr) {
1150 _internal_metadata_.MergeFrom(from._internal_metadata_);
1151 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1152 if (from.description().size() > 0) {
1153 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
1154 }
1155 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1156 if (from.reason_detail().size() > 0) {
1157 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1158 }
1159 ::memcpy(&status_, &from.status_,
1160 static_cast<size_t>(reinterpret_cast<char*>(&state_) -
1161 reinterpret_cast<char*>(&status_)) + sizeof(state_));
1162 // @@protoc_insertion_point(copy_constructor:dmi.ImageStatus)
1163}
1164
1165void ImageStatus::SharedCtor() {
1166 ::google::protobuf::internal::InitSCC(
1167 &scc_info_ImageStatus_dmi_2fsw_5fimage_2eproto.base);
1168 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1169 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1170 ::memset(&status_, 0, static_cast<size_t>(
1171 reinterpret_cast<char*>(&state_) -
1172 reinterpret_cast<char*>(&status_)) + sizeof(state_));
1173}
1174
1175ImageStatus::~ImageStatus() {
1176 // @@protoc_insertion_point(destructor:dmi.ImageStatus)
1177 SharedDtor();
1178}
1179
1180void ImageStatus::SharedDtor() {
1181 description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1182 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1183}
1184
1185void ImageStatus::SetCachedSize(int size) const {
1186 _cached_size_.Set(size);
1187}
1188const ImageStatus& ImageStatus::default_instance() {
1189 ::google::protobuf::internal::InitSCC(&::scc_info_ImageStatus_dmi_2fsw_5fimage_2eproto.base);
1190 return *internal_default_instance();
1191}
1192
1193
1194void ImageStatus::Clear() {
1195// @@protoc_insertion_point(message_clear_start:dmi.ImageStatus)
1196 ::google::protobuf::uint32 cached_has_bits = 0;
1197 // Prevent compiler warnings about cached_has_bits being unused
1198 (void) cached_has_bits;
1199
1200 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1201 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1202 ::memset(&status_, 0, static_cast<size_t>(
1203 reinterpret_cast<char*>(&state_) -
1204 reinterpret_cast<char*>(&status_)) + sizeof(state_));
1205 _internal_metadata_.Clear();
1206}
1207
1208#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1209const char* ImageStatus::_InternalParse(const char* begin, const char* end, void* object,
1210 ::google::protobuf::internal::ParseContext* ctx) {
1211 auto msg = static_cast<ImageStatus*>(object);
1212 ::google::protobuf::int32 size; (void)size;
1213 int depth; (void)depth;
1214 ::google::protobuf::uint32 tag;
1215 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1216 auto ptr = begin;
1217 while (ptr < end) {
1218 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1219 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1220 switch (tag >> 3) {
1221 // .dmi.Status status = 1;
1222 case 1: {
1223 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
1224 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1225 msg->set_status(static_cast<::dmi::Status>(val));
1226 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1227 break;
1228 }
1229 // .dmi.ImageStatus.Reason reason = 2;
1230 case 2: {
1231 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
1232 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1233 msg->set_reason(static_cast<::dmi::ImageStatus_Reason>(val));
1234 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1235 break;
1236 }
1237 // .dmi.ImageStatus.ImageState state = 3;
1238 case 3: {
1239 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
1240 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1241 msg->set_state(static_cast<::dmi::ImageStatus_ImageState>(val));
1242 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1243 break;
1244 }
1245 // string description = 4;
1246 case 4: {
1247 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
1248 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1249 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1250 ctx->extra_parse_data().SetFieldName("dmi.ImageStatus.description");
1251 object = msg->mutable_description();
1252 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1253 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1254 goto string_till_end;
1255 }
1256 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1257 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1258 ptr += size;
1259 break;
1260 }
1261 // string reason_detail = 5;
1262 case 5: {
1263 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
1264 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1265 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1266 ctx->extra_parse_data().SetFieldName("dmi.ImageStatus.reason_detail");
1267 object = msg->mutable_reason_detail();
1268 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1269 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1270 goto string_till_end;
1271 }
1272 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1273 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1274 ptr += size;
1275 break;
1276 }
1277 default: {
1278 handle_unusual:
1279 if ((tag & 7) == 4 || tag == 0) {
1280 ctx->EndGroup(tag);
1281 return ptr;
1282 }
1283 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1284 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1285 ptr = res.first;
1286 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1287 if (res.second) return ptr;
1288 }
1289 } // switch
1290 } // while
1291 return ptr;
1292string_till_end:
1293 static_cast<::std::string*>(object)->clear();
1294 static_cast<::std::string*>(object)->reserve(size);
1295 goto len_delim_till_end;
1296len_delim_till_end:
1297 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1298 {parser_till_end, object}, size);
1299}
1300#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1301bool ImageStatus::MergePartialFromCodedStream(
1302 ::google::protobuf::io::CodedInputStream* input) {
1303#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1304 ::google::protobuf::uint32 tag;
1305 // @@protoc_insertion_point(parse_start:dmi.ImageStatus)
1306 for (;;) {
1307 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1308 tag = p.first;
1309 if (!p.second) goto handle_unusual;
1310 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1311 // .dmi.Status status = 1;
1312 case 1: {
1313 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1314 int value = 0;
1315 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1316 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1317 input, &value)));
1318 set_status(static_cast< ::dmi::Status >(value));
1319 } else {
1320 goto handle_unusual;
1321 }
1322 break;
1323 }
1324
1325 // .dmi.ImageStatus.Reason reason = 2;
1326 case 2: {
1327 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1328 int value = 0;
1329 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1330 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1331 input, &value)));
1332 set_reason(static_cast< ::dmi::ImageStatus_Reason >(value));
1333 } else {
1334 goto handle_unusual;
1335 }
1336 break;
1337 }
1338
1339 // .dmi.ImageStatus.ImageState state = 3;
1340 case 3: {
1341 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
1342 int value = 0;
1343 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1344 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1345 input, &value)));
1346 set_state(static_cast< ::dmi::ImageStatus_ImageState >(value));
1347 } else {
1348 goto handle_unusual;
1349 }
1350 break;
1351 }
1352
1353 // string description = 4;
1354 case 4: {
1355 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
1356 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1357 input, this->mutable_description()));
1358 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1359 this->description().data(), static_cast<int>(this->description().length()),
1360 ::google::protobuf::internal::WireFormatLite::PARSE,
1361 "dmi.ImageStatus.description"));
1362 } else {
1363 goto handle_unusual;
1364 }
1365 break;
1366 }
1367
1368 // string reason_detail = 5;
1369 case 5: {
1370 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
1371 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1372 input, this->mutable_reason_detail()));
1373 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1374 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1375 ::google::protobuf::internal::WireFormatLite::PARSE,
1376 "dmi.ImageStatus.reason_detail"));
1377 } else {
1378 goto handle_unusual;
1379 }
1380 break;
1381 }
1382
1383 default: {
1384 handle_unusual:
1385 if (tag == 0) {
1386 goto success;
1387 }
1388 DO_(::google::protobuf::internal::WireFormat::SkipField(
1389 input, tag, _internal_metadata_.mutable_unknown_fields()));
1390 break;
1391 }
1392 }
1393 }
1394success:
1395 // @@protoc_insertion_point(parse_success:dmi.ImageStatus)
1396 return true;
1397failure:
1398 // @@protoc_insertion_point(parse_failure:dmi.ImageStatus)
1399 return false;
1400#undef DO_
1401}
1402#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1403
1404void ImageStatus::SerializeWithCachedSizes(
1405 ::google::protobuf::io::CodedOutputStream* output) const {
1406 // @@protoc_insertion_point(serialize_start:dmi.ImageStatus)
1407 ::google::protobuf::uint32 cached_has_bits = 0;
1408 (void) cached_has_bits;
1409
1410 // .dmi.Status status = 1;
1411 if (this->status() != 0) {
1412 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1413 1, this->status(), output);
1414 }
1415
1416 // .dmi.ImageStatus.Reason reason = 2;
1417 if (this->reason() != 0) {
1418 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1419 2, this->reason(), output);
1420 }
1421
1422 // .dmi.ImageStatus.ImageState state = 3;
1423 if (this->state() != 0) {
1424 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1425 3, this->state(), output);
1426 }
1427
1428 // string description = 4;
1429 if (this->description().size() > 0) {
1430 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1431 this->description().data(), static_cast<int>(this->description().length()),
1432 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1433 "dmi.ImageStatus.description");
1434 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1435 4, this->description(), output);
1436 }
1437
1438 // string reason_detail = 5;
1439 if (this->reason_detail().size() > 0) {
1440 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1441 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1442 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1443 "dmi.ImageStatus.reason_detail");
1444 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1445 5, this->reason_detail(), output);
1446 }
1447
1448 if (_internal_metadata_.have_unknown_fields()) {
1449 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1450 _internal_metadata_.unknown_fields(), output);
1451 }
1452 // @@protoc_insertion_point(serialize_end:dmi.ImageStatus)
1453}
1454
1455::google::protobuf::uint8* ImageStatus::InternalSerializeWithCachedSizesToArray(
1456 ::google::protobuf::uint8* target) const {
1457 // @@protoc_insertion_point(serialize_to_array_start:dmi.ImageStatus)
1458 ::google::protobuf::uint32 cached_has_bits = 0;
1459 (void) cached_has_bits;
1460
1461 // .dmi.Status status = 1;
1462 if (this->status() != 0) {
1463 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1464 1, this->status(), target);
1465 }
1466
1467 // .dmi.ImageStatus.Reason reason = 2;
1468 if (this->reason() != 0) {
1469 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1470 2, this->reason(), target);
1471 }
1472
1473 // .dmi.ImageStatus.ImageState state = 3;
1474 if (this->state() != 0) {
1475 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1476 3, this->state(), target);
1477 }
1478
1479 // string description = 4;
1480 if (this->description().size() > 0) {
1481 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1482 this->description().data(), static_cast<int>(this->description().length()),
1483 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1484 "dmi.ImageStatus.description");
1485 target =
1486 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1487 4, this->description(), target);
1488 }
1489
1490 // string reason_detail = 5;
1491 if (this->reason_detail().size() > 0) {
1492 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1493 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
1494 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1495 "dmi.ImageStatus.reason_detail");
1496 target =
1497 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1498 5, this->reason_detail(), target);
1499 }
1500
1501 if (_internal_metadata_.have_unknown_fields()) {
1502 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1503 _internal_metadata_.unknown_fields(), target);
1504 }
1505 // @@protoc_insertion_point(serialize_to_array_end:dmi.ImageStatus)
1506 return target;
1507}
1508
1509size_t ImageStatus::ByteSizeLong() const {
1510// @@protoc_insertion_point(message_byte_size_start:dmi.ImageStatus)
1511 size_t total_size = 0;
1512
1513 if (_internal_metadata_.have_unknown_fields()) {
1514 total_size +=
1515 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1516 _internal_metadata_.unknown_fields());
1517 }
1518 ::google::protobuf::uint32 cached_has_bits = 0;
1519 // Prevent compiler warnings about cached_has_bits being unused
1520 (void) cached_has_bits;
1521
1522 // string description = 4;
1523 if (this->description().size() > 0) {
1524 total_size += 1 +
1525 ::google::protobuf::internal::WireFormatLite::StringSize(
1526 this->description());
1527 }
1528
1529 // string reason_detail = 5;
1530 if (this->reason_detail().size() > 0) {
1531 total_size += 1 +
1532 ::google::protobuf::internal::WireFormatLite::StringSize(
1533 this->reason_detail());
1534 }
1535
1536 // .dmi.Status status = 1;
1537 if (this->status() != 0) {
1538 total_size += 1 +
1539 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
1540 }
1541
1542 // .dmi.ImageStatus.Reason reason = 2;
1543 if (this->reason() != 0) {
1544 total_size += 1 +
1545 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
1546 }
1547
1548 // .dmi.ImageStatus.ImageState state = 3;
1549 if (this->state() != 0) {
1550 total_size += 1 +
1551 ::google::protobuf::internal::WireFormatLite::EnumSize(this->state());
1552 }
1553
1554 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1555 SetCachedSize(cached_size);
1556 return total_size;
1557}
1558
1559void ImageStatus::MergeFrom(const ::google::protobuf::Message& from) {
1560// @@protoc_insertion_point(generalized_merge_from_start:dmi.ImageStatus)
1561 GOOGLE_DCHECK_NE(&from, this);
1562 const ImageStatus* source =
1563 ::google::protobuf::DynamicCastToGenerated<ImageStatus>(
1564 &from);
1565 if (source == nullptr) {
1566 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ImageStatus)
1567 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1568 } else {
1569 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ImageStatus)
1570 MergeFrom(*source);
1571 }
1572}
1573
1574void ImageStatus::MergeFrom(const ImageStatus& from) {
1575// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ImageStatus)
1576 GOOGLE_DCHECK_NE(&from, this);
1577 _internal_metadata_.MergeFrom(from._internal_metadata_);
1578 ::google::protobuf::uint32 cached_has_bits = 0;
1579 (void) cached_has_bits;
1580
1581 if (from.description().size() > 0) {
1582
1583 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
1584 }
1585 if (from.reason_detail().size() > 0) {
1586
1587 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
1588 }
1589 if (from.status() != 0) {
1590 set_status(from.status());
1591 }
1592 if (from.reason() != 0) {
1593 set_reason(from.reason());
1594 }
1595 if (from.state() != 0) {
1596 set_state(from.state());
1597 }
1598}
1599
1600void ImageStatus::CopyFrom(const ::google::protobuf::Message& from) {
1601// @@protoc_insertion_point(generalized_copy_from_start:dmi.ImageStatus)
1602 if (&from == this) return;
1603 Clear();
1604 MergeFrom(from);
1605}
1606
1607void ImageStatus::CopyFrom(const ImageStatus& from) {
1608// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ImageStatus)
1609 if (&from == this) return;
1610 Clear();
1611 MergeFrom(from);
1612}
1613
1614bool ImageStatus::IsInitialized() const {
1615 return true;
1616}
1617
1618void ImageStatus::Swap(ImageStatus* other) {
1619 if (other == this) return;
1620 InternalSwap(other);
1621}
1622void ImageStatus::InternalSwap(ImageStatus* other) {
1623 using std::swap;
1624 _internal_metadata_.Swap(&other->_internal_metadata_);
1625 description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1626 GetArenaNoVirtual());
1627 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1628 GetArenaNoVirtual());
1629 swap(status_, other->status_);
1630 swap(reason_, other->reason_);
1631 swap(state_, other->state_);
1632}
1633
1634::google::protobuf::Metadata ImageStatus::GetMetadata() const {
1635 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fsw_5fimage_2eproto);
1636 return ::file_level_metadata_dmi_2fsw_5fimage_2eproto[kIndexInFileMessages];
1637}
1638
1639
1640// @@protoc_insertion_point(namespace_scope)
1641} // namespace dmi
1642namespace google {
1643namespace protobuf {
1644template<> PROTOBUF_NOINLINE ::dmi::ImageVersion* Arena::CreateMaybeMessage< ::dmi::ImageVersion >(Arena* arena) {
1645 return Arena::CreateInternal< ::dmi::ImageVersion >(arena);
1646}
1647template<> PROTOBUF_NOINLINE ::dmi::ImageInformation* Arena::CreateMaybeMessage< ::dmi::ImageInformation >(Arena* arena) {
1648 return Arena::CreateInternal< ::dmi::ImageInformation >(arena);
1649}
1650template<> PROTOBUF_NOINLINE ::dmi::ImageStatus* Arena::CreateMaybeMessage< ::dmi::ImageStatus >(Arena* arena) {
1651 return Arena::CreateInternal< ::dmi::ImageStatus >(arena);
1652}
1653} // namespace protobuf
1654} // namespace google
1655
1656// @@protoc_insertion_point(global_scope)
1657#include <google/protobuf/port_undef.inc>