1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/base/tools/aapt2/ResourceMetadata.proto
3
4 #include "frameworks/base/tools/aapt2/ResourceMetadata.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 aapt {
25 namespace pb {
ResourceMappings(::_pbi::ConstantInitialized)26 PROTOBUF_CONSTEXPR ResourceMappings::ResourceMappings(
27 ::_pbi::ConstantInitialized): _impl_{
28 /*decltype(_impl_.shortened_paths_)*/nullptr
29 , /*decltype(_impl_.collapsed_names_)*/nullptr
30 , /*decltype(_impl_._cached_size_)*/{}} {}
31 struct ResourceMappingsDefaultTypeInternal {
ResourceMappingsDefaultTypeInternalaapt::pb::ResourceMappingsDefaultTypeInternal32 PROTOBUF_CONSTEXPR ResourceMappingsDefaultTypeInternal()
33 : _instance(::_pbi::ConstantInitialized{}) {}
~ResourceMappingsDefaultTypeInternalaapt::pb::ResourceMappingsDefaultTypeInternal34 ~ResourceMappingsDefaultTypeInternal() {}
35 union { // NOLINT(misc-non-private-member-variables-in-classes)
36 ResourceMappings _instance;
37 };
38 };
39 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceMappingsDefaultTypeInternal _ResourceMappings_default_instance_;
ShortenedPathsMap_ResourcePathMapping(::_pbi::ConstantInitialized)40 PROTOBUF_CONSTEXPR ShortenedPathsMap_ResourcePathMapping::ShortenedPathsMap_ResourcePathMapping(
41 ::_pbi::ConstantInitialized): _impl_{
42 /*decltype(_impl_.shortened_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
43 , /*decltype(_impl_.original_path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
44 , /*decltype(_impl_._cached_size_)*/{}} {}
45 struct ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal {
ShortenedPathsMap_ResourcePathMappingDefaultTypeInternalaapt::pb::ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal46 PROTOBUF_CONSTEXPR ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal()
47 : _instance(::_pbi::ConstantInitialized{}) {}
~ShortenedPathsMap_ResourcePathMappingDefaultTypeInternalaapt::pb::ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal48 ~ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal() {}
49 union { // NOLINT(misc-non-private-member-variables-in-classes)
50 ShortenedPathsMap_ResourcePathMapping _instance;
51 };
52 };
53 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShortenedPathsMap_ResourcePathMappingDefaultTypeInternal _ShortenedPathsMap_ResourcePathMapping_default_instance_;
ShortenedPathsMap(::_pbi::ConstantInitialized)54 PROTOBUF_CONSTEXPR ShortenedPathsMap::ShortenedPathsMap(
55 ::_pbi::ConstantInitialized): _impl_{
56 /*decltype(_impl_.resource_paths_)*/{}
57 , /*decltype(_impl_._cached_size_)*/{}} {}
58 struct ShortenedPathsMapDefaultTypeInternal {
ShortenedPathsMapDefaultTypeInternalaapt::pb::ShortenedPathsMapDefaultTypeInternal59 PROTOBUF_CONSTEXPR ShortenedPathsMapDefaultTypeInternal()
60 : _instance(::_pbi::ConstantInitialized{}) {}
~ShortenedPathsMapDefaultTypeInternalaapt::pb::ShortenedPathsMapDefaultTypeInternal61 ~ShortenedPathsMapDefaultTypeInternal() {}
62 union { // NOLINT(misc-non-private-member-variables-in-classes)
63 ShortenedPathsMap _instance;
64 };
65 };
66 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ShortenedPathsMapDefaultTypeInternal _ShortenedPathsMap_default_instance_;
CollapsedNamesMap_ResourceNameMapping(::_pbi::ConstantInitialized)67 PROTOBUF_CONSTEXPR CollapsedNamesMap_ResourceNameMapping::CollapsedNamesMap_ResourceNameMapping(
68 ::_pbi::ConstantInitialized): _impl_{
69 /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
70 , /*decltype(_impl_.id_)*/0u
71 , /*decltype(_impl_._cached_size_)*/{}} {}
72 struct CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal {
CollapsedNamesMap_ResourceNameMappingDefaultTypeInternalaapt::pb::CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal73 PROTOBUF_CONSTEXPR CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal()
74 : _instance(::_pbi::ConstantInitialized{}) {}
~CollapsedNamesMap_ResourceNameMappingDefaultTypeInternalaapt::pb::CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal75 ~CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal() {}
76 union { // NOLINT(misc-non-private-member-variables-in-classes)
77 CollapsedNamesMap_ResourceNameMapping _instance;
78 };
79 };
80 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollapsedNamesMap_ResourceNameMappingDefaultTypeInternal _CollapsedNamesMap_ResourceNameMapping_default_instance_;
CollapsedNamesMap(::_pbi::ConstantInitialized)81 PROTOBUF_CONSTEXPR CollapsedNamesMap::CollapsedNamesMap(
82 ::_pbi::ConstantInitialized): _impl_{
83 /*decltype(_impl_.resource_names_)*/{}
84 , /*decltype(_impl_._cached_size_)*/{}} {}
85 struct CollapsedNamesMapDefaultTypeInternal {
CollapsedNamesMapDefaultTypeInternalaapt::pb::CollapsedNamesMapDefaultTypeInternal86 PROTOBUF_CONSTEXPR CollapsedNamesMapDefaultTypeInternal()
87 : _instance(::_pbi::ConstantInitialized{}) {}
~CollapsedNamesMapDefaultTypeInternalaapt::pb::CollapsedNamesMapDefaultTypeInternal88 ~CollapsedNamesMapDefaultTypeInternal() {}
89 union { // NOLINT(misc-non-private-member-variables-in-classes)
90 CollapsedNamesMap _instance;
91 };
92 };
93 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CollapsedNamesMapDefaultTypeInternal _CollapsedNamesMap_default_instance_;
94 } // namespace pb
95 } // namespace aapt
96 static ::_pb::Metadata file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[5];
97 static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto = nullptr;
98 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto = nullptr;
99
100 const ::uint32_t TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
101 ~0u, // no _has_bits_
102 PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceMappings, _internal_metadata_),
103 ~0u, // no _extensions_
104 ~0u, // no _oneof_case_
105 ~0u, // no _weak_field_map_
106 ~0u, // no _inlined_string_donated_
107 PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceMappings, _impl_.shortened_paths_),
108 PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceMappings, _impl_.collapsed_names_),
109 ~0u, // no _has_bits_
110 PROTOBUF_FIELD_OFFSET(::aapt::pb::ShortenedPathsMap_ResourcePathMapping, _internal_metadata_),
111 ~0u, // no _extensions_
112 ~0u, // no _oneof_case_
113 ~0u, // no _weak_field_map_
114 ~0u, // no _inlined_string_donated_
115 PROTOBUF_FIELD_OFFSET(::aapt::pb::ShortenedPathsMap_ResourcePathMapping, _impl_.shortened_path_),
116 PROTOBUF_FIELD_OFFSET(::aapt::pb::ShortenedPathsMap_ResourcePathMapping, _impl_.original_path_),
117 ~0u, // no _has_bits_
118 PROTOBUF_FIELD_OFFSET(::aapt::pb::ShortenedPathsMap, _internal_metadata_),
119 ~0u, // no _extensions_
120 ~0u, // no _oneof_case_
121 ~0u, // no _weak_field_map_
122 ~0u, // no _inlined_string_donated_
123 PROTOBUF_FIELD_OFFSET(::aapt::pb::ShortenedPathsMap, _impl_.resource_paths_),
124 ~0u, // no _has_bits_
125 PROTOBUF_FIELD_OFFSET(::aapt::pb::CollapsedNamesMap_ResourceNameMapping, _internal_metadata_),
126 ~0u, // no _extensions_
127 ~0u, // no _oneof_case_
128 ~0u, // no _weak_field_map_
129 ~0u, // no _inlined_string_donated_
130 PROTOBUF_FIELD_OFFSET(::aapt::pb::CollapsedNamesMap_ResourceNameMapping, _impl_.id_),
131 PROTOBUF_FIELD_OFFSET(::aapt::pb::CollapsedNamesMap_ResourceNameMapping, _impl_.name_),
132 ~0u, // no _has_bits_
133 PROTOBUF_FIELD_OFFSET(::aapt::pb::CollapsedNamesMap, _internal_metadata_),
134 ~0u, // no _extensions_
135 ~0u, // no _oneof_case_
136 ~0u, // no _weak_field_map_
137 ~0u, // no _inlined_string_donated_
138 PROTOBUF_FIELD_OFFSET(::aapt::pb::CollapsedNamesMap, _impl_.resource_names_),
139 };
140 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
141 { 0, -1, -1, sizeof(::aapt::pb::ResourceMappings)},
142 { 8, -1, -1, sizeof(::aapt::pb::ShortenedPathsMap_ResourcePathMapping)},
143 { 16, -1, -1, sizeof(::aapt::pb::ShortenedPathsMap)},
144 { 23, -1, -1, sizeof(::aapt::pb::CollapsedNamesMap_ResourceNameMapping)},
145 { 31, -1, -1, sizeof(::aapt::pb::CollapsedNamesMap)},
146 };
147
148 static const ::_pb::Message* const file_default_instances[] = {
149 &::aapt::pb::_ResourceMappings_default_instance_._instance,
150 &::aapt::pb::_ShortenedPathsMap_ResourcePathMapping_default_instance_._instance,
151 &::aapt::pb::_ShortenedPathsMap_default_instance_._instance,
152 &::aapt::pb::_CollapsedNamesMap_ResourceNameMapping_default_instance_._instance,
153 &::aapt::pb::_CollapsedNamesMap_default_instance_._instance,
154 };
155
156 const char descriptor_table_protodef_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
157 "\n2frameworks/base/tools/aapt2/ResourceMe"
158 "tadata.proto\022\007aapt.pb\"|\n\020ResourceMapping"
159 "s\0223\n\017shortened_paths\030\001 \001(\0132\032.aapt.pb.Sho"
160 "rtenedPathsMap\0223\n\017collapsed_names\030\002 \001(\0132"
161 "\032.aapt.pb.CollapsedNamesMap\"\241\001\n\021Shortene"
162 "dPathsMap\022F\n\016resource_paths\030\001 \003(\0132..aapt"
163 ".pb.ShortenedPathsMap.ResourcePathMappin"
164 "g\032D\n\023ResourcePathMapping\022\026\n\016shortened_pa"
165 "th\030\001 \001(\t\022\025\n\roriginal_path\030\002 \001(\t\"\214\001\n\021Coll"
166 "apsedNamesMap\022F\n\016resource_names\030\001 \003(\0132.."
167 "aapt.pb.CollapsedNamesMap.ResourceNameMa"
168 "pping\032/\n\023ResourceNameMapping\022\n\n\002id\030\001 \001(\r"
169 "\022\014\n\004name\030\002 \001(\tB\024\n\020com.android.aaptP\001b\006pr"
170 "oto3"
171 ;
172 static ::_pbi::once_flag descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once;
173 const ::_pbi::DescriptorTable descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto = {
174 false, false, 524, descriptor_table_protodef_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto,
175 "frameworks/base/tools/aapt2/ResourceMetadata.proto",
176 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once, nullptr, 0, 5,
177 schemas, file_default_instances, TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto::offsets,
178 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto, file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto,
179 file_level_service_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto,
180 };
descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter()181 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter() {
182 return &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto;
183 }
184
185 // Force running AddDescriptors() at dynamic initialization time.
186 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto);
187 namespace aapt {
188 namespace pb {
189
190 // ===================================================================
191
192 class ResourceMappings::_Internal {
193 public:
194 static const ::aapt::pb::ShortenedPathsMap& shortened_paths(const ResourceMappings* msg);
195 static const ::aapt::pb::CollapsedNamesMap& collapsed_names(const ResourceMappings* msg);
196 };
197
198 const ::aapt::pb::ShortenedPathsMap&
shortened_paths(const ResourceMappings * msg)199 ResourceMappings::_Internal::shortened_paths(const ResourceMappings* msg) {
200 return *msg->_impl_.shortened_paths_;
201 }
202 const ::aapt::pb::CollapsedNamesMap&
collapsed_names(const ResourceMappings * msg)203 ResourceMappings::_Internal::collapsed_names(const ResourceMappings* msg) {
204 return *msg->_impl_.collapsed_names_;
205 }
ResourceMappings(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)206 ResourceMappings::ResourceMappings(::PROTOBUF_NAMESPACE_ID::Arena* arena,
207 bool is_message_owned)
208 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
209 SharedCtor(arena, is_message_owned);
210 // @@protoc_insertion_point(arena_constructor:aapt.pb.ResourceMappings)
211 }
ResourceMappings(const ResourceMappings & from)212 ResourceMappings::ResourceMappings(const ResourceMappings& from)
213 : ::PROTOBUF_NAMESPACE_ID::Message() {
214 ResourceMappings* const _this = this; (void)_this;
215 new (&_impl_) Impl_{
216 decltype(_impl_.shortened_paths_){nullptr}
217 , decltype(_impl_.collapsed_names_){nullptr}
218 , /*decltype(_impl_._cached_size_)*/{}};
219
220 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
221 if (from._internal_has_shortened_paths()) {
222 _this->_impl_.shortened_paths_ = new ::aapt::pb::ShortenedPathsMap(*from._impl_.shortened_paths_);
223 }
224 if (from._internal_has_collapsed_names()) {
225 _this->_impl_.collapsed_names_ = new ::aapt::pb::CollapsedNamesMap(*from._impl_.collapsed_names_);
226 }
227 // @@protoc_insertion_point(copy_constructor:aapt.pb.ResourceMappings)
228 }
229
SharedCtor(::_pb::Arena * arena,bool is_message_owned)230 inline void ResourceMappings::SharedCtor(
231 ::_pb::Arena* arena, bool is_message_owned) {
232 (void)arena;
233 (void)is_message_owned;
234 new (&_impl_) Impl_{
235 decltype(_impl_.shortened_paths_){nullptr}
236 , decltype(_impl_.collapsed_names_){nullptr}
237 , /*decltype(_impl_._cached_size_)*/{}
238 };
239 }
240
~ResourceMappings()241 ResourceMappings::~ResourceMappings() {
242 // @@protoc_insertion_point(destructor:aapt.pb.ResourceMappings)
243 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
244 (void)arena;
245 return;
246 }
247 SharedDtor();
248 }
249
SharedDtor()250 inline void ResourceMappings::SharedDtor() {
251 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
252 if (this != internal_default_instance()) delete _impl_.shortened_paths_;
253 if (this != internal_default_instance()) delete _impl_.collapsed_names_;
254 }
255
SetCachedSize(int size) const256 void ResourceMappings::SetCachedSize(int size) const {
257 _impl_._cached_size_.Set(size);
258 }
259
Clear()260 void ResourceMappings::Clear() {
261 // @@protoc_insertion_point(message_clear_start:aapt.pb.ResourceMappings)
262 ::uint32_t cached_has_bits = 0;
263 // Prevent compiler warnings about cached_has_bits being unused
264 (void) cached_has_bits;
265
266 if (GetArenaForAllocation() == nullptr && _impl_.shortened_paths_ != nullptr) {
267 delete _impl_.shortened_paths_;
268 }
269 _impl_.shortened_paths_ = nullptr;
270 if (GetArenaForAllocation() == nullptr && _impl_.collapsed_names_ != nullptr) {
271 delete _impl_.collapsed_names_;
272 }
273 _impl_.collapsed_names_ = nullptr;
274 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
275 }
276
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)277 const char* ResourceMappings::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
278 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
279 while (!ctx->Done(&ptr)) {
280 ::uint32_t tag;
281 ptr = ::_pbi::ReadTag(ptr, &tag);
282 switch (tag >> 3) {
283 // .aapt.pb.ShortenedPathsMap shortened_paths = 1;
284 case 1:
285 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
286 ptr = ctx->ParseMessage(_internal_mutable_shortened_paths(), ptr);
287 CHK_(ptr);
288 } else {
289 goto handle_unusual;
290 }
291 continue;
292 // .aapt.pb.CollapsedNamesMap collapsed_names = 2;
293 case 2:
294 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
295 ptr = ctx->ParseMessage(_internal_mutable_collapsed_names(), ptr);
296 CHK_(ptr);
297 } else {
298 goto handle_unusual;
299 }
300 continue;
301 default:
302 goto handle_unusual;
303 } // switch
304 handle_unusual:
305 if ((tag == 0) || ((tag & 7) == 4)) {
306 CHK_(ptr);
307 ctx->SetLastTag(tag);
308 goto message_done;
309 }
310 ptr = UnknownFieldParse(
311 tag,
312 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
313 ptr, ctx);
314 CHK_(ptr != nullptr);
315 } // while
316 message_done:
317 return ptr;
318 failure:
319 ptr = nullptr;
320 goto message_done;
321 #undef CHK_
322 }
323
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const324 ::uint8_t* ResourceMappings::_InternalSerialize(
325 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
326 // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ResourceMappings)
327 ::uint32_t cached_has_bits = 0;
328 (void) cached_has_bits;
329
330 // .aapt.pb.ShortenedPathsMap shortened_paths = 1;
331 if (this->_internal_has_shortened_paths()) {
332 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
333 InternalWriteMessage(1, _Internal::shortened_paths(this),
334 _Internal::shortened_paths(this).GetCachedSize(), target, stream);
335 }
336
337 // .aapt.pb.CollapsedNamesMap collapsed_names = 2;
338 if (this->_internal_has_collapsed_names()) {
339 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
340 InternalWriteMessage(2, _Internal::collapsed_names(this),
341 _Internal::collapsed_names(this).GetCachedSize(), target, stream);
342 }
343
344 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
345 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
346 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
347 }
348 // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ResourceMappings)
349 return target;
350 }
351
ByteSizeLong() const352 size_t ResourceMappings::ByteSizeLong() const {
353 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ResourceMappings)
354 size_t total_size = 0;
355
356 ::uint32_t cached_has_bits = 0;
357 // Prevent compiler warnings about cached_has_bits being unused
358 (void) cached_has_bits;
359
360 // .aapt.pb.ShortenedPathsMap shortened_paths = 1;
361 if (this->_internal_has_shortened_paths()) {
362 total_size += 1 +
363 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
364 *_impl_.shortened_paths_);
365 }
366
367 // .aapt.pb.CollapsedNamesMap collapsed_names = 2;
368 if (this->_internal_has_collapsed_names()) {
369 total_size += 1 +
370 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
371 *_impl_.collapsed_names_);
372 }
373
374 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
375 }
376
377 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceMappings::_class_data_ = {
378 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
379 ResourceMappings::MergeImpl
380 };
GetClassData() const381 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceMappings::GetClassData() const { return &_class_data_; }
382
383
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)384 void ResourceMappings::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
385 auto* const _this = static_cast<ResourceMappings*>(&to_msg);
386 auto& from = static_cast<const ResourceMappings&>(from_msg);
387 // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ResourceMappings)
388 GOOGLE_DCHECK_NE(&from, _this);
389 ::uint32_t cached_has_bits = 0;
390 (void) cached_has_bits;
391
392 if (from._internal_has_shortened_paths()) {
393 _this->_internal_mutable_shortened_paths()->::aapt::pb::ShortenedPathsMap::MergeFrom(
394 from._internal_shortened_paths());
395 }
396 if (from._internal_has_collapsed_names()) {
397 _this->_internal_mutable_collapsed_names()->::aapt::pb::CollapsedNamesMap::MergeFrom(
398 from._internal_collapsed_names());
399 }
400 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
401 }
402
CopyFrom(const ResourceMappings & from)403 void ResourceMappings::CopyFrom(const ResourceMappings& from) {
404 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ResourceMappings)
405 if (&from == this) return;
406 Clear();
407 MergeFrom(from);
408 }
409
IsInitialized() const410 bool ResourceMappings::IsInitialized() const {
411 return true;
412 }
413
InternalSwap(ResourceMappings * other)414 void ResourceMappings::InternalSwap(ResourceMappings* other) {
415 using std::swap;
416 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
417 ::PROTOBUF_NAMESPACE_ID::internal::memswap<
418 PROTOBUF_FIELD_OFFSET(ResourceMappings, _impl_.collapsed_names_)
419 + sizeof(ResourceMappings::_impl_.collapsed_names_) // NOLINT
420 - PROTOBUF_FIELD_OFFSET(ResourceMappings, _impl_.shortened_paths_)>(
421 reinterpret_cast<char*>(&_impl_.shortened_paths_),
422 reinterpret_cast<char*>(&other->_impl_.shortened_paths_));
423 }
424
GetMetadata() const425 ::PROTOBUF_NAMESPACE_ID::Metadata ResourceMappings::GetMetadata() const {
426 return ::_pbi::AssignDescriptors(
427 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once,
428 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[0]);
429 }
430
431 // ===================================================================
432
433 class ShortenedPathsMap_ResourcePathMapping::_Internal {
434 public:
435 };
436
ShortenedPathsMap_ResourcePathMapping(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)437 ShortenedPathsMap_ResourcePathMapping::ShortenedPathsMap_ResourcePathMapping(::PROTOBUF_NAMESPACE_ID::Arena* arena,
438 bool is_message_owned)
439 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
440 SharedCtor(arena, is_message_owned);
441 // @@protoc_insertion_point(arena_constructor:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
442 }
ShortenedPathsMap_ResourcePathMapping(const ShortenedPathsMap_ResourcePathMapping & from)443 ShortenedPathsMap_ResourcePathMapping::ShortenedPathsMap_ResourcePathMapping(const ShortenedPathsMap_ResourcePathMapping& from)
444 : ::PROTOBUF_NAMESPACE_ID::Message() {
445 ShortenedPathsMap_ResourcePathMapping* const _this = this; (void)_this;
446 new (&_impl_) Impl_{
447 decltype(_impl_.shortened_path_){}
448 , decltype(_impl_.original_path_){}
449 , /*decltype(_impl_._cached_size_)*/{}};
450
451 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
452 _impl_.shortened_path_.InitDefault();
453 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
454 _impl_.shortened_path_.Set("", GetArenaForAllocation());
455 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
456 if (!from._internal_shortened_path().empty()) {
457 _this->_impl_.shortened_path_.Set(from._internal_shortened_path(),
458 _this->GetArenaForAllocation());
459 }
460 _impl_.original_path_.InitDefault();
461 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
462 _impl_.original_path_.Set("", GetArenaForAllocation());
463 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
464 if (!from._internal_original_path().empty()) {
465 _this->_impl_.original_path_.Set(from._internal_original_path(),
466 _this->GetArenaForAllocation());
467 }
468 // @@protoc_insertion_point(copy_constructor:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
469 }
470
SharedCtor(::_pb::Arena * arena,bool is_message_owned)471 inline void ShortenedPathsMap_ResourcePathMapping::SharedCtor(
472 ::_pb::Arena* arena, bool is_message_owned) {
473 (void)arena;
474 (void)is_message_owned;
475 new (&_impl_) Impl_{
476 decltype(_impl_.shortened_path_){}
477 , decltype(_impl_.original_path_){}
478 , /*decltype(_impl_._cached_size_)*/{}
479 };
480 _impl_.shortened_path_.InitDefault();
481 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
482 _impl_.shortened_path_.Set("", GetArenaForAllocation());
483 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
484 _impl_.original_path_.InitDefault();
485 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
486 _impl_.original_path_.Set("", GetArenaForAllocation());
487 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
488 }
489
~ShortenedPathsMap_ResourcePathMapping()490 ShortenedPathsMap_ResourcePathMapping::~ShortenedPathsMap_ResourcePathMapping() {
491 // @@protoc_insertion_point(destructor:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
492 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
493 (void)arena;
494 return;
495 }
496 SharedDtor();
497 }
498
SharedDtor()499 inline void ShortenedPathsMap_ResourcePathMapping::SharedDtor() {
500 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
501 _impl_.shortened_path_.Destroy();
502 _impl_.original_path_.Destroy();
503 }
504
SetCachedSize(int size) const505 void ShortenedPathsMap_ResourcePathMapping::SetCachedSize(int size) const {
506 _impl_._cached_size_.Set(size);
507 }
508
Clear()509 void ShortenedPathsMap_ResourcePathMapping::Clear() {
510 // @@protoc_insertion_point(message_clear_start:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
511 ::uint32_t cached_has_bits = 0;
512 // Prevent compiler warnings about cached_has_bits being unused
513 (void) cached_has_bits;
514
515 _impl_.shortened_path_.ClearToEmpty();
516 _impl_.original_path_.ClearToEmpty();
517 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
518 }
519
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)520 const char* ShortenedPathsMap_ResourcePathMapping::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
521 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
522 while (!ctx->Done(&ptr)) {
523 ::uint32_t tag;
524 ptr = ::_pbi::ReadTag(ptr, &tag);
525 switch (tag >> 3) {
526 // string shortened_path = 1;
527 case 1:
528 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
529 auto str = _internal_mutable_shortened_path();
530 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
531 CHK_(ptr);
532 CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.ShortenedPathsMap.ResourcePathMapping.shortened_path"));
533 } else {
534 goto handle_unusual;
535 }
536 continue;
537 // string original_path = 2;
538 case 2:
539 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
540 auto str = _internal_mutable_original_path();
541 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
542 CHK_(ptr);
543 CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.ShortenedPathsMap.ResourcePathMapping.original_path"));
544 } else {
545 goto handle_unusual;
546 }
547 continue;
548 default:
549 goto handle_unusual;
550 } // switch
551 handle_unusual:
552 if ((tag == 0) || ((tag & 7) == 4)) {
553 CHK_(ptr);
554 ctx->SetLastTag(tag);
555 goto message_done;
556 }
557 ptr = UnknownFieldParse(
558 tag,
559 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
560 ptr, ctx);
561 CHK_(ptr != nullptr);
562 } // while
563 message_done:
564 return ptr;
565 failure:
566 ptr = nullptr;
567 goto message_done;
568 #undef CHK_
569 }
570
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const571 ::uint8_t* ShortenedPathsMap_ResourcePathMapping::_InternalSerialize(
572 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
573 // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
574 ::uint32_t cached_has_bits = 0;
575 (void) cached_has_bits;
576
577 // string shortened_path = 1;
578 if (!this->_internal_shortened_path().empty()) {
579 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
580 this->_internal_shortened_path().data(), static_cast<int>(this->_internal_shortened_path().length()),
581 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
582 "aapt.pb.ShortenedPathsMap.ResourcePathMapping.shortened_path");
583 target = stream->WriteStringMaybeAliased(
584 1, this->_internal_shortened_path(), target);
585 }
586
587 // string original_path = 2;
588 if (!this->_internal_original_path().empty()) {
589 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
590 this->_internal_original_path().data(), static_cast<int>(this->_internal_original_path().length()),
591 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
592 "aapt.pb.ShortenedPathsMap.ResourcePathMapping.original_path");
593 target = stream->WriteStringMaybeAliased(
594 2, this->_internal_original_path(), target);
595 }
596
597 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
598 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
599 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
600 }
601 // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
602 return target;
603 }
604
ByteSizeLong() const605 size_t ShortenedPathsMap_ResourcePathMapping::ByteSizeLong() const {
606 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
607 size_t total_size = 0;
608
609 ::uint32_t cached_has_bits = 0;
610 // Prevent compiler warnings about cached_has_bits being unused
611 (void) cached_has_bits;
612
613 // string shortened_path = 1;
614 if (!this->_internal_shortened_path().empty()) {
615 total_size += 1 +
616 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
617 this->_internal_shortened_path());
618 }
619
620 // string original_path = 2;
621 if (!this->_internal_original_path().empty()) {
622 total_size += 1 +
623 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
624 this->_internal_original_path());
625 }
626
627 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
628 }
629
630 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShortenedPathsMap_ResourcePathMapping::_class_data_ = {
631 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
632 ShortenedPathsMap_ResourcePathMapping::MergeImpl
633 };
GetClassData() const634 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShortenedPathsMap_ResourcePathMapping::GetClassData() const { return &_class_data_; }
635
636
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)637 void ShortenedPathsMap_ResourcePathMapping::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
638 auto* const _this = static_cast<ShortenedPathsMap_ResourcePathMapping*>(&to_msg);
639 auto& from = static_cast<const ShortenedPathsMap_ResourcePathMapping&>(from_msg);
640 // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
641 GOOGLE_DCHECK_NE(&from, _this);
642 ::uint32_t cached_has_bits = 0;
643 (void) cached_has_bits;
644
645 if (!from._internal_shortened_path().empty()) {
646 _this->_internal_set_shortened_path(from._internal_shortened_path());
647 }
648 if (!from._internal_original_path().empty()) {
649 _this->_internal_set_original_path(from._internal_original_path());
650 }
651 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
652 }
653
CopyFrom(const ShortenedPathsMap_ResourcePathMapping & from)654 void ShortenedPathsMap_ResourcePathMapping::CopyFrom(const ShortenedPathsMap_ResourcePathMapping& from) {
655 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ShortenedPathsMap.ResourcePathMapping)
656 if (&from == this) return;
657 Clear();
658 MergeFrom(from);
659 }
660
IsInitialized() const661 bool ShortenedPathsMap_ResourcePathMapping::IsInitialized() const {
662 return true;
663 }
664
InternalSwap(ShortenedPathsMap_ResourcePathMapping * other)665 void ShortenedPathsMap_ResourcePathMapping::InternalSwap(ShortenedPathsMap_ResourcePathMapping* other) {
666 using std::swap;
667 auto* lhs_arena = GetArenaForAllocation();
668 auto* rhs_arena = other->GetArenaForAllocation();
669 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
670 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
671 &_impl_.shortened_path_, lhs_arena,
672 &other->_impl_.shortened_path_, rhs_arena
673 );
674 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
675 &_impl_.original_path_, lhs_arena,
676 &other->_impl_.original_path_, rhs_arena
677 );
678 }
679
GetMetadata() const680 ::PROTOBUF_NAMESPACE_ID::Metadata ShortenedPathsMap_ResourcePathMapping::GetMetadata() const {
681 return ::_pbi::AssignDescriptors(
682 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once,
683 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[1]);
684 }
685
686 // ===================================================================
687
688 class ShortenedPathsMap::_Internal {
689 public:
690 };
691
ShortenedPathsMap(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)692 ShortenedPathsMap::ShortenedPathsMap(::PROTOBUF_NAMESPACE_ID::Arena* arena,
693 bool is_message_owned)
694 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
695 SharedCtor(arena, is_message_owned);
696 // @@protoc_insertion_point(arena_constructor:aapt.pb.ShortenedPathsMap)
697 }
ShortenedPathsMap(const ShortenedPathsMap & from)698 ShortenedPathsMap::ShortenedPathsMap(const ShortenedPathsMap& from)
699 : ::PROTOBUF_NAMESPACE_ID::Message() {
700 ShortenedPathsMap* const _this = this; (void)_this;
701 new (&_impl_) Impl_{
702 decltype(_impl_.resource_paths_){from._impl_.resource_paths_}
703 , /*decltype(_impl_._cached_size_)*/{}};
704
705 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
706 // @@protoc_insertion_point(copy_constructor:aapt.pb.ShortenedPathsMap)
707 }
708
SharedCtor(::_pb::Arena * arena,bool is_message_owned)709 inline void ShortenedPathsMap::SharedCtor(
710 ::_pb::Arena* arena, bool is_message_owned) {
711 (void)arena;
712 (void)is_message_owned;
713 new (&_impl_) Impl_{
714 decltype(_impl_.resource_paths_){arena}
715 , /*decltype(_impl_._cached_size_)*/{}
716 };
717 }
718
~ShortenedPathsMap()719 ShortenedPathsMap::~ShortenedPathsMap() {
720 // @@protoc_insertion_point(destructor:aapt.pb.ShortenedPathsMap)
721 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
722 (void)arena;
723 return;
724 }
725 SharedDtor();
726 }
727
SharedDtor()728 inline void ShortenedPathsMap::SharedDtor() {
729 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
730 _impl_.resource_paths_.~RepeatedPtrField();
731 }
732
SetCachedSize(int size) const733 void ShortenedPathsMap::SetCachedSize(int size) const {
734 _impl_._cached_size_.Set(size);
735 }
736
Clear()737 void ShortenedPathsMap::Clear() {
738 // @@protoc_insertion_point(message_clear_start:aapt.pb.ShortenedPathsMap)
739 ::uint32_t cached_has_bits = 0;
740 // Prevent compiler warnings about cached_has_bits being unused
741 (void) cached_has_bits;
742
743 _impl_.resource_paths_.Clear();
744 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
745 }
746
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)747 const char* ShortenedPathsMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
748 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
749 while (!ctx->Done(&ptr)) {
750 ::uint32_t tag;
751 ptr = ::_pbi::ReadTag(ptr, &tag);
752 switch (tag >> 3) {
753 // repeated .aapt.pb.ShortenedPathsMap.ResourcePathMapping resource_paths = 1;
754 case 1:
755 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
756 ptr -= 1;
757 do {
758 ptr += 1;
759 ptr = ctx->ParseMessage(_internal_add_resource_paths(), ptr);
760 CHK_(ptr);
761 if (!ctx->DataAvailable(ptr)) break;
762 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
763 } else {
764 goto handle_unusual;
765 }
766 continue;
767 default:
768 goto handle_unusual;
769 } // switch
770 handle_unusual:
771 if ((tag == 0) || ((tag & 7) == 4)) {
772 CHK_(ptr);
773 ctx->SetLastTag(tag);
774 goto message_done;
775 }
776 ptr = UnknownFieldParse(
777 tag,
778 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
779 ptr, ctx);
780 CHK_(ptr != nullptr);
781 } // while
782 message_done:
783 return ptr;
784 failure:
785 ptr = nullptr;
786 goto message_done;
787 #undef CHK_
788 }
789
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const790 ::uint8_t* ShortenedPathsMap::_InternalSerialize(
791 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
792 // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ShortenedPathsMap)
793 ::uint32_t cached_has_bits = 0;
794 (void) cached_has_bits;
795
796 // repeated .aapt.pb.ShortenedPathsMap.ResourcePathMapping resource_paths = 1;
797 for (unsigned i = 0,
798 n = static_cast<unsigned>(this->_internal_resource_paths_size()); i < n; i++) {
799 const auto& repfield = this->_internal_resource_paths(i);
800 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
801 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
802 }
803
804 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
805 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
806 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
807 }
808 // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ShortenedPathsMap)
809 return target;
810 }
811
ByteSizeLong() const812 size_t ShortenedPathsMap::ByteSizeLong() const {
813 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ShortenedPathsMap)
814 size_t total_size = 0;
815
816 ::uint32_t cached_has_bits = 0;
817 // Prevent compiler warnings about cached_has_bits being unused
818 (void) cached_has_bits;
819
820 // repeated .aapt.pb.ShortenedPathsMap.ResourcePathMapping resource_paths = 1;
821 total_size += 1UL * this->_internal_resource_paths_size();
822 for (const auto& msg : this->_impl_.resource_paths_) {
823 total_size +=
824 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
825 }
826
827 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
828 }
829
830 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ShortenedPathsMap::_class_data_ = {
831 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
832 ShortenedPathsMap::MergeImpl
833 };
GetClassData() const834 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ShortenedPathsMap::GetClassData() const { return &_class_data_; }
835
836
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)837 void ShortenedPathsMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
838 auto* const _this = static_cast<ShortenedPathsMap*>(&to_msg);
839 auto& from = static_cast<const ShortenedPathsMap&>(from_msg);
840 // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ShortenedPathsMap)
841 GOOGLE_DCHECK_NE(&from, _this);
842 ::uint32_t cached_has_bits = 0;
843 (void) cached_has_bits;
844
845 _this->_impl_.resource_paths_.MergeFrom(from._impl_.resource_paths_);
846 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
847 }
848
CopyFrom(const ShortenedPathsMap & from)849 void ShortenedPathsMap::CopyFrom(const ShortenedPathsMap& from) {
850 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ShortenedPathsMap)
851 if (&from == this) return;
852 Clear();
853 MergeFrom(from);
854 }
855
IsInitialized() const856 bool ShortenedPathsMap::IsInitialized() const {
857 return true;
858 }
859
InternalSwap(ShortenedPathsMap * other)860 void ShortenedPathsMap::InternalSwap(ShortenedPathsMap* other) {
861 using std::swap;
862 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
863 _impl_.resource_paths_.InternalSwap(&other->_impl_.resource_paths_);
864 }
865
GetMetadata() const866 ::PROTOBUF_NAMESPACE_ID::Metadata ShortenedPathsMap::GetMetadata() const {
867 return ::_pbi::AssignDescriptors(
868 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once,
869 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[2]);
870 }
871
872 // ===================================================================
873
874 class CollapsedNamesMap_ResourceNameMapping::_Internal {
875 public:
876 };
877
CollapsedNamesMap_ResourceNameMapping(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)878 CollapsedNamesMap_ResourceNameMapping::CollapsedNamesMap_ResourceNameMapping(::PROTOBUF_NAMESPACE_ID::Arena* arena,
879 bool is_message_owned)
880 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
881 SharedCtor(arena, is_message_owned);
882 // @@protoc_insertion_point(arena_constructor:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
883 }
CollapsedNamesMap_ResourceNameMapping(const CollapsedNamesMap_ResourceNameMapping & from)884 CollapsedNamesMap_ResourceNameMapping::CollapsedNamesMap_ResourceNameMapping(const CollapsedNamesMap_ResourceNameMapping& from)
885 : ::PROTOBUF_NAMESPACE_ID::Message() {
886 CollapsedNamesMap_ResourceNameMapping* const _this = this; (void)_this;
887 new (&_impl_) Impl_{
888 decltype(_impl_.name_){}
889 , decltype(_impl_.id_){}
890 , /*decltype(_impl_._cached_size_)*/{}};
891
892 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
893 _impl_.name_.InitDefault();
894 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
895 _impl_.name_.Set("", GetArenaForAllocation());
896 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
897 if (!from._internal_name().empty()) {
898 _this->_impl_.name_.Set(from._internal_name(),
899 _this->GetArenaForAllocation());
900 }
901 _this->_impl_.id_ = from._impl_.id_;
902 // @@protoc_insertion_point(copy_constructor:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
903 }
904
SharedCtor(::_pb::Arena * arena,bool is_message_owned)905 inline void CollapsedNamesMap_ResourceNameMapping::SharedCtor(
906 ::_pb::Arena* arena, bool is_message_owned) {
907 (void)arena;
908 (void)is_message_owned;
909 new (&_impl_) Impl_{
910 decltype(_impl_.name_){}
911 , decltype(_impl_.id_){0u}
912 , /*decltype(_impl_._cached_size_)*/{}
913 };
914 _impl_.name_.InitDefault();
915 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
916 _impl_.name_.Set("", GetArenaForAllocation());
917 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
918 }
919
~CollapsedNamesMap_ResourceNameMapping()920 CollapsedNamesMap_ResourceNameMapping::~CollapsedNamesMap_ResourceNameMapping() {
921 // @@protoc_insertion_point(destructor:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
922 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
923 (void)arena;
924 return;
925 }
926 SharedDtor();
927 }
928
SharedDtor()929 inline void CollapsedNamesMap_ResourceNameMapping::SharedDtor() {
930 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
931 _impl_.name_.Destroy();
932 }
933
SetCachedSize(int size) const934 void CollapsedNamesMap_ResourceNameMapping::SetCachedSize(int size) const {
935 _impl_._cached_size_.Set(size);
936 }
937
Clear()938 void CollapsedNamesMap_ResourceNameMapping::Clear() {
939 // @@protoc_insertion_point(message_clear_start:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
940 ::uint32_t cached_has_bits = 0;
941 // Prevent compiler warnings about cached_has_bits being unused
942 (void) cached_has_bits;
943
944 _impl_.name_.ClearToEmpty();
945 _impl_.id_ = 0u;
946 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
947 }
948
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)949 const char* CollapsedNamesMap_ResourceNameMapping::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
950 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
951 while (!ctx->Done(&ptr)) {
952 ::uint32_t tag;
953 ptr = ::_pbi::ReadTag(ptr, &tag);
954 switch (tag >> 3) {
955 // uint32 id = 1;
956 case 1:
957 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
958 _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
959 CHK_(ptr);
960 } else {
961 goto handle_unusual;
962 }
963 continue;
964 // string name = 2;
965 case 2:
966 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
967 auto str = _internal_mutable_name();
968 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
969 CHK_(ptr);
970 CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.CollapsedNamesMap.ResourceNameMapping.name"));
971 } else {
972 goto handle_unusual;
973 }
974 continue;
975 default:
976 goto handle_unusual;
977 } // switch
978 handle_unusual:
979 if ((tag == 0) || ((tag & 7) == 4)) {
980 CHK_(ptr);
981 ctx->SetLastTag(tag);
982 goto message_done;
983 }
984 ptr = UnknownFieldParse(
985 tag,
986 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
987 ptr, ctx);
988 CHK_(ptr != nullptr);
989 } // while
990 message_done:
991 return ptr;
992 failure:
993 ptr = nullptr;
994 goto message_done;
995 #undef CHK_
996 }
997
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const998 ::uint8_t* CollapsedNamesMap_ResourceNameMapping::_InternalSerialize(
999 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1000 // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
1001 ::uint32_t cached_has_bits = 0;
1002 (void) cached_has_bits;
1003
1004 // uint32 id = 1;
1005 if (this->_internal_id() != 0) {
1006 target = stream->EnsureSpace(target);
1007 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target);
1008 }
1009
1010 // string name = 2;
1011 if (!this->_internal_name().empty()) {
1012 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1013 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1014 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1015 "aapt.pb.CollapsedNamesMap.ResourceNameMapping.name");
1016 target = stream->WriteStringMaybeAliased(
1017 2, this->_internal_name(), target);
1018 }
1019
1020 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1021 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1022 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1023 }
1024 // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
1025 return target;
1026 }
1027
ByteSizeLong() const1028 size_t CollapsedNamesMap_ResourceNameMapping::ByteSizeLong() const {
1029 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
1030 size_t total_size = 0;
1031
1032 ::uint32_t cached_has_bits = 0;
1033 // Prevent compiler warnings about cached_has_bits being unused
1034 (void) cached_has_bits;
1035
1036 // string name = 2;
1037 if (!this->_internal_name().empty()) {
1038 total_size += 1 +
1039 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1040 this->_internal_name());
1041 }
1042
1043 // uint32 id = 1;
1044 if (this->_internal_id() != 0) {
1045 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
1046 }
1047
1048 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1049 }
1050
1051 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CollapsedNamesMap_ResourceNameMapping::_class_data_ = {
1052 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1053 CollapsedNamesMap_ResourceNameMapping::MergeImpl
1054 };
GetClassData() const1055 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CollapsedNamesMap_ResourceNameMapping::GetClassData() const { return &_class_data_; }
1056
1057
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1058 void CollapsedNamesMap_ResourceNameMapping::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1059 auto* const _this = static_cast<CollapsedNamesMap_ResourceNameMapping*>(&to_msg);
1060 auto& from = static_cast<const CollapsedNamesMap_ResourceNameMapping&>(from_msg);
1061 // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
1062 GOOGLE_DCHECK_NE(&from, _this);
1063 ::uint32_t cached_has_bits = 0;
1064 (void) cached_has_bits;
1065
1066 if (!from._internal_name().empty()) {
1067 _this->_internal_set_name(from._internal_name());
1068 }
1069 if (from._internal_id() != 0) {
1070 _this->_internal_set_id(from._internal_id());
1071 }
1072 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1073 }
1074
CopyFrom(const CollapsedNamesMap_ResourceNameMapping & from)1075 void CollapsedNamesMap_ResourceNameMapping::CopyFrom(const CollapsedNamesMap_ResourceNameMapping& from) {
1076 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.CollapsedNamesMap.ResourceNameMapping)
1077 if (&from == this) return;
1078 Clear();
1079 MergeFrom(from);
1080 }
1081
IsInitialized() const1082 bool CollapsedNamesMap_ResourceNameMapping::IsInitialized() const {
1083 return true;
1084 }
1085
InternalSwap(CollapsedNamesMap_ResourceNameMapping * other)1086 void CollapsedNamesMap_ResourceNameMapping::InternalSwap(CollapsedNamesMap_ResourceNameMapping* other) {
1087 using std::swap;
1088 auto* lhs_arena = GetArenaForAllocation();
1089 auto* rhs_arena = other->GetArenaForAllocation();
1090 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1091 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1092 &_impl_.name_, lhs_arena,
1093 &other->_impl_.name_, rhs_arena
1094 );
1095 swap(_impl_.id_, other->_impl_.id_);
1096 }
1097
GetMetadata() const1098 ::PROTOBUF_NAMESPACE_ID::Metadata CollapsedNamesMap_ResourceNameMapping::GetMetadata() const {
1099 return ::_pbi::AssignDescriptors(
1100 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once,
1101 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[3]);
1102 }
1103
1104 // ===================================================================
1105
1106 class CollapsedNamesMap::_Internal {
1107 public:
1108 };
1109
CollapsedNamesMap(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1110 CollapsedNamesMap::CollapsedNamesMap(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1111 bool is_message_owned)
1112 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1113 SharedCtor(arena, is_message_owned);
1114 // @@protoc_insertion_point(arena_constructor:aapt.pb.CollapsedNamesMap)
1115 }
CollapsedNamesMap(const CollapsedNamesMap & from)1116 CollapsedNamesMap::CollapsedNamesMap(const CollapsedNamesMap& from)
1117 : ::PROTOBUF_NAMESPACE_ID::Message() {
1118 CollapsedNamesMap* const _this = this; (void)_this;
1119 new (&_impl_) Impl_{
1120 decltype(_impl_.resource_names_){from._impl_.resource_names_}
1121 , /*decltype(_impl_._cached_size_)*/{}};
1122
1123 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1124 // @@protoc_insertion_point(copy_constructor:aapt.pb.CollapsedNamesMap)
1125 }
1126
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1127 inline void CollapsedNamesMap::SharedCtor(
1128 ::_pb::Arena* arena, bool is_message_owned) {
1129 (void)arena;
1130 (void)is_message_owned;
1131 new (&_impl_) Impl_{
1132 decltype(_impl_.resource_names_){arena}
1133 , /*decltype(_impl_._cached_size_)*/{}
1134 };
1135 }
1136
~CollapsedNamesMap()1137 CollapsedNamesMap::~CollapsedNamesMap() {
1138 // @@protoc_insertion_point(destructor:aapt.pb.CollapsedNamesMap)
1139 if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1140 (void)arena;
1141 return;
1142 }
1143 SharedDtor();
1144 }
1145
SharedDtor()1146 inline void CollapsedNamesMap::SharedDtor() {
1147 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1148 _impl_.resource_names_.~RepeatedPtrField();
1149 }
1150
SetCachedSize(int size) const1151 void CollapsedNamesMap::SetCachedSize(int size) const {
1152 _impl_._cached_size_.Set(size);
1153 }
1154
Clear()1155 void CollapsedNamesMap::Clear() {
1156 // @@protoc_insertion_point(message_clear_start:aapt.pb.CollapsedNamesMap)
1157 ::uint32_t cached_has_bits = 0;
1158 // Prevent compiler warnings about cached_has_bits being unused
1159 (void) cached_has_bits;
1160
1161 _impl_.resource_names_.Clear();
1162 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1163 }
1164
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1165 const char* CollapsedNamesMap::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1166 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1167 while (!ctx->Done(&ptr)) {
1168 ::uint32_t tag;
1169 ptr = ::_pbi::ReadTag(ptr, &tag);
1170 switch (tag >> 3) {
1171 // repeated .aapt.pb.CollapsedNamesMap.ResourceNameMapping resource_names = 1;
1172 case 1:
1173 if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1174 ptr -= 1;
1175 do {
1176 ptr += 1;
1177 ptr = ctx->ParseMessage(_internal_add_resource_names(), ptr);
1178 CHK_(ptr);
1179 if (!ctx->DataAvailable(ptr)) break;
1180 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1181 } else {
1182 goto handle_unusual;
1183 }
1184 continue;
1185 default:
1186 goto handle_unusual;
1187 } // switch
1188 handle_unusual:
1189 if ((tag == 0) || ((tag & 7) == 4)) {
1190 CHK_(ptr);
1191 ctx->SetLastTag(tag);
1192 goto message_done;
1193 }
1194 ptr = UnknownFieldParse(
1195 tag,
1196 _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1197 ptr, ctx);
1198 CHK_(ptr != nullptr);
1199 } // while
1200 message_done:
1201 return ptr;
1202 failure:
1203 ptr = nullptr;
1204 goto message_done;
1205 #undef CHK_
1206 }
1207
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1208 ::uint8_t* CollapsedNamesMap::_InternalSerialize(
1209 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1210 // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.CollapsedNamesMap)
1211 ::uint32_t cached_has_bits = 0;
1212 (void) cached_has_bits;
1213
1214 // repeated .aapt.pb.CollapsedNamesMap.ResourceNameMapping resource_names = 1;
1215 for (unsigned i = 0,
1216 n = static_cast<unsigned>(this->_internal_resource_names_size()); i < n; i++) {
1217 const auto& repfield = this->_internal_resource_names(i);
1218 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1219 InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1220 }
1221
1222 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1223 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1224 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1225 }
1226 // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.CollapsedNamesMap)
1227 return target;
1228 }
1229
ByteSizeLong() const1230 size_t CollapsedNamesMap::ByteSizeLong() const {
1231 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.CollapsedNamesMap)
1232 size_t total_size = 0;
1233
1234 ::uint32_t cached_has_bits = 0;
1235 // Prevent compiler warnings about cached_has_bits being unused
1236 (void) cached_has_bits;
1237
1238 // repeated .aapt.pb.CollapsedNamesMap.ResourceNameMapping resource_names = 1;
1239 total_size += 1UL * this->_internal_resource_names_size();
1240 for (const auto& msg : this->_impl_.resource_names_) {
1241 total_size +=
1242 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1243 }
1244
1245 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1246 }
1247
1248 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CollapsedNamesMap::_class_data_ = {
1249 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1250 CollapsedNamesMap::MergeImpl
1251 };
GetClassData() const1252 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CollapsedNamesMap::GetClassData() const { return &_class_data_; }
1253
1254
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1255 void CollapsedNamesMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1256 auto* const _this = static_cast<CollapsedNamesMap*>(&to_msg);
1257 auto& from = static_cast<const CollapsedNamesMap&>(from_msg);
1258 // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.CollapsedNamesMap)
1259 GOOGLE_DCHECK_NE(&from, _this);
1260 ::uint32_t cached_has_bits = 0;
1261 (void) cached_has_bits;
1262
1263 _this->_impl_.resource_names_.MergeFrom(from._impl_.resource_names_);
1264 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1265 }
1266
CopyFrom(const CollapsedNamesMap & from)1267 void CollapsedNamesMap::CopyFrom(const CollapsedNamesMap& from) {
1268 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.CollapsedNamesMap)
1269 if (&from == this) return;
1270 Clear();
1271 MergeFrom(from);
1272 }
1273
IsInitialized() const1274 bool CollapsedNamesMap::IsInitialized() const {
1275 return true;
1276 }
1277
InternalSwap(CollapsedNamesMap * other)1278 void CollapsedNamesMap::InternalSwap(CollapsedNamesMap* other) {
1279 using std::swap;
1280 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1281 _impl_.resource_names_.InternalSwap(&other->_impl_.resource_names_);
1282 }
1283
GetMetadata() const1284 ::PROTOBUF_NAMESPACE_ID::Metadata CollapsedNamesMap::GetMetadata() const {
1285 return ::_pbi::AssignDescriptors(
1286 &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto_once,
1287 file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResourceMetadata_2eproto[4]);
1288 }
1289
1290 // @@protoc_insertion_point(namespace_scope)
1291 } // namespace pb
1292 } // namespace aapt
1293 PROTOBUF_NAMESPACE_OPEN
1294 template<> PROTOBUF_NOINLINE ::aapt::pb::ResourceMappings*
CreateMaybeMessage(Arena * arena)1295 Arena::CreateMaybeMessage< ::aapt::pb::ResourceMappings >(Arena* arena) {
1296 return Arena::CreateMessageInternal< ::aapt::pb::ResourceMappings >(arena);
1297 }
1298 template<> PROTOBUF_NOINLINE ::aapt::pb::ShortenedPathsMap_ResourcePathMapping*
CreateMaybeMessage(Arena * arena)1299 Arena::CreateMaybeMessage< ::aapt::pb::ShortenedPathsMap_ResourcePathMapping >(Arena* arena) {
1300 return Arena::CreateMessageInternal< ::aapt::pb::ShortenedPathsMap_ResourcePathMapping >(arena);
1301 }
1302 template<> PROTOBUF_NOINLINE ::aapt::pb::ShortenedPathsMap*
CreateMaybeMessage(Arena * arena)1303 Arena::CreateMaybeMessage< ::aapt::pb::ShortenedPathsMap >(Arena* arena) {
1304 return Arena::CreateMessageInternal< ::aapt::pb::ShortenedPathsMap >(arena);
1305 }
1306 template<> PROTOBUF_NOINLINE ::aapt::pb::CollapsedNamesMap_ResourceNameMapping*
CreateMaybeMessage(Arena * arena)1307 Arena::CreateMaybeMessage< ::aapt::pb::CollapsedNamesMap_ResourceNameMapping >(Arena* arena) {
1308 return Arena::CreateMessageInternal< ::aapt::pb::CollapsedNamesMap_ResourceNameMapping >(arena);
1309 }
1310 template<> PROTOBUF_NOINLINE ::aapt::pb::CollapsedNamesMap*
CreateMaybeMessage(Arena * arena)1311 Arena::CreateMaybeMessage< ::aapt::pb::CollapsedNamesMap >(Arena* arena) {
1312 return Arena::CreateMessageInternal< ::aapt::pb::CollapsedNamesMap >(arena);
1313 }
1314 PROTOBUF_NAMESPACE_CLOSE
1315
1316 // @@protoc_insertion_point(global_scope)
1317 #include <google/protobuf/port_undef.inc>
1318