1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: system/apex/proto/apex_blocklist.proto
3
4 #include "system/apex/proto/apex_blocklist.pb.h"
5
6 #include <algorithm>
7 #include <cstdint>
8
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18
19 PROTOBUF_PRAGMA_INIT_SEG
20
21 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
22 namespace _pbi = _pb::internal;
23
24 namespace apex {
25 namespace proto {
ApexBlocklist_ApexItem(::_pbi::ConstantInitialized)26 PROTOBUF_CONSTEXPR ApexBlocklist_ApexItem::ApexBlocklist_ApexItem(
27 ::_pbi::ConstantInitialized): _impl_{
28 /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29 , /*decltype(_impl_.version_)*/::int64_t{0}
30 , /*decltype(_impl_._cached_size_)*/{}} {}
31 struct ApexBlocklist_ApexItemDefaultTypeInternal {
ApexBlocklist_ApexItemDefaultTypeInternalapex::proto::ApexBlocklist_ApexItemDefaultTypeInternal32 PROTOBUF_CONSTEXPR ApexBlocklist_ApexItemDefaultTypeInternal()
33 : _instance(::_pbi::ConstantInitialized{}) {}
~ApexBlocklist_ApexItemDefaultTypeInternalapex::proto::ApexBlocklist_ApexItemDefaultTypeInternal34 ~ApexBlocklist_ApexItemDefaultTypeInternal() {}
35 union { // NOLINT(misc-non-private-member-variables-in-classes)
36 ApexBlocklist_ApexItem _instance;
37 };
38 };
39 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApexBlocklist_ApexItemDefaultTypeInternal _ApexBlocklist_ApexItem_default_instance_;
ApexBlocklist(::_pbi::ConstantInitialized)40 PROTOBUF_CONSTEXPR ApexBlocklist::ApexBlocklist(
41 ::_pbi::ConstantInitialized): _impl_{
42 /*decltype(_impl_.blocked_apex_)*/{}
43 , /*decltype(_impl_._cached_size_)*/{}} {}
44 struct ApexBlocklistDefaultTypeInternal {
ApexBlocklistDefaultTypeInternalapex::proto::ApexBlocklistDefaultTypeInternal45 PROTOBUF_CONSTEXPR ApexBlocklistDefaultTypeInternal()
46 : _instance(::_pbi::ConstantInitialized{}) {}
~ApexBlocklistDefaultTypeInternalapex::proto::ApexBlocklistDefaultTypeInternal47 ~ApexBlocklistDefaultTypeInternal() {}
48 union { // NOLINT(misc-non-private-member-variables-in-classes)
49 ApexBlocklist _instance;
50 };
51 };
52 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApexBlocklistDefaultTypeInternal _ApexBlocklist_default_instance_;
53 } // namespace proto
54 } // namespace apex
55 static ::_pb::Metadata file_level_metadata_system_2fapex_2fproto_2fapex_5fblocklist_2eproto[2];
56 static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_system_2fapex_2fproto_2fapex_5fblocklist_2eproto = nullptr;
57 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_system_2fapex_2fproto_2fapex_5fblocklist_2eproto = nullptr;
58
59 const ::uint32_t TableStruct_system_2fapex_2fproto_2fapex_5fblocklist_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
60 ~0u, // no _has_bits_
61 PROTOBUF_FIELD_OFFSET(::apex::proto::ApexBlocklist_ApexItem, _internal_metadata_),
62 ~0u, // no _extensions_
63 ~0u, // no _oneof_case_
64 ~0u, // no _weak_field_map_
65 ~0u, // no _inlined_string_donated_
66 PROTOBUF_FIELD_OFFSET(::apex::proto::ApexBlocklist_ApexItem, _impl_.name_),
67 PROTOBUF_FIELD_OFFSET(::apex::proto::ApexBlocklist_ApexItem, _impl_.version_),
68 ~0u, // no _has_bits_
69 PROTOBUF_FIELD_OFFSET(::apex::proto::ApexBlocklist, _internal_metadata_),
70 ~0u, // no _extensions_
71 ~0u, // no _oneof_case_
72 ~0u, // no _weak_field_map_
73 ~0u, // no _inlined_string_donated_
74 PROTOBUF_FIELD_OFFSET(::apex::proto::ApexBlocklist, _impl_.blocked_apex_),
75 };
76 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
77 { 0, -1, -1, sizeof(::apex::proto::ApexBlocklist_ApexItem)},
78 { 8, -1, -1, sizeof(::apex::proto::ApexBlocklist)},
79 };
80
81 static const ::_pb::Message* const file_default_instances[] = {
82 &::apex::proto::_ApexBlocklist_ApexItem_default_instance_._instance,
83 &::apex::proto::_ApexBlocklist_default_instance_._instance,
84 };
85
86 const char descriptor_table_protodef_system_2fapex_2fproto_2fapex_5fblocklist_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
87 "\n&system/apex/proto/apex_blocklist.proto"
88 "\022\napex.proto\"t\n\rApexBlocklist\0228\n\014blocked"
89 "_apex\030\001 \003(\0132\".apex.proto.ApexBlocklist.A"
90 "pexItem\032)\n\010ApexItem\022\014\n\004name\030\001 \001(\t\022\017\n\007ver"
91 "sion\030\002 \001(\003B\032\n\020com.android.apexB\006Protosb\006"
92 "proto3"
93 ;
94 static ::_pbi::once_flag descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_once;
95 const ::_pbi::DescriptorTable descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto = {
96 false, false, 206, descriptor_table_protodef_system_2fapex_2fproto_2fapex_5fblocklist_2eproto,
97 "system/apex/proto/apex_blocklist.proto",
98 &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_once, nullptr, 0, 2,
99 schemas, file_default_instances, TableStruct_system_2fapex_2fproto_2fapex_5fblocklist_2eproto::offsets,
100 file_level_metadata_system_2fapex_2fproto_2fapex_5fblocklist_2eproto, file_level_enum_descriptors_system_2fapex_2fproto_2fapex_5fblocklist_2eproto,
101 file_level_service_descriptors_system_2fapex_2fproto_2fapex_5fblocklist_2eproto,
102 };
descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_getter()103 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_getter() {
104 return &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto;
105 }
106
107 // Force running AddDescriptors() at dynamic initialization time.
108 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_system_2fapex_2fproto_2fapex_5fblocklist_2eproto(&descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto);
109 namespace apex {
110 namespace proto {
111
112 // ===================================================================
113
114 class ApexBlocklist_ApexItem::_Internal {
115 public:
116 };
117
ApexBlocklist_ApexItem(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)118 ApexBlocklist_ApexItem::ApexBlocklist_ApexItem(::PROTOBUF_NAMESPACE_ID::Arena* arena,
119 bool is_message_owned)
120 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
121 SharedCtor(arena, is_message_owned);
122 // @@protoc_insertion_point(arena_constructor:apex.proto.ApexBlocklist.ApexItem)
123 }
ApexBlocklist_ApexItem(const ApexBlocklist_ApexItem & from)124 ApexBlocklist_ApexItem::ApexBlocklist_ApexItem(const ApexBlocklist_ApexItem& from)
125 : ::PROTOBUF_NAMESPACE_ID::Message() {
126 ApexBlocklist_ApexItem* const _this = this; (void)_this;
127 new (&_impl_) Impl_{
128 decltype(_impl_.name_){}
129 , decltype(_impl_.version_){}
130 , /*decltype(_impl_._cached_size_)*/{}};
131
132 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
133 _impl_.name_.InitDefault();
134 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
135 _impl_.name_.Set("", GetArenaForAllocation());
136 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
137 if (!from._internal_name().empty()) {
138 _this->_impl_.name_.Set(from._internal_name(),
139 _this->GetArenaForAllocation());
140 }
141 _this->_impl_.version_ = from._impl_.version_;
142 // @@protoc_insertion_point(copy_constructor:apex.proto.ApexBlocklist.ApexItem)
143 }
144
SharedCtor(::_pb::Arena * arena,bool is_message_owned)145 inline void ApexBlocklist_ApexItem::SharedCtor(
146 ::_pb::Arena* arena, bool is_message_owned) {
147 (void)arena;
148 (void)is_message_owned;
149 new (&_impl_) Impl_{
150 decltype(_impl_.name_){}
151 , decltype(_impl_.version_){::int64_t{0}}
152 , /*decltype(_impl_._cached_size_)*/{}
153 };
154 _impl_.name_.InitDefault();
155 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
156 _impl_.name_.Set("", GetArenaForAllocation());
157 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
158 }
159
~ApexBlocklist_ApexItem()160 ApexBlocklist_ApexItem::~ApexBlocklist_ApexItem() {
161 // @@protoc_insertion_point(destructor:apex.proto.ApexBlocklist.ApexItem)
162 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
163 (void)arena;
164 return;
165 }
166 SharedDtor();
167 }
168
SharedDtor()169 inline void ApexBlocklist_ApexItem::SharedDtor() {
170 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
171 _impl_.name_.Destroy();
172 }
173
SetCachedSize(int size) const174 void ApexBlocklist_ApexItem::SetCachedSize(int size) const {
175 _impl_._cached_size_.Set(size);
176 }
177
Clear()178 void ApexBlocklist_ApexItem::Clear() {
179 // @@protoc_insertion_point(message_clear_start:apex.proto.ApexBlocklist.ApexItem)
180 ::uint32_t cached_has_bits = 0;
181 // Prevent compiler warnings about cached_has_bits being unused
182 (void) cached_has_bits;
183
184 _impl_.name_.ClearToEmpty();
185 _impl_.version_ = ::int64_t{0};
186 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
187 }
188
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)189 const char* ApexBlocklist_ApexItem::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
190 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
191 while (!ctx->Done(&ptr)) {
192 ::uint32_t tag;
193 ptr = ::_pbi::ReadTag(ptr, &tag);
194 switch (tag >> 3) {
195 // string name = 1;
196 case 1:
197 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
198 auto str = _internal_mutable_name();
199 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
200 CHK_(ptr);
201 CHK_(::_pbi::VerifyUTF8(str, "apex.proto.ApexBlocklist.ApexItem.name"));
202 } else {
203 goto handle_unusual;
204 }
205 continue;
206 // int64 version = 2;
207 case 2:
208 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
209 _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
210 CHK_(ptr);
211 } else {
212 goto handle_unusual;
213 }
214 continue;
215 default:
216 goto handle_unusual;
217 } // switch
218 handle_unusual:
219 if ((tag == 0) || ((tag & 7) == 4)) {
220 CHK_(ptr);
221 ctx->SetLastTag(tag);
222 goto message_done;
223 }
224 ptr = UnknownFieldParse(
225 tag,
226 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
227 ptr, ctx);
228 CHK_(ptr != nullptr);
229 } // while
230 message_done:
231 return ptr;
232 failure:
233 ptr = nullptr;
234 goto message_done;
235 #undef CHK_
236 }
237
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const238 ::uint8_t* ApexBlocklist_ApexItem::_InternalSerialize(
239 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
240 // @@protoc_insertion_point(serialize_to_array_start:apex.proto.ApexBlocklist.ApexItem)
241 ::uint32_t cached_has_bits = 0;
242 (void) cached_has_bits;
243
244 // string name = 1;
245 if (!this->_internal_name().empty()) {
246 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
247 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
248 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
249 "apex.proto.ApexBlocklist.ApexItem.name");
250 target = stream->WriteStringMaybeAliased(
251 1, this->_internal_name(), target);
252 }
253
254 // int64 version = 2;
255 if (this->_internal_version() != 0) {
256 target = stream->EnsureSpace(target);
257 target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_version(), target);
258 }
259
260 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
261 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
262 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
263 }
264 // @@protoc_insertion_point(serialize_to_array_end:apex.proto.ApexBlocklist.ApexItem)
265 return target;
266 }
267
ByteSizeLong() const268 size_t ApexBlocklist_ApexItem::ByteSizeLong() const {
269 // @@protoc_insertion_point(message_byte_size_start:apex.proto.ApexBlocklist.ApexItem)
270 size_t total_size = 0;
271
272 ::uint32_t cached_has_bits = 0;
273 // Prevent compiler warnings about cached_has_bits being unused
274 (void) cached_has_bits;
275
276 // string name = 1;
277 if (!this->_internal_name().empty()) {
278 total_size += 1 +
279 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
280 this->_internal_name());
281 }
282
283 // int64 version = 2;
284 if (this->_internal_version() != 0) {
285 total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_version());
286 }
287
288 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
289 }
290
291 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ApexBlocklist_ApexItem::_class_data_ = {
292 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
293 ApexBlocklist_ApexItem::MergeImpl
294 };
GetClassData() const295 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ApexBlocklist_ApexItem::GetClassData() const { return &_class_data_; }
296
297
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)298 void ApexBlocklist_ApexItem::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
299 auto* const _this = static_cast<ApexBlocklist_ApexItem*>(&to_msg);
300 auto& from = static_cast<const ApexBlocklist_ApexItem&>(from_msg);
301 // @@protoc_insertion_point(class_specific_merge_from_start:apex.proto.ApexBlocklist.ApexItem)
302 GOOGLE_DCHECK_NE(&from, _this);
303 ::uint32_t cached_has_bits = 0;
304 (void) cached_has_bits;
305
306 if (!from._internal_name().empty()) {
307 _this->_internal_set_name(from._internal_name());
308 }
309 if (from._internal_version() != 0) {
310 _this->_internal_set_version(from._internal_version());
311 }
312 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
313 }
314
CopyFrom(const ApexBlocklist_ApexItem & from)315 void ApexBlocklist_ApexItem::CopyFrom(const ApexBlocklist_ApexItem& from) {
316 // @@protoc_insertion_point(class_specific_copy_from_start:apex.proto.ApexBlocklist.ApexItem)
317 if (&from == this) return;
318 Clear();
319 MergeFrom(from);
320 }
321
IsInitialized() const322 bool ApexBlocklist_ApexItem::IsInitialized() const {
323 return true;
324 }
325
InternalSwap(ApexBlocklist_ApexItem * other)326 void ApexBlocklist_ApexItem::InternalSwap(ApexBlocklist_ApexItem* other) {
327 using std::swap;
328 auto* lhs_arena = GetArenaForAllocation();
329 auto* rhs_arena = other->GetArenaForAllocation();
330 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
331 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
332 &_impl_.name_, lhs_arena,
333 &other->_impl_.name_, rhs_arena
334 );
335 swap(_impl_.version_, other->_impl_.version_);
336 }
337
GetMetadata() const338 ::PROTOBUF_NAMESPACE_ID::Metadata ApexBlocklist_ApexItem::GetMetadata() const {
339 return ::_pbi::AssignDescriptors(
340 &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_getter, &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_once,
341 file_level_metadata_system_2fapex_2fproto_2fapex_5fblocklist_2eproto[0]);
342 }
343
344 // ===================================================================
345
346 class ApexBlocklist::_Internal {
347 public:
348 };
349
ApexBlocklist(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)350 ApexBlocklist::ApexBlocklist(::PROTOBUF_NAMESPACE_ID::Arena* arena,
351 bool is_message_owned)
352 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
353 SharedCtor(arena, is_message_owned);
354 // @@protoc_insertion_point(arena_constructor:apex.proto.ApexBlocklist)
355 }
ApexBlocklist(const ApexBlocklist & from)356 ApexBlocklist::ApexBlocklist(const ApexBlocklist& from)
357 : ::PROTOBUF_NAMESPACE_ID::Message() {
358 ApexBlocklist* const _this = this; (void)_this;
359 new (&_impl_) Impl_{
360 decltype(_impl_.blocked_apex_){from._impl_.blocked_apex_}
361 , /*decltype(_impl_._cached_size_)*/{}};
362
363 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
364 // @@protoc_insertion_point(copy_constructor:apex.proto.ApexBlocklist)
365 }
366
SharedCtor(::_pb::Arena * arena,bool is_message_owned)367 inline void ApexBlocklist::SharedCtor(
368 ::_pb::Arena* arena, bool is_message_owned) {
369 (void)arena;
370 (void)is_message_owned;
371 new (&_impl_) Impl_{
372 decltype(_impl_.blocked_apex_){arena}
373 , /*decltype(_impl_._cached_size_)*/{}
374 };
375 }
376
~ApexBlocklist()377 ApexBlocklist::~ApexBlocklist() {
378 // @@protoc_insertion_point(destructor:apex.proto.ApexBlocklist)
379 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
380 (void)arena;
381 return;
382 }
383 SharedDtor();
384 }
385
SharedDtor()386 inline void ApexBlocklist::SharedDtor() {
387 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
388 _impl_.blocked_apex_.~RepeatedPtrField();
389 }
390
SetCachedSize(int size) const391 void ApexBlocklist::SetCachedSize(int size) const {
392 _impl_._cached_size_.Set(size);
393 }
394
Clear()395 void ApexBlocklist::Clear() {
396 // @@protoc_insertion_point(message_clear_start:apex.proto.ApexBlocklist)
397 ::uint32_t cached_has_bits = 0;
398 // Prevent compiler warnings about cached_has_bits being unused
399 (void) cached_has_bits;
400
401 _impl_.blocked_apex_.Clear();
402 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
403 }
404
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)405 const char* ApexBlocklist::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
406 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
407 while (!ctx->Done(&ptr)) {
408 ::uint32_t tag;
409 ptr = ::_pbi::ReadTag(ptr, &tag);
410 switch (tag >> 3) {
411 // repeated .apex.proto.ApexBlocklist.ApexItem blocked_apex = 1;
412 case 1:
413 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
414 ptr -= 1;
415 do {
416 ptr += 1;
417 ptr = ctx->ParseMessage(_internal_add_blocked_apex(), ptr);
418 CHK_(ptr);
419 if (!ctx->DataAvailable(ptr)) break;
420 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
421 } else {
422 goto handle_unusual;
423 }
424 continue;
425 default:
426 goto handle_unusual;
427 } // switch
428 handle_unusual:
429 if ((tag == 0) || ((tag & 7) == 4)) {
430 CHK_(ptr);
431 ctx->SetLastTag(tag);
432 goto message_done;
433 }
434 ptr = UnknownFieldParse(
435 tag,
436 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
437 ptr, ctx);
438 CHK_(ptr != nullptr);
439 } // while
440 message_done:
441 return ptr;
442 failure:
443 ptr = nullptr;
444 goto message_done;
445 #undef CHK_
446 }
447
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const448 ::uint8_t* ApexBlocklist::_InternalSerialize(
449 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
450 // @@protoc_insertion_point(serialize_to_array_start:apex.proto.ApexBlocklist)
451 ::uint32_t cached_has_bits = 0;
452 (void) cached_has_bits;
453
454 // repeated .apex.proto.ApexBlocklist.ApexItem blocked_apex = 1;
455 for (unsigned i = 0,
456 n = static_cast<unsigned>(this->_internal_blocked_apex_size()); i < n; i++) {
457 const auto& repfield = this->_internal_blocked_apex(i);
458 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
459 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
460 }
461
462 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
463 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
464 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
465 }
466 // @@protoc_insertion_point(serialize_to_array_end:apex.proto.ApexBlocklist)
467 return target;
468 }
469
ByteSizeLong() const470 size_t ApexBlocklist::ByteSizeLong() const {
471 // @@protoc_insertion_point(message_byte_size_start:apex.proto.ApexBlocklist)
472 size_t total_size = 0;
473
474 ::uint32_t cached_has_bits = 0;
475 // Prevent compiler warnings about cached_has_bits being unused
476 (void) cached_has_bits;
477
478 // repeated .apex.proto.ApexBlocklist.ApexItem blocked_apex = 1;
479 total_size += 1UL * this->_internal_blocked_apex_size();
480 for (const auto& msg : this->_impl_.blocked_apex_) {
481 total_size +=
482 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
483 }
484
485 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
486 }
487
488 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ApexBlocklist::_class_data_ = {
489 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
490 ApexBlocklist::MergeImpl
491 };
GetClassData() const492 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ApexBlocklist::GetClassData() const { return &_class_data_; }
493
494
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)495 void ApexBlocklist::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
496 auto* const _this = static_cast<ApexBlocklist*>(&to_msg);
497 auto& from = static_cast<const ApexBlocklist&>(from_msg);
498 // @@protoc_insertion_point(class_specific_merge_from_start:apex.proto.ApexBlocklist)
499 GOOGLE_DCHECK_NE(&from, _this);
500 ::uint32_t cached_has_bits = 0;
501 (void) cached_has_bits;
502
503 _this->_impl_.blocked_apex_.MergeFrom(from._impl_.blocked_apex_);
504 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
505 }
506
CopyFrom(const ApexBlocklist & from)507 void ApexBlocklist::CopyFrom(const ApexBlocklist& from) {
508 // @@protoc_insertion_point(class_specific_copy_from_start:apex.proto.ApexBlocklist)
509 if (&from == this) return;
510 Clear();
511 MergeFrom(from);
512 }
513
IsInitialized() const514 bool ApexBlocklist::IsInitialized() const {
515 return true;
516 }
517
InternalSwap(ApexBlocklist * other)518 void ApexBlocklist::InternalSwap(ApexBlocklist* other) {
519 using std::swap;
520 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
521 _impl_.blocked_apex_.InternalSwap(&other->_impl_.blocked_apex_);
522 }
523
GetMetadata() const524 ::PROTOBUF_NAMESPACE_ID::Metadata ApexBlocklist::GetMetadata() const {
525 return ::_pbi::AssignDescriptors(
526 &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_getter, &descriptor_table_system_2fapex_2fproto_2fapex_5fblocklist_2eproto_once,
527 file_level_metadata_system_2fapex_2fproto_2fapex_5fblocklist_2eproto[1]);
528 }
529
530 // @@protoc_insertion_point(namespace_scope)
531 } // namespace proto
532 } // namespace apex
533 PROTOBUF_NAMESPACE_OPEN
534 template<> PROTOBUF_NOINLINE ::apex::proto::ApexBlocklist_ApexItem*
CreateMaybeMessage(Arena * arena)535 Arena::CreateMaybeMessage< ::apex::proto::ApexBlocklist_ApexItem >(Arena* arena) {
536 return Arena::CreateMessageInternal< ::apex::proto::ApexBlocklist_ApexItem >(arena);
537 }
538 template<> PROTOBUF_NOINLINE ::apex::proto::ApexBlocklist*
CreateMaybeMessage(Arena * arena)539 Arena::CreateMaybeMessage< ::apex::proto::ApexBlocklist >(Arena* arena) {
540 return Arena::CreateMessageInternal< ::apex::proto::ApexBlocklist >(arena);
541 }
542 PROTOBUF_NAMESPACE_CLOSE
543
544 // @@protoc_insertion_point(global_scope)
545 #include <google/protobuf/port_undef.inc>
546