1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: frameworks/base/tools/aapt2/Resources.proto
3 
4 #include "frameworks/base/tools/aapt2/Resources.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 {
StringPool(::_pbi::ConstantInitialized)26 PROTOBUF_CONSTEXPR StringPool::StringPool(
27     ::_pbi::ConstantInitialized): _impl_{
28     /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
29   , /*decltype(_impl_._cached_size_)*/{}} {}
30 struct StringPoolDefaultTypeInternal {
StringPoolDefaultTypeInternalaapt::pb::StringPoolDefaultTypeInternal31   PROTOBUF_CONSTEXPR StringPoolDefaultTypeInternal()
32       : _instance(::_pbi::ConstantInitialized{}) {}
~StringPoolDefaultTypeInternalaapt::pb::StringPoolDefaultTypeInternal33   ~StringPoolDefaultTypeInternal() {}
34   union {  // NOLINT(misc-non-private-member-variables-in-classes)
35     StringPool _instance;
36   };
37 };
38 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringPoolDefaultTypeInternal _StringPool_default_instance_;
SourcePosition(::_pbi::ConstantInitialized)39 PROTOBUF_CONSTEXPR SourcePosition::SourcePosition(
40     ::_pbi::ConstantInitialized): _impl_{
41     /*decltype(_impl_.line_number_)*/0u
42   , /*decltype(_impl_.column_number_)*/0u
43   , /*decltype(_impl_._cached_size_)*/{}} {}
44 struct SourcePositionDefaultTypeInternal {
SourcePositionDefaultTypeInternalaapt::pb::SourcePositionDefaultTypeInternal45   PROTOBUF_CONSTEXPR SourcePositionDefaultTypeInternal()
46       : _instance(::_pbi::ConstantInitialized{}) {}
~SourcePositionDefaultTypeInternalaapt::pb::SourcePositionDefaultTypeInternal47   ~SourcePositionDefaultTypeInternal() {}
48   union {  // NOLINT(misc-non-private-member-variables-in-classes)
49     SourcePosition _instance;
50   };
51 };
52 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourcePositionDefaultTypeInternal _SourcePosition_default_instance_;
Source(::_pbi::ConstantInitialized)53 PROTOBUF_CONSTEXPR Source::Source(
54     ::_pbi::ConstantInitialized): _impl_{
55     /*decltype(_impl_.position_)*/nullptr
56   , /*decltype(_impl_.path_idx_)*/0u
57   , /*decltype(_impl_._cached_size_)*/{}} {}
58 struct SourceDefaultTypeInternal {
SourceDefaultTypeInternalaapt::pb::SourceDefaultTypeInternal59   PROTOBUF_CONSTEXPR SourceDefaultTypeInternal()
60       : _instance(::_pbi::ConstantInitialized{}) {}
~SourceDefaultTypeInternalaapt::pb::SourceDefaultTypeInternal61   ~SourceDefaultTypeInternal() {}
62   union {  // NOLINT(misc-non-private-member-variables-in-classes)
63     Source _instance;
64   };
65 };
66 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceDefaultTypeInternal _Source_default_instance_;
ToolFingerprint(::_pbi::ConstantInitialized)67 PROTOBUF_CONSTEXPR ToolFingerprint::ToolFingerprint(
68     ::_pbi::ConstantInitialized): _impl_{
69     /*decltype(_impl_.tool_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
70   , /*decltype(_impl_.version_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
71   , /*decltype(_impl_._cached_size_)*/{}} {}
72 struct ToolFingerprintDefaultTypeInternal {
ToolFingerprintDefaultTypeInternalaapt::pb::ToolFingerprintDefaultTypeInternal73   PROTOBUF_CONSTEXPR ToolFingerprintDefaultTypeInternal()
74       : _instance(::_pbi::ConstantInitialized{}) {}
~ToolFingerprintDefaultTypeInternalaapt::pb::ToolFingerprintDefaultTypeInternal75   ~ToolFingerprintDefaultTypeInternal() {}
76   union {  // NOLINT(misc-non-private-member-variables-in-classes)
77     ToolFingerprint _instance;
78   };
79 };
80 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToolFingerprintDefaultTypeInternal _ToolFingerprint_default_instance_;
DynamicRefTable(::_pbi::ConstantInitialized)81 PROTOBUF_CONSTEXPR DynamicRefTable::DynamicRefTable(
82     ::_pbi::ConstantInitialized): _impl_{
83     /*decltype(_impl_.package_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
84   , /*decltype(_impl_.package_id_)*/nullptr
85   , /*decltype(_impl_._cached_size_)*/{}} {}
86 struct DynamicRefTableDefaultTypeInternal {
DynamicRefTableDefaultTypeInternalaapt::pb::DynamicRefTableDefaultTypeInternal87   PROTOBUF_CONSTEXPR DynamicRefTableDefaultTypeInternal()
88       : _instance(::_pbi::ConstantInitialized{}) {}
~DynamicRefTableDefaultTypeInternalaapt::pb::DynamicRefTableDefaultTypeInternal89   ~DynamicRefTableDefaultTypeInternal() {}
90   union {  // NOLINT(misc-non-private-member-variables-in-classes)
91     DynamicRefTable _instance;
92   };
93 };
94 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DynamicRefTableDefaultTypeInternal _DynamicRefTable_default_instance_;
ResourceTable(::_pbi::ConstantInitialized)95 PROTOBUF_CONSTEXPR ResourceTable::ResourceTable(
96     ::_pbi::ConstantInitialized): _impl_{
97     /*decltype(_impl_.package_)*/{}
98   , /*decltype(_impl_.overlayable_)*/{}
99   , /*decltype(_impl_.tool_fingerprint_)*/{}
100   , /*decltype(_impl_.dynamic_ref_table_)*/{}
101   , /*decltype(_impl_.source_pool_)*/nullptr
102   , /*decltype(_impl_._cached_size_)*/{}} {}
103 struct ResourceTableDefaultTypeInternal {
ResourceTableDefaultTypeInternalaapt::pb::ResourceTableDefaultTypeInternal104   PROTOBUF_CONSTEXPR ResourceTableDefaultTypeInternal()
105       : _instance(::_pbi::ConstantInitialized{}) {}
~ResourceTableDefaultTypeInternalaapt::pb::ResourceTableDefaultTypeInternal106   ~ResourceTableDefaultTypeInternal() {}
107   union {  // NOLINT(misc-non-private-member-variables-in-classes)
108     ResourceTable _instance;
109   };
110 };
111 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResourceTableDefaultTypeInternal _ResourceTable_default_instance_;
PackageId(::_pbi::ConstantInitialized)112 PROTOBUF_CONSTEXPR PackageId::PackageId(
113     ::_pbi::ConstantInitialized): _impl_{
114     /*decltype(_impl_.id_)*/0u
115   , /*decltype(_impl_._cached_size_)*/{}} {}
116 struct PackageIdDefaultTypeInternal {
PackageIdDefaultTypeInternalaapt::pb::PackageIdDefaultTypeInternal117   PROTOBUF_CONSTEXPR PackageIdDefaultTypeInternal()
118       : _instance(::_pbi::ConstantInitialized{}) {}
~PackageIdDefaultTypeInternalaapt::pb::PackageIdDefaultTypeInternal119   ~PackageIdDefaultTypeInternal() {}
120   union {  // NOLINT(misc-non-private-member-variables-in-classes)
121     PackageId _instance;
122   };
123 };
124 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageIdDefaultTypeInternal _PackageId_default_instance_;
Package(::_pbi::ConstantInitialized)125 PROTOBUF_CONSTEXPR Package::Package(
126     ::_pbi::ConstantInitialized): _impl_{
127     /*decltype(_impl_.type_)*/{}
128   , /*decltype(_impl_.package_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
129   , /*decltype(_impl_.package_id_)*/nullptr
130   , /*decltype(_impl_._cached_size_)*/{}} {}
131 struct PackageDefaultTypeInternal {
PackageDefaultTypeInternalaapt::pb::PackageDefaultTypeInternal132   PROTOBUF_CONSTEXPR PackageDefaultTypeInternal()
133       : _instance(::_pbi::ConstantInitialized{}) {}
~PackageDefaultTypeInternalaapt::pb::PackageDefaultTypeInternal134   ~PackageDefaultTypeInternal() {}
135   union {  // NOLINT(misc-non-private-member-variables-in-classes)
136     Package _instance;
137   };
138 };
139 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PackageDefaultTypeInternal _Package_default_instance_;
TypeId(::_pbi::ConstantInitialized)140 PROTOBUF_CONSTEXPR TypeId::TypeId(
141     ::_pbi::ConstantInitialized): _impl_{
142     /*decltype(_impl_.id_)*/0u
143   , /*decltype(_impl_._cached_size_)*/{}} {}
144 struct TypeIdDefaultTypeInternal {
TypeIdDefaultTypeInternalaapt::pb::TypeIdDefaultTypeInternal145   PROTOBUF_CONSTEXPR TypeIdDefaultTypeInternal()
146       : _instance(::_pbi::ConstantInitialized{}) {}
~TypeIdDefaultTypeInternalaapt::pb::TypeIdDefaultTypeInternal147   ~TypeIdDefaultTypeInternal() {}
148   union {  // NOLINT(misc-non-private-member-variables-in-classes)
149     TypeId _instance;
150   };
151 };
152 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeIdDefaultTypeInternal _TypeId_default_instance_;
Type(::_pbi::ConstantInitialized)153 PROTOBUF_CONSTEXPR Type::Type(
154     ::_pbi::ConstantInitialized): _impl_{
155     /*decltype(_impl_.entry_)*/{}
156   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
157   , /*decltype(_impl_.type_id_)*/nullptr
158   , /*decltype(_impl_._cached_size_)*/{}} {}
159 struct TypeDefaultTypeInternal {
TypeDefaultTypeInternalaapt::pb::TypeDefaultTypeInternal160   PROTOBUF_CONSTEXPR TypeDefaultTypeInternal()
161       : _instance(::_pbi::ConstantInitialized{}) {}
~TypeDefaultTypeInternalaapt::pb::TypeDefaultTypeInternal162   ~TypeDefaultTypeInternal() {}
163   union {  // NOLINT(misc-non-private-member-variables-in-classes)
164     Type _instance;
165   };
166 };
167 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_;
Visibility(::_pbi::ConstantInitialized)168 PROTOBUF_CONSTEXPR Visibility::Visibility(
169     ::_pbi::ConstantInitialized): _impl_{
170     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
171   , /*decltype(_impl_.source_)*/nullptr
172   , /*decltype(_impl_.level_)*/0
173   , /*decltype(_impl_.staged_api_)*/false
174   , /*decltype(_impl_._cached_size_)*/{}} {}
175 struct VisibilityDefaultTypeInternal {
VisibilityDefaultTypeInternalaapt::pb::VisibilityDefaultTypeInternal176   PROTOBUF_CONSTEXPR VisibilityDefaultTypeInternal()
177       : _instance(::_pbi::ConstantInitialized{}) {}
~VisibilityDefaultTypeInternalaapt::pb::VisibilityDefaultTypeInternal178   ~VisibilityDefaultTypeInternal() {}
179   union {  // NOLINT(misc-non-private-member-variables-in-classes)
180     Visibility _instance;
181   };
182 };
183 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VisibilityDefaultTypeInternal _Visibility_default_instance_;
AllowNew(::_pbi::ConstantInitialized)184 PROTOBUF_CONSTEXPR AllowNew::AllowNew(
185     ::_pbi::ConstantInitialized): _impl_{
186     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
187   , /*decltype(_impl_.source_)*/nullptr
188   , /*decltype(_impl_._cached_size_)*/{}} {}
189 struct AllowNewDefaultTypeInternal {
AllowNewDefaultTypeInternalaapt::pb::AllowNewDefaultTypeInternal190   PROTOBUF_CONSTEXPR AllowNewDefaultTypeInternal()
191       : _instance(::_pbi::ConstantInitialized{}) {}
~AllowNewDefaultTypeInternalaapt::pb::AllowNewDefaultTypeInternal192   ~AllowNewDefaultTypeInternal() {}
193   union {  // NOLINT(misc-non-private-member-variables-in-classes)
194     AllowNew _instance;
195   };
196 };
197 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllowNewDefaultTypeInternal _AllowNew_default_instance_;
Overlayable(::_pbi::ConstantInitialized)198 PROTOBUF_CONSTEXPR Overlayable::Overlayable(
199     ::_pbi::ConstantInitialized): _impl_{
200     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
201   , /*decltype(_impl_.actor_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
202   , /*decltype(_impl_.source_)*/nullptr
203   , /*decltype(_impl_._cached_size_)*/{}} {}
204 struct OverlayableDefaultTypeInternal {
OverlayableDefaultTypeInternalaapt::pb::OverlayableDefaultTypeInternal205   PROTOBUF_CONSTEXPR OverlayableDefaultTypeInternal()
206       : _instance(::_pbi::ConstantInitialized{}) {}
~OverlayableDefaultTypeInternalaapt::pb::OverlayableDefaultTypeInternal207   ~OverlayableDefaultTypeInternal() {}
208   union {  // NOLINT(misc-non-private-member-variables-in-classes)
209     Overlayable _instance;
210   };
211 };
212 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OverlayableDefaultTypeInternal _Overlayable_default_instance_;
OverlayableItem(::_pbi::ConstantInitialized)213 PROTOBUF_CONSTEXPR OverlayableItem::OverlayableItem(
214     ::_pbi::ConstantInitialized): _impl_{
215     /*decltype(_impl_.policy_)*/{}
216   , /*decltype(_impl_._policy_cached_byte_size_)*/{0}
217   , /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
218   , /*decltype(_impl_.source_)*/nullptr
219   , /*decltype(_impl_.overlayable_idx_)*/0u
220   , /*decltype(_impl_._cached_size_)*/{}} {}
221 struct OverlayableItemDefaultTypeInternal {
OverlayableItemDefaultTypeInternalaapt::pb::OverlayableItemDefaultTypeInternal222   PROTOBUF_CONSTEXPR OverlayableItemDefaultTypeInternal()
223       : _instance(::_pbi::ConstantInitialized{}) {}
~OverlayableItemDefaultTypeInternalaapt::pb::OverlayableItemDefaultTypeInternal224   ~OverlayableItemDefaultTypeInternal() {}
225   union {  // NOLINT(misc-non-private-member-variables-in-classes)
226     OverlayableItem _instance;
227   };
228 };
229 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OverlayableItemDefaultTypeInternal _OverlayableItem_default_instance_;
StagedId(::_pbi::ConstantInitialized)230 PROTOBUF_CONSTEXPR StagedId::StagedId(
231     ::_pbi::ConstantInitialized): _impl_{
232     /*decltype(_impl_.source_)*/nullptr
233   , /*decltype(_impl_.staged_id_)*/0u
234   , /*decltype(_impl_._cached_size_)*/{}} {}
235 struct StagedIdDefaultTypeInternal {
StagedIdDefaultTypeInternalaapt::pb::StagedIdDefaultTypeInternal236   PROTOBUF_CONSTEXPR StagedIdDefaultTypeInternal()
237       : _instance(::_pbi::ConstantInitialized{}) {}
~StagedIdDefaultTypeInternalaapt::pb::StagedIdDefaultTypeInternal238   ~StagedIdDefaultTypeInternal() {}
239   union {  // NOLINT(misc-non-private-member-variables-in-classes)
240     StagedId _instance;
241   };
242 };
243 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StagedIdDefaultTypeInternal _StagedId_default_instance_;
EntryId(::_pbi::ConstantInitialized)244 PROTOBUF_CONSTEXPR EntryId::EntryId(
245     ::_pbi::ConstantInitialized): _impl_{
246     /*decltype(_impl_.id_)*/0u
247   , /*decltype(_impl_._cached_size_)*/{}} {}
248 struct EntryIdDefaultTypeInternal {
EntryIdDefaultTypeInternalaapt::pb::EntryIdDefaultTypeInternal249   PROTOBUF_CONSTEXPR EntryIdDefaultTypeInternal()
250       : _instance(::_pbi::ConstantInitialized{}) {}
~EntryIdDefaultTypeInternalaapt::pb::EntryIdDefaultTypeInternal251   ~EntryIdDefaultTypeInternal() {}
252   union {  // NOLINT(misc-non-private-member-variables-in-classes)
253     EntryId _instance;
254   };
255 };
256 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EntryIdDefaultTypeInternal _EntryId_default_instance_;
Entry(::_pbi::ConstantInitialized)257 PROTOBUF_CONSTEXPR Entry::Entry(
258     ::_pbi::ConstantInitialized): _impl_{
259     /*decltype(_impl_.config_value_)*/{}
260   , /*decltype(_impl_.flag_disabled_config_value_)*/{}
261   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
262   , /*decltype(_impl_.entry_id_)*/nullptr
263   , /*decltype(_impl_.visibility_)*/nullptr
264   , /*decltype(_impl_.allow_new_)*/nullptr
265   , /*decltype(_impl_.overlayable_item_)*/nullptr
266   , /*decltype(_impl_.staged_id_)*/nullptr
267   , /*decltype(_impl_._cached_size_)*/{}} {}
268 struct EntryDefaultTypeInternal {
EntryDefaultTypeInternalaapt::pb::EntryDefaultTypeInternal269   PROTOBUF_CONSTEXPR EntryDefaultTypeInternal()
270       : _instance(::_pbi::ConstantInitialized{}) {}
~EntryDefaultTypeInternalaapt::pb::EntryDefaultTypeInternal271   ~EntryDefaultTypeInternal() {}
272   union {  // NOLINT(misc-non-private-member-variables-in-classes)
273     Entry _instance;
274   };
275 };
276 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EntryDefaultTypeInternal _Entry_default_instance_;
ConfigValue(::_pbi::ConstantInitialized)277 PROTOBUF_CONSTEXPR ConfigValue::ConfigValue(
278     ::_pbi::ConstantInitialized): _impl_{
279     /*decltype(_impl_.config_)*/nullptr
280   , /*decltype(_impl_.value_)*/nullptr
281   , /*decltype(_impl_._cached_size_)*/{}} {}
282 struct ConfigValueDefaultTypeInternal {
ConfigValueDefaultTypeInternalaapt::pb::ConfigValueDefaultTypeInternal283   PROTOBUF_CONSTEXPR ConfigValueDefaultTypeInternal()
284       : _instance(::_pbi::ConstantInitialized{}) {}
~ConfigValueDefaultTypeInternalaapt::pb::ConfigValueDefaultTypeInternal285   ~ConfigValueDefaultTypeInternal() {}
286   union {  // NOLINT(misc-non-private-member-variables-in-classes)
287     ConfigValue _instance;
288   };
289 };
290 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ConfigValueDefaultTypeInternal _ConfigValue_default_instance_;
Value(::_pbi::ConstantInitialized)291 PROTOBUF_CONSTEXPR Value::Value(
292     ::_pbi::ConstantInitialized): _impl_{
293     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
294   , /*decltype(_impl_.source_)*/nullptr
295   , /*decltype(_impl_.weak_)*/false
296   , /*decltype(_impl_.value_)*/{}
297   , /*decltype(_impl_._cached_size_)*/{}
298   , /*decltype(_impl_._oneof_case_)*/{}} {}
299 struct ValueDefaultTypeInternal {
ValueDefaultTypeInternalaapt::pb::ValueDefaultTypeInternal300   PROTOBUF_CONSTEXPR ValueDefaultTypeInternal()
301       : _instance(::_pbi::ConstantInitialized{}) {}
~ValueDefaultTypeInternalaapt::pb::ValueDefaultTypeInternal302   ~ValueDefaultTypeInternal() {}
303   union {  // NOLINT(misc-non-private-member-variables-in-classes)
304     Value _instance;
305   };
306 };
307 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
Item(::_pbi::ConstantInitialized)308 PROTOBUF_CONSTEXPR Item::Item(
309     ::_pbi::ConstantInitialized): _impl_{
310     /*decltype(_impl_.flag_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
311   , /*decltype(_impl_.flag_status_)*/0u
312   , /*decltype(_impl_.flag_negated_)*/false
313   , /*decltype(_impl_.value_)*/{}
314   , /*decltype(_impl_._cached_size_)*/{}
315   , /*decltype(_impl_._oneof_case_)*/{}} {}
316 struct ItemDefaultTypeInternal {
ItemDefaultTypeInternalaapt::pb::ItemDefaultTypeInternal317   PROTOBUF_CONSTEXPR ItemDefaultTypeInternal()
318       : _instance(::_pbi::ConstantInitialized{}) {}
~ItemDefaultTypeInternalaapt::pb::ItemDefaultTypeInternal319   ~ItemDefaultTypeInternal() {}
320   union {  // NOLINT(misc-non-private-member-variables-in-classes)
321     Item _instance;
322   };
323 };
324 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ItemDefaultTypeInternal _Item_default_instance_;
CompoundValue(::_pbi::ConstantInitialized)325 PROTOBUF_CONSTEXPR CompoundValue::CompoundValue(
326     ::_pbi::ConstantInitialized): _impl_{
327     /*decltype(_impl_.flag_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
328   , /*decltype(_impl_.flag_status_)*/0u
329   , /*decltype(_impl_.flag_negated_)*/false
330   , /*decltype(_impl_.value_)*/{}
331   , /*decltype(_impl_._cached_size_)*/{}
332   , /*decltype(_impl_._oneof_case_)*/{}} {}
333 struct CompoundValueDefaultTypeInternal {
CompoundValueDefaultTypeInternalaapt::pb::CompoundValueDefaultTypeInternal334   PROTOBUF_CONSTEXPR CompoundValueDefaultTypeInternal()
335       : _instance(::_pbi::ConstantInitialized{}) {}
~CompoundValueDefaultTypeInternalaapt::pb::CompoundValueDefaultTypeInternal336   ~CompoundValueDefaultTypeInternal() {}
337   union {  // NOLINT(misc-non-private-member-variables-in-classes)
338     CompoundValue _instance;
339   };
340 };
341 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CompoundValueDefaultTypeInternal _CompoundValue_default_instance_;
Boolean(::_pbi::ConstantInitialized)342 PROTOBUF_CONSTEXPR Boolean::Boolean(
343     ::_pbi::ConstantInitialized): _impl_{
344     /*decltype(_impl_.value_)*/false
345   , /*decltype(_impl_._cached_size_)*/{}} {}
346 struct BooleanDefaultTypeInternal {
BooleanDefaultTypeInternalaapt::pb::BooleanDefaultTypeInternal347   PROTOBUF_CONSTEXPR BooleanDefaultTypeInternal()
348       : _instance(::_pbi::ConstantInitialized{}) {}
~BooleanDefaultTypeInternalaapt::pb::BooleanDefaultTypeInternal349   ~BooleanDefaultTypeInternal() {}
350   union {  // NOLINT(misc-non-private-member-variables-in-classes)
351     Boolean _instance;
352   };
353 };
354 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BooleanDefaultTypeInternal _Boolean_default_instance_;
Reference(::_pbi::ConstantInitialized)355 PROTOBUF_CONSTEXPR Reference::Reference(
356     ::_pbi::ConstantInitialized): _impl_{
357     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
358   , /*decltype(_impl_.is_dynamic_)*/nullptr
359   , /*decltype(_impl_.type_)*/0
360   , /*decltype(_impl_.id_)*/0u
361   , /*decltype(_impl_.private__)*/false
362   , /*decltype(_impl_.allow_raw_)*/false
363   , /*decltype(_impl_.type_flags_)*/0u
364   , /*decltype(_impl_._cached_size_)*/{}} {}
365 struct ReferenceDefaultTypeInternal {
ReferenceDefaultTypeInternalaapt::pb::ReferenceDefaultTypeInternal366   PROTOBUF_CONSTEXPR ReferenceDefaultTypeInternal()
367       : _instance(::_pbi::ConstantInitialized{}) {}
~ReferenceDefaultTypeInternalaapt::pb::ReferenceDefaultTypeInternal368   ~ReferenceDefaultTypeInternal() {}
369   union {  // NOLINT(misc-non-private-member-variables-in-classes)
370     Reference _instance;
371   };
372 };
373 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ReferenceDefaultTypeInternal _Reference_default_instance_;
Id(::_pbi::ConstantInitialized)374 PROTOBUF_CONSTEXPR Id::Id(
375     ::_pbi::ConstantInitialized) {}
376 struct IdDefaultTypeInternal {
IdDefaultTypeInternalaapt::pb::IdDefaultTypeInternal377   PROTOBUF_CONSTEXPR IdDefaultTypeInternal()
378       : _instance(::_pbi::ConstantInitialized{}) {}
~IdDefaultTypeInternalaapt::pb::IdDefaultTypeInternal379   ~IdDefaultTypeInternal() {}
380   union {  // NOLINT(misc-non-private-member-variables-in-classes)
381     Id _instance;
382   };
383 };
384 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdDefaultTypeInternal _Id_default_instance_;
String(::_pbi::ConstantInitialized)385 PROTOBUF_CONSTEXPR String::String(
386     ::_pbi::ConstantInitialized): _impl_{
387     /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
388   , /*decltype(_impl_._cached_size_)*/{}} {}
389 struct StringDefaultTypeInternal {
StringDefaultTypeInternalaapt::pb::StringDefaultTypeInternal390   PROTOBUF_CONSTEXPR StringDefaultTypeInternal()
391       : _instance(::_pbi::ConstantInitialized{}) {}
~StringDefaultTypeInternalaapt::pb::StringDefaultTypeInternal392   ~StringDefaultTypeInternal() {}
393   union {  // NOLINT(misc-non-private-member-variables-in-classes)
394     String _instance;
395   };
396 };
397 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StringDefaultTypeInternal _String_default_instance_;
RawString(::_pbi::ConstantInitialized)398 PROTOBUF_CONSTEXPR RawString::RawString(
399     ::_pbi::ConstantInitialized): _impl_{
400     /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
401   , /*decltype(_impl_._cached_size_)*/{}} {}
402 struct RawStringDefaultTypeInternal {
RawStringDefaultTypeInternalaapt::pb::RawStringDefaultTypeInternal403   PROTOBUF_CONSTEXPR RawStringDefaultTypeInternal()
404       : _instance(::_pbi::ConstantInitialized{}) {}
~RawStringDefaultTypeInternalaapt::pb::RawStringDefaultTypeInternal405   ~RawStringDefaultTypeInternal() {}
406   union {  // NOLINT(misc-non-private-member-variables-in-classes)
407     RawString _instance;
408   };
409 };
410 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RawStringDefaultTypeInternal _RawString_default_instance_;
StyledString_Span(::_pbi::ConstantInitialized)411 PROTOBUF_CONSTEXPR StyledString_Span::StyledString_Span(
412     ::_pbi::ConstantInitialized): _impl_{
413     /*decltype(_impl_.tag_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
414   , /*decltype(_impl_.first_char_)*/0u
415   , /*decltype(_impl_.last_char_)*/0u
416   , /*decltype(_impl_._cached_size_)*/{}} {}
417 struct StyledString_SpanDefaultTypeInternal {
StyledString_SpanDefaultTypeInternalaapt::pb::StyledString_SpanDefaultTypeInternal418   PROTOBUF_CONSTEXPR StyledString_SpanDefaultTypeInternal()
419       : _instance(::_pbi::ConstantInitialized{}) {}
~StyledString_SpanDefaultTypeInternalaapt::pb::StyledString_SpanDefaultTypeInternal420   ~StyledString_SpanDefaultTypeInternal() {}
421   union {  // NOLINT(misc-non-private-member-variables-in-classes)
422     StyledString_Span _instance;
423   };
424 };
425 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyledString_SpanDefaultTypeInternal _StyledString_Span_default_instance_;
StyledString(::_pbi::ConstantInitialized)426 PROTOBUF_CONSTEXPR StyledString::StyledString(
427     ::_pbi::ConstantInitialized): _impl_{
428     /*decltype(_impl_.span_)*/{}
429   , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
430   , /*decltype(_impl_._cached_size_)*/{}} {}
431 struct StyledStringDefaultTypeInternal {
StyledStringDefaultTypeInternalaapt::pb::StyledStringDefaultTypeInternal432   PROTOBUF_CONSTEXPR StyledStringDefaultTypeInternal()
433       : _instance(::_pbi::ConstantInitialized{}) {}
~StyledStringDefaultTypeInternalaapt::pb::StyledStringDefaultTypeInternal434   ~StyledStringDefaultTypeInternal() {}
435   union {  // NOLINT(misc-non-private-member-variables-in-classes)
436     StyledString _instance;
437   };
438 };
439 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyledStringDefaultTypeInternal _StyledString_default_instance_;
FileReference(::_pbi::ConstantInitialized)440 PROTOBUF_CONSTEXPR FileReference::FileReference(
441     ::_pbi::ConstantInitialized): _impl_{
442     /*decltype(_impl_.path_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
443   , /*decltype(_impl_.type_)*/0
444   , /*decltype(_impl_._cached_size_)*/{}} {}
445 struct FileReferenceDefaultTypeInternal {
FileReferenceDefaultTypeInternalaapt::pb::FileReferenceDefaultTypeInternal446   PROTOBUF_CONSTEXPR FileReferenceDefaultTypeInternal()
447       : _instance(::_pbi::ConstantInitialized{}) {}
~FileReferenceDefaultTypeInternalaapt::pb::FileReferenceDefaultTypeInternal448   ~FileReferenceDefaultTypeInternal() {}
449   union {  // NOLINT(misc-non-private-member-variables-in-classes)
450     FileReference _instance;
451   };
452 };
453 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileReferenceDefaultTypeInternal _FileReference_default_instance_;
Primitive_NullType(::_pbi::ConstantInitialized)454 PROTOBUF_CONSTEXPR Primitive_NullType::Primitive_NullType(
455     ::_pbi::ConstantInitialized) {}
456 struct Primitive_NullTypeDefaultTypeInternal {
Primitive_NullTypeDefaultTypeInternalaapt::pb::Primitive_NullTypeDefaultTypeInternal457   PROTOBUF_CONSTEXPR Primitive_NullTypeDefaultTypeInternal()
458       : _instance(::_pbi::ConstantInitialized{}) {}
~Primitive_NullTypeDefaultTypeInternalaapt::pb::Primitive_NullTypeDefaultTypeInternal459   ~Primitive_NullTypeDefaultTypeInternal() {}
460   union {  // NOLINT(misc-non-private-member-variables-in-classes)
461     Primitive_NullType _instance;
462   };
463 };
464 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Primitive_NullTypeDefaultTypeInternal _Primitive_NullType_default_instance_;
Primitive_EmptyType(::_pbi::ConstantInitialized)465 PROTOBUF_CONSTEXPR Primitive_EmptyType::Primitive_EmptyType(
466     ::_pbi::ConstantInitialized) {}
467 struct Primitive_EmptyTypeDefaultTypeInternal {
Primitive_EmptyTypeDefaultTypeInternalaapt::pb::Primitive_EmptyTypeDefaultTypeInternal468   PROTOBUF_CONSTEXPR Primitive_EmptyTypeDefaultTypeInternal()
469       : _instance(::_pbi::ConstantInitialized{}) {}
~Primitive_EmptyTypeDefaultTypeInternalaapt::pb::Primitive_EmptyTypeDefaultTypeInternal470   ~Primitive_EmptyTypeDefaultTypeInternal() {}
471   union {  // NOLINT(misc-non-private-member-variables-in-classes)
472     Primitive_EmptyType _instance;
473   };
474 };
475 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Primitive_EmptyTypeDefaultTypeInternal _Primitive_EmptyType_default_instance_;
Primitive(::_pbi::ConstantInitialized)476 PROTOBUF_CONSTEXPR Primitive::Primitive(
477     ::_pbi::ConstantInitialized): _impl_{
478     /*decltype(_impl_.oneof_value_)*/{}
479   , /*decltype(_impl_._cached_size_)*/{}
480   , /*decltype(_impl_._oneof_case_)*/{}} {}
481 struct PrimitiveDefaultTypeInternal {
PrimitiveDefaultTypeInternalaapt::pb::PrimitiveDefaultTypeInternal482   PROTOBUF_CONSTEXPR PrimitiveDefaultTypeInternal()
483       : _instance(::_pbi::ConstantInitialized{}) {}
~PrimitiveDefaultTypeInternalaapt::pb::PrimitiveDefaultTypeInternal484   ~PrimitiveDefaultTypeInternal() {}
485   union {  // NOLINT(misc-non-private-member-variables-in-classes)
486     Primitive _instance;
487   };
488 };
489 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PrimitiveDefaultTypeInternal _Primitive_default_instance_;
Attribute_Symbol(::_pbi::ConstantInitialized)490 PROTOBUF_CONSTEXPR Attribute_Symbol::Attribute_Symbol(
491     ::_pbi::ConstantInitialized): _impl_{
492     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
493   , /*decltype(_impl_.source_)*/nullptr
494   , /*decltype(_impl_.name_)*/nullptr
495   , /*decltype(_impl_.value_)*/0u
496   , /*decltype(_impl_.type_)*/0u
497   , /*decltype(_impl_._cached_size_)*/{}} {}
498 struct Attribute_SymbolDefaultTypeInternal {
Attribute_SymbolDefaultTypeInternalaapt::pb::Attribute_SymbolDefaultTypeInternal499   PROTOBUF_CONSTEXPR Attribute_SymbolDefaultTypeInternal()
500       : _instance(::_pbi::ConstantInitialized{}) {}
~Attribute_SymbolDefaultTypeInternalaapt::pb::Attribute_SymbolDefaultTypeInternal501   ~Attribute_SymbolDefaultTypeInternal() {}
502   union {  // NOLINT(misc-non-private-member-variables-in-classes)
503     Attribute_Symbol _instance;
504   };
505 };
506 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Attribute_SymbolDefaultTypeInternal _Attribute_Symbol_default_instance_;
Attribute(::_pbi::ConstantInitialized)507 PROTOBUF_CONSTEXPR Attribute::Attribute(
508     ::_pbi::ConstantInitialized): _impl_{
509     /*decltype(_impl_.symbol_)*/{}
510   , /*decltype(_impl_.format_flags_)*/0u
511   , /*decltype(_impl_.min_int_)*/0
512   , /*decltype(_impl_.max_int_)*/0
513   , /*decltype(_impl_._cached_size_)*/{}} {}
514 struct AttributeDefaultTypeInternal {
AttributeDefaultTypeInternalaapt::pb::AttributeDefaultTypeInternal515   PROTOBUF_CONSTEXPR AttributeDefaultTypeInternal()
516       : _instance(::_pbi::ConstantInitialized{}) {}
~AttributeDefaultTypeInternalaapt::pb::AttributeDefaultTypeInternal517   ~AttributeDefaultTypeInternal() {}
518   union {  // NOLINT(misc-non-private-member-variables-in-classes)
519     Attribute _instance;
520   };
521 };
522 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AttributeDefaultTypeInternal _Attribute_default_instance_;
Style_Entry(::_pbi::ConstantInitialized)523 PROTOBUF_CONSTEXPR Style_Entry::Style_Entry(
524     ::_pbi::ConstantInitialized): _impl_{
525     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
526   , /*decltype(_impl_.source_)*/nullptr
527   , /*decltype(_impl_.key_)*/nullptr
528   , /*decltype(_impl_.item_)*/nullptr
529   , /*decltype(_impl_._cached_size_)*/{}} {}
530 struct Style_EntryDefaultTypeInternal {
Style_EntryDefaultTypeInternalaapt::pb::Style_EntryDefaultTypeInternal531   PROTOBUF_CONSTEXPR Style_EntryDefaultTypeInternal()
532       : _instance(::_pbi::ConstantInitialized{}) {}
~Style_EntryDefaultTypeInternalaapt::pb::Style_EntryDefaultTypeInternal533   ~Style_EntryDefaultTypeInternal() {}
534   union {  // NOLINT(misc-non-private-member-variables-in-classes)
535     Style_Entry _instance;
536   };
537 };
538 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Style_EntryDefaultTypeInternal _Style_Entry_default_instance_;
Style(::_pbi::ConstantInitialized)539 PROTOBUF_CONSTEXPR Style::Style(
540     ::_pbi::ConstantInitialized): _impl_{
541     /*decltype(_impl_.entry_)*/{}
542   , /*decltype(_impl_.parent_)*/nullptr
543   , /*decltype(_impl_.parent_source_)*/nullptr
544   , /*decltype(_impl_._cached_size_)*/{}} {}
545 struct StyleDefaultTypeInternal {
StyleDefaultTypeInternalaapt::pb::StyleDefaultTypeInternal546   PROTOBUF_CONSTEXPR StyleDefaultTypeInternal()
547       : _instance(::_pbi::ConstantInitialized{}) {}
~StyleDefaultTypeInternalaapt::pb::StyleDefaultTypeInternal548   ~StyleDefaultTypeInternal() {}
549   union {  // NOLINT(misc-non-private-member-variables-in-classes)
550     Style _instance;
551   };
552 };
553 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyleDefaultTypeInternal _Style_default_instance_;
Styleable_Entry(::_pbi::ConstantInitialized)554 PROTOBUF_CONSTEXPR Styleable_Entry::Styleable_Entry(
555     ::_pbi::ConstantInitialized): _impl_{
556     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
557   , /*decltype(_impl_.source_)*/nullptr
558   , /*decltype(_impl_.attr_)*/nullptr
559   , /*decltype(_impl_._cached_size_)*/{}} {}
560 struct Styleable_EntryDefaultTypeInternal {
Styleable_EntryDefaultTypeInternalaapt::pb::Styleable_EntryDefaultTypeInternal561   PROTOBUF_CONSTEXPR Styleable_EntryDefaultTypeInternal()
562       : _instance(::_pbi::ConstantInitialized{}) {}
~Styleable_EntryDefaultTypeInternalaapt::pb::Styleable_EntryDefaultTypeInternal563   ~Styleable_EntryDefaultTypeInternal() {}
564   union {  // NOLINT(misc-non-private-member-variables-in-classes)
565     Styleable_Entry _instance;
566   };
567 };
568 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Styleable_EntryDefaultTypeInternal _Styleable_Entry_default_instance_;
Styleable(::_pbi::ConstantInitialized)569 PROTOBUF_CONSTEXPR Styleable::Styleable(
570     ::_pbi::ConstantInitialized): _impl_{
571     /*decltype(_impl_.entry_)*/{}
572   , /*decltype(_impl_._cached_size_)*/{}} {}
573 struct StyleableDefaultTypeInternal {
StyleableDefaultTypeInternalaapt::pb::StyleableDefaultTypeInternal574   PROTOBUF_CONSTEXPR StyleableDefaultTypeInternal()
575       : _instance(::_pbi::ConstantInitialized{}) {}
~StyleableDefaultTypeInternalaapt::pb::StyleableDefaultTypeInternal576   ~StyleableDefaultTypeInternal() {}
577   union {  // NOLINT(misc-non-private-member-variables-in-classes)
578     Styleable _instance;
579   };
580 };
581 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyleableDefaultTypeInternal _Styleable_default_instance_;
Array_Element(::_pbi::ConstantInitialized)582 PROTOBUF_CONSTEXPR Array_Element::Array_Element(
583     ::_pbi::ConstantInitialized): _impl_{
584     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
585   , /*decltype(_impl_.source_)*/nullptr
586   , /*decltype(_impl_.item_)*/nullptr
587   , /*decltype(_impl_._cached_size_)*/{}} {}
588 struct Array_ElementDefaultTypeInternal {
Array_ElementDefaultTypeInternalaapt::pb::Array_ElementDefaultTypeInternal589   PROTOBUF_CONSTEXPR Array_ElementDefaultTypeInternal()
590       : _instance(::_pbi::ConstantInitialized{}) {}
~Array_ElementDefaultTypeInternalaapt::pb::Array_ElementDefaultTypeInternal591   ~Array_ElementDefaultTypeInternal() {}
592   union {  // NOLINT(misc-non-private-member-variables-in-classes)
593     Array_Element _instance;
594   };
595 };
596 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Array_ElementDefaultTypeInternal _Array_Element_default_instance_;
Array(::_pbi::ConstantInitialized)597 PROTOBUF_CONSTEXPR Array::Array(
598     ::_pbi::ConstantInitialized): _impl_{
599     /*decltype(_impl_.element_)*/{}
600   , /*decltype(_impl_._cached_size_)*/{}} {}
601 struct ArrayDefaultTypeInternal {
ArrayDefaultTypeInternalaapt::pb::ArrayDefaultTypeInternal602   PROTOBUF_CONSTEXPR ArrayDefaultTypeInternal()
603       : _instance(::_pbi::ConstantInitialized{}) {}
~ArrayDefaultTypeInternalaapt::pb::ArrayDefaultTypeInternal604   ~ArrayDefaultTypeInternal() {}
605   union {  // NOLINT(misc-non-private-member-variables-in-classes)
606     Array _instance;
607   };
608 };
609 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrayDefaultTypeInternal _Array_default_instance_;
Plural_Entry(::_pbi::ConstantInitialized)610 PROTOBUF_CONSTEXPR Plural_Entry::Plural_Entry(
611     ::_pbi::ConstantInitialized): _impl_{
612     /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
613   , /*decltype(_impl_.source_)*/nullptr
614   , /*decltype(_impl_.item_)*/nullptr
615   , /*decltype(_impl_.arity_)*/0
616   , /*decltype(_impl_._cached_size_)*/{}} {}
617 struct Plural_EntryDefaultTypeInternal {
Plural_EntryDefaultTypeInternalaapt::pb::Plural_EntryDefaultTypeInternal618   PROTOBUF_CONSTEXPR Plural_EntryDefaultTypeInternal()
619       : _instance(::_pbi::ConstantInitialized{}) {}
~Plural_EntryDefaultTypeInternalaapt::pb::Plural_EntryDefaultTypeInternal620   ~Plural_EntryDefaultTypeInternal() {}
621   union {  // NOLINT(misc-non-private-member-variables-in-classes)
622     Plural_Entry _instance;
623   };
624 };
625 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Plural_EntryDefaultTypeInternal _Plural_Entry_default_instance_;
Plural(::_pbi::ConstantInitialized)626 PROTOBUF_CONSTEXPR Plural::Plural(
627     ::_pbi::ConstantInitialized): _impl_{
628     /*decltype(_impl_.entry_)*/{}
629   , /*decltype(_impl_._cached_size_)*/{}} {}
630 struct PluralDefaultTypeInternal {
PluralDefaultTypeInternalaapt::pb::PluralDefaultTypeInternal631   PROTOBUF_CONSTEXPR PluralDefaultTypeInternal()
632       : _instance(::_pbi::ConstantInitialized{}) {}
~PluralDefaultTypeInternalaapt::pb::PluralDefaultTypeInternal633   ~PluralDefaultTypeInternal() {}
634   union {  // NOLINT(misc-non-private-member-variables-in-classes)
635     Plural _instance;
636   };
637 };
638 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PluralDefaultTypeInternal _Plural_default_instance_;
XmlNode(::_pbi::ConstantInitialized)639 PROTOBUF_CONSTEXPR XmlNode::XmlNode(
640     ::_pbi::ConstantInitialized): _impl_{
641     /*decltype(_impl_.source_)*/nullptr
642   , /*decltype(_impl_.node_)*/{}
643   , /*decltype(_impl_._cached_size_)*/{}
644   , /*decltype(_impl_._oneof_case_)*/{}} {}
645 struct XmlNodeDefaultTypeInternal {
XmlNodeDefaultTypeInternalaapt::pb::XmlNodeDefaultTypeInternal646   PROTOBUF_CONSTEXPR XmlNodeDefaultTypeInternal()
647       : _instance(::_pbi::ConstantInitialized{}) {}
~XmlNodeDefaultTypeInternalaapt::pb::XmlNodeDefaultTypeInternal648   ~XmlNodeDefaultTypeInternal() {}
649   union {  // NOLINT(misc-non-private-member-variables-in-classes)
650     XmlNode _instance;
651   };
652 };
653 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 XmlNodeDefaultTypeInternal _XmlNode_default_instance_;
XmlElement(::_pbi::ConstantInitialized)654 PROTOBUF_CONSTEXPR XmlElement::XmlElement(
655     ::_pbi::ConstantInitialized): _impl_{
656     /*decltype(_impl_.namespace_declaration_)*/{}
657   , /*decltype(_impl_.attribute_)*/{}
658   , /*decltype(_impl_.child_)*/{}
659   , /*decltype(_impl_.namespace_uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
660   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
661   , /*decltype(_impl_._cached_size_)*/{}} {}
662 struct XmlElementDefaultTypeInternal {
XmlElementDefaultTypeInternalaapt::pb::XmlElementDefaultTypeInternal663   PROTOBUF_CONSTEXPR XmlElementDefaultTypeInternal()
664       : _instance(::_pbi::ConstantInitialized{}) {}
~XmlElementDefaultTypeInternalaapt::pb::XmlElementDefaultTypeInternal665   ~XmlElementDefaultTypeInternal() {}
666   union {  // NOLINT(misc-non-private-member-variables-in-classes)
667     XmlElement _instance;
668   };
669 };
670 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 XmlElementDefaultTypeInternal _XmlElement_default_instance_;
XmlNamespace(::_pbi::ConstantInitialized)671 PROTOBUF_CONSTEXPR XmlNamespace::XmlNamespace(
672     ::_pbi::ConstantInitialized): _impl_{
673     /*decltype(_impl_.prefix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
674   , /*decltype(_impl_.uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
675   , /*decltype(_impl_.source_)*/nullptr
676   , /*decltype(_impl_._cached_size_)*/{}} {}
677 struct XmlNamespaceDefaultTypeInternal {
XmlNamespaceDefaultTypeInternalaapt::pb::XmlNamespaceDefaultTypeInternal678   PROTOBUF_CONSTEXPR XmlNamespaceDefaultTypeInternal()
679       : _instance(::_pbi::ConstantInitialized{}) {}
~XmlNamespaceDefaultTypeInternalaapt::pb::XmlNamespaceDefaultTypeInternal680   ~XmlNamespaceDefaultTypeInternal() {}
681   union {  // NOLINT(misc-non-private-member-variables-in-classes)
682     XmlNamespace _instance;
683   };
684 };
685 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 XmlNamespaceDefaultTypeInternal _XmlNamespace_default_instance_;
XmlAttribute(::_pbi::ConstantInitialized)686 PROTOBUF_CONSTEXPR XmlAttribute::XmlAttribute(
687     ::_pbi::ConstantInitialized): _impl_{
688     /*decltype(_impl_.namespace_uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
689   , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
690   , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
691   , /*decltype(_impl_.source_)*/nullptr
692   , /*decltype(_impl_.compiled_item_)*/nullptr
693   , /*decltype(_impl_.resource_id_)*/0u
694   , /*decltype(_impl_._cached_size_)*/{}} {}
695 struct XmlAttributeDefaultTypeInternal {
XmlAttributeDefaultTypeInternalaapt::pb::XmlAttributeDefaultTypeInternal696   PROTOBUF_CONSTEXPR XmlAttributeDefaultTypeInternal()
697       : _instance(::_pbi::ConstantInitialized{}) {}
~XmlAttributeDefaultTypeInternalaapt::pb::XmlAttributeDefaultTypeInternal698   ~XmlAttributeDefaultTypeInternal() {}
699   union {  // NOLINT(misc-non-private-member-variables-in-classes)
700     XmlAttribute _instance;
701   };
702 };
703 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 XmlAttributeDefaultTypeInternal _XmlAttribute_default_instance_;
MacroBody(::_pbi::ConstantInitialized)704 PROTOBUF_CONSTEXPR MacroBody::MacroBody(
705     ::_pbi::ConstantInitialized): _impl_{
706     /*decltype(_impl_.untranslatable_sections_)*/{}
707   , /*decltype(_impl_.namespace_stack_)*/{}
708   , /*decltype(_impl_.raw_string_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
709   , /*decltype(_impl_.style_string_)*/nullptr
710   , /*decltype(_impl_.source_)*/nullptr
711   , /*decltype(_impl_._cached_size_)*/{}} {}
712 struct MacroBodyDefaultTypeInternal {
MacroBodyDefaultTypeInternalaapt::pb::MacroBodyDefaultTypeInternal713   PROTOBUF_CONSTEXPR MacroBodyDefaultTypeInternal()
714       : _instance(::_pbi::ConstantInitialized{}) {}
~MacroBodyDefaultTypeInternalaapt::pb::MacroBodyDefaultTypeInternal715   ~MacroBodyDefaultTypeInternal() {}
716   union {  // NOLINT(misc-non-private-member-variables-in-classes)
717     MacroBody _instance;
718   };
719 };
720 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MacroBodyDefaultTypeInternal _MacroBody_default_instance_;
NamespaceAlias(::_pbi::ConstantInitialized)721 PROTOBUF_CONSTEXPR NamespaceAlias::NamespaceAlias(
722     ::_pbi::ConstantInitialized): _impl_{
723     /*decltype(_impl_.prefix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
724   , /*decltype(_impl_.package_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
725   , /*decltype(_impl_.is_private_)*/false
726   , /*decltype(_impl_._cached_size_)*/{}} {}
727 struct NamespaceAliasDefaultTypeInternal {
NamespaceAliasDefaultTypeInternalaapt::pb::NamespaceAliasDefaultTypeInternal728   PROTOBUF_CONSTEXPR NamespaceAliasDefaultTypeInternal()
729       : _instance(::_pbi::ConstantInitialized{}) {}
~NamespaceAliasDefaultTypeInternalaapt::pb::NamespaceAliasDefaultTypeInternal730   ~NamespaceAliasDefaultTypeInternal() {}
731   union {  // NOLINT(misc-non-private-member-variables-in-classes)
732     NamespaceAlias _instance;
733   };
734 };
735 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NamespaceAliasDefaultTypeInternal _NamespaceAlias_default_instance_;
StyleString_Span(::_pbi::ConstantInitialized)736 PROTOBUF_CONSTEXPR StyleString_Span::StyleString_Span(
737     ::_pbi::ConstantInitialized): _impl_{
738     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
739   , /*decltype(_impl_.start_index_)*/0u
740   , /*decltype(_impl_.end_index_)*/0u
741   , /*decltype(_impl_._cached_size_)*/{}} {}
742 struct StyleString_SpanDefaultTypeInternal {
StyleString_SpanDefaultTypeInternalaapt::pb::StyleString_SpanDefaultTypeInternal743   PROTOBUF_CONSTEXPR StyleString_SpanDefaultTypeInternal()
744       : _instance(::_pbi::ConstantInitialized{}) {}
~StyleString_SpanDefaultTypeInternalaapt::pb::StyleString_SpanDefaultTypeInternal745   ~StyleString_SpanDefaultTypeInternal() {}
746   union {  // NOLINT(misc-non-private-member-variables-in-classes)
747     StyleString_Span _instance;
748   };
749 };
750 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyleString_SpanDefaultTypeInternal _StyleString_Span_default_instance_;
StyleString(::_pbi::ConstantInitialized)751 PROTOBUF_CONSTEXPR StyleString::StyleString(
752     ::_pbi::ConstantInitialized): _impl_{
753     /*decltype(_impl_.spans_)*/{}
754   , /*decltype(_impl_.str_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
755   , /*decltype(_impl_._cached_size_)*/{}} {}
756 struct StyleStringDefaultTypeInternal {
StyleStringDefaultTypeInternalaapt::pb::StyleStringDefaultTypeInternal757   PROTOBUF_CONSTEXPR StyleStringDefaultTypeInternal()
758       : _instance(::_pbi::ConstantInitialized{}) {}
~StyleStringDefaultTypeInternalaapt::pb::StyleStringDefaultTypeInternal759   ~StyleStringDefaultTypeInternal() {}
760   union {  // NOLINT(misc-non-private-member-variables-in-classes)
761     StyleString _instance;
762   };
763 };
764 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StyleStringDefaultTypeInternal _StyleString_default_instance_;
UntranslatableSection(::_pbi::ConstantInitialized)765 PROTOBUF_CONSTEXPR UntranslatableSection::UntranslatableSection(
766     ::_pbi::ConstantInitialized): _impl_{
767     /*decltype(_impl_.start_index_)*/::uint64_t{0u}
768   , /*decltype(_impl_.end_index_)*/::uint64_t{0u}
769   , /*decltype(_impl_._cached_size_)*/{}} {}
770 struct UntranslatableSectionDefaultTypeInternal {
UntranslatableSectionDefaultTypeInternalaapt::pb::UntranslatableSectionDefaultTypeInternal771   PROTOBUF_CONSTEXPR UntranslatableSectionDefaultTypeInternal()
772       : _instance(::_pbi::ConstantInitialized{}) {}
~UntranslatableSectionDefaultTypeInternalaapt::pb::UntranslatableSectionDefaultTypeInternal773   ~UntranslatableSectionDefaultTypeInternal() {}
774   union {  // NOLINT(misc-non-private-member-variables-in-classes)
775     UntranslatableSection _instance;
776   };
777 };
778 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UntranslatableSectionDefaultTypeInternal _UntranslatableSection_default_instance_;
779 }  // namespace pb
780 }  // namespace aapt
781 static ::_pb::Metadata file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[51];
782 static const ::_pb::EnumDescriptor* file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[6];
783 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto = nullptr;
784 
785 const ::uint32_t TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
786   ~0u,  // no _has_bits_
787   PROTOBUF_FIELD_OFFSET(::aapt::pb::StringPool, _internal_metadata_),
788   ~0u,  // no _extensions_
789   ~0u,  // no _oneof_case_
790   ~0u,  // no _weak_field_map_
791   ~0u,  // no _inlined_string_donated_
792   PROTOBUF_FIELD_OFFSET(::aapt::pb::StringPool, _impl_.data_),
793   ~0u,  // no _has_bits_
794   PROTOBUF_FIELD_OFFSET(::aapt::pb::SourcePosition, _internal_metadata_),
795   ~0u,  // no _extensions_
796   ~0u,  // no _oneof_case_
797   ~0u,  // no _weak_field_map_
798   ~0u,  // no _inlined_string_donated_
799   PROTOBUF_FIELD_OFFSET(::aapt::pb::SourcePosition, _impl_.line_number_),
800   PROTOBUF_FIELD_OFFSET(::aapt::pb::SourcePosition, _impl_.column_number_),
801   ~0u,  // no _has_bits_
802   PROTOBUF_FIELD_OFFSET(::aapt::pb::Source, _internal_metadata_),
803   ~0u,  // no _extensions_
804   ~0u,  // no _oneof_case_
805   ~0u,  // no _weak_field_map_
806   ~0u,  // no _inlined_string_donated_
807   PROTOBUF_FIELD_OFFSET(::aapt::pb::Source, _impl_.path_idx_),
808   PROTOBUF_FIELD_OFFSET(::aapt::pb::Source, _impl_.position_),
809   ~0u,  // no _has_bits_
810   PROTOBUF_FIELD_OFFSET(::aapt::pb::ToolFingerprint, _internal_metadata_),
811   ~0u,  // no _extensions_
812   ~0u,  // no _oneof_case_
813   ~0u,  // no _weak_field_map_
814   ~0u,  // no _inlined_string_donated_
815   PROTOBUF_FIELD_OFFSET(::aapt::pb::ToolFingerprint, _impl_.tool_),
816   PROTOBUF_FIELD_OFFSET(::aapt::pb::ToolFingerprint, _impl_.version_),
817   ~0u,  // no _has_bits_
818   PROTOBUF_FIELD_OFFSET(::aapt::pb::DynamicRefTable, _internal_metadata_),
819   ~0u,  // no _extensions_
820   ~0u,  // no _oneof_case_
821   ~0u,  // no _weak_field_map_
822   ~0u,  // no _inlined_string_donated_
823   PROTOBUF_FIELD_OFFSET(::aapt::pb::DynamicRefTable, _impl_.package_id_),
824   PROTOBUF_FIELD_OFFSET(::aapt::pb::DynamicRefTable, _impl_.package_name_),
825   ~0u,  // no _has_bits_
826   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _internal_metadata_),
827   ~0u,  // no _extensions_
828   ~0u,  // no _oneof_case_
829   ~0u,  // no _weak_field_map_
830   ~0u,  // no _inlined_string_donated_
831   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _impl_.source_pool_),
832   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _impl_.package_),
833   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _impl_.overlayable_),
834   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _impl_.tool_fingerprint_),
835   PROTOBUF_FIELD_OFFSET(::aapt::pb::ResourceTable, _impl_.dynamic_ref_table_),
836   ~0u,  // no _has_bits_
837   PROTOBUF_FIELD_OFFSET(::aapt::pb::PackageId, _internal_metadata_),
838   ~0u,  // no _extensions_
839   ~0u,  // no _oneof_case_
840   ~0u,  // no _weak_field_map_
841   ~0u,  // no _inlined_string_donated_
842   PROTOBUF_FIELD_OFFSET(::aapt::pb::PackageId, _impl_.id_),
843   ~0u,  // no _has_bits_
844   PROTOBUF_FIELD_OFFSET(::aapt::pb::Package, _internal_metadata_),
845   ~0u,  // no _extensions_
846   ~0u,  // no _oneof_case_
847   ~0u,  // no _weak_field_map_
848   ~0u,  // no _inlined_string_donated_
849   PROTOBUF_FIELD_OFFSET(::aapt::pb::Package, _impl_.package_id_),
850   PROTOBUF_FIELD_OFFSET(::aapt::pb::Package, _impl_.package_name_),
851   PROTOBUF_FIELD_OFFSET(::aapt::pb::Package, _impl_.type_),
852   ~0u,  // no _has_bits_
853   PROTOBUF_FIELD_OFFSET(::aapt::pb::TypeId, _internal_metadata_),
854   ~0u,  // no _extensions_
855   ~0u,  // no _oneof_case_
856   ~0u,  // no _weak_field_map_
857   ~0u,  // no _inlined_string_donated_
858   PROTOBUF_FIELD_OFFSET(::aapt::pb::TypeId, _impl_.id_),
859   ~0u,  // no _has_bits_
860   PROTOBUF_FIELD_OFFSET(::aapt::pb::Type, _internal_metadata_),
861   ~0u,  // no _extensions_
862   ~0u,  // no _oneof_case_
863   ~0u,  // no _weak_field_map_
864   ~0u,  // no _inlined_string_donated_
865   PROTOBUF_FIELD_OFFSET(::aapt::pb::Type, _impl_.type_id_),
866   PROTOBUF_FIELD_OFFSET(::aapt::pb::Type, _impl_.name_),
867   PROTOBUF_FIELD_OFFSET(::aapt::pb::Type, _impl_.entry_),
868   ~0u,  // no _has_bits_
869   PROTOBUF_FIELD_OFFSET(::aapt::pb::Visibility, _internal_metadata_),
870   ~0u,  // no _extensions_
871   ~0u,  // no _oneof_case_
872   ~0u,  // no _weak_field_map_
873   ~0u,  // no _inlined_string_donated_
874   PROTOBUF_FIELD_OFFSET(::aapt::pb::Visibility, _impl_.level_),
875   PROTOBUF_FIELD_OFFSET(::aapt::pb::Visibility, _impl_.source_),
876   PROTOBUF_FIELD_OFFSET(::aapt::pb::Visibility, _impl_.comment_),
877   PROTOBUF_FIELD_OFFSET(::aapt::pb::Visibility, _impl_.staged_api_),
878   ~0u,  // no _has_bits_
879   PROTOBUF_FIELD_OFFSET(::aapt::pb::AllowNew, _internal_metadata_),
880   ~0u,  // no _extensions_
881   ~0u,  // no _oneof_case_
882   ~0u,  // no _weak_field_map_
883   ~0u,  // no _inlined_string_donated_
884   PROTOBUF_FIELD_OFFSET(::aapt::pb::AllowNew, _impl_.source_),
885   PROTOBUF_FIELD_OFFSET(::aapt::pb::AllowNew, _impl_.comment_),
886   ~0u,  // no _has_bits_
887   PROTOBUF_FIELD_OFFSET(::aapt::pb::Overlayable, _internal_metadata_),
888   ~0u,  // no _extensions_
889   ~0u,  // no _oneof_case_
890   ~0u,  // no _weak_field_map_
891   ~0u,  // no _inlined_string_donated_
892   PROTOBUF_FIELD_OFFSET(::aapt::pb::Overlayable, _impl_.name_),
893   PROTOBUF_FIELD_OFFSET(::aapt::pb::Overlayable, _impl_.source_),
894   PROTOBUF_FIELD_OFFSET(::aapt::pb::Overlayable, _impl_.actor_),
895   ~0u,  // no _has_bits_
896   PROTOBUF_FIELD_OFFSET(::aapt::pb::OverlayableItem, _internal_metadata_),
897   ~0u,  // no _extensions_
898   ~0u,  // no _oneof_case_
899   ~0u,  // no _weak_field_map_
900   ~0u,  // no _inlined_string_donated_
901   PROTOBUF_FIELD_OFFSET(::aapt::pb::OverlayableItem, _impl_.source_),
902   PROTOBUF_FIELD_OFFSET(::aapt::pb::OverlayableItem, _impl_.comment_),
903   PROTOBUF_FIELD_OFFSET(::aapt::pb::OverlayableItem, _impl_.policy_),
904   PROTOBUF_FIELD_OFFSET(::aapt::pb::OverlayableItem, _impl_.overlayable_idx_),
905   ~0u,  // no _has_bits_
906   PROTOBUF_FIELD_OFFSET(::aapt::pb::StagedId, _internal_metadata_),
907   ~0u,  // no _extensions_
908   ~0u,  // no _oneof_case_
909   ~0u,  // no _weak_field_map_
910   ~0u,  // no _inlined_string_donated_
911   PROTOBUF_FIELD_OFFSET(::aapt::pb::StagedId, _impl_.source_),
912   PROTOBUF_FIELD_OFFSET(::aapt::pb::StagedId, _impl_.staged_id_),
913   ~0u,  // no _has_bits_
914   PROTOBUF_FIELD_OFFSET(::aapt::pb::EntryId, _internal_metadata_),
915   ~0u,  // no _extensions_
916   ~0u,  // no _oneof_case_
917   ~0u,  // no _weak_field_map_
918   ~0u,  // no _inlined_string_donated_
919   PROTOBUF_FIELD_OFFSET(::aapt::pb::EntryId, _impl_.id_),
920   ~0u,  // no _has_bits_
921   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _internal_metadata_),
922   ~0u,  // no _extensions_
923   ~0u,  // no _oneof_case_
924   ~0u,  // no _weak_field_map_
925   ~0u,  // no _inlined_string_donated_
926   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.entry_id_),
927   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.name_),
928   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.visibility_),
929   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.allow_new_),
930   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.overlayable_item_),
931   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.config_value_),
932   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.staged_id_),
933   PROTOBUF_FIELD_OFFSET(::aapt::pb::Entry, _impl_.flag_disabled_config_value_),
934   ~0u,  // no _has_bits_
935   PROTOBUF_FIELD_OFFSET(::aapt::pb::ConfigValue, _internal_metadata_),
936   ~0u,  // no _extensions_
937   ~0u,  // no _oneof_case_
938   ~0u,  // no _weak_field_map_
939   ~0u,  // no _inlined_string_donated_
940   PROTOBUF_FIELD_OFFSET(::aapt::pb::ConfigValue, _impl_.config_),
941   PROTOBUF_FIELD_OFFSET(::aapt::pb::ConfigValue, _impl_.value_),
942   ~0u,  // no _has_bits_
943   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _internal_metadata_),
944   ~0u,  // no _extensions_
945   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _impl_._oneof_case_[0]),
946   ~0u,  // no _weak_field_map_
947   ~0u,  // no _inlined_string_donated_
948   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _impl_.source_),
949   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _impl_.comment_),
950   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _impl_.weak_),
951   ::_pbi::kInvalidFieldOffsetTag,
952   ::_pbi::kInvalidFieldOffsetTag,
953   PROTOBUF_FIELD_OFFSET(::aapt::pb::Value, _impl_.value_),
954   ~0u,  // no _has_bits_
955   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _internal_metadata_),
956   ~0u,  // no _extensions_
957   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _impl_._oneof_case_[0]),
958   ~0u,  // no _weak_field_map_
959   ~0u,  // no _inlined_string_donated_
960   ::_pbi::kInvalidFieldOffsetTag,
961   ::_pbi::kInvalidFieldOffsetTag,
962   ::_pbi::kInvalidFieldOffsetTag,
963   ::_pbi::kInvalidFieldOffsetTag,
964   ::_pbi::kInvalidFieldOffsetTag,
965   ::_pbi::kInvalidFieldOffsetTag,
966   ::_pbi::kInvalidFieldOffsetTag,
967   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _impl_.flag_status_),
968   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _impl_.flag_negated_),
969   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _impl_.flag_name_),
970   PROTOBUF_FIELD_OFFSET(::aapt::pb::Item, _impl_.value_),
971   ~0u,  // no _has_bits_
972   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _internal_metadata_),
973   ~0u,  // no _extensions_
974   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _impl_._oneof_case_[0]),
975   ~0u,  // no _weak_field_map_
976   ~0u,  // no _inlined_string_donated_
977   ::_pbi::kInvalidFieldOffsetTag,
978   ::_pbi::kInvalidFieldOffsetTag,
979   ::_pbi::kInvalidFieldOffsetTag,
980   ::_pbi::kInvalidFieldOffsetTag,
981   ::_pbi::kInvalidFieldOffsetTag,
982   ::_pbi::kInvalidFieldOffsetTag,
983   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _impl_.flag_status_),
984   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _impl_.flag_negated_),
985   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _impl_.flag_name_),
986   PROTOBUF_FIELD_OFFSET(::aapt::pb::CompoundValue, _impl_.value_),
987   ~0u,  // no _has_bits_
988   PROTOBUF_FIELD_OFFSET(::aapt::pb::Boolean, _internal_metadata_),
989   ~0u,  // no _extensions_
990   ~0u,  // no _oneof_case_
991   ~0u,  // no _weak_field_map_
992   ~0u,  // no _inlined_string_donated_
993   PROTOBUF_FIELD_OFFSET(::aapt::pb::Boolean, _impl_.value_),
994   ~0u,  // no _has_bits_
995   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _internal_metadata_),
996   ~0u,  // no _extensions_
997   ~0u,  // no _oneof_case_
998   ~0u,  // no _weak_field_map_
999   ~0u,  // no _inlined_string_donated_
1000   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.type_),
1001   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.id_),
1002   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.name_),
1003   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.private__),
1004   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.is_dynamic_),
1005   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.type_flags_),
1006   PROTOBUF_FIELD_OFFSET(::aapt::pb::Reference, _impl_.allow_raw_),
1007   ~0u,  // no _has_bits_
1008   PROTOBUF_FIELD_OFFSET(::aapt::pb::Id, _internal_metadata_),
1009   ~0u,  // no _extensions_
1010   ~0u,  // no _oneof_case_
1011   ~0u,  // no _weak_field_map_
1012   ~0u,  // no _inlined_string_donated_
1013   ~0u,  // no _has_bits_
1014   PROTOBUF_FIELD_OFFSET(::aapt::pb::String, _internal_metadata_),
1015   ~0u,  // no _extensions_
1016   ~0u,  // no _oneof_case_
1017   ~0u,  // no _weak_field_map_
1018   ~0u,  // no _inlined_string_donated_
1019   PROTOBUF_FIELD_OFFSET(::aapt::pb::String, _impl_.value_),
1020   ~0u,  // no _has_bits_
1021   PROTOBUF_FIELD_OFFSET(::aapt::pb::RawString, _internal_metadata_),
1022   ~0u,  // no _extensions_
1023   ~0u,  // no _oneof_case_
1024   ~0u,  // no _weak_field_map_
1025   ~0u,  // no _inlined_string_donated_
1026   PROTOBUF_FIELD_OFFSET(::aapt::pb::RawString, _impl_.value_),
1027   ~0u,  // no _has_bits_
1028   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString_Span, _internal_metadata_),
1029   ~0u,  // no _extensions_
1030   ~0u,  // no _oneof_case_
1031   ~0u,  // no _weak_field_map_
1032   ~0u,  // no _inlined_string_donated_
1033   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString_Span, _impl_.tag_),
1034   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString_Span, _impl_.first_char_),
1035   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString_Span, _impl_.last_char_),
1036   ~0u,  // no _has_bits_
1037   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString, _internal_metadata_),
1038   ~0u,  // no _extensions_
1039   ~0u,  // no _oneof_case_
1040   ~0u,  // no _weak_field_map_
1041   ~0u,  // no _inlined_string_donated_
1042   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString, _impl_.value_),
1043   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyledString, _impl_.span_),
1044   ~0u,  // no _has_bits_
1045   PROTOBUF_FIELD_OFFSET(::aapt::pb::FileReference, _internal_metadata_),
1046   ~0u,  // no _extensions_
1047   ~0u,  // no _oneof_case_
1048   ~0u,  // no _weak_field_map_
1049   ~0u,  // no _inlined_string_donated_
1050   PROTOBUF_FIELD_OFFSET(::aapt::pb::FileReference, _impl_.path_),
1051   PROTOBUF_FIELD_OFFSET(::aapt::pb::FileReference, _impl_.type_),
1052   ~0u,  // no _has_bits_
1053   PROTOBUF_FIELD_OFFSET(::aapt::pb::Primitive_NullType, _internal_metadata_),
1054   ~0u,  // no _extensions_
1055   ~0u,  // no _oneof_case_
1056   ~0u,  // no _weak_field_map_
1057   ~0u,  // no _inlined_string_donated_
1058   ~0u,  // no _has_bits_
1059   PROTOBUF_FIELD_OFFSET(::aapt::pb::Primitive_EmptyType, _internal_metadata_),
1060   ~0u,  // no _extensions_
1061   ~0u,  // no _oneof_case_
1062   ~0u,  // no _weak_field_map_
1063   ~0u,  // no _inlined_string_donated_
1064   ~0u,  // no _has_bits_
1065   PROTOBUF_FIELD_OFFSET(::aapt::pb::Primitive, _internal_metadata_),
1066   ~0u,  // no _extensions_
1067   PROTOBUF_FIELD_OFFSET(::aapt::pb::Primitive, _impl_._oneof_case_[0]),
1068   ~0u,  // no _weak_field_map_
1069   ~0u,  // no _inlined_string_donated_
1070   ::_pbi::kInvalidFieldOffsetTag,
1071   ::_pbi::kInvalidFieldOffsetTag,
1072   ::_pbi::kInvalidFieldOffsetTag,
1073   ::_pbi::kInvalidFieldOffsetTag,
1074   ::_pbi::kInvalidFieldOffsetTag,
1075   ::_pbi::kInvalidFieldOffsetTag,
1076   ::_pbi::kInvalidFieldOffsetTag,
1077   ::_pbi::kInvalidFieldOffsetTag,
1078   ::_pbi::kInvalidFieldOffsetTag,
1079   ::_pbi::kInvalidFieldOffsetTag,
1080   ::_pbi::kInvalidFieldOffsetTag,
1081   ::_pbi::kInvalidFieldOffsetTag,
1082   ::_pbi::kInvalidFieldOffsetTag,
1083   ::_pbi::kInvalidFieldOffsetTag,
1084   PROTOBUF_FIELD_OFFSET(::aapt::pb::Primitive, _impl_.oneof_value_),
1085   ~0u,  // no _has_bits_
1086   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _internal_metadata_),
1087   ~0u,  // no _extensions_
1088   ~0u,  // no _oneof_case_
1089   ~0u,  // no _weak_field_map_
1090   ~0u,  // no _inlined_string_donated_
1091   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _impl_.source_),
1092   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _impl_.comment_),
1093   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _impl_.name_),
1094   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _impl_.value_),
1095   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute_Symbol, _impl_.type_),
1096   ~0u,  // no _has_bits_
1097   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute, _internal_metadata_),
1098   ~0u,  // no _extensions_
1099   ~0u,  // no _oneof_case_
1100   ~0u,  // no _weak_field_map_
1101   ~0u,  // no _inlined_string_donated_
1102   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute, _impl_.format_flags_),
1103   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute, _impl_.min_int_),
1104   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute, _impl_.max_int_),
1105   PROTOBUF_FIELD_OFFSET(::aapt::pb::Attribute, _impl_.symbol_),
1106   ~0u,  // no _has_bits_
1107   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style_Entry, _internal_metadata_),
1108   ~0u,  // no _extensions_
1109   ~0u,  // no _oneof_case_
1110   ~0u,  // no _weak_field_map_
1111   ~0u,  // no _inlined_string_donated_
1112   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style_Entry, _impl_.source_),
1113   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style_Entry, _impl_.comment_),
1114   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style_Entry, _impl_.key_),
1115   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style_Entry, _impl_.item_),
1116   ~0u,  // no _has_bits_
1117   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style, _internal_metadata_),
1118   ~0u,  // no _extensions_
1119   ~0u,  // no _oneof_case_
1120   ~0u,  // no _weak_field_map_
1121   ~0u,  // no _inlined_string_donated_
1122   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style, _impl_.parent_),
1123   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style, _impl_.parent_source_),
1124   PROTOBUF_FIELD_OFFSET(::aapt::pb::Style, _impl_.entry_),
1125   ~0u,  // no _has_bits_
1126   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable_Entry, _internal_metadata_),
1127   ~0u,  // no _extensions_
1128   ~0u,  // no _oneof_case_
1129   ~0u,  // no _weak_field_map_
1130   ~0u,  // no _inlined_string_donated_
1131   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable_Entry, _impl_.source_),
1132   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable_Entry, _impl_.comment_),
1133   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable_Entry, _impl_.attr_),
1134   ~0u,  // no _has_bits_
1135   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable, _internal_metadata_),
1136   ~0u,  // no _extensions_
1137   ~0u,  // no _oneof_case_
1138   ~0u,  // no _weak_field_map_
1139   ~0u,  // no _inlined_string_donated_
1140   PROTOBUF_FIELD_OFFSET(::aapt::pb::Styleable, _impl_.entry_),
1141   ~0u,  // no _has_bits_
1142   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array_Element, _internal_metadata_),
1143   ~0u,  // no _extensions_
1144   ~0u,  // no _oneof_case_
1145   ~0u,  // no _weak_field_map_
1146   ~0u,  // no _inlined_string_donated_
1147   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array_Element, _impl_.source_),
1148   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array_Element, _impl_.comment_),
1149   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array_Element, _impl_.item_),
1150   ~0u,  // no _has_bits_
1151   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array, _internal_metadata_),
1152   ~0u,  // no _extensions_
1153   ~0u,  // no _oneof_case_
1154   ~0u,  // no _weak_field_map_
1155   ~0u,  // no _inlined_string_donated_
1156   PROTOBUF_FIELD_OFFSET(::aapt::pb::Array, _impl_.element_),
1157   ~0u,  // no _has_bits_
1158   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural_Entry, _internal_metadata_),
1159   ~0u,  // no _extensions_
1160   ~0u,  // no _oneof_case_
1161   ~0u,  // no _weak_field_map_
1162   ~0u,  // no _inlined_string_donated_
1163   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural_Entry, _impl_.source_),
1164   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural_Entry, _impl_.comment_),
1165   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural_Entry, _impl_.arity_),
1166   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural_Entry, _impl_.item_),
1167   ~0u,  // no _has_bits_
1168   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural, _internal_metadata_),
1169   ~0u,  // no _extensions_
1170   ~0u,  // no _oneof_case_
1171   ~0u,  // no _weak_field_map_
1172   ~0u,  // no _inlined_string_donated_
1173   PROTOBUF_FIELD_OFFSET(::aapt::pb::Plural, _impl_.entry_),
1174   ~0u,  // no _has_bits_
1175   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNode, _internal_metadata_),
1176   ~0u,  // no _extensions_
1177   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNode, _impl_._oneof_case_[0]),
1178   ~0u,  // no _weak_field_map_
1179   ~0u,  // no _inlined_string_donated_
1180   ::_pbi::kInvalidFieldOffsetTag,
1181   ::_pbi::kInvalidFieldOffsetTag,
1182   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNode, _impl_.source_),
1183   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNode, _impl_.node_),
1184   ~0u,  // no _has_bits_
1185   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _internal_metadata_),
1186   ~0u,  // no _extensions_
1187   ~0u,  // no _oneof_case_
1188   ~0u,  // no _weak_field_map_
1189   ~0u,  // no _inlined_string_donated_
1190   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _impl_.namespace_declaration_),
1191   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _impl_.namespace_uri_),
1192   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _impl_.name_),
1193   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _impl_.attribute_),
1194   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlElement, _impl_.child_),
1195   ~0u,  // no _has_bits_
1196   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNamespace, _internal_metadata_),
1197   ~0u,  // no _extensions_
1198   ~0u,  // no _oneof_case_
1199   ~0u,  // no _weak_field_map_
1200   ~0u,  // no _inlined_string_donated_
1201   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNamespace, _impl_.prefix_),
1202   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNamespace, _impl_.uri_),
1203   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlNamespace, _impl_.source_),
1204   ~0u,  // no _has_bits_
1205   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _internal_metadata_),
1206   ~0u,  // no _extensions_
1207   ~0u,  // no _oneof_case_
1208   ~0u,  // no _weak_field_map_
1209   ~0u,  // no _inlined_string_donated_
1210   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.namespace_uri_),
1211   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.name_),
1212   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.value_),
1213   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.source_),
1214   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.resource_id_),
1215   PROTOBUF_FIELD_OFFSET(::aapt::pb::XmlAttribute, _impl_.compiled_item_),
1216   ~0u,  // no _has_bits_
1217   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _internal_metadata_),
1218   ~0u,  // no _extensions_
1219   ~0u,  // no _oneof_case_
1220   ~0u,  // no _weak_field_map_
1221   ~0u,  // no _inlined_string_donated_
1222   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _impl_.raw_string_),
1223   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _impl_.style_string_),
1224   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _impl_.untranslatable_sections_),
1225   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _impl_.namespace_stack_),
1226   PROTOBUF_FIELD_OFFSET(::aapt::pb::MacroBody, _impl_.source_),
1227   ~0u,  // no _has_bits_
1228   PROTOBUF_FIELD_OFFSET(::aapt::pb::NamespaceAlias, _internal_metadata_),
1229   ~0u,  // no _extensions_
1230   ~0u,  // no _oneof_case_
1231   ~0u,  // no _weak_field_map_
1232   ~0u,  // no _inlined_string_donated_
1233   PROTOBUF_FIELD_OFFSET(::aapt::pb::NamespaceAlias, _impl_.prefix_),
1234   PROTOBUF_FIELD_OFFSET(::aapt::pb::NamespaceAlias, _impl_.package_name_),
1235   PROTOBUF_FIELD_OFFSET(::aapt::pb::NamespaceAlias, _impl_.is_private_),
1236   ~0u,  // no _has_bits_
1237   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString_Span, _internal_metadata_),
1238   ~0u,  // no _extensions_
1239   ~0u,  // no _oneof_case_
1240   ~0u,  // no _weak_field_map_
1241   ~0u,  // no _inlined_string_donated_
1242   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString_Span, _impl_.name_),
1243   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString_Span, _impl_.start_index_),
1244   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString_Span, _impl_.end_index_),
1245   ~0u,  // no _has_bits_
1246   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString, _internal_metadata_),
1247   ~0u,  // no _extensions_
1248   ~0u,  // no _oneof_case_
1249   ~0u,  // no _weak_field_map_
1250   ~0u,  // no _inlined_string_donated_
1251   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString, _impl_.str_),
1252   PROTOBUF_FIELD_OFFSET(::aapt::pb::StyleString, _impl_.spans_),
1253   ~0u,  // no _has_bits_
1254   PROTOBUF_FIELD_OFFSET(::aapt::pb::UntranslatableSection, _internal_metadata_),
1255   ~0u,  // no _extensions_
1256   ~0u,  // no _oneof_case_
1257   ~0u,  // no _weak_field_map_
1258   ~0u,  // no _inlined_string_donated_
1259   PROTOBUF_FIELD_OFFSET(::aapt::pb::UntranslatableSection, _impl_.start_index_),
1260   PROTOBUF_FIELD_OFFSET(::aapt::pb::UntranslatableSection, _impl_.end_index_),
1261 };
1262 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
1263   { 0, -1, -1, sizeof(::aapt::pb::StringPool)},
1264   { 7, -1, -1, sizeof(::aapt::pb::SourcePosition)},
1265   { 15, -1, -1, sizeof(::aapt::pb::Source)},
1266   { 23, -1, -1, sizeof(::aapt::pb::ToolFingerprint)},
1267   { 31, -1, -1, sizeof(::aapt::pb::DynamicRefTable)},
1268   { 39, -1, -1, sizeof(::aapt::pb::ResourceTable)},
1269   { 50, -1, -1, sizeof(::aapt::pb::PackageId)},
1270   { 57, -1, -1, sizeof(::aapt::pb::Package)},
1271   { 66, -1, -1, sizeof(::aapt::pb::TypeId)},
1272   { 73, -1, -1, sizeof(::aapt::pb::Type)},
1273   { 82, -1, -1, sizeof(::aapt::pb::Visibility)},
1274   { 92, -1, -1, sizeof(::aapt::pb::AllowNew)},
1275   { 100, -1, -1, sizeof(::aapt::pb::Overlayable)},
1276   { 109, -1, -1, sizeof(::aapt::pb::OverlayableItem)},
1277   { 119, -1, -1, sizeof(::aapt::pb::StagedId)},
1278   { 127, -1, -1, sizeof(::aapt::pb::EntryId)},
1279   { 134, -1, -1, sizeof(::aapt::pb::Entry)},
1280   { 148, -1, -1, sizeof(::aapt::pb::ConfigValue)},
1281   { 156, -1, -1, sizeof(::aapt::pb::Value)},
1282   { 168, -1, -1, sizeof(::aapt::pb::Item)},
1283   { 185, -1, -1, sizeof(::aapt::pb::CompoundValue)},
1284   { 201, -1, -1, sizeof(::aapt::pb::Boolean)},
1285   { 208, -1, -1, sizeof(::aapt::pb::Reference)},
1286   { 221, -1, -1, sizeof(::aapt::pb::Id)},
1287   { 227, -1, -1, sizeof(::aapt::pb::String)},
1288   { 234, -1, -1, sizeof(::aapt::pb::RawString)},
1289   { 241, -1, -1, sizeof(::aapt::pb::StyledString_Span)},
1290   { 250, -1, -1, sizeof(::aapt::pb::StyledString)},
1291   { 258, -1, -1, sizeof(::aapt::pb::FileReference)},
1292   { 266, -1, -1, sizeof(::aapt::pb::Primitive_NullType)},
1293   { 272, -1, -1, sizeof(::aapt::pb::Primitive_EmptyType)},
1294   { 278, -1, -1, sizeof(::aapt::pb::Primitive)},
1295   { 299, -1, -1, sizeof(::aapt::pb::Attribute_Symbol)},
1296   { 310, -1, -1, sizeof(::aapt::pb::Attribute)},
1297   { 320, -1, -1, sizeof(::aapt::pb::Style_Entry)},
1298   { 330, -1, -1, sizeof(::aapt::pb::Style)},
1299   { 339, -1, -1, sizeof(::aapt::pb::Styleable_Entry)},
1300   { 348, -1, -1, sizeof(::aapt::pb::Styleable)},
1301   { 355, -1, -1, sizeof(::aapt::pb::Array_Element)},
1302   { 364, -1, -1, sizeof(::aapt::pb::Array)},
1303   { 371, -1, -1, sizeof(::aapt::pb::Plural_Entry)},
1304   { 381, -1, -1, sizeof(::aapt::pb::Plural)},
1305   { 388, -1, -1, sizeof(::aapt::pb::XmlNode)},
1306   { 398, -1, -1, sizeof(::aapt::pb::XmlElement)},
1307   { 409, -1, -1, sizeof(::aapt::pb::XmlNamespace)},
1308   { 418, -1, -1, sizeof(::aapt::pb::XmlAttribute)},
1309   { 430, -1, -1, sizeof(::aapt::pb::MacroBody)},
1310   { 441, -1, -1, sizeof(::aapt::pb::NamespaceAlias)},
1311   { 450, -1, -1, sizeof(::aapt::pb::StyleString_Span)},
1312   { 459, -1, -1, sizeof(::aapt::pb::StyleString)},
1313   { 467, -1, -1, sizeof(::aapt::pb::UntranslatableSection)},
1314 };
1315 
1316 static const ::_pb::Message* const file_default_instances[] = {
1317   &::aapt::pb::_StringPool_default_instance_._instance,
1318   &::aapt::pb::_SourcePosition_default_instance_._instance,
1319   &::aapt::pb::_Source_default_instance_._instance,
1320   &::aapt::pb::_ToolFingerprint_default_instance_._instance,
1321   &::aapt::pb::_DynamicRefTable_default_instance_._instance,
1322   &::aapt::pb::_ResourceTable_default_instance_._instance,
1323   &::aapt::pb::_PackageId_default_instance_._instance,
1324   &::aapt::pb::_Package_default_instance_._instance,
1325   &::aapt::pb::_TypeId_default_instance_._instance,
1326   &::aapt::pb::_Type_default_instance_._instance,
1327   &::aapt::pb::_Visibility_default_instance_._instance,
1328   &::aapt::pb::_AllowNew_default_instance_._instance,
1329   &::aapt::pb::_Overlayable_default_instance_._instance,
1330   &::aapt::pb::_OverlayableItem_default_instance_._instance,
1331   &::aapt::pb::_StagedId_default_instance_._instance,
1332   &::aapt::pb::_EntryId_default_instance_._instance,
1333   &::aapt::pb::_Entry_default_instance_._instance,
1334   &::aapt::pb::_ConfigValue_default_instance_._instance,
1335   &::aapt::pb::_Value_default_instance_._instance,
1336   &::aapt::pb::_Item_default_instance_._instance,
1337   &::aapt::pb::_CompoundValue_default_instance_._instance,
1338   &::aapt::pb::_Boolean_default_instance_._instance,
1339   &::aapt::pb::_Reference_default_instance_._instance,
1340   &::aapt::pb::_Id_default_instance_._instance,
1341   &::aapt::pb::_String_default_instance_._instance,
1342   &::aapt::pb::_RawString_default_instance_._instance,
1343   &::aapt::pb::_StyledString_Span_default_instance_._instance,
1344   &::aapt::pb::_StyledString_default_instance_._instance,
1345   &::aapt::pb::_FileReference_default_instance_._instance,
1346   &::aapt::pb::_Primitive_NullType_default_instance_._instance,
1347   &::aapt::pb::_Primitive_EmptyType_default_instance_._instance,
1348   &::aapt::pb::_Primitive_default_instance_._instance,
1349   &::aapt::pb::_Attribute_Symbol_default_instance_._instance,
1350   &::aapt::pb::_Attribute_default_instance_._instance,
1351   &::aapt::pb::_Style_Entry_default_instance_._instance,
1352   &::aapt::pb::_Style_default_instance_._instance,
1353   &::aapt::pb::_Styleable_Entry_default_instance_._instance,
1354   &::aapt::pb::_Styleable_default_instance_._instance,
1355   &::aapt::pb::_Array_Element_default_instance_._instance,
1356   &::aapt::pb::_Array_default_instance_._instance,
1357   &::aapt::pb::_Plural_Entry_default_instance_._instance,
1358   &::aapt::pb::_Plural_default_instance_._instance,
1359   &::aapt::pb::_XmlNode_default_instance_._instance,
1360   &::aapt::pb::_XmlElement_default_instance_._instance,
1361   &::aapt::pb::_XmlNamespace_default_instance_._instance,
1362   &::aapt::pb::_XmlAttribute_default_instance_._instance,
1363   &::aapt::pb::_MacroBody_default_instance_._instance,
1364   &::aapt::pb::_NamespaceAlias_default_instance_._instance,
1365   &::aapt::pb::_StyleString_Span_default_instance_._instance,
1366   &::aapt::pb::_StyleString_default_instance_._instance,
1367   &::aapt::pb::_UntranslatableSection_default_instance_._instance,
1368 };
1369 
1370 const char descriptor_table_protodef_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
1371   "\n+frameworks/base/tools/aapt2/Resources."
1372   "proto\022\007aapt.pb\032/frameworks/base/tools/aa"
1373   "pt2/Configuration.proto\"\032\n\nStringPool\022\014\n"
1374   "\004data\030\001 \001(\014\"<\n\016SourcePosition\022\023\n\013line_nu"
1375   "mber\030\001 \001(\r\022\025\n\rcolumn_number\030\002 \001(\r\"E\n\006Sou"
1376   "rce\022\020\n\010path_idx\030\001 \001(\r\022)\n\010position\030\002 \001(\0132"
1377   "\027.aapt.pb.SourcePosition\"0\n\017ToolFingerpr"
1378   "int\022\014\n\004tool\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\"O\n\017Dy"
1379   "namicRefTable\022&\n\npackage_id\030\001 \001(\0132\022.aapt"
1380   ".pb.PackageId\022\024\n\014package_name\030\002 \001(\t\"\360\001\n\r"
1381   "ResourceTable\022(\n\013source_pool\030\001 \001(\0132\023.aap"
1382   "t.pb.StringPool\022!\n\007package\030\002 \003(\0132\020.aapt."
1383   "pb.Package\022)\n\013overlayable\030\003 \003(\0132\024.aapt.p"
1384   "b.Overlayable\0222\n\020tool_fingerprint\030\004 \003(\0132"
1385   "\030.aapt.pb.ToolFingerprint\0223\n\021dynamic_ref"
1386   "_table\030\005 \003(\0132\030.aapt.pb.DynamicRefTable\"\027"
1387   "\n\tPackageId\022\n\n\002id\030\001 \001(\r\"d\n\007Package\022&\n\npa"
1388   "ckage_id\030\001 \001(\0132\022.aapt.pb.PackageId\022\024\n\014pa"
1389   "ckage_name\030\002 \001(\t\022\033\n\004type\030\003 \003(\0132\r.aapt.pb"
1390   ".Type\"\024\n\006TypeId\022\n\n\002id\030\001 \001(\r\"U\n\004Type\022 \n\007t"
1391   "ype_id\030\001 \001(\0132\017.aapt.pb.TypeId\022\014\n\004name\030\002 "
1392   "\001(\t\022\035\n\005entry\030\003 \003(\0132\016.aapt.pb.Entry\"\253\001\n\nV"
1393   "isibility\022(\n\005level\030\001 \001(\0162\031.aapt.pb.Visib"
1394   "ility.Level\022\037\n\006source\030\002 \001(\0132\017.aapt.pb.So"
1395   "urce\022\017\n\007comment\030\003 \001(\t\022\022\n\nstaged_api\030\004 \001("
1396   "\010\"-\n\005Level\022\013\n\007UNKNOWN\020\000\022\013\n\007PRIVATE\020\001\022\n\n\006"
1397   "PUBLIC\020\002\"<\n\010AllowNew\022\037\n\006source\030\001 \001(\0132\017.a"
1398   "apt.pb.Source\022\017\n\007comment\030\002 \001(\t\"K\n\013Overla"
1399   "yable\022\014\n\004name\030\001 \001(\t\022\037\n\006source\030\002 \001(\0132\017.aa"
1400   "pt.pb.Source\022\r\n\005actor\030\003 \001(\t\"\225\002\n\017Overlaya"
1401   "bleItem\022\037\n\006source\030\001 \001(\0132\017.aapt.pb.Source"
1402   "\022\017\n\007comment\030\002 \001(\t\022/\n\006policy\030\003 \003(\0162\037.aapt"
1403   ".pb.OverlayableItem.Policy\022\027\n\017overlayabl"
1404   "e_idx\030\004 \001(\r\"\205\001\n\006Policy\022\010\n\004NONE\020\000\022\n\n\006PUBL"
1405   "IC\020\001\022\n\n\006SYSTEM\020\002\022\n\n\006VENDOR\020\003\022\013\n\007PRODUCT\020"
1406   "\004\022\r\n\tSIGNATURE\020\005\022\007\n\003ODM\020\006\022\007\n\003OEM\020\007\022\t\n\005AC"
1407   "TOR\020\010\022\024\n\020CONFIG_SIGNATURE\020\t\">\n\010StagedId\022"
1408   "\037\n\006source\030\001 \001(\0132\017.aapt.pb.Source\022\021\n\tstag"
1409   "ed_id\030\002 \001(\r\"\025\n\007EntryId\022\n\n\002id\030\001 \001(\r\"\310\002\n\005E"
1410   "ntry\022\"\n\010entry_id\030\001 \001(\0132\020.aapt.pb.EntryId"
1411   "\022\014\n\004name\030\002 \001(\t\022\'\n\nvisibility\030\003 \001(\0132\023.aap"
1412   "t.pb.Visibility\022$\n\tallow_new\030\004 \001(\0132\021.aap"
1413   "t.pb.AllowNew\0222\n\020overlayable_item\030\005 \001(\0132"
1414   "\030.aapt.pb.OverlayableItem\022*\n\014config_valu"
1415   "e\030\006 \003(\0132\024.aapt.pb.ConfigValue\022$\n\tstaged_"
1416   "id\030\007 \001(\0132\021.aapt.pb.StagedId\0228\n\032flag_disa"
1417   "bled_config_value\030\010 \003(\0132\024.aapt.pb.Config"
1418   "Value\"Z\n\013ConfigValue\022&\n\006config\030\001 \001(\0132\026.a"
1419   "apt.pb.Configuration\022\035\n\005value\030\002 \001(\0132\016.aa"
1420   "pt.pb.ValueJ\004\010\003\020\004\"\241\001\n\005Value\022\037\n\006source\030\001 "
1421   "\001(\0132\017.aapt.pb.Source\022\017\n\007comment\030\002 \001(\t\022\014\n"
1422   "\004weak\030\003 \001(\010\022\035\n\004item\030\004 \001(\0132\r.aapt.pb.Item"
1423   "H\000\0220\n\016compound_value\030\005 \001(\0132\026.aapt.pb.Com"
1424   "poundValueH\000B\007\n\005value\"\313\002\n\004Item\022!\n\003ref\030\001 "
1425   "\001(\0132\022.aapt.pb.ReferenceH\000\022\036\n\003str\030\002 \001(\0132\017"
1426   ".aapt.pb.StringH\000\022%\n\007raw_str\030\003 \001(\0132\022.aap"
1427   "t.pb.RawStringH\000\022+\n\nstyled_str\030\004 \001(\0132\025.a"
1428   "apt.pb.StyledStringH\000\022&\n\004file\030\005 \001(\0132\026.aa"
1429   "pt.pb.FileReferenceH\000\022\031\n\002id\030\006 \001(\0132\013.aapt"
1430   ".pb.IdH\000\022\"\n\004prim\030\007 \001(\0132\022.aapt.pb.Primiti"
1431   "veH\000\022\023\n\013flag_status\030\010 \001(\r\022\024\n\014flag_negate"
1432   "d\030\t \001(\010\022\021\n\tflag_name\030\n \001(\tB\007\n\005value\"\255\002\n\r"
1433   "CompoundValue\022\"\n\004attr\030\001 \001(\0132\022.aapt.pb.At"
1434   "tributeH\000\022\037\n\005style\030\002 \001(\0132\016.aapt.pb.Style"
1435   "H\000\022\'\n\tstyleable\030\003 \001(\0132\022.aapt.pb.Styleabl"
1436   "eH\000\022\037\n\005array\030\004 \001(\0132\016.aapt.pb.ArrayH\000\022!\n\006"
1437   "plural\030\005 \001(\0132\017.aapt.pb.PluralH\000\022#\n\005macro"
1438   "\030\006 \001(\0132\022.aapt.pb.MacroBodyH\000\022\023\n\013flag_sta"
1439   "tus\030\007 \001(\r\022\024\n\014flag_negated\030\010 \001(\010\022\021\n\tflag_"
1440   "name\030\t \001(\tB\007\n\005value\"\030\n\007Boolean\022\r\n\005value\030"
1441   "\001 \001(\010\"\320\001\n\tReference\022%\n\004type\030\001 \001(\0162\027.aapt"
1442   ".pb.Reference.Type\022\n\n\002id\030\002 \001(\r\022\014\n\004name\030\003"
1443   " \001(\t\022\017\n\007private\030\004 \001(\010\022$\n\nis_dynamic\030\005 \001("
1444   "\0132\020.aapt.pb.Boolean\022\022\n\ntype_flags\030\006 \001(\r\022"
1445   "\021\n\tallow_raw\030\007 \001(\010\"$\n\004Type\022\r\n\tREFERENCE\020"
1446   "\000\022\r\n\tATTRIBUTE\020\001\"\004\n\002Id\"\027\n\006String\022\r\n\005valu"
1447   "e\030\001 \001(\t\"\032\n\tRawString\022\r\n\005value\030\001 \001(\t\"\203\001\n\014"
1448   "StyledString\022\r\n\005value\030\001 \001(\t\022(\n\004span\030\002 \003("
1449   "\0132\032.aapt.pb.StyledString.Span\032:\n\004Span\022\013\n"
1450   "\003tag\030\001 \001(\t\022\022\n\nfirst_char\030\002 \001(\r\022\021\n\tlast_c"
1451   "har\030\003 \001(\r\"\205\001\n\rFileReference\022\014\n\004path\030\001 \001("
1452   "\t\022)\n\004type\030\002 \001(\0162\033.aapt.pb.FileReference."
1453   "Type\";\n\004Type\022\013\n\007UNKNOWN\020\000\022\007\n\003PNG\020\001\022\016\n\nBI"
1454   "NARY_XML\020\002\022\r\n\tPROTO_XML\020\003\"\203\004\n\tPrimitive\022"
1455   "1\n\nnull_value\030\001 \001(\0132\033.aapt.pb.Primitive."
1456   "NullTypeH\000\0223\n\013empty_value\030\002 \001(\0132\034.aapt.p"
1457   "b.Primitive.EmptyTypeH\000\022\025\n\013float_value\030\003"
1458   " \001(\002H\000\022\031\n\017dimension_value\030\r \001(\rH\000\022\030\n\016fra"
1459   "ction_value\030\016 \001(\rH\000\022\033\n\021int_decimal_value"
1460   "\030\006 \001(\005H\000\022\037\n\025int_hexadecimal_value\030\007 \001(\rH"
1461   "\000\022\027\n\rboolean_value\030\010 \001(\010H\000\022\033\n\021color_argb"
1462   "8_value\030\t \001(\rH\000\022\032\n\020color_rgb8_value\030\n \001("
1463   "\rH\000\022\033\n\021color_argb4_value\030\013 \001(\rH\000\022\032\n\020colo"
1464   "r_rgb4_value\030\014 \001(\rH\000\022(\n\032dimension_value_"
1465   "deprecated\030\004 \001(\002B\002\030\001H\000\022\'\n\031fraction_value"
1466   "_deprecated\030\005 \001(\002B\002\030\001H\000\032\n\n\010NullType\032\013\n\tE"
1467   "mptyTypeB\r\n\013oneof_value\"\220\003\n\tAttribute\022\024\n"
1468   "\014format_flags\030\001 \001(\r\022\017\n\007min_int\030\002 \001(\005\022\017\n\007"
1469   "max_int\030\003 \001(\005\022)\n\006symbol\030\004 \003(\0132\031.aapt.pb."
1470   "Attribute.Symbol\032y\n\006Symbol\022\037\n\006source\030\001 \001"
1471   "(\0132\017.aapt.pb.Source\022\017\n\007comment\030\002 \001(\t\022 \n\004"
1472   "name\030\003 \001(\0132\022.aapt.pb.Reference\022\r\n\005value\030"
1473   "\004 \001(\r\022\014\n\004type\030\005 \001(\r\"\244\001\n\013FormatFlags\022\010\n\004N"
1474   "ONE\020\000\022\t\n\003ANY\020\377\377\003\022\r\n\tREFERENCE\020\001\022\n\n\006STRIN"
1475   "G\020\002\022\013\n\007INTEGER\020\004\022\013\n\007BOOLEAN\020\010\022\t\n\005COLOR\020\020"
1476   "\022\t\n\005FLOAT\020 \022\r\n\tDIMENSION\020@\022\r\n\010FRACTION\020\200"
1477   "\001\022\n\n\004ENUM\020\200\200\004\022\013\n\005FLAGS\020\200\200\010\"\361\001\n\005Style\022\"\n\006"
1478   "parent\030\001 \001(\0132\022.aapt.pb.Reference\022&\n\rpare"
1479   "nt_source\030\002 \001(\0132\017.aapt.pb.Source\022#\n\005entr"
1480   "y\030\003 \003(\0132\024.aapt.pb.Style.Entry\032w\n\005Entry\022\037"
1481   "\n\006source\030\001 \001(\0132\017.aapt.pb.Source\022\017\n\007comme"
1482   "nt\030\002 \001(\t\022\037\n\003key\030\003 \001(\0132\022.aapt.pb.Referenc"
1483   "e\022\033\n\004item\030\004 \001(\0132\r.aapt.pb.Item\"\221\001\n\tStyle"
1484   "able\022\'\n\005entry\030\001 \003(\0132\030.aapt.pb.Styleable."
1485   "Entry\032[\n\005Entry\022\037\n\006source\030\001 \001(\0132\017.aapt.pb"
1486   ".Source\022\017\n\007comment\030\002 \001(\t\022 \n\004attr\030\003 \001(\0132\022"
1487   ".aapt.pb.Reference\"\212\001\n\005Array\022\'\n\007element\030"
1488   "\001 \003(\0132\026.aapt.pb.Array.Element\032X\n\007Element"
1489   "\022\037\n\006source\030\001 \001(\0132\017.aapt.pb.Source\022\017\n\007com"
1490   "ment\030\002 \001(\t\022\033\n\004item\030\003 \001(\0132\r.aapt.pb.Item\""
1491   "\357\001\n\006Plural\022$\n\005entry\030\001 \003(\0132\025.aapt.pb.Plur"
1492   "al.Entry\032|\n\005Entry\022\037\n\006source\030\001 \001(\0132\017.aapt"
1493   ".pb.Source\022\017\n\007comment\030\002 \001(\t\022$\n\005arity\030\003 \001"
1494   "(\0162\025.aapt.pb.Plural.Arity\022\033\n\004item\030\004 \001(\0132"
1495   "\r.aapt.pb.Item\"A\n\005Arity\022\010\n\004ZERO\020\000\022\007\n\003ONE"
1496   "\020\001\022\007\n\003TWO\020\002\022\007\n\003FEW\020\003\022\010\n\004MANY\020\004\022\t\n\005OTHER\020"
1497   "\005\"r\n\007XmlNode\022&\n\007element\030\001 \001(\0132\023.aapt.pb."
1498   "XmlElementH\000\022\016\n\004text\030\002 \001(\tH\000\022\'\n\006source\030\003"
1499   " \001(\0132\027.aapt.pb.SourcePositionB\006\n\004node\"\262\001"
1500   "\n\nXmlElement\0224\n\025namespace_declaration\030\001 "
1501   "\003(\0132\025.aapt.pb.XmlNamespace\022\025\n\rnamespace_"
1502   "uri\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022(\n\tattribute\030\004 \003"
1503   "(\0132\025.aapt.pb.XmlAttribute\022\037\n\005child\030\005 \003(\013"
1504   "2\020.aapt.pb.XmlNode\"T\n\014XmlNamespace\022\016\n\006pr"
1505   "efix\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\'\n\006source\030\003 \001(\0132"
1506   "\027.aapt.pb.SourcePosition\"\246\001\n\014XmlAttribut"
1507   "e\022\025\n\rnamespace_uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r"
1508   "\n\005value\030\003 \001(\t\022\'\n\006source\030\004 \001(\0132\027.aapt.pb."
1509   "SourcePosition\022\023\n\013resource_id\030\005 \001(\r\022$\n\rc"
1510   "ompiled_item\030\006 \001(\0132\r.aapt.pb.Item\"\347\001\n\tMa"
1511   "croBody\022\022\n\nraw_string\030\001 \001(\t\022*\n\014style_str"
1512   "ing\030\002 \001(\0132\024.aapt.pb.StyleString\022\?\n\027untra"
1513   "nslatable_sections\030\003 \003(\0132\036.aapt.pb.Untra"
1514   "nslatableSection\0220\n\017namespace_stack\030\004 \003("
1515   "\0132\027.aapt.pb.NamespaceAlias\022\'\n\006source\030\005 \001"
1516   "(\0132\027.aapt.pb.SourcePosition\"J\n\016Namespace"
1517   "Alias\022\016\n\006prefix\030\001 \001(\t\022\024\n\014package_name\030\002 "
1518   "\001(\t\022\022\n\nis_private\030\003 \001(\010\"\202\001\n\013StyleString\022"
1519   "\013\n\003str\030\001 \001(\t\022(\n\005spans\030\002 \003(\0132\031.aapt.pb.St"
1520   "yleString.Span\032<\n\004Span\022\014\n\004name\030\001 \001(\t\022\023\n\013"
1521   "start_index\030\002 \001(\r\022\021\n\tend_index\030\003 \001(\r\"\?\n\025"
1522   "UntranslatableSection\022\023\n\013start_index\030\001 \001"
1523   "(\004\022\021\n\tend_index\030\002 \001(\004B\022\n\020com.android.aap"
1524   "tb\006proto3"
1525   ;
1526 static const ::_pbi::DescriptorTable* const descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_deps[1] = {
1527   &::descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fConfiguration_2eproto,
1528 };
1529 static ::_pbi::once_flag descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once;
1530 const ::_pbi::DescriptorTable descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto = {
1531     false, false, 6129, descriptor_table_protodef_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto,
1532     "frameworks/base/tools/aapt2/Resources.proto",
1533     &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once, descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_deps, 1, 51,
1534     schemas, file_default_instances, TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto::offsets,
1535     file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto, file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto,
1536     file_level_service_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto,
1537 };
descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter()1538 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter() {
1539   return &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1540 }
1541 
1542 // Force running AddDescriptors() at dynamic initialization time.
1543 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1544 namespace aapt {
1545 namespace pb {
Visibility_Level_descriptor()1546 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Visibility_Level_descriptor() {
1547   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1548   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[0];
1549 }
Visibility_Level_IsValid(int value)1550 bool Visibility_Level_IsValid(int value) {
1551   switch (value) {
1552     case 0:
1553     case 1:
1554     case 2:
1555       return true;
1556     default:
1557       return false;
1558   }
1559 }
1560 
1561 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1562 constexpr Visibility_Level Visibility::UNKNOWN;
1563 constexpr Visibility_Level Visibility::PRIVATE;
1564 constexpr Visibility_Level Visibility::PUBLIC;
1565 constexpr Visibility_Level Visibility::Level_MIN;
1566 constexpr Visibility_Level Visibility::Level_MAX;
1567 constexpr int Visibility::Level_ARRAYSIZE;
1568 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
OverlayableItem_Policy_descriptor()1569 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OverlayableItem_Policy_descriptor() {
1570   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1571   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[1];
1572 }
OverlayableItem_Policy_IsValid(int value)1573 bool OverlayableItem_Policy_IsValid(int value) {
1574   switch (value) {
1575     case 0:
1576     case 1:
1577     case 2:
1578     case 3:
1579     case 4:
1580     case 5:
1581     case 6:
1582     case 7:
1583     case 8:
1584     case 9:
1585       return true;
1586     default:
1587       return false;
1588   }
1589 }
1590 
1591 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1592 constexpr OverlayableItem_Policy OverlayableItem::NONE;
1593 constexpr OverlayableItem_Policy OverlayableItem::PUBLIC;
1594 constexpr OverlayableItem_Policy OverlayableItem::SYSTEM;
1595 constexpr OverlayableItem_Policy OverlayableItem::VENDOR;
1596 constexpr OverlayableItem_Policy OverlayableItem::PRODUCT;
1597 constexpr OverlayableItem_Policy OverlayableItem::SIGNATURE;
1598 constexpr OverlayableItem_Policy OverlayableItem::ODM;
1599 constexpr OverlayableItem_Policy OverlayableItem::OEM;
1600 constexpr OverlayableItem_Policy OverlayableItem::ACTOR;
1601 constexpr OverlayableItem_Policy OverlayableItem::CONFIG_SIGNATURE;
1602 constexpr OverlayableItem_Policy OverlayableItem::Policy_MIN;
1603 constexpr OverlayableItem_Policy OverlayableItem::Policy_MAX;
1604 constexpr int OverlayableItem::Policy_ARRAYSIZE;
1605 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
Reference_Type_descriptor()1606 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Reference_Type_descriptor() {
1607   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1608   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[2];
1609 }
Reference_Type_IsValid(int value)1610 bool Reference_Type_IsValid(int value) {
1611   switch (value) {
1612     case 0:
1613     case 1:
1614       return true;
1615     default:
1616       return false;
1617   }
1618 }
1619 
1620 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1621 constexpr Reference_Type Reference::REFERENCE;
1622 constexpr Reference_Type Reference::ATTRIBUTE;
1623 constexpr Reference_Type Reference::Type_MIN;
1624 constexpr Reference_Type Reference::Type_MAX;
1625 constexpr int Reference::Type_ARRAYSIZE;
1626 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
FileReference_Type_descriptor()1627 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileReference_Type_descriptor() {
1628   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1629   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[3];
1630 }
FileReference_Type_IsValid(int value)1631 bool FileReference_Type_IsValid(int value) {
1632   switch (value) {
1633     case 0:
1634     case 1:
1635     case 2:
1636     case 3:
1637       return true;
1638     default:
1639       return false;
1640   }
1641 }
1642 
1643 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1644 constexpr FileReference_Type FileReference::UNKNOWN;
1645 constexpr FileReference_Type FileReference::PNG;
1646 constexpr FileReference_Type FileReference::BINARY_XML;
1647 constexpr FileReference_Type FileReference::PROTO_XML;
1648 constexpr FileReference_Type FileReference::Type_MIN;
1649 constexpr FileReference_Type FileReference::Type_MAX;
1650 constexpr int FileReference::Type_ARRAYSIZE;
1651 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
Attribute_FormatFlags_descriptor()1652 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Attribute_FormatFlags_descriptor() {
1653   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1654   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[4];
1655 }
Attribute_FormatFlags_IsValid(int value)1656 bool Attribute_FormatFlags_IsValid(int value) {
1657   switch (value) {
1658     case 0:
1659     case 1:
1660     case 2:
1661     case 4:
1662     case 8:
1663     case 16:
1664     case 32:
1665     case 64:
1666     case 128:
1667     case 65535:
1668     case 65536:
1669     case 131072:
1670       return true;
1671     default:
1672       return false;
1673   }
1674 }
1675 
1676 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1677 constexpr Attribute_FormatFlags Attribute::NONE;
1678 constexpr Attribute_FormatFlags Attribute::ANY;
1679 constexpr Attribute_FormatFlags Attribute::REFERENCE;
1680 constexpr Attribute_FormatFlags Attribute::STRING;
1681 constexpr Attribute_FormatFlags Attribute::INTEGER;
1682 constexpr Attribute_FormatFlags Attribute::BOOLEAN;
1683 constexpr Attribute_FormatFlags Attribute::COLOR;
1684 constexpr Attribute_FormatFlags Attribute::FLOAT;
1685 constexpr Attribute_FormatFlags Attribute::DIMENSION;
1686 constexpr Attribute_FormatFlags Attribute::FRACTION;
1687 constexpr Attribute_FormatFlags Attribute::ENUM;
1688 constexpr Attribute_FormatFlags Attribute::FLAGS;
1689 constexpr Attribute_FormatFlags Attribute::FormatFlags_MIN;
1690 constexpr Attribute_FormatFlags Attribute::FormatFlags_MAX;
1691 constexpr int Attribute::FormatFlags_ARRAYSIZE;
1692 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
Plural_Arity_descriptor()1693 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Plural_Arity_descriptor() {
1694   ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto);
1695   return file_level_enum_descriptors_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[5];
1696 }
Plural_Arity_IsValid(int value)1697 bool Plural_Arity_IsValid(int value) {
1698   switch (value) {
1699     case 0:
1700     case 1:
1701     case 2:
1702     case 3:
1703     case 4:
1704     case 5:
1705       return true;
1706     default:
1707       return false;
1708   }
1709 }
1710 
1711 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1712 constexpr Plural_Arity Plural::ZERO;
1713 constexpr Plural_Arity Plural::ONE;
1714 constexpr Plural_Arity Plural::TWO;
1715 constexpr Plural_Arity Plural::FEW;
1716 constexpr Plural_Arity Plural::MANY;
1717 constexpr Plural_Arity Plural::OTHER;
1718 constexpr Plural_Arity Plural::Arity_MIN;
1719 constexpr Plural_Arity Plural::Arity_MAX;
1720 constexpr int Plural::Arity_ARRAYSIZE;
1721 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
1722 
1723 // ===================================================================
1724 
1725 class StringPool::_Internal {
1726  public:
1727 };
1728 
StringPool(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1729 StringPool::StringPool(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1730                          bool is_message_owned)
1731   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1732   SharedCtor(arena, is_message_owned);
1733   // @@protoc_insertion_point(arena_constructor:aapt.pb.StringPool)
1734 }
StringPool(const StringPool & from)1735 StringPool::StringPool(const StringPool& from)
1736   : ::PROTOBUF_NAMESPACE_ID::Message() {
1737   StringPool* const _this = this; (void)_this;
1738   new (&_impl_) Impl_{
1739       decltype(_impl_.data_){}
1740     , /*decltype(_impl_._cached_size_)*/{}};
1741 
1742   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1743   _impl_.data_.InitDefault();
1744   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1745     _impl_.data_.Set("", GetArenaForAllocation());
1746   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1747   if (!from._internal_data().empty()) {
1748     _this->_impl_.data_.Set(from._internal_data(),
1749       _this->GetArenaForAllocation());
1750   }
1751   // @@protoc_insertion_point(copy_constructor:aapt.pb.StringPool)
1752 }
1753 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1754 inline void StringPool::SharedCtor(
1755     ::_pb::Arena* arena, bool is_message_owned) {
1756   (void)arena;
1757   (void)is_message_owned;
1758   new (&_impl_) Impl_{
1759       decltype(_impl_.data_){}
1760     , /*decltype(_impl_._cached_size_)*/{}
1761   };
1762   _impl_.data_.InitDefault();
1763   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1764     _impl_.data_.Set("", GetArenaForAllocation());
1765   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1766 }
1767 
~StringPool()1768 StringPool::~StringPool() {
1769   // @@protoc_insertion_point(destructor:aapt.pb.StringPool)
1770   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1771   (void)arena;
1772     return;
1773   }
1774   SharedDtor();
1775 }
1776 
SharedDtor()1777 inline void StringPool::SharedDtor() {
1778   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1779   _impl_.data_.Destroy();
1780 }
1781 
SetCachedSize(int size) const1782 void StringPool::SetCachedSize(int size) const {
1783   _impl_._cached_size_.Set(size);
1784 }
1785 
Clear()1786 void StringPool::Clear() {
1787 // @@protoc_insertion_point(message_clear_start:aapt.pb.StringPool)
1788   ::uint32_t cached_has_bits = 0;
1789   // Prevent compiler warnings about cached_has_bits being unused
1790   (void) cached_has_bits;
1791 
1792   _impl_.data_.ClearToEmpty();
1793   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1794 }
1795 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1796 const char* StringPool::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1797 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1798   while (!ctx->Done(&ptr)) {
1799     ::uint32_t tag;
1800     ptr = ::_pbi::ReadTag(ptr, &tag);
1801     switch (tag >> 3) {
1802       // bytes data = 1;
1803       case 1:
1804         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1805           auto str = _internal_mutable_data();
1806           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1807           CHK_(ptr);
1808         } else {
1809           goto handle_unusual;
1810         }
1811         continue;
1812       default:
1813         goto handle_unusual;
1814     }  // switch
1815   handle_unusual:
1816     if ((tag == 0) || ((tag & 7) == 4)) {
1817       CHK_(ptr);
1818       ctx->SetLastTag(tag);
1819       goto message_done;
1820     }
1821     ptr = UnknownFieldParse(
1822         tag,
1823         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1824         ptr, ctx);
1825     CHK_(ptr != nullptr);
1826   }  // while
1827 message_done:
1828   return ptr;
1829 failure:
1830   ptr = nullptr;
1831   goto message_done;
1832 #undef CHK_
1833 }
1834 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1835 ::uint8_t* StringPool::_InternalSerialize(
1836     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1837   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StringPool)
1838   ::uint32_t cached_has_bits = 0;
1839   (void) cached_has_bits;
1840 
1841   // bytes data = 1;
1842   if (!this->_internal_data().empty()) {
1843     target = stream->WriteBytesMaybeAliased(
1844         1, this->_internal_data(), target);
1845   }
1846 
1847   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1848     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1849         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1850   }
1851   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StringPool)
1852   return target;
1853 }
1854 
ByteSizeLong() const1855 size_t StringPool::ByteSizeLong() const {
1856 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StringPool)
1857   size_t total_size = 0;
1858 
1859   ::uint32_t cached_has_bits = 0;
1860   // Prevent compiler warnings about cached_has_bits being unused
1861   (void) cached_has_bits;
1862 
1863   // bytes data = 1;
1864   if (!this->_internal_data().empty()) {
1865     total_size += 1 +
1866       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
1867         this->_internal_data());
1868   }
1869 
1870   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
1871 }
1872 
1873 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StringPool::_class_data_ = {
1874     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
1875     StringPool::MergeImpl
1876 };
GetClassData() const1877 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StringPool::GetClassData() const { return &_class_data_; }
1878 
1879 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)1880 void StringPool::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
1881   auto* const _this = static_cast<StringPool*>(&to_msg);
1882   auto& from = static_cast<const StringPool&>(from_msg);
1883   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StringPool)
1884   GOOGLE_DCHECK_NE(&from, _this);
1885   ::uint32_t cached_has_bits = 0;
1886   (void) cached_has_bits;
1887 
1888   if (!from._internal_data().empty()) {
1889     _this->_internal_set_data(from._internal_data());
1890   }
1891   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1892 }
1893 
CopyFrom(const StringPool & from)1894 void StringPool::CopyFrom(const StringPool& from) {
1895 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StringPool)
1896   if (&from == this) return;
1897   Clear();
1898   MergeFrom(from);
1899 }
1900 
IsInitialized() const1901 bool StringPool::IsInitialized() const {
1902   return true;
1903 }
1904 
InternalSwap(StringPool * other)1905 void StringPool::InternalSwap(StringPool* other) {
1906   using std::swap;
1907   auto* lhs_arena = GetArenaForAllocation();
1908   auto* rhs_arena = other->GetArenaForAllocation();
1909   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1910   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1911       &_impl_.data_, lhs_arena,
1912       &other->_impl_.data_, rhs_arena
1913   );
1914 }
1915 
GetMetadata() const1916 ::PROTOBUF_NAMESPACE_ID::Metadata StringPool::GetMetadata() const {
1917   return ::_pbi::AssignDescriptors(
1918       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
1919       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[0]);
1920 }
1921 
1922 // ===================================================================
1923 
1924 class SourcePosition::_Internal {
1925  public:
1926 };
1927 
SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1928 SourcePosition::SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1929                          bool is_message_owned)
1930   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
1931   SharedCtor(arena, is_message_owned);
1932   // @@protoc_insertion_point(arena_constructor:aapt.pb.SourcePosition)
1933 }
SourcePosition(const SourcePosition & from)1934 SourcePosition::SourcePosition(const SourcePosition& from)
1935   : ::PROTOBUF_NAMESPACE_ID::Message() {
1936   SourcePosition* const _this = this; (void)_this;
1937   new (&_impl_) Impl_{
1938       decltype(_impl_.line_number_){}
1939     , decltype(_impl_.column_number_){}
1940     , /*decltype(_impl_._cached_size_)*/{}};
1941 
1942   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1943   ::memcpy(&_impl_.line_number_, &from._impl_.line_number_,
1944     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.column_number_) -
1945     reinterpret_cast<char*>(&_impl_.line_number_)) + sizeof(_impl_.column_number_));
1946   // @@protoc_insertion_point(copy_constructor:aapt.pb.SourcePosition)
1947 }
1948 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1949 inline void SourcePosition::SharedCtor(
1950     ::_pb::Arena* arena, bool is_message_owned) {
1951   (void)arena;
1952   (void)is_message_owned;
1953   new (&_impl_) Impl_{
1954       decltype(_impl_.line_number_){0u}
1955     , decltype(_impl_.column_number_){0u}
1956     , /*decltype(_impl_._cached_size_)*/{}
1957   };
1958 }
1959 
~SourcePosition()1960 SourcePosition::~SourcePosition() {
1961   // @@protoc_insertion_point(destructor:aapt.pb.SourcePosition)
1962   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
1963   (void)arena;
1964     return;
1965   }
1966   SharedDtor();
1967 }
1968 
SharedDtor()1969 inline void SourcePosition::SharedDtor() {
1970   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1971 }
1972 
SetCachedSize(int size) const1973 void SourcePosition::SetCachedSize(int size) const {
1974   _impl_._cached_size_.Set(size);
1975 }
1976 
Clear()1977 void SourcePosition::Clear() {
1978 // @@protoc_insertion_point(message_clear_start:aapt.pb.SourcePosition)
1979   ::uint32_t cached_has_bits = 0;
1980   // Prevent compiler warnings about cached_has_bits being unused
1981   (void) cached_has_bits;
1982 
1983   ::memset(&_impl_.line_number_, 0, static_cast<size_t>(
1984       reinterpret_cast<char*>(&_impl_.column_number_) -
1985       reinterpret_cast<char*>(&_impl_.line_number_)) + sizeof(_impl_.column_number_));
1986   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1987 }
1988 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1989 const char* SourcePosition::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1990 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1991   while (!ctx->Done(&ptr)) {
1992     ::uint32_t tag;
1993     ptr = ::_pbi::ReadTag(ptr, &tag);
1994     switch (tag >> 3) {
1995       // uint32 line_number = 1;
1996       case 1:
1997         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
1998           _impl_.line_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1999           CHK_(ptr);
2000         } else {
2001           goto handle_unusual;
2002         }
2003         continue;
2004       // uint32 column_number = 2;
2005       case 2:
2006         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
2007           _impl_.column_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2008           CHK_(ptr);
2009         } else {
2010           goto handle_unusual;
2011         }
2012         continue;
2013       default:
2014         goto handle_unusual;
2015     }  // switch
2016   handle_unusual:
2017     if ((tag == 0) || ((tag & 7) == 4)) {
2018       CHK_(ptr);
2019       ctx->SetLastTag(tag);
2020       goto message_done;
2021     }
2022     ptr = UnknownFieldParse(
2023         tag,
2024         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2025         ptr, ctx);
2026     CHK_(ptr != nullptr);
2027   }  // while
2028 message_done:
2029   return ptr;
2030 failure:
2031   ptr = nullptr;
2032   goto message_done;
2033 #undef CHK_
2034 }
2035 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2036 ::uint8_t* SourcePosition::_InternalSerialize(
2037     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2038   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.SourcePosition)
2039   ::uint32_t cached_has_bits = 0;
2040   (void) cached_has_bits;
2041 
2042   // uint32 line_number = 1;
2043   if (this->_internal_line_number() != 0) {
2044     target = stream->EnsureSpace(target);
2045     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_line_number(), target);
2046   }
2047 
2048   // uint32 column_number = 2;
2049   if (this->_internal_column_number() != 0) {
2050     target = stream->EnsureSpace(target);
2051     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_column_number(), target);
2052   }
2053 
2054   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2055     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2056         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2057   }
2058   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.SourcePosition)
2059   return target;
2060 }
2061 
ByteSizeLong() const2062 size_t SourcePosition::ByteSizeLong() const {
2063 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.SourcePosition)
2064   size_t total_size = 0;
2065 
2066   ::uint32_t cached_has_bits = 0;
2067   // Prevent compiler warnings about cached_has_bits being unused
2068   (void) cached_has_bits;
2069 
2070   // uint32 line_number = 1;
2071   if (this->_internal_line_number() != 0) {
2072     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_line_number());
2073   }
2074 
2075   // uint32 column_number = 2;
2076   if (this->_internal_column_number() != 0) {
2077     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_column_number());
2078   }
2079 
2080   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2081 }
2082 
2083 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SourcePosition::_class_data_ = {
2084     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2085     SourcePosition::MergeImpl
2086 };
GetClassData() const2087 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SourcePosition::GetClassData() const { return &_class_data_; }
2088 
2089 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2090 void SourcePosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2091   auto* const _this = static_cast<SourcePosition*>(&to_msg);
2092   auto& from = static_cast<const SourcePosition&>(from_msg);
2093   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.SourcePosition)
2094   GOOGLE_DCHECK_NE(&from, _this);
2095   ::uint32_t cached_has_bits = 0;
2096   (void) cached_has_bits;
2097 
2098   if (from._internal_line_number() != 0) {
2099     _this->_internal_set_line_number(from._internal_line_number());
2100   }
2101   if (from._internal_column_number() != 0) {
2102     _this->_internal_set_column_number(from._internal_column_number());
2103   }
2104   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2105 }
2106 
CopyFrom(const SourcePosition & from)2107 void SourcePosition::CopyFrom(const SourcePosition& from) {
2108 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.SourcePosition)
2109   if (&from == this) return;
2110   Clear();
2111   MergeFrom(from);
2112 }
2113 
IsInitialized() const2114 bool SourcePosition::IsInitialized() const {
2115   return true;
2116 }
2117 
InternalSwap(SourcePosition * other)2118 void SourcePosition::InternalSwap(SourcePosition* other) {
2119   using std::swap;
2120   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2121   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2122       PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.column_number_)
2123       + sizeof(SourcePosition::_impl_.column_number_)  // NOLINT
2124       - PROTOBUF_FIELD_OFFSET(SourcePosition, _impl_.line_number_)>(
2125           reinterpret_cast<char*>(&_impl_.line_number_),
2126           reinterpret_cast<char*>(&other->_impl_.line_number_));
2127 }
2128 
GetMetadata() const2129 ::PROTOBUF_NAMESPACE_ID::Metadata SourcePosition::GetMetadata() const {
2130   return ::_pbi::AssignDescriptors(
2131       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
2132       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[1]);
2133 }
2134 
2135 // ===================================================================
2136 
2137 class Source::_Internal {
2138  public:
2139   static const ::aapt::pb::SourcePosition& position(const Source* msg);
2140 };
2141 
2142 const ::aapt::pb::SourcePosition&
position(const Source * msg)2143 Source::_Internal::position(const Source* msg) {
2144   return *msg->_impl_.position_;
2145 }
Source(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2146 Source::Source(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2147                          bool is_message_owned)
2148   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2149   SharedCtor(arena, is_message_owned);
2150   // @@protoc_insertion_point(arena_constructor:aapt.pb.Source)
2151 }
Source(const Source & from)2152 Source::Source(const Source& from)
2153   : ::PROTOBUF_NAMESPACE_ID::Message() {
2154   Source* const _this = this; (void)_this;
2155   new (&_impl_) Impl_{
2156       decltype(_impl_.position_){nullptr}
2157     , decltype(_impl_.path_idx_){}
2158     , /*decltype(_impl_._cached_size_)*/{}};
2159 
2160   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2161   if (from._internal_has_position()) {
2162     _this->_impl_.position_ = new ::aapt::pb::SourcePosition(*from._impl_.position_);
2163   }
2164   _this->_impl_.path_idx_ = from._impl_.path_idx_;
2165   // @@protoc_insertion_point(copy_constructor:aapt.pb.Source)
2166 }
2167 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2168 inline void Source::SharedCtor(
2169     ::_pb::Arena* arena, bool is_message_owned) {
2170   (void)arena;
2171   (void)is_message_owned;
2172   new (&_impl_) Impl_{
2173       decltype(_impl_.position_){nullptr}
2174     , decltype(_impl_.path_idx_){0u}
2175     , /*decltype(_impl_._cached_size_)*/{}
2176   };
2177 }
2178 
~Source()2179 Source::~Source() {
2180   // @@protoc_insertion_point(destructor:aapt.pb.Source)
2181   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2182   (void)arena;
2183     return;
2184   }
2185   SharedDtor();
2186 }
2187 
SharedDtor()2188 inline void Source::SharedDtor() {
2189   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2190   if (this != internal_default_instance()) delete _impl_.position_;
2191 }
2192 
SetCachedSize(int size) const2193 void Source::SetCachedSize(int size) const {
2194   _impl_._cached_size_.Set(size);
2195 }
2196 
Clear()2197 void Source::Clear() {
2198 // @@protoc_insertion_point(message_clear_start:aapt.pb.Source)
2199   ::uint32_t cached_has_bits = 0;
2200   // Prevent compiler warnings about cached_has_bits being unused
2201   (void) cached_has_bits;
2202 
2203   if (GetArenaForAllocation() == nullptr && _impl_.position_ != nullptr) {
2204     delete _impl_.position_;
2205   }
2206   _impl_.position_ = nullptr;
2207   _impl_.path_idx_ = 0u;
2208   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2209 }
2210 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2211 const char* Source::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2212 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2213   while (!ctx->Done(&ptr)) {
2214     ::uint32_t tag;
2215     ptr = ::_pbi::ReadTag(ptr, &tag);
2216     switch (tag >> 3) {
2217       // uint32 path_idx = 1;
2218       case 1:
2219         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
2220           _impl_.path_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
2221           CHK_(ptr);
2222         } else {
2223           goto handle_unusual;
2224         }
2225         continue;
2226       // .aapt.pb.SourcePosition position = 2;
2227       case 2:
2228         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2229           ptr = ctx->ParseMessage(_internal_mutable_position(), ptr);
2230           CHK_(ptr);
2231         } else {
2232           goto handle_unusual;
2233         }
2234         continue;
2235       default:
2236         goto handle_unusual;
2237     }  // switch
2238   handle_unusual:
2239     if ((tag == 0) || ((tag & 7) == 4)) {
2240       CHK_(ptr);
2241       ctx->SetLastTag(tag);
2242       goto message_done;
2243     }
2244     ptr = UnknownFieldParse(
2245         tag,
2246         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2247         ptr, ctx);
2248     CHK_(ptr != nullptr);
2249   }  // while
2250 message_done:
2251   return ptr;
2252 failure:
2253   ptr = nullptr;
2254   goto message_done;
2255 #undef CHK_
2256 }
2257 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2258 ::uint8_t* Source::_InternalSerialize(
2259     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2260   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Source)
2261   ::uint32_t cached_has_bits = 0;
2262   (void) cached_has_bits;
2263 
2264   // uint32 path_idx = 1;
2265   if (this->_internal_path_idx() != 0) {
2266     target = stream->EnsureSpace(target);
2267     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_path_idx(), target);
2268   }
2269 
2270   // .aapt.pb.SourcePosition position = 2;
2271   if (this->_internal_has_position()) {
2272     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2273       InternalWriteMessage(2, _Internal::position(this),
2274         _Internal::position(this).GetCachedSize(), target, stream);
2275   }
2276 
2277   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2278     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2279         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2280   }
2281   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Source)
2282   return target;
2283 }
2284 
ByteSizeLong() const2285 size_t Source::ByteSizeLong() const {
2286 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Source)
2287   size_t total_size = 0;
2288 
2289   ::uint32_t cached_has_bits = 0;
2290   // Prevent compiler warnings about cached_has_bits being unused
2291   (void) cached_has_bits;
2292 
2293   // .aapt.pb.SourcePosition position = 2;
2294   if (this->_internal_has_position()) {
2295     total_size += 1 +
2296       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2297         *_impl_.position_);
2298   }
2299 
2300   // uint32 path_idx = 1;
2301   if (this->_internal_path_idx() != 0) {
2302     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_path_idx());
2303   }
2304 
2305   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2306 }
2307 
2308 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Source::_class_data_ = {
2309     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2310     Source::MergeImpl
2311 };
GetClassData() const2312 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Source::GetClassData() const { return &_class_data_; }
2313 
2314 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2315 void Source::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2316   auto* const _this = static_cast<Source*>(&to_msg);
2317   auto& from = static_cast<const Source&>(from_msg);
2318   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Source)
2319   GOOGLE_DCHECK_NE(&from, _this);
2320   ::uint32_t cached_has_bits = 0;
2321   (void) cached_has_bits;
2322 
2323   if (from._internal_has_position()) {
2324     _this->_internal_mutable_position()->::aapt::pb::SourcePosition::MergeFrom(
2325         from._internal_position());
2326   }
2327   if (from._internal_path_idx() != 0) {
2328     _this->_internal_set_path_idx(from._internal_path_idx());
2329   }
2330   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2331 }
2332 
CopyFrom(const Source & from)2333 void Source::CopyFrom(const Source& from) {
2334 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Source)
2335   if (&from == this) return;
2336   Clear();
2337   MergeFrom(from);
2338 }
2339 
IsInitialized() const2340 bool Source::IsInitialized() const {
2341   return true;
2342 }
2343 
InternalSwap(Source * other)2344 void Source::InternalSwap(Source* other) {
2345   using std::swap;
2346   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2347   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
2348       PROTOBUF_FIELD_OFFSET(Source, _impl_.path_idx_)
2349       + sizeof(Source::_impl_.path_idx_)  // NOLINT
2350       - PROTOBUF_FIELD_OFFSET(Source, _impl_.position_)>(
2351           reinterpret_cast<char*>(&_impl_.position_),
2352           reinterpret_cast<char*>(&other->_impl_.position_));
2353 }
2354 
GetMetadata() const2355 ::PROTOBUF_NAMESPACE_ID::Metadata Source::GetMetadata() const {
2356   return ::_pbi::AssignDescriptors(
2357       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
2358       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[2]);
2359 }
2360 
2361 // ===================================================================
2362 
2363 class ToolFingerprint::_Internal {
2364  public:
2365 };
2366 
ToolFingerprint(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2367 ToolFingerprint::ToolFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2368                          bool is_message_owned)
2369   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2370   SharedCtor(arena, is_message_owned);
2371   // @@protoc_insertion_point(arena_constructor:aapt.pb.ToolFingerprint)
2372 }
ToolFingerprint(const ToolFingerprint & from)2373 ToolFingerprint::ToolFingerprint(const ToolFingerprint& from)
2374   : ::PROTOBUF_NAMESPACE_ID::Message() {
2375   ToolFingerprint* const _this = this; (void)_this;
2376   new (&_impl_) Impl_{
2377       decltype(_impl_.tool_){}
2378     , decltype(_impl_.version_){}
2379     , /*decltype(_impl_._cached_size_)*/{}};
2380 
2381   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2382   _impl_.tool_.InitDefault();
2383   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2384     _impl_.tool_.Set("", GetArenaForAllocation());
2385   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2386   if (!from._internal_tool().empty()) {
2387     _this->_impl_.tool_.Set(from._internal_tool(),
2388       _this->GetArenaForAllocation());
2389   }
2390   _impl_.version_.InitDefault();
2391   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2392     _impl_.version_.Set("", GetArenaForAllocation());
2393   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2394   if (!from._internal_version().empty()) {
2395     _this->_impl_.version_.Set(from._internal_version(),
2396       _this->GetArenaForAllocation());
2397   }
2398   // @@protoc_insertion_point(copy_constructor:aapt.pb.ToolFingerprint)
2399 }
2400 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2401 inline void ToolFingerprint::SharedCtor(
2402     ::_pb::Arena* arena, bool is_message_owned) {
2403   (void)arena;
2404   (void)is_message_owned;
2405   new (&_impl_) Impl_{
2406       decltype(_impl_.tool_){}
2407     , decltype(_impl_.version_){}
2408     , /*decltype(_impl_._cached_size_)*/{}
2409   };
2410   _impl_.tool_.InitDefault();
2411   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2412     _impl_.tool_.Set("", GetArenaForAllocation());
2413   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2414   _impl_.version_.InitDefault();
2415   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2416     _impl_.version_.Set("", GetArenaForAllocation());
2417   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2418 }
2419 
~ToolFingerprint()2420 ToolFingerprint::~ToolFingerprint() {
2421   // @@protoc_insertion_point(destructor:aapt.pb.ToolFingerprint)
2422   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2423   (void)arena;
2424     return;
2425   }
2426   SharedDtor();
2427 }
2428 
SharedDtor()2429 inline void ToolFingerprint::SharedDtor() {
2430   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2431   _impl_.tool_.Destroy();
2432   _impl_.version_.Destroy();
2433 }
2434 
SetCachedSize(int size) const2435 void ToolFingerprint::SetCachedSize(int size) const {
2436   _impl_._cached_size_.Set(size);
2437 }
2438 
Clear()2439 void ToolFingerprint::Clear() {
2440 // @@protoc_insertion_point(message_clear_start:aapt.pb.ToolFingerprint)
2441   ::uint32_t cached_has_bits = 0;
2442   // Prevent compiler warnings about cached_has_bits being unused
2443   (void) cached_has_bits;
2444 
2445   _impl_.tool_.ClearToEmpty();
2446   _impl_.version_.ClearToEmpty();
2447   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2448 }
2449 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2450 const char* ToolFingerprint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2451 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2452   while (!ctx->Done(&ptr)) {
2453     ::uint32_t tag;
2454     ptr = ::_pbi::ReadTag(ptr, &tag);
2455     switch (tag >> 3) {
2456       // string tool = 1;
2457       case 1:
2458         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2459           auto str = _internal_mutable_tool();
2460           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2461           CHK_(ptr);
2462           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.ToolFingerprint.tool"));
2463         } else {
2464           goto handle_unusual;
2465         }
2466         continue;
2467       // string version = 2;
2468       case 2:
2469         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2470           auto str = _internal_mutable_version();
2471           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2472           CHK_(ptr);
2473           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.ToolFingerprint.version"));
2474         } else {
2475           goto handle_unusual;
2476         }
2477         continue;
2478       default:
2479         goto handle_unusual;
2480     }  // switch
2481   handle_unusual:
2482     if ((tag == 0) || ((tag & 7) == 4)) {
2483       CHK_(ptr);
2484       ctx->SetLastTag(tag);
2485       goto message_done;
2486     }
2487     ptr = UnknownFieldParse(
2488         tag,
2489         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2490         ptr, ctx);
2491     CHK_(ptr != nullptr);
2492   }  // while
2493 message_done:
2494   return ptr;
2495 failure:
2496   ptr = nullptr;
2497   goto message_done;
2498 #undef CHK_
2499 }
2500 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2501 ::uint8_t* ToolFingerprint::_InternalSerialize(
2502     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2503   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ToolFingerprint)
2504   ::uint32_t cached_has_bits = 0;
2505   (void) cached_has_bits;
2506 
2507   // string tool = 1;
2508   if (!this->_internal_tool().empty()) {
2509     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2510       this->_internal_tool().data(), static_cast<int>(this->_internal_tool().length()),
2511       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2512       "aapt.pb.ToolFingerprint.tool");
2513     target = stream->WriteStringMaybeAliased(
2514         1, this->_internal_tool(), target);
2515   }
2516 
2517   // string version = 2;
2518   if (!this->_internal_version().empty()) {
2519     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2520       this->_internal_version().data(), static_cast<int>(this->_internal_version().length()),
2521       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2522       "aapt.pb.ToolFingerprint.version");
2523     target = stream->WriteStringMaybeAliased(
2524         2, this->_internal_version(), target);
2525   }
2526 
2527   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2528     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2529         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2530   }
2531   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ToolFingerprint)
2532   return target;
2533 }
2534 
ByteSizeLong() const2535 size_t ToolFingerprint::ByteSizeLong() const {
2536 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ToolFingerprint)
2537   size_t total_size = 0;
2538 
2539   ::uint32_t cached_has_bits = 0;
2540   // Prevent compiler warnings about cached_has_bits being unused
2541   (void) cached_has_bits;
2542 
2543   // string tool = 1;
2544   if (!this->_internal_tool().empty()) {
2545     total_size += 1 +
2546       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2547         this->_internal_tool());
2548   }
2549 
2550   // string version = 2;
2551   if (!this->_internal_version().empty()) {
2552     total_size += 1 +
2553       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2554         this->_internal_version());
2555   }
2556 
2557   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2558 }
2559 
2560 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ToolFingerprint::_class_data_ = {
2561     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2562     ToolFingerprint::MergeImpl
2563 };
GetClassData() const2564 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ToolFingerprint::GetClassData() const { return &_class_data_; }
2565 
2566 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2567 void ToolFingerprint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2568   auto* const _this = static_cast<ToolFingerprint*>(&to_msg);
2569   auto& from = static_cast<const ToolFingerprint&>(from_msg);
2570   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ToolFingerprint)
2571   GOOGLE_DCHECK_NE(&from, _this);
2572   ::uint32_t cached_has_bits = 0;
2573   (void) cached_has_bits;
2574 
2575   if (!from._internal_tool().empty()) {
2576     _this->_internal_set_tool(from._internal_tool());
2577   }
2578   if (!from._internal_version().empty()) {
2579     _this->_internal_set_version(from._internal_version());
2580   }
2581   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2582 }
2583 
CopyFrom(const ToolFingerprint & from)2584 void ToolFingerprint::CopyFrom(const ToolFingerprint& from) {
2585 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ToolFingerprint)
2586   if (&from == this) return;
2587   Clear();
2588   MergeFrom(from);
2589 }
2590 
IsInitialized() const2591 bool ToolFingerprint::IsInitialized() const {
2592   return true;
2593 }
2594 
InternalSwap(ToolFingerprint * other)2595 void ToolFingerprint::InternalSwap(ToolFingerprint* other) {
2596   using std::swap;
2597   auto* lhs_arena = GetArenaForAllocation();
2598   auto* rhs_arena = other->GetArenaForAllocation();
2599   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2600   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2601       &_impl_.tool_, lhs_arena,
2602       &other->_impl_.tool_, rhs_arena
2603   );
2604   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2605       &_impl_.version_, lhs_arena,
2606       &other->_impl_.version_, rhs_arena
2607   );
2608 }
2609 
GetMetadata() const2610 ::PROTOBUF_NAMESPACE_ID::Metadata ToolFingerprint::GetMetadata() const {
2611   return ::_pbi::AssignDescriptors(
2612       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
2613       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[3]);
2614 }
2615 
2616 // ===================================================================
2617 
2618 class DynamicRefTable::_Internal {
2619  public:
2620   static const ::aapt::pb::PackageId& package_id(const DynamicRefTable* msg);
2621 };
2622 
2623 const ::aapt::pb::PackageId&
package_id(const DynamicRefTable * msg)2624 DynamicRefTable::_Internal::package_id(const DynamicRefTable* msg) {
2625   return *msg->_impl_.package_id_;
2626 }
DynamicRefTable(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2627 DynamicRefTable::DynamicRefTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2628                          bool is_message_owned)
2629   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2630   SharedCtor(arena, is_message_owned);
2631   // @@protoc_insertion_point(arena_constructor:aapt.pb.DynamicRefTable)
2632 }
DynamicRefTable(const DynamicRefTable & from)2633 DynamicRefTable::DynamicRefTable(const DynamicRefTable& from)
2634   : ::PROTOBUF_NAMESPACE_ID::Message() {
2635   DynamicRefTable* const _this = this; (void)_this;
2636   new (&_impl_) Impl_{
2637       decltype(_impl_.package_name_){}
2638     , decltype(_impl_.package_id_){nullptr}
2639     , /*decltype(_impl_._cached_size_)*/{}};
2640 
2641   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2642   _impl_.package_name_.InitDefault();
2643   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2644     _impl_.package_name_.Set("", GetArenaForAllocation());
2645   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2646   if (!from._internal_package_name().empty()) {
2647     _this->_impl_.package_name_.Set(from._internal_package_name(),
2648       _this->GetArenaForAllocation());
2649   }
2650   if (from._internal_has_package_id()) {
2651     _this->_impl_.package_id_ = new ::aapt::pb::PackageId(*from._impl_.package_id_);
2652   }
2653   // @@protoc_insertion_point(copy_constructor:aapt.pb.DynamicRefTable)
2654 }
2655 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2656 inline void DynamicRefTable::SharedCtor(
2657     ::_pb::Arena* arena, bool is_message_owned) {
2658   (void)arena;
2659   (void)is_message_owned;
2660   new (&_impl_) Impl_{
2661       decltype(_impl_.package_name_){}
2662     , decltype(_impl_.package_id_){nullptr}
2663     , /*decltype(_impl_._cached_size_)*/{}
2664   };
2665   _impl_.package_name_.InitDefault();
2666   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2667     _impl_.package_name_.Set("", GetArenaForAllocation());
2668   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
2669 }
2670 
~DynamicRefTable()2671 DynamicRefTable::~DynamicRefTable() {
2672   // @@protoc_insertion_point(destructor:aapt.pb.DynamicRefTable)
2673   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2674   (void)arena;
2675     return;
2676   }
2677   SharedDtor();
2678 }
2679 
SharedDtor()2680 inline void DynamicRefTable::SharedDtor() {
2681   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2682   _impl_.package_name_.Destroy();
2683   if (this != internal_default_instance()) delete _impl_.package_id_;
2684 }
2685 
SetCachedSize(int size) const2686 void DynamicRefTable::SetCachedSize(int size) const {
2687   _impl_._cached_size_.Set(size);
2688 }
2689 
Clear()2690 void DynamicRefTable::Clear() {
2691 // @@protoc_insertion_point(message_clear_start:aapt.pb.DynamicRefTable)
2692   ::uint32_t cached_has_bits = 0;
2693   // Prevent compiler warnings about cached_has_bits being unused
2694   (void) cached_has_bits;
2695 
2696   _impl_.package_name_.ClearToEmpty();
2697   if (GetArenaForAllocation() == nullptr && _impl_.package_id_ != nullptr) {
2698     delete _impl_.package_id_;
2699   }
2700   _impl_.package_id_ = nullptr;
2701   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2702 }
2703 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2704 const char* DynamicRefTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2705 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2706   while (!ctx->Done(&ptr)) {
2707     ::uint32_t tag;
2708     ptr = ::_pbi::ReadTag(ptr, &tag);
2709     switch (tag >> 3) {
2710       // .aapt.pb.PackageId package_id = 1;
2711       case 1:
2712         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2713           ptr = ctx->ParseMessage(_internal_mutable_package_id(), ptr);
2714           CHK_(ptr);
2715         } else {
2716           goto handle_unusual;
2717         }
2718         continue;
2719       // string package_name = 2;
2720       case 2:
2721         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2722           auto str = _internal_mutable_package_name();
2723           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
2724           CHK_(ptr);
2725           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.DynamicRefTable.package_name"));
2726         } else {
2727           goto handle_unusual;
2728         }
2729         continue;
2730       default:
2731         goto handle_unusual;
2732     }  // switch
2733   handle_unusual:
2734     if ((tag == 0) || ((tag & 7) == 4)) {
2735       CHK_(ptr);
2736       ctx->SetLastTag(tag);
2737       goto message_done;
2738     }
2739     ptr = UnknownFieldParse(
2740         tag,
2741         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
2742         ptr, ctx);
2743     CHK_(ptr != nullptr);
2744   }  // while
2745 message_done:
2746   return ptr;
2747 failure:
2748   ptr = nullptr;
2749   goto message_done;
2750 #undef CHK_
2751 }
2752 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2753 ::uint8_t* DynamicRefTable::_InternalSerialize(
2754     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2755   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.DynamicRefTable)
2756   ::uint32_t cached_has_bits = 0;
2757   (void) cached_has_bits;
2758 
2759   // .aapt.pb.PackageId package_id = 1;
2760   if (this->_internal_has_package_id()) {
2761     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2762       InternalWriteMessage(1, _Internal::package_id(this),
2763         _Internal::package_id(this).GetCachedSize(), target, stream);
2764   }
2765 
2766   // string package_name = 2;
2767   if (!this->_internal_package_name().empty()) {
2768     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2769       this->_internal_package_name().data(), static_cast<int>(this->_internal_package_name().length()),
2770       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2771       "aapt.pb.DynamicRefTable.package_name");
2772     target = stream->WriteStringMaybeAliased(
2773         2, this->_internal_package_name(), target);
2774   }
2775 
2776   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2777     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
2778         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
2779   }
2780   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.DynamicRefTable)
2781   return target;
2782 }
2783 
ByteSizeLong() const2784 size_t DynamicRefTable::ByteSizeLong() const {
2785 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.DynamicRefTable)
2786   size_t total_size = 0;
2787 
2788   ::uint32_t cached_has_bits = 0;
2789   // Prevent compiler warnings about cached_has_bits being unused
2790   (void) cached_has_bits;
2791 
2792   // string package_name = 2;
2793   if (!this->_internal_package_name().empty()) {
2794     total_size += 1 +
2795       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2796         this->_internal_package_name());
2797   }
2798 
2799   // .aapt.pb.PackageId package_id = 1;
2800   if (this->_internal_has_package_id()) {
2801     total_size += 1 +
2802       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2803         *_impl_.package_id_);
2804   }
2805 
2806   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
2807 }
2808 
2809 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DynamicRefTable::_class_data_ = {
2810     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
2811     DynamicRefTable::MergeImpl
2812 };
GetClassData() const2813 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DynamicRefTable::GetClassData() const { return &_class_data_; }
2814 
2815 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)2816 void DynamicRefTable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
2817   auto* const _this = static_cast<DynamicRefTable*>(&to_msg);
2818   auto& from = static_cast<const DynamicRefTable&>(from_msg);
2819   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.DynamicRefTable)
2820   GOOGLE_DCHECK_NE(&from, _this);
2821   ::uint32_t cached_has_bits = 0;
2822   (void) cached_has_bits;
2823 
2824   if (!from._internal_package_name().empty()) {
2825     _this->_internal_set_package_name(from._internal_package_name());
2826   }
2827   if (from._internal_has_package_id()) {
2828     _this->_internal_mutable_package_id()->::aapt::pb::PackageId::MergeFrom(
2829         from._internal_package_id());
2830   }
2831   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2832 }
2833 
CopyFrom(const DynamicRefTable & from)2834 void DynamicRefTable::CopyFrom(const DynamicRefTable& from) {
2835 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.DynamicRefTable)
2836   if (&from == this) return;
2837   Clear();
2838   MergeFrom(from);
2839 }
2840 
IsInitialized() const2841 bool DynamicRefTable::IsInitialized() const {
2842   return true;
2843 }
2844 
InternalSwap(DynamicRefTable * other)2845 void DynamicRefTable::InternalSwap(DynamicRefTable* other) {
2846   using std::swap;
2847   auto* lhs_arena = GetArenaForAllocation();
2848   auto* rhs_arena = other->GetArenaForAllocation();
2849   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
2850   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
2851       &_impl_.package_name_, lhs_arena,
2852       &other->_impl_.package_name_, rhs_arena
2853   );
2854   swap(_impl_.package_id_, other->_impl_.package_id_);
2855 }
2856 
GetMetadata() const2857 ::PROTOBUF_NAMESPACE_ID::Metadata DynamicRefTable::GetMetadata() const {
2858   return ::_pbi::AssignDescriptors(
2859       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
2860       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[4]);
2861 }
2862 
2863 // ===================================================================
2864 
2865 class ResourceTable::_Internal {
2866  public:
2867   static const ::aapt::pb::StringPool& source_pool(const ResourceTable* msg);
2868 };
2869 
2870 const ::aapt::pb::StringPool&
source_pool(const ResourceTable * msg)2871 ResourceTable::_Internal::source_pool(const ResourceTable* msg) {
2872   return *msg->_impl_.source_pool_;
2873 }
ResourceTable(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)2874 ResourceTable::ResourceTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2875                          bool is_message_owned)
2876   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
2877   SharedCtor(arena, is_message_owned);
2878   // @@protoc_insertion_point(arena_constructor:aapt.pb.ResourceTable)
2879 }
ResourceTable(const ResourceTable & from)2880 ResourceTable::ResourceTable(const ResourceTable& from)
2881   : ::PROTOBUF_NAMESPACE_ID::Message() {
2882   ResourceTable* const _this = this; (void)_this;
2883   new (&_impl_) Impl_{
2884       decltype(_impl_.package_){from._impl_.package_}
2885     , decltype(_impl_.overlayable_){from._impl_.overlayable_}
2886     , decltype(_impl_.tool_fingerprint_){from._impl_.tool_fingerprint_}
2887     , decltype(_impl_.dynamic_ref_table_){from._impl_.dynamic_ref_table_}
2888     , decltype(_impl_.source_pool_){nullptr}
2889     , /*decltype(_impl_._cached_size_)*/{}};
2890 
2891   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
2892   if (from._internal_has_source_pool()) {
2893     _this->_impl_.source_pool_ = new ::aapt::pb::StringPool(*from._impl_.source_pool_);
2894   }
2895   // @@protoc_insertion_point(copy_constructor:aapt.pb.ResourceTable)
2896 }
2897 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)2898 inline void ResourceTable::SharedCtor(
2899     ::_pb::Arena* arena, bool is_message_owned) {
2900   (void)arena;
2901   (void)is_message_owned;
2902   new (&_impl_) Impl_{
2903       decltype(_impl_.package_){arena}
2904     , decltype(_impl_.overlayable_){arena}
2905     , decltype(_impl_.tool_fingerprint_){arena}
2906     , decltype(_impl_.dynamic_ref_table_){arena}
2907     , decltype(_impl_.source_pool_){nullptr}
2908     , /*decltype(_impl_._cached_size_)*/{}
2909   };
2910 }
2911 
~ResourceTable()2912 ResourceTable::~ResourceTable() {
2913   // @@protoc_insertion_point(destructor:aapt.pb.ResourceTable)
2914   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
2915   (void)arena;
2916     return;
2917   }
2918   SharedDtor();
2919 }
2920 
SharedDtor()2921 inline void ResourceTable::SharedDtor() {
2922   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
2923   _impl_.package_.~RepeatedPtrField();
2924   _impl_.overlayable_.~RepeatedPtrField();
2925   _impl_.tool_fingerprint_.~RepeatedPtrField();
2926   _impl_.dynamic_ref_table_.~RepeatedPtrField();
2927   if (this != internal_default_instance()) delete _impl_.source_pool_;
2928 }
2929 
SetCachedSize(int size) const2930 void ResourceTable::SetCachedSize(int size) const {
2931   _impl_._cached_size_.Set(size);
2932 }
2933 
Clear()2934 void ResourceTable::Clear() {
2935 // @@protoc_insertion_point(message_clear_start:aapt.pb.ResourceTable)
2936   ::uint32_t cached_has_bits = 0;
2937   // Prevent compiler warnings about cached_has_bits being unused
2938   (void) cached_has_bits;
2939 
2940   _impl_.package_.Clear();
2941   _impl_.overlayable_.Clear();
2942   _impl_.tool_fingerprint_.Clear();
2943   _impl_.dynamic_ref_table_.Clear();
2944   if (GetArenaForAllocation() == nullptr && _impl_.source_pool_ != nullptr) {
2945     delete _impl_.source_pool_;
2946   }
2947   _impl_.source_pool_ = nullptr;
2948   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
2949 }
2950 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)2951 const char* ResourceTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
2952 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2953   while (!ctx->Done(&ptr)) {
2954     ::uint32_t tag;
2955     ptr = ::_pbi::ReadTag(ptr, &tag);
2956     switch (tag >> 3) {
2957       // .aapt.pb.StringPool source_pool = 1;
2958       case 1:
2959         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
2960           ptr = ctx->ParseMessage(_internal_mutable_source_pool(), ptr);
2961           CHK_(ptr);
2962         } else {
2963           goto handle_unusual;
2964         }
2965         continue;
2966       // repeated .aapt.pb.Package package = 2;
2967       case 2:
2968         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
2969           ptr -= 1;
2970           do {
2971             ptr += 1;
2972             ptr = ctx->ParseMessage(_internal_add_package(), ptr);
2973             CHK_(ptr);
2974             if (!ctx->DataAvailable(ptr)) break;
2975           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
2976         } else {
2977           goto handle_unusual;
2978         }
2979         continue;
2980       // repeated .aapt.pb.Overlayable overlayable = 3;
2981       case 3:
2982         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
2983           ptr -= 1;
2984           do {
2985             ptr += 1;
2986             ptr = ctx->ParseMessage(_internal_add_overlayable(), ptr);
2987             CHK_(ptr);
2988             if (!ctx->DataAvailable(ptr)) break;
2989           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
2990         } else {
2991           goto handle_unusual;
2992         }
2993         continue;
2994       // repeated .aapt.pb.ToolFingerprint tool_fingerprint = 4;
2995       case 4:
2996         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
2997           ptr -= 1;
2998           do {
2999             ptr += 1;
3000             ptr = ctx->ParseMessage(_internal_add_tool_fingerprint(), ptr);
3001             CHK_(ptr);
3002             if (!ctx->DataAvailable(ptr)) break;
3003           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
3004         } else {
3005           goto handle_unusual;
3006         }
3007         continue;
3008       // repeated .aapt.pb.DynamicRefTable dynamic_ref_table = 5;
3009       case 5:
3010         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
3011           ptr -= 1;
3012           do {
3013             ptr += 1;
3014             ptr = ctx->ParseMessage(_internal_add_dynamic_ref_table(), ptr);
3015             CHK_(ptr);
3016             if (!ctx->DataAvailable(ptr)) break;
3017           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
3018         } else {
3019           goto handle_unusual;
3020         }
3021         continue;
3022       default:
3023         goto handle_unusual;
3024     }  // switch
3025   handle_unusual:
3026     if ((tag == 0) || ((tag & 7) == 4)) {
3027       CHK_(ptr);
3028       ctx->SetLastTag(tag);
3029       goto message_done;
3030     }
3031     ptr = UnknownFieldParse(
3032         tag,
3033         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3034         ptr, ctx);
3035     CHK_(ptr != nullptr);
3036   }  // while
3037 message_done:
3038   return ptr;
3039 failure:
3040   ptr = nullptr;
3041   goto message_done;
3042 #undef CHK_
3043 }
3044 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3045 ::uint8_t* ResourceTable::_InternalSerialize(
3046     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3047   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ResourceTable)
3048   ::uint32_t cached_has_bits = 0;
3049   (void) cached_has_bits;
3050 
3051   // .aapt.pb.StringPool source_pool = 1;
3052   if (this->_internal_has_source_pool()) {
3053     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3054       InternalWriteMessage(1, _Internal::source_pool(this),
3055         _Internal::source_pool(this).GetCachedSize(), target, stream);
3056   }
3057 
3058   // repeated .aapt.pb.Package package = 2;
3059   for (unsigned i = 0,
3060       n = static_cast<unsigned>(this->_internal_package_size()); i < n; i++) {
3061     const auto& repfield = this->_internal_package(i);
3062     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3063         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
3064   }
3065 
3066   // repeated .aapt.pb.Overlayable overlayable = 3;
3067   for (unsigned i = 0,
3068       n = static_cast<unsigned>(this->_internal_overlayable_size()); i < n; i++) {
3069     const auto& repfield = this->_internal_overlayable(i);
3070     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3071         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
3072   }
3073 
3074   // repeated .aapt.pb.ToolFingerprint tool_fingerprint = 4;
3075   for (unsigned i = 0,
3076       n = static_cast<unsigned>(this->_internal_tool_fingerprint_size()); i < n; i++) {
3077     const auto& repfield = this->_internal_tool_fingerprint(i);
3078     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3079         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
3080   }
3081 
3082   // repeated .aapt.pb.DynamicRefTable dynamic_ref_table = 5;
3083   for (unsigned i = 0,
3084       n = static_cast<unsigned>(this->_internal_dynamic_ref_table_size()); i < n; i++) {
3085     const auto& repfield = this->_internal_dynamic_ref_table(i);
3086     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3087         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
3088   }
3089 
3090   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3091     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3092         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3093   }
3094   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ResourceTable)
3095   return target;
3096 }
3097 
ByteSizeLong() const3098 size_t ResourceTable::ByteSizeLong() const {
3099 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ResourceTable)
3100   size_t total_size = 0;
3101 
3102   ::uint32_t cached_has_bits = 0;
3103   // Prevent compiler warnings about cached_has_bits being unused
3104   (void) cached_has_bits;
3105 
3106   // repeated .aapt.pb.Package package = 2;
3107   total_size += 1UL * this->_internal_package_size();
3108   for (const auto& msg : this->_impl_.package_) {
3109     total_size +=
3110       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3111   }
3112 
3113   // repeated .aapt.pb.Overlayable overlayable = 3;
3114   total_size += 1UL * this->_internal_overlayable_size();
3115   for (const auto& msg : this->_impl_.overlayable_) {
3116     total_size +=
3117       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3118   }
3119 
3120   // repeated .aapt.pb.ToolFingerprint tool_fingerprint = 4;
3121   total_size += 1UL * this->_internal_tool_fingerprint_size();
3122   for (const auto& msg : this->_impl_.tool_fingerprint_) {
3123     total_size +=
3124       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3125   }
3126 
3127   // repeated .aapt.pb.DynamicRefTable dynamic_ref_table = 5;
3128   total_size += 1UL * this->_internal_dynamic_ref_table_size();
3129   for (const auto& msg : this->_impl_.dynamic_ref_table_) {
3130     total_size +=
3131       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3132   }
3133 
3134   // .aapt.pb.StringPool source_pool = 1;
3135   if (this->_internal_has_source_pool()) {
3136     total_size += 1 +
3137       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3138         *_impl_.source_pool_);
3139   }
3140 
3141   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3142 }
3143 
3144 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ResourceTable::_class_data_ = {
3145     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3146     ResourceTable::MergeImpl
3147 };
GetClassData() const3148 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ResourceTable::GetClassData() const { return &_class_data_; }
3149 
3150 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3151 void ResourceTable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3152   auto* const _this = static_cast<ResourceTable*>(&to_msg);
3153   auto& from = static_cast<const ResourceTable&>(from_msg);
3154   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ResourceTable)
3155   GOOGLE_DCHECK_NE(&from, _this);
3156   ::uint32_t cached_has_bits = 0;
3157   (void) cached_has_bits;
3158 
3159   _this->_impl_.package_.MergeFrom(from._impl_.package_);
3160   _this->_impl_.overlayable_.MergeFrom(from._impl_.overlayable_);
3161   _this->_impl_.tool_fingerprint_.MergeFrom(from._impl_.tool_fingerprint_);
3162   _this->_impl_.dynamic_ref_table_.MergeFrom(from._impl_.dynamic_ref_table_);
3163   if (from._internal_has_source_pool()) {
3164     _this->_internal_mutable_source_pool()->::aapt::pb::StringPool::MergeFrom(
3165         from._internal_source_pool());
3166   }
3167   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3168 }
3169 
CopyFrom(const ResourceTable & from)3170 void ResourceTable::CopyFrom(const ResourceTable& from) {
3171 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ResourceTable)
3172   if (&from == this) return;
3173   Clear();
3174   MergeFrom(from);
3175 }
3176 
IsInitialized() const3177 bool ResourceTable::IsInitialized() const {
3178   return true;
3179 }
3180 
InternalSwap(ResourceTable * other)3181 void ResourceTable::InternalSwap(ResourceTable* other) {
3182   using std::swap;
3183   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3184   _impl_.package_.InternalSwap(&other->_impl_.package_);
3185   _impl_.overlayable_.InternalSwap(&other->_impl_.overlayable_);
3186   _impl_.tool_fingerprint_.InternalSwap(&other->_impl_.tool_fingerprint_);
3187   _impl_.dynamic_ref_table_.InternalSwap(&other->_impl_.dynamic_ref_table_);
3188   swap(_impl_.source_pool_, other->_impl_.source_pool_);
3189 }
3190 
GetMetadata() const3191 ::PROTOBUF_NAMESPACE_ID::Metadata ResourceTable::GetMetadata() const {
3192   return ::_pbi::AssignDescriptors(
3193       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
3194       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[5]);
3195 }
3196 
3197 // ===================================================================
3198 
3199 class PackageId::_Internal {
3200  public:
3201 };
3202 
PackageId(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3203 PackageId::PackageId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3204                          bool is_message_owned)
3205   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3206   SharedCtor(arena, is_message_owned);
3207   // @@protoc_insertion_point(arena_constructor:aapt.pb.PackageId)
3208 }
PackageId(const PackageId & from)3209 PackageId::PackageId(const PackageId& from)
3210   : ::PROTOBUF_NAMESPACE_ID::Message() {
3211   PackageId* const _this = this; (void)_this;
3212   new (&_impl_) Impl_{
3213       decltype(_impl_.id_){}
3214     , /*decltype(_impl_._cached_size_)*/{}};
3215 
3216   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3217   _this->_impl_.id_ = from._impl_.id_;
3218   // @@protoc_insertion_point(copy_constructor:aapt.pb.PackageId)
3219 }
3220 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3221 inline void PackageId::SharedCtor(
3222     ::_pb::Arena* arena, bool is_message_owned) {
3223   (void)arena;
3224   (void)is_message_owned;
3225   new (&_impl_) Impl_{
3226       decltype(_impl_.id_){0u}
3227     , /*decltype(_impl_._cached_size_)*/{}
3228   };
3229 }
3230 
~PackageId()3231 PackageId::~PackageId() {
3232   // @@protoc_insertion_point(destructor:aapt.pb.PackageId)
3233   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3234   (void)arena;
3235     return;
3236   }
3237   SharedDtor();
3238 }
3239 
SharedDtor()3240 inline void PackageId::SharedDtor() {
3241   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3242 }
3243 
SetCachedSize(int size) const3244 void PackageId::SetCachedSize(int size) const {
3245   _impl_._cached_size_.Set(size);
3246 }
3247 
Clear()3248 void PackageId::Clear() {
3249 // @@protoc_insertion_point(message_clear_start:aapt.pb.PackageId)
3250   ::uint32_t cached_has_bits = 0;
3251   // Prevent compiler warnings about cached_has_bits being unused
3252   (void) cached_has_bits;
3253 
3254   _impl_.id_ = 0u;
3255   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3256 }
3257 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3258 const char* PackageId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3259 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3260   while (!ctx->Done(&ptr)) {
3261     ::uint32_t tag;
3262     ptr = ::_pbi::ReadTag(ptr, &tag);
3263     switch (tag >> 3) {
3264       // uint32 id = 1;
3265       case 1:
3266         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3267           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3268           CHK_(ptr);
3269         } else {
3270           goto handle_unusual;
3271         }
3272         continue;
3273       default:
3274         goto handle_unusual;
3275     }  // switch
3276   handle_unusual:
3277     if ((tag == 0) || ((tag & 7) == 4)) {
3278       CHK_(ptr);
3279       ctx->SetLastTag(tag);
3280       goto message_done;
3281     }
3282     ptr = UnknownFieldParse(
3283         tag,
3284         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3285         ptr, ctx);
3286     CHK_(ptr != nullptr);
3287   }  // while
3288 message_done:
3289   return ptr;
3290 failure:
3291   ptr = nullptr;
3292   goto message_done;
3293 #undef CHK_
3294 }
3295 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3296 ::uint8_t* PackageId::_InternalSerialize(
3297     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3298   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.PackageId)
3299   ::uint32_t cached_has_bits = 0;
3300   (void) cached_has_bits;
3301 
3302   // uint32 id = 1;
3303   if (this->_internal_id() != 0) {
3304     target = stream->EnsureSpace(target);
3305     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target);
3306   }
3307 
3308   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3309     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3310         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3311   }
3312   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.PackageId)
3313   return target;
3314 }
3315 
ByteSizeLong() const3316 size_t PackageId::ByteSizeLong() const {
3317 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.PackageId)
3318   size_t total_size = 0;
3319 
3320   ::uint32_t cached_has_bits = 0;
3321   // Prevent compiler warnings about cached_has_bits being unused
3322   (void) cached_has_bits;
3323 
3324   // uint32 id = 1;
3325   if (this->_internal_id() != 0) {
3326     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
3327   }
3328 
3329   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3330 }
3331 
3332 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PackageId::_class_data_ = {
3333     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3334     PackageId::MergeImpl
3335 };
GetClassData() const3336 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PackageId::GetClassData() const { return &_class_data_; }
3337 
3338 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3339 void PackageId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3340   auto* const _this = static_cast<PackageId*>(&to_msg);
3341   auto& from = static_cast<const PackageId&>(from_msg);
3342   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.PackageId)
3343   GOOGLE_DCHECK_NE(&from, _this);
3344   ::uint32_t cached_has_bits = 0;
3345   (void) cached_has_bits;
3346 
3347   if (from._internal_id() != 0) {
3348     _this->_internal_set_id(from._internal_id());
3349   }
3350   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3351 }
3352 
CopyFrom(const PackageId & from)3353 void PackageId::CopyFrom(const PackageId& from) {
3354 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.PackageId)
3355   if (&from == this) return;
3356   Clear();
3357   MergeFrom(from);
3358 }
3359 
IsInitialized() const3360 bool PackageId::IsInitialized() const {
3361   return true;
3362 }
3363 
InternalSwap(PackageId * other)3364 void PackageId::InternalSwap(PackageId* other) {
3365   using std::swap;
3366   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3367   swap(_impl_.id_, other->_impl_.id_);
3368 }
3369 
GetMetadata() const3370 ::PROTOBUF_NAMESPACE_ID::Metadata PackageId::GetMetadata() const {
3371   return ::_pbi::AssignDescriptors(
3372       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
3373       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[6]);
3374 }
3375 
3376 // ===================================================================
3377 
3378 class Package::_Internal {
3379  public:
3380   static const ::aapt::pb::PackageId& package_id(const Package* msg);
3381 };
3382 
3383 const ::aapt::pb::PackageId&
package_id(const Package * msg)3384 Package::_Internal::package_id(const Package* msg) {
3385   return *msg->_impl_.package_id_;
3386 }
Package(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3387 Package::Package(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3388                          bool is_message_owned)
3389   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3390   SharedCtor(arena, is_message_owned);
3391   // @@protoc_insertion_point(arena_constructor:aapt.pb.Package)
3392 }
Package(const Package & from)3393 Package::Package(const Package& from)
3394   : ::PROTOBUF_NAMESPACE_ID::Message() {
3395   Package* const _this = this; (void)_this;
3396   new (&_impl_) Impl_{
3397       decltype(_impl_.type_){from._impl_.type_}
3398     , decltype(_impl_.package_name_){}
3399     , decltype(_impl_.package_id_){nullptr}
3400     , /*decltype(_impl_._cached_size_)*/{}};
3401 
3402   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3403   _impl_.package_name_.InitDefault();
3404   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3405     _impl_.package_name_.Set("", GetArenaForAllocation());
3406   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3407   if (!from._internal_package_name().empty()) {
3408     _this->_impl_.package_name_.Set(from._internal_package_name(),
3409       _this->GetArenaForAllocation());
3410   }
3411   if (from._internal_has_package_id()) {
3412     _this->_impl_.package_id_ = new ::aapt::pb::PackageId(*from._impl_.package_id_);
3413   }
3414   // @@protoc_insertion_point(copy_constructor:aapt.pb.Package)
3415 }
3416 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3417 inline void Package::SharedCtor(
3418     ::_pb::Arena* arena, bool is_message_owned) {
3419   (void)arena;
3420   (void)is_message_owned;
3421   new (&_impl_) Impl_{
3422       decltype(_impl_.type_){arena}
3423     , decltype(_impl_.package_name_){}
3424     , decltype(_impl_.package_id_){nullptr}
3425     , /*decltype(_impl_._cached_size_)*/{}
3426   };
3427   _impl_.package_name_.InitDefault();
3428   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3429     _impl_.package_name_.Set("", GetArenaForAllocation());
3430   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3431 }
3432 
~Package()3433 Package::~Package() {
3434   // @@protoc_insertion_point(destructor:aapt.pb.Package)
3435   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3436   (void)arena;
3437     return;
3438   }
3439   SharedDtor();
3440 }
3441 
SharedDtor()3442 inline void Package::SharedDtor() {
3443   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3444   _impl_.type_.~RepeatedPtrField();
3445   _impl_.package_name_.Destroy();
3446   if (this != internal_default_instance()) delete _impl_.package_id_;
3447 }
3448 
SetCachedSize(int size) const3449 void Package::SetCachedSize(int size) const {
3450   _impl_._cached_size_.Set(size);
3451 }
3452 
Clear()3453 void Package::Clear() {
3454 // @@protoc_insertion_point(message_clear_start:aapt.pb.Package)
3455   ::uint32_t cached_has_bits = 0;
3456   // Prevent compiler warnings about cached_has_bits being unused
3457   (void) cached_has_bits;
3458 
3459   _impl_.type_.Clear();
3460   _impl_.package_name_.ClearToEmpty();
3461   if (GetArenaForAllocation() == nullptr && _impl_.package_id_ != nullptr) {
3462     delete _impl_.package_id_;
3463   }
3464   _impl_.package_id_ = nullptr;
3465   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3466 }
3467 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3468 const char* Package::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3469 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3470   while (!ctx->Done(&ptr)) {
3471     ::uint32_t tag;
3472     ptr = ::_pbi::ReadTag(ptr, &tag);
3473     switch (tag >> 3) {
3474       // .aapt.pb.PackageId package_id = 1;
3475       case 1:
3476         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3477           ptr = ctx->ParseMessage(_internal_mutable_package_id(), ptr);
3478           CHK_(ptr);
3479         } else {
3480           goto handle_unusual;
3481         }
3482         continue;
3483       // string package_name = 2;
3484       case 2:
3485         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
3486           auto str = _internal_mutable_package_name();
3487           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3488           CHK_(ptr);
3489           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Package.package_name"));
3490         } else {
3491           goto handle_unusual;
3492         }
3493         continue;
3494       // repeated .aapt.pb.Type type = 3;
3495       case 3:
3496         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
3497           ptr -= 1;
3498           do {
3499             ptr += 1;
3500             ptr = ctx->ParseMessage(_internal_add_type(), ptr);
3501             CHK_(ptr);
3502             if (!ctx->DataAvailable(ptr)) break;
3503           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
3504         } else {
3505           goto handle_unusual;
3506         }
3507         continue;
3508       default:
3509         goto handle_unusual;
3510     }  // switch
3511   handle_unusual:
3512     if ((tag == 0) || ((tag & 7) == 4)) {
3513       CHK_(ptr);
3514       ctx->SetLastTag(tag);
3515       goto message_done;
3516     }
3517     ptr = UnknownFieldParse(
3518         tag,
3519         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3520         ptr, ctx);
3521     CHK_(ptr != nullptr);
3522   }  // while
3523 message_done:
3524   return ptr;
3525 failure:
3526   ptr = nullptr;
3527   goto message_done;
3528 #undef CHK_
3529 }
3530 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3531 ::uint8_t* Package::_InternalSerialize(
3532     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3533   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Package)
3534   ::uint32_t cached_has_bits = 0;
3535   (void) cached_has_bits;
3536 
3537   // .aapt.pb.PackageId package_id = 1;
3538   if (this->_internal_has_package_id()) {
3539     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3540       InternalWriteMessage(1, _Internal::package_id(this),
3541         _Internal::package_id(this).GetCachedSize(), target, stream);
3542   }
3543 
3544   // string package_name = 2;
3545   if (!this->_internal_package_name().empty()) {
3546     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
3547       this->_internal_package_name().data(), static_cast<int>(this->_internal_package_name().length()),
3548       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
3549       "aapt.pb.Package.package_name");
3550     target = stream->WriteStringMaybeAliased(
3551         2, this->_internal_package_name(), target);
3552   }
3553 
3554   // repeated .aapt.pb.Type type = 3;
3555   for (unsigned i = 0,
3556       n = static_cast<unsigned>(this->_internal_type_size()); i < n; i++) {
3557     const auto& repfield = this->_internal_type(i);
3558     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
3559         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
3560   }
3561 
3562   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3563     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3564         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3565   }
3566   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Package)
3567   return target;
3568 }
3569 
ByteSizeLong() const3570 size_t Package::ByteSizeLong() const {
3571 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Package)
3572   size_t total_size = 0;
3573 
3574   ::uint32_t cached_has_bits = 0;
3575   // Prevent compiler warnings about cached_has_bits being unused
3576   (void) cached_has_bits;
3577 
3578   // repeated .aapt.pb.Type type = 3;
3579   total_size += 1UL * this->_internal_type_size();
3580   for (const auto& msg : this->_impl_.type_) {
3581     total_size +=
3582       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
3583   }
3584 
3585   // string package_name = 2;
3586   if (!this->_internal_package_name().empty()) {
3587     total_size += 1 +
3588       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
3589         this->_internal_package_name());
3590   }
3591 
3592   // .aapt.pb.PackageId package_id = 1;
3593   if (this->_internal_has_package_id()) {
3594     total_size += 1 +
3595       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
3596         *_impl_.package_id_);
3597   }
3598 
3599   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3600 }
3601 
3602 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Package::_class_data_ = {
3603     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3604     Package::MergeImpl
3605 };
GetClassData() const3606 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Package::GetClassData() const { return &_class_data_; }
3607 
3608 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3609 void Package::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3610   auto* const _this = static_cast<Package*>(&to_msg);
3611   auto& from = static_cast<const Package&>(from_msg);
3612   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Package)
3613   GOOGLE_DCHECK_NE(&from, _this);
3614   ::uint32_t cached_has_bits = 0;
3615   (void) cached_has_bits;
3616 
3617   _this->_impl_.type_.MergeFrom(from._impl_.type_);
3618   if (!from._internal_package_name().empty()) {
3619     _this->_internal_set_package_name(from._internal_package_name());
3620   }
3621   if (from._internal_has_package_id()) {
3622     _this->_internal_mutable_package_id()->::aapt::pb::PackageId::MergeFrom(
3623         from._internal_package_id());
3624   }
3625   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3626 }
3627 
CopyFrom(const Package & from)3628 void Package::CopyFrom(const Package& from) {
3629 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Package)
3630   if (&from == this) return;
3631   Clear();
3632   MergeFrom(from);
3633 }
3634 
IsInitialized() const3635 bool Package::IsInitialized() const {
3636   return true;
3637 }
3638 
InternalSwap(Package * other)3639 void Package::InternalSwap(Package* other) {
3640   using std::swap;
3641   auto* lhs_arena = GetArenaForAllocation();
3642   auto* rhs_arena = other->GetArenaForAllocation();
3643   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3644   _impl_.type_.InternalSwap(&other->_impl_.type_);
3645   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
3646       &_impl_.package_name_, lhs_arena,
3647       &other->_impl_.package_name_, rhs_arena
3648   );
3649   swap(_impl_.package_id_, other->_impl_.package_id_);
3650 }
3651 
GetMetadata() const3652 ::PROTOBUF_NAMESPACE_ID::Metadata Package::GetMetadata() const {
3653   return ::_pbi::AssignDescriptors(
3654       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
3655       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[7]);
3656 }
3657 
3658 // ===================================================================
3659 
3660 class TypeId::_Internal {
3661  public:
3662 };
3663 
TypeId(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3664 TypeId::TypeId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3665                          bool is_message_owned)
3666   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3667   SharedCtor(arena, is_message_owned);
3668   // @@protoc_insertion_point(arena_constructor:aapt.pb.TypeId)
3669 }
TypeId(const TypeId & from)3670 TypeId::TypeId(const TypeId& from)
3671   : ::PROTOBUF_NAMESPACE_ID::Message() {
3672   TypeId* const _this = this; (void)_this;
3673   new (&_impl_) Impl_{
3674       decltype(_impl_.id_){}
3675     , /*decltype(_impl_._cached_size_)*/{}};
3676 
3677   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3678   _this->_impl_.id_ = from._impl_.id_;
3679   // @@protoc_insertion_point(copy_constructor:aapt.pb.TypeId)
3680 }
3681 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3682 inline void TypeId::SharedCtor(
3683     ::_pb::Arena* arena, bool is_message_owned) {
3684   (void)arena;
3685   (void)is_message_owned;
3686   new (&_impl_) Impl_{
3687       decltype(_impl_.id_){0u}
3688     , /*decltype(_impl_._cached_size_)*/{}
3689   };
3690 }
3691 
~TypeId()3692 TypeId::~TypeId() {
3693   // @@protoc_insertion_point(destructor:aapt.pb.TypeId)
3694   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3695   (void)arena;
3696     return;
3697   }
3698   SharedDtor();
3699 }
3700 
SharedDtor()3701 inline void TypeId::SharedDtor() {
3702   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3703 }
3704 
SetCachedSize(int size) const3705 void TypeId::SetCachedSize(int size) const {
3706   _impl_._cached_size_.Set(size);
3707 }
3708 
Clear()3709 void TypeId::Clear() {
3710 // @@protoc_insertion_point(message_clear_start:aapt.pb.TypeId)
3711   ::uint32_t cached_has_bits = 0;
3712   // Prevent compiler warnings about cached_has_bits being unused
3713   (void) cached_has_bits;
3714 
3715   _impl_.id_ = 0u;
3716   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3717 }
3718 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3719 const char* TypeId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3720 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3721   while (!ctx->Done(&ptr)) {
3722     ::uint32_t tag;
3723     ptr = ::_pbi::ReadTag(ptr, &tag);
3724     switch (tag >> 3) {
3725       // uint32 id = 1;
3726       case 1:
3727         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
3728           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
3729           CHK_(ptr);
3730         } else {
3731           goto handle_unusual;
3732         }
3733         continue;
3734       default:
3735         goto handle_unusual;
3736     }  // switch
3737   handle_unusual:
3738     if ((tag == 0) || ((tag & 7) == 4)) {
3739       CHK_(ptr);
3740       ctx->SetLastTag(tag);
3741       goto message_done;
3742     }
3743     ptr = UnknownFieldParse(
3744         tag,
3745         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3746         ptr, ctx);
3747     CHK_(ptr != nullptr);
3748   }  // while
3749 message_done:
3750   return ptr;
3751 failure:
3752   ptr = nullptr;
3753   goto message_done;
3754 #undef CHK_
3755 }
3756 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3757 ::uint8_t* TypeId::_InternalSerialize(
3758     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3759   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.TypeId)
3760   ::uint32_t cached_has_bits = 0;
3761   (void) cached_has_bits;
3762 
3763   // uint32 id = 1;
3764   if (this->_internal_id() != 0) {
3765     target = stream->EnsureSpace(target);
3766     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target);
3767   }
3768 
3769   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
3770     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
3771         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
3772   }
3773   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.TypeId)
3774   return target;
3775 }
3776 
ByteSizeLong() const3777 size_t TypeId::ByteSizeLong() const {
3778 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.TypeId)
3779   size_t total_size = 0;
3780 
3781   ::uint32_t cached_has_bits = 0;
3782   // Prevent compiler warnings about cached_has_bits being unused
3783   (void) cached_has_bits;
3784 
3785   // uint32 id = 1;
3786   if (this->_internal_id() != 0) {
3787     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
3788   }
3789 
3790   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
3791 }
3792 
3793 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TypeId::_class_data_ = {
3794     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
3795     TypeId::MergeImpl
3796 };
GetClassData() const3797 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TypeId::GetClassData() const { return &_class_data_; }
3798 
3799 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)3800 void TypeId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
3801   auto* const _this = static_cast<TypeId*>(&to_msg);
3802   auto& from = static_cast<const TypeId&>(from_msg);
3803   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.TypeId)
3804   GOOGLE_DCHECK_NE(&from, _this);
3805   ::uint32_t cached_has_bits = 0;
3806   (void) cached_has_bits;
3807 
3808   if (from._internal_id() != 0) {
3809     _this->_internal_set_id(from._internal_id());
3810   }
3811   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3812 }
3813 
CopyFrom(const TypeId & from)3814 void TypeId::CopyFrom(const TypeId& from) {
3815 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.TypeId)
3816   if (&from == this) return;
3817   Clear();
3818   MergeFrom(from);
3819 }
3820 
IsInitialized() const3821 bool TypeId::IsInitialized() const {
3822   return true;
3823 }
3824 
InternalSwap(TypeId * other)3825 void TypeId::InternalSwap(TypeId* other) {
3826   using std::swap;
3827   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
3828   swap(_impl_.id_, other->_impl_.id_);
3829 }
3830 
GetMetadata() const3831 ::PROTOBUF_NAMESPACE_ID::Metadata TypeId::GetMetadata() const {
3832   return ::_pbi::AssignDescriptors(
3833       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
3834       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[8]);
3835 }
3836 
3837 // ===================================================================
3838 
3839 class Type::_Internal {
3840  public:
3841   static const ::aapt::pb::TypeId& type_id(const Type* msg);
3842 };
3843 
3844 const ::aapt::pb::TypeId&
type_id(const Type * msg)3845 Type::_Internal::type_id(const Type* msg) {
3846   return *msg->_impl_.type_id_;
3847 }
Type(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)3848 Type::Type(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3849                          bool is_message_owned)
3850   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
3851   SharedCtor(arena, is_message_owned);
3852   // @@protoc_insertion_point(arena_constructor:aapt.pb.Type)
3853 }
Type(const Type & from)3854 Type::Type(const Type& from)
3855   : ::PROTOBUF_NAMESPACE_ID::Message() {
3856   Type* const _this = this; (void)_this;
3857   new (&_impl_) Impl_{
3858       decltype(_impl_.entry_){from._impl_.entry_}
3859     , decltype(_impl_.name_){}
3860     , decltype(_impl_.type_id_){nullptr}
3861     , /*decltype(_impl_._cached_size_)*/{}};
3862 
3863   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
3864   _impl_.name_.InitDefault();
3865   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3866     _impl_.name_.Set("", GetArenaForAllocation());
3867   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3868   if (!from._internal_name().empty()) {
3869     _this->_impl_.name_.Set(from._internal_name(),
3870       _this->GetArenaForAllocation());
3871   }
3872   if (from._internal_has_type_id()) {
3873     _this->_impl_.type_id_ = new ::aapt::pb::TypeId(*from._impl_.type_id_);
3874   }
3875   // @@protoc_insertion_point(copy_constructor:aapt.pb.Type)
3876 }
3877 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)3878 inline void Type::SharedCtor(
3879     ::_pb::Arena* arena, bool is_message_owned) {
3880   (void)arena;
3881   (void)is_message_owned;
3882   new (&_impl_) Impl_{
3883       decltype(_impl_.entry_){arena}
3884     , decltype(_impl_.name_){}
3885     , decltype(_impl_.type_id_){nullptr}
3886     , /*decltype(_impl_._cached_size_)*/{}
3887   };
3888   _impl_.name_.InitDefault();
3889   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3890     _impl_.name_.Set("", GetArenaForAllocation());
3891   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3892 }
3893 
~Type()3894 Type::~Type() {
3895   // @@protoc_insertion_point(destructor:aapt.pb.Type)
3896   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
3897   (void)arena;
3898     return;
3899   }
3900   SharedDtor();
3901 }
3902 
SharedDtor()3903 inline void Type::SharedDtor() {
3904   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
3905   _impl_.entry_.~RepeatedPtrField();
3906   _impl_.name_.Destroy();
3907   if (this != internal_default_instance()) delete _impl_.type_id_;
3908 }
3909 
SetCachedSize(int size) const3910 void Type::SetCachedSize(int size) const {
3911   _impl_._cached_size_.Set(size);
3912 }
3913 
Clear()3914 void Type::Clear() {
3915 // @@protoc_insertion_point(message_clear_start:aapt.pb.Type)
3916   ::uint32_t cached_has_bits = 0;
3917   // Prevent compiler warnings about cached_has_bits being unused
3918   (void) cached_has_bits;
3919 
3920   _impl_.entry_.Clear();
3921   _impl_.name_.ClearToEmpty();
3922   if (GetArenaForAllocation() == nullptr && _impl_.type_id_ != nullptr) {
3923     delete _impl_.type_id_;
3924   }
3925   _impl_.type_id_ = nullptr;
3926   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
3927 }
3928 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)3929 const char* Type::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
3930 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
3931   while (!ctx->Done(&ptr)) {
3932     ::uint32_t tag;
3933     ptr = ::_pbi::ReadTag(ptr, &tag);
3934     switch (tag >> 3) {
3935       // .aapt.pb.TypeId type_id = 1;
3936       case 1:
3937         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
3938           ptr = ctx->ParseMessage(_internal_mutable_type_id(), ptr);
3939           CHK_(ptr);
3940         } else {
3941           goto handle_unusual;
3942         }
3943         continue;
3944       // string name = 2;
3945       case 2:
3946         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
3947           auto str = _internal_mutable_name();
3948           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
3949           CHK_(ptr);
3950           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Type.name"));
3951         } else {
3952           goto handle_unusual;
3953         }
3954         continue;
3955       // repeated .aapt.pb.Entry entry = 3;
3956       case 3:
3957         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
3958           ptr -= 1;
3959           do {
3960             ptr += 1;
3961             ptr = ctx->ParseMessage(_internal_add_entry(), ptr);
3962             CHK_(ptr);
3963             if (!ctx->DataAvailable(ptr)) break;
3964           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
3965         } else {
3966           goto handle_unusual;
3967         }
3968         continue;
3969       default:
3970         goto handle_unusual;
3971     }  // switch
3972   handle_unusual:
3973     if ((tag == 0) || ((tag & 7) == 4)) {
3974       CHK_(ptr);
3975       ctx->SetLastTag(tag);
3976       goto message_done;
3977     }
3978     ptr = UnknownFieldParse(
3979         tag,
3980         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
3981         ptr, ctx);
3982     CHK_(ptr != nullptr);
3983   }  // while
3984 message_done:
3985   return ptr;
3986 failure:
3987   ptr = nullptr;
3988   goto message_done;
3989 #undef CHK_
3990 }
3991 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const3992 ::uint8_t* Type::_InternalSerialize(
3993     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
3994   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Type)
3995   ::uint32_t cached_has_bits = 0;
3996   (void) cached_has_bits;
3997 
3998   // .aapt.pb.TypeId type_id = 1;
3999   if (this->_internal_has_type_id()) {
4000     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4001       InternalWriteMessage(1, _Internal::type_id(this),
4002         _Internal::type_id(this).GetCachedSize(), target, stream);
4003   }
4004 
4005   // string name = 2;
4006   if (!this->_internal_name().empty()) {
4007     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4008       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
4009       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4010       "aapt.pb.Type.name");
4011     target = stream->WriteStringMaybeAliased(
4012         2, this->_internal_name(), target);
4013   }
4014 
4015   // repeated .aapt.pb.Entry entry = 3;
4016   for (unsigned i = 0,
4017       n = static_cast<unsigned>(this->_internal_entry_size()); i < n; i++) {
4018     const auto& repfield = this->_internal_entry(i);
4019     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4020         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
4021   }
4022 
4023   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4024     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4025         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4026   }
4027   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Type)
4028   return target;
4029 }
4030 
ByteSizeLong() const4031 size_t Type::ByteSizeLong() const {
4032 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Type)
4033   size_t total_size = 0;
4034 
4035   ::uint32_t cached_has_bits = 0;
4036   // Prevent compiler warnings about cached_has_bits being unused
4037   (void) cached_has_bits;
4038 
4039   // repeated .aapt.pb.Entry entry = 3;
4040   total_size += 1UL * this->_internal_entry_size();
4041   for (const auto& msg : this->_impl_.entry_) {
4042     total_size +=
4043       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
4044   }
4045 
4046   // string name = 2;
4047   if (!this->_internal_name().empty()) {
4048     total_size += 1 +
4049       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4050         this->_internal_name());
4051   }
4052 
4053   // .aapt.pb.TypeId type_id = 1;
4054   if (this->_internal_has_type_id()) {
4055     total_size += 1 +
4056       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4057         *_impl_.type_id_);
4058   }
4059 
4060   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4061 }
4062 
4063 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Type::_class_data_ = {
4064     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4065     Type::MergeImpl
4066 };
GetClassData() const4067 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Type::GetClassData() const { return &_class_data_; }
4068 
4069 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4070 void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4071   auto* const _this = static_cast<Type*>(&to_msg);
4072   auto& from = static_cast<const Type&>(from_msg);
4073   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Type)
4074   GOOGLE_DCHECK_NE(&from, _this);
4075   ::uint32_t cached_has_bits = 0;
4076   (void) cached_has_bits;
4077 
4078   _this->_impl_.entry_.MergeFrom(from._impl_.entry_);
4079   if (!from._internal_name().empty()) {
4080     _this->_internal_set_name(from._internal_name());
4081   }
4082   if (from._internal_has_type_id()) {
4083     _this->_internal_mutable_type_id()->::aapt::pb::TypeId::MergeFrom(
4084         from._internal_type_id());
4085   }
4086   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4087 }
4088 
CopyFrom(const Type & from)4089 void Type::CopyFrom(const Type& from) {
4090 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Type)
4091   if (&from == this) return;
4092   Clear();
4093   MergeFrom(from);
4094 }
4095 
IsInitialized() const4096 bool Type::IsInitialized() const {
4097   return true;
4098 }
4099 
InternalSwap(Type * other)4100 void Type::InternalSwap(Type* other) {
4101   using std::swap;
4102   auto* lhs_arena = GetArenaForAllocation();
4103   auto* rhs_arena = other->GetArenaForAllocation();
4104   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4105   _impl_.entry_.InternalSwap(&other->_impl_.entry_);
4106   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4107       &_impl_.name_, lhs_arena,
4108       &other->_impl_.name_, rhs_arena
4109   );
4110   swap(_impl_.type_id_, other->_impl_.type_id_);
4111 }
4112 
GetMetadata() const4113 ::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const {
4114   return ::_pbi::AssignDescriptors(
4115       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
4116       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[9]);
4117 }
4118 
4119 // ===================================================================
4120 
4121 class Visibility::_Internal {
4122  public:
4123   static const ::aapt::pb::Source& source(const Visibility* msg);
4124 };
4125 
4126 const ::aapt::pb::Source&
source(const Visibility * msg)4127 Visibility::_Internal::source(const Visibility* msg) {
4128   return *msg->_impl_.source_;
4129 }
Visibility(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4130 Visibility::Visibility(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4131                          bool is_message_owned)
4132   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4133   SharedCtor(arena, is_message_owned);
4134   // @@protoc_insertion_point(arena_constructor:aapt.pb.Visibility)
4135 }
Visibility(const Visibility & from)4136 Visibility::Visibility(const Visibility& from)
4137   : ::PROTOBUF_NAMESPACE_ID::Message() {
4138   Visibility* const _this = this; (void)_this;
4139   new (&_impl_) Impl_{
4140       decltype(_impl_.comment_){}
4141     , decltype(_impl_.source_){nullptr}
4142     , decltype(_impl_.level_){}
4143     , decltype(_impl_.staged_api_){}
4144     , /*decltype(_impl_._cached_size_)*/{}};
4145 
4146   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4147   _impl_.comment_.InitDefault();
4148   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4149     _impl_.comment_.Set("", GetArenaForAllocation());
4150   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4151   if (!from._internal_comment().empty()) {
4152     _this->_impl_.comment_.Set(from._internal_comment(),
4153       _this->GetArenaForAllocation());
4154   }
4155   if (from._internal_has_source()) {
4156     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
4157   }
4158   ::memcpy(&_impl_.level_, &from._impl_.level_,
4159     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.staged_api_) -
4160     reinterpret_cast<char*>(&_impl_.level_)) + sizeof(_impl_.staged_api_));
4161   // @@protoc_insertion_point(copy_constructor:aapt.pb.Visibility)
4162 }
4163 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4164 inline void Visibility::SharedCtor(
4165     ::_pb::Arena* arena, bool is_message_owned) {
4166   (void)arena;
4167   (void)is_message_owned;
4168   new (&_impl_) Impl_{
4169       decltype(_impl_.comment_){}
4170     , decltype(_impl_.source_){nullptr}
4171     , decltype(_impl_.level_){0}
4172     , decltype(_impl_.staged_api_){false}
4173     , /*decltype(_impl_._cached_size_)*/{}
4174   };
4175   _impl_.comment_.InitDefault();
4176   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4177     _impl_.comment_.Set("", GetArenaForAllocation());
4178   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4179 }
4180 
~Visibility()4181 Visibility::~Visibility() {
4182   // @@protoc_insertion_point(destructor:aapt.pb.Visibility)
4183   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4184   (void)arena;
4185     return;
4186   }
4187   SharedDtor();
4188 }
4189 
SharedDtor()4190 inline void Visibility::SharedDtor() {
4191   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4192   _impl_.comment_.Destroy();
4193   if (this != internal_default_instance()) delete _impl_.source_;
4194 }
4195 
SetCachedSize(int size) const4196 void Visibility::SetCachedSize(int size) const {
4197   _impl_._cached_size_.Set(size);
4198 }
4199 
Clear()4200 void Visibility::Clear() {
4201 // @@protoc_insertion_point(message_clear_start:aapt.pb.Visibility)
4202   ::uint32_t cached_has_bits = 0;
4203   // Prevent compiler warnings about cached_has_bits being unused
4204   (void) cached_has_bits;
4205 
4206   _impl_.comment_.ClearToEmpty();
4207   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
4208     delete _impl_.source_;
4209   }
4210   _impl_.source_ = nullptr;
4211   ::memset(&_impl_.level_, 0, static_cast<size_t>(
4212       reinterpret_cast<char*>(&_impl_.staged_api_) -
4213       reinterpret_cast<char*>(&_impl_.level_)) + sizeof(_impl_.staged_api_));
4214   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4215 }
4216 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4217 const char* Visibility::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4218 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4219   while (!ctx->Done(&ptr)) {
4220     ::uint32_t tag;
4221     ptr = ::_pbi::ReadTag(ptr, &tag);
4222     switch (tag >> 3) {
4223       // .aapt.pb.Visibility.Level level = 1;
4224       case 1:
4225         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
4226           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4227           CHK_(ptr);
4228           _internal_set_level(static_cast<::aapt::pb::Visibility_Level>(val));
4229         } else {
4230           goto handle_unusual;
4231         }
4232         continue;
4233       // .aapt.pb.Source source = 2;
4234       case 2:
4235         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4236           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
4237           CHK_(ptr);
4238         } else {
4239           goto handle_unusual;
4240         }
4241         continue;
4242       // string comment = 3;
4243       case 3:
4244         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
4245           auto str = _internal_mutable_comment();
4246           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4247           CHK_(ptr);
4248           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Visibility.comment"));
4249         } else {
4250           goto handle_unusual;
4251         }
4252         continue;
4253       // bool staged_api = 4;
4254       case 4:
4255         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
4256           _impl_.staged_api_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
4257           CHK_(ptr);
4258         } else {
4259           goto handle_unusual;
4260         }
4261         continue;
4262       default:
4263         goto handle_unusual;
4264     }  // switch
4265   handle_unusual:
4266     if ((tag == 0) || ((tag & 7) == 4)) {
4267       CHK_(ptr);
4268       ctx->SetLastTag(tag);
4269       goto message_done;
4270     }
4271     ptr = UnknownFieldParse(
4272         tag,
4273         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4274         ptr, ctx);
4275     CHK_(ptr != nullptr);
4276   }  // while
4277 message_done:
4278   return ptr;
4279 failure:
4280   ptr = nullptr;
4281   goto message_done;
4282 #undef CHK_
4283 }
4284 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4285 ::uint8_t* Visibility::_InternalSerialize(
4286     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4287   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Visibility)
4288   ::uint32_t cached_has_bits = 0;
4289   (void) cached_has_bits;
4290 
4291   // .aapt.pb.Visibility.Level level = 1;
4292   if (this->_internal_level() != 0) {
4293     target = stream->EnsureSpace(target);
4294     target = ::_pbi::WireFormatLite::WriteEnumToArray(
4295       1, this->_internal_level(), target);
4296   }
4297 
4298   // .aapt.pb.Source source = 2;
4299   if (this->_internal_has_source()) {
4300     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4301       InternalWriteMessage(2, _Internal::source(this),
4302         _Internal::source(this).GetCachedSize(), target, stream);
4303   }
4304 
4305   // string comment = 3;
4306   if (!this->_internal_comment().empty()) {
4307     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4308       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
4309       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4310       "aapt.pb.Visibility.comment");
4311     target = stream->WriteStringMaybeAliased(
4312         3, this->_internal_comment(), target);
4313   }
4314 
4315   // bool staged_api = 4;
4316   if (this->_internal_staged_api() != 0) {
4317     target = stream->EnsureSpace(target);
4318     target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_staged_api(), target);
4319   }
4320 
4321   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4322     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4323         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4324   }
4325   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Visibility)
4326   return target;
4327 }
4328 
ByteSizeLong() const4329 size_t Visibility::ByteSizeLong() const {
4330 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Visibility)
4331   size_t total_size = 0;
4332 
4333   ::uint32_t cached_has_bits = 0;
4334   // Prevent compiler warnings about cached_has_bits being unused
4335   (void) cached_has_bits;
4336 
4337   // string comment = 3;
4338   if (!this->_internal_comment().empty()) {
4339     total_size += 1 +
4340       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4341         this->_internal_comment());
4342   }
4343 
4344   // .aapt.pb.Source source = 2;
4345   if (this->_internal_has_source()) {
4346     total_size += 1 +
4347       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4348         *_impl_.source_);
4349   }
4350 
4351   // .aapt.pb.Visibility.Level level = 1;
4352   if (this->_internal_level() != 0) {
4353     total_size += 1 +
4354       ::_pbi::WireFormatLite::EnumSize(this->_internal_level());
4355   }
4356 
4357   // bool staged_api = 4;
4358   if (this->_internal_staged_api() != 0) {
4359     total_size += 1 + 1;
4360   }
4361 
4362   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4363 }
4364 
4365 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Visibility::_class_data_ = {
4366     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4367     Visibility::MergeImpl
4368 };
GetClassData() const4369 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Visibility::GetClassData() const { return &_class_data_; }
4370 
4371 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4372 void Visibility::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4373   auto* const _this = static_cast<Visibility*>(&to_msg);
4374   auto& from = static_cast<const Visibility&>(from_msg);
4375   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Visibility)
4376   GOOGLE_DCHECK_NE(&from, _this);
4377   ::uint32_t cached_has_bits = 0;
4378   (void) cached_has_bits;
4379 
4380   if (!from._internal_comment().empty()) {
4381     _this->_internal_set_comment(from._internal_comment());
4382   }
4383   if (from._internal_has_source()) {
4384     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
4385         from._internal_source());
4386   }
4387   if (from._internal_level() != 0) {
4388     _this->_internal_set_level(from._internal_level());
4389   }
4390   if (from._internal_staged_api() != 0) {
4391     _this->_internal_set_staged_api(from._internal_staged_api());
4392   }
4393   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4394 }
4395 
CopyFrom(const Visibility & from)4396 void Visibility::CopyFrom(const Visibility& from) {
4397 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Visibility)
4398   if (&from == this) return;
4399   Clear();
4400   MergeFrom(from);
4401 }
4402 
IsInitialized() const4403 bool Visibility::IsInitialized() const {
4404   return true;
4405 }
4406 
InternalSwap(Visibility * other)4407 void Visibility::InternalSwap(Visibility* other) {
4408   using std::swap;
4409   auto* lhs_arena = GetArenaForAllocation();
4410   auto* rhs_arena = other->GetArenaForAllocation();
4411   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4412   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4413       &_impl_.comment_, lhs_arena,
4414       &other->_impl_.comment_, rhs_arena
4415   );
4416   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
4417       PROTOBUF_FIELD_OFFSET(Visibility, _impl_.staged_api_)
4418       + sizeof(Visibility::_impl_.staged_api_)  // NOLINT
4419       - PROTOBUF_FIELD_OFFSET(Visibility, _impl_.source_)>(
4420           reinterpret_cast<char*>(&_impl_.source_),
4421           reinterpret_cast<char*>(&other->_impl_.source_));
4422 }
4423 
GetMetadata() const4424 ::PROTOBUF_NAMESPACE_ID::Metadata Visibility::GetMetadata() const {
4425   return ::_pbi::AssignDescriptors(
4426       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
4427       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[10]);
4428 }
4429 
4430 // ===================================================================
4431 
4432 class AllowNew::_Internal {
4433  public:
4434   static const ::aapt::pb::Source& source(const AllowNew* msg);
4435 };
4436 
4437 const ::aapt::pb::Source&
source(const AllowNew * msg)4438 AllowNew::_Internal::source(const AllowNew* msg) {
4439   return *msg->_impl_.source_;
4440 }
AllowNew(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4441 AllowNew::AllowNew(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4442                          bool is_message_owned)
4443   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4444   SharedCtor(arena, is_message_owned);
4445   // @@protoc_insertion_point(arena_constructor:aapt.pb.AllowNew)
4446 }
AllowNew(const AllowNew & from)4447 AllowNew::AllowNew(const AllowNew& from)
4448   : ::PROTOBUF_NAMESPACE_ID::Message() {
4449   AllowNew* const _this = this; (void)_this;
4450   new (&_impl_) Impl_{
4451       decltype(_impl_.comment_){}
4452     , decltype(_impl_.source_){nullptr}
4453     , /*decltype(_impl_._cached_size_)*/{}};
4454 
4455   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4456   _impl_.comment_.InitDefault();
4457   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4458     _impl_.comment_.Set("", GetArenaForAllocation());
4459   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4460   if (!from._internal_comment().empty()) {
4461     _this->_impl_.comment_.Set(from._internal_comment(),
4462       _this->GetArenaForAllocation());
4463   }
4464   if (from._internal_has_source()) {
4465     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
4466   }
4467   // @@protoc_insertion_point(copy_constructor:aapt.pb.AllowNew)
4468 }
4469 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4470 inline void AllowNew::SharedCtor(
4471     ::_pb::Arena* arena, bool is_message_owned) {
4472   (void)arena;
4473   (void)is_message_owned;
4474   new (&_impl_) Impl_{
4475       decltype(_impl_.comment_){}
4476     , decltype(_impl_.source_){nullptr}
4477     , /*decltype(_impl_._cached_size_)*/{}
4478   };
4479   _impl_.comment_.InitDefault();
4480   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4481     _impl_.comment_.Set("", GetArenaForAllocation());
4482   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4483 }
4484 
~AllowNew()4485 AllowNew::~AllowNew() {
4486   // @@protoc_insertion_point(destructor:aapt.pb.AllowNew)
4487   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4488   (void)arena;
4489     return;
4490   }
4491   SharedDtor();
4492 }
4493 
SharedDtor()4494 inline void AllowNew::SharedDtor() {
4495   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4496   _impl_.comment_.Destroy();
4497   if (this != internal_default_instance()) delete _impl_.source_;
4498 }
4499 
SetCachedSize(int size) const4500 void AllowNew::SetCachedSize(int size) const {
4501   _impl_._cached_size_.Set(size);
4502 }
4503 
Clear()4504 void AllowNew::Clear() {
4505 // @@protoc_insertion_point(message_clear_start:aapt.pb.AllowNew)
4506   ::uint32_t cached_has_bits = 0;
4507   // Prevent compiler warnings about cached_has_bits being unused
4508   (void) cached_has_bits;
4509 
4510   _impl_.comment_.ClearToEmpty();
4511   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
4512     delete _impl_.source_;
4513   }
4514   _impl_.source_ = nullptr;
4515   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4516 }
4517 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4518 const char* AllowNew::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4519 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4520   while (!ctx->Done(&ptr)) {
4521     ::uint32_t tag;
4522     ptr = ::_pbi::ReadTag(ptr, &tag);
4523     switch (tag >> 3) {
4524       // .aapt.pb.Source source = 1;
4525       case 1:
4526         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4527           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
4528           CHK_(ptr);
4529         } else {
4530           goto handle_unusual;
4531         }
4532         continue;
4533       // string comment = 2;
4534       case 2:
4535         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4536           auto str = _internal_mutable_comment();
4537           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4538           CHK_(ptr);
4539           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.AllowNew.comment"));
4540         } else {
4541           goto handle_unusual;
4542         }
4543         continue;
4544       default:
4545         goto handle_unusual;
4546     }  // switch
4547   handle_unusual:
4548     if ((tag == 0) || ((tag & 7) == 4)) {
4549       CHK_(ptr);
4550       ctx->SetLastTag(tag);
4551       goto message_done;
4552     }
4553     ptr = UnknownFieldParse(
4554         tag,
4555         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4556         ptr, ctx);
4557     CHK_(ptr != nullptr);
4558   }  // while
4559 message_done:
4560   return ptr;
4561 failure:
4562   ptr = nullptr;
4563   goto message_done;
4564 #undef CHK_
4565 }
4566 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4567 ::uint8_t* AllowNew::_InternalSerialize(
4568     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4569   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.AllowNew)
4570   ::uint32_t cached_has_bits = 0;
4571   (void) cached_has_bits;
4572 
4573   // .aapt.pb.Source source = 1;
4574   if (this->_internal_has_source()) {
4575     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4576       InternalWriteMessage(1, _Internal::source(this),
4577         _Internal::source(this).GetCachedSize(), target, stream);
4578   }
4579 
4580   // string comment = 2;
4581   if (!this->_internal_comment().empty()) {
4582     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4583       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
4584       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4585       "aapt.pb.AllowNew.comment");
4586     target = stream->WriteStringMaybeAliased(
4587         2, this->_internal_comment(), target);
4588   }
4589 
4590   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4591     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4592         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4593   }
4594   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.AllowNew)
4595   return target;
4596 }
4597 
ByteSizeLong() const4598 size_t AllowNew::ByteSizeLong() const {
4599 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.AllowNew)
4600   size_t total_size = 0;
4601 
4602   ::uint32_t cached_has_bits = 0;
4603   // Prevent compiler warnings about cached_has_bits being unused
4604   (void) cached_has_bits;
4605 
4606   // string comment = 2;
4607   if (!this->_internal_comment().empty()) {
4608     total_size += 1 +
4609       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4610         this->_internal_comment());
4611   }
4612 
4613   // .aapt.pb.Source source = 1;
4614   if (this->_internal_has_source()) {
4615     total_size += 1 +
4616       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4617         *_impl_.source_);
4618   }
4619 
4620   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4621 }
4622 
4623 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AllowNew::_class_data_ = {
4624     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4625     AllowNew::MergeImpl
4626 };
GetClassData() const4627 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AllowNew::GetClassData() const { return &_class_data_; }
4628 
4629 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4630 void AllowNew::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4631   auto* const _this = static_cast<AllowNew*>(&to_msg);
4632   auto& from = static_cast<const AllowNew&>(from_msg);
4633   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.AllowNew)
4634   GOOGLE_DCHECK_NE(&from, _this);
4635   ::uint32_t cached_has_bits = 0;
4636   (void) cached_has_bits;
4637 
4638   if (!from._internal_comment().empty()) {
4639     _this->_internal_set_comment(from._internal_comment());
4640   }
4641   if (from._internal_has_source()) {
4642     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
4643         from._internal_source());
4644   }
4645   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4646 }
4647 
CopyFrom(const AllowNew & from)4648 void AllowNew::CopyFrom(const AllowNew& from) {
4649 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.AllowNew)
4650   if (&from == this) return;
4651   Clear();
4652   MergeFrom(from);
4653 }
4654 
IsInitialized() const4655 bool AllowNew::IsInitialized() const {
4656   return true;
4657 }
4658 
InternalSwap(AllowNew * other)4659 void AllowNew::InternalSwap(AllowNew* other) {
4660   using std::swap;
4661   auto* lhs_arena = GetArenaForAllocation();
4662   auto* rhs_arena = other->GetArenaForAllocation();
4663   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4664   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4665       &_impl_.comment_, lhs_arena,
4666       &other->_impl_.comment_, rhs_arena
4667   );
4668   swap(_impl_.source_, other->_impl_.source_);
4669 }
4670 
GetMetadata() const4671 ::PROTOBUF_NAMESPACE_ID::Metadata AllowNew::GetMetadata() const {
4672   return ::_pbi::AssignDescriptors(
4673       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
4674       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[11]);
4675 }
4676 
4677 // ===================================================================
4678 
4679 class Overlayable::_Internal {
4680  public:
4681   static const ::aapt::pb::Source& source(const Overlayable* msg);
4682 };
4683 
4684 const ::aapt::pb::Source&
source(const Overlayable * msg)4685 Overlayable::_Internal::source(const Overlayable* msg) {
4686   return *msg->_impl_.source_;
4687 }
Overlayable(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4688 Overlayable::Overlayable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4689                          bool is_message_owned)
4690   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4691   SharedCtor(arena, is_message_owned);
4692   // @@protoc_insertion_point(arena_constructor:aapt.pb.Overlayable)
4693 }
Overlayable(const Overlayable & from)4694 Overlayable::Overlayable(const Overlayable& from)
4695   : ::PROTOBUF_NAMESPACE_ID::Message() {
4696   Overlayable* const _this = this; (void)_this;
4697   new (&_impl_) Impl_{
4698       decltype(_impl_.name_){}
4699     , decltype(_impl_.actor_){}
4700     , decltype(_impl_.source_){nullptr}
4701     , /*decltype(_impl_._cached_size_)*/{}};
4702 
4703   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4704   _impl_.name_.InitDefault();
4705   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4706     _impl_.name_.Set("", GetArenaForAllocation());
4707   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4708   if (!from._internal_name().empty()) {
4709     _this->_impl_.name_.Set(from._internal_name(),
4710       _this->GetArenaForAllocation());
4711   }
4712   _impl_.actor_.InitDefault();
4713   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4714     _impl_.actor_.Set("", GetArenaForAllocation());
4715   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4716   if (!from._internal_actor().empty()) {
4717     _this->_impl_.actor_.Set(from._internal_actor(),
4718       _this->GetArenaForAllocation());
4719   }
4720   if (from._internal_has_source()) {
4721     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
4722   }
4723   // @@protoc_insertion_point(copy_constructor:aapt.pb.Overlayable)
4724 }
4725 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)4726 inline void Overlayable::SharedCtor(
4727     ::_pb::Arena* arena, bool is_message_owned) {
4728   (void)arena;
4729   (void)is_message_owned;
4730   new (&_impl_) Impl_{
4731       decltype(_impl_.name_){}
4732     , decltype(_impl_.actor_){}
4733     , decltype(_impl_.source_){nullptr}
4734     , /*decltype(_impl_._cached_size_)*/{}
4735   };
4736   _impl_.name_.InitDefault();
4737   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4738     _impl_.name_.Set("", GetArenaForAllocation());
4739   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4740   _impl_.actor_.InitDefault();
4741   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
4742     _impl_.actor_.Set("", GetArenaForAllocation());
4743   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
4744 }
4745 
~Overlayable()4746 Overlayable::~Overlayable() {
4747   // @@protoc_insertion_point(destructor:aapt.pb.Overlayable)
4748   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
4749   (void)arena;
4750     return;
4751   }
4752   SharedDtor();
4753 }
4754 
SharedDtor()4755 inline void Overlayable::SharedDtor() {
4756   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
4757   _impl_.name_.Destroy();
4758   _impl_.actor_.Destroy();
4759   if (this != internal_default_instance()) delete _impl_.source_;
4760 }
4761 
SetCachedSize(int size) const4762 void Overlayable::SetCachedSize(int size) const {
4763   _impl_._cached_size_.Set(size);
4764 }
4765 
Clear()4766 void Overlayable::Clear() {
4767 // @@protoc_insertion_point(message_clear_start:aapt.pb.Overlayable)
4768   ::uint32_t cached_has_bits = 0;
4769   // Prevent compiler warnings about cached_has_bits being unused
4770   (void) cached_has_bits;
4771 
4772   _impl_.name_.ClearToEmpty();
4773   _impl_.actor_.ClearToEmpty();
4774   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
4775     delete _impl_.source_;
4776   }
4777   _impl_.source_ = nullptr;
4778   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
4779 }
4780 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)4781 const char* Overlayable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
4782 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
4783   while (!ctx->Done(&ptr)) {
4784     ::uint32_t tag;
4785     ptr = ::_pbi::ReadTag(ptr, &tag);
4786     switch (tag >> 3) {
4787       // string name = 1;
4788       case 1:
4789         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
4790           auto str = _internal_mutable_name();
4791           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4792           CHK_(ptr);
4793           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Overlayable.name"));
4794         } else {
4795           goto handle_unusual;
4796         }
4797         continue;
4798       // .aapt.pb.Source source = 2;
4799       case 2:
4800         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
4801           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
4802           CHK_(ptr);
4803         } else {
4804           goto handle_unusual;
4805         }
4806         continue;
4807       // string actor = 3;
4808       case 3:
4809         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
4810           auto str = _internal_mutable_actor();
4811           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
4812           CHK_(ptr);
4813           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Overlayable.actor"));
4814         } else {
4815           goto handle_unusual;
4816         }
4817         continue;
4818       default:
4819         goto handle_unusual;
4820     }  // switch
4821   handle_unusual:
4822     if ((tag == 0) || ((tag & 7) == 4)) {
4823       CHK_(ptr);
4824       ctx->SetLastTag(tag);
4825       goto message_done;
4826     }
4827     ptr = UnknownFieldParse(
4828         tag,
4829         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
4830         ptr, ctx);
4831     CHK_(ptr != nullptr);
4832   }  // while
4833 message_done:
4834   return ptr;
4835 failure:
4836   ptr = nullptr;
4837   goto message_done;
4838 #undef CHK_
4839 }
4840 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const4841 ::uint8_t* Overlayable::_InternalSerialize(
4842     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
4843   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Overlayable)
4844   ::uint32_t cached_has_bits = 0;
4845   (void) cached_has_bits;
4846 
4847   // string name = 1;
4848   if (!this->_internal_name().empty()) {
4849     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4850       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
4851       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4852       "aapt.pb.Overlayable.name");
4853     target = stream->WriteStringMaybeAliased(
4854         1, this->_internal_name(), target);
4855   }
4856 
4857   // .aapt.pb.Source source = 2;
4858   if (this->_internal_has_source()) {
4859     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
4860       InternalWriteMessage(2, _Internal::source(this),
4861         _Internal::source(this).GetCachedSize(), target, stream);
4862   }
4863 
4864   // string actor = 3;
4865   if (!this->_internal_actor().empty()) {
4866     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
4867       this->_internal_actor().data(), static_cast<int>(this->_internal_actor().length()),
4868       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
4869       "aapt.pb.Overlayable.actor");
4870     target = stream->WriteStringMaybeAliased(
4871         3, this->_internal_actor(), target);
4872   }
4873 
4874   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
4875     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
4876         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
4877   }
4878   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Overlayable)
4879   return target;
4880 }
4881 
ByteSizeLong() const4882 size_t Overlayable::ByteSizeLong() const {
4883 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Overlayable)
4884   size_t total_size = 0;
4885 
4886   ::uint32_t cached_has_bits = 0;
4887   // Prevent compiler warnings about cached_has_bits being unused
4888   (void) cached_has_bits;
4889 
4890   // string name = 1;
4891   if (!this->_internal_name().empty()) {
4892     total_size += 1 +
4893       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4894         this->_internal_name());
4895   }
4896 
4897   // string actor = 3;
4898   if (!this->_internal_actor().empty()) {
4899     total_size += 1 +
4900       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
4901         this->_internal_actor());
4902   }
4903 
4904   // .aapt.pb.Source source = 2;
4905   if (this->_internal_has_source()) {
4906     total_size += 1 +
4907       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
4908         *_impl_.source_);
4909   }
4910 
4911   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
4912 }
4913 
4914 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Overlayable::_class_data_ = {
4915     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
4916     Overlayable::MergeImpl
4917 };
GetClassData() const4918 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Overlayable::GetClassData() const { return &_class_data_; }
4919 
4920 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)4921 void Overlayable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
4922   auto* const _this = static_cast<Overlayable*>(&to_msg);
4923   auto& from = static_cast<const Overlayable&>(from_msg);
4924   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Overlayable)
4925   GOOGLE_DCHECK_NE(&from, _this);
4926   ::uint32_t cached_has_bits = 0;
4927   (void) cached_has_bits;
4928 
4929   if (!from._internal_name().empty()) {
4930     _this->_internal_set_name(from._internal_name());
4931   }
4932   if (!from._internal_actor().empty()) {
4933     _this->_internal_set_actor(from._internal_actor());
4934   }
4935   if (from._internal_has_source()) {
4936     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
4937         from._internal_source());
4938   }
4939   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
4940 }
4941 
CopyFrom(const Overlayable & from)4942 void Overlayable::CopyFrom(const Overlayable& from) {
4943 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Overlayable)
4944   if (&from == this) return;
4945   Clear();
4946   MergeFrom(from);
4947 }
4948 
IsInitialized() const4949 bool Overlayable::IsInitialized() const {
4950   return true;
4951 }
4952 
InternalSwap(Overlayable * other)4953 void Overlayable::InternalSwap(Overlayable* other) {
4954   using std::swap;
4955   auto* lhs_arena = GetArenaForAllocation();
4956   auto* rhs_arena = other->GetArenaForAllocation();
4957   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
4958   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4959       &_impl_.name_, lhs_arena,
4960       &other->_impl_.name_, rhs_arena
4961   );
4962   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
4963       &_impl_.actor_, lhs_arena,
4964       &other->_impl_.actor_, rhs_arena
4965   );
4966   swap(_impl_.source_, other->_impl_.source_);
4967 }
4968 
GetMetadata() const4969 ::PROTOBUF_NAMESPACE_ID::Metadata Overlayable::GetMetadata() const {
4970   return ::_pbi::AssignDescriptors(
4971       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
4972       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[12]);
4973 }
4974 
4975 // ===================================================================
4976 
4977 class OverlayableItem::_Internal {
4978  public:
4979   static const ::aapt::pb::Source& source(const OverlayableItem* msg);
4980 };
4981 
4982 const ::aapt::pb::Source&
source(const OverlayableItem * msg)4983 OverlayableItem::_Internal::source(const OverlayableItem* msg) {
4984   return *msg->_impl_.source_;
4985 }
OverlayableItem(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)4986 OverlayableItem::OverlayableItem(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4987                          bool is_message_owned)
4988   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
4989   SharedCtor(arena, is_message_owned);
4990   // @@protoc_insertion_point(arena_constructor:aapt.pb.OverlayableItem)
4991 }
OverlayableItem(const OverlayableItem & from)4992 OverlayableItem::OverlayableItem(const OverlayableItem& from)
4993   : ::PROTOBUF_NAMESPACE_ID::Message() {
4994   OverlayableItem* const _this = this; (void)_this;
4995   new (&_impl_) Impl_{
4996       decltype(_impl_.policy_){from._impl_.policy_}
4997     , /*decltype(_impl_._policy_cached_byte_size_)*/{0}
4998     , decltype(_impl_.comment_){}
4999     , decltype(_impl_.source_){nullptr}
5000     , decltype(_impl_.overlayable_idx_){}
5001     , /*decltype(_impl_._cached_size_)*/{}};
5002 
5003   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5004   _impl_.comment_.InitDefault();
5005   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5006     _impl_.comment_.Set("", GetArenaForAllocation());
5007   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5008   if (!from._internal_comment().empty()) {
5009     _this->_impl_.comment_.Set(from._internal_comment(),
5010       _this->GetArenaForAllocation());
5011   }
5012   if (from._internal_has_source()) {
5013     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
5014   }
5015   _this->_impl_.overlayable_idx_ = from._impl_.overlayable_idx_;
5016   // @@protoc_insertion_point(copy_constructor:aapt.pb.OverlayableItem)
5017 }
5018 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5019 inline void OverlayableItem::SharedCtor(
5020     ::_pb::Arena* arena, bool is_message_owned) {
5021   (void)arena;
5022   (void)is_message_owned;
5023   new (&_impl_) Impl_{
5024       decltype(_impl_.policy_){arena}
5025     , /*decltype(_impl_._policy_cached_byte_size_)*/{0}
5026     , decltype(_impl_.comment_){}
5027     , decltype(_impl_.source_){nullptr}
5028     , decltype(_impl_.overlayable_idx_){0u}
5029     , /*decltype(_impl_._cached_size_)*/{}
5030   };
5031   _impl_.comment_.InitDefault();
5032   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5033     _impl_.comment_.Set("", GetArenaForAllocation());
5034   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5035 }
5036 
~OverlayableItem()5037 OverlayableItem::~OverlayableItem() {
5038   // @@protoc_insertion_point(destructor:aapt.pb.OverlayableItem)
5039   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5040   (void)arena;
5041     return;
5042   }
5043   SharedDtor();
5044 }
5045 
SharedDtor()5046 inline void OverlayableItem::SharedDtor() {
5047   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5048   _impl_.policy_.~RepeatedField();
5049   _impl_.comment_.Destroy();
5050   if (this != internal_default_instance()) delete _impl_.source_;
5051 }
5052 
SetCachedSize(int size) const5053 void OverlayableItem::SetCachedSize(int size) const {
5054   _impl_._cached_size_.Set(size);
5055 }
5056 
Clear()5057 void OverlayableItem::Clear() {
5058 // @@protoc_insertion_point(message_clear_start:aapt.pb.OverlayableItem)
5059   ::uint32_t cached_has_bits = 0;
5060   // Prevent compiler warnings about cached_has_bits being unused
5061   (void) cached_has_bits;
5062 
5063   _impl_.policy_.Clear();
5064   _impl_.comment_.ClearToEmpty();
5065   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
5066     delete _impl_.source_;
5067   }
5068   _impl_.source_ = nullptr;
5069   _impl_.overlayable_idx_ = 0u;
5070   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5071 }
5072 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5073 const char* OverlayableItem::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5074 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5075   while (!ctx->Done(&ptr)) {
5076     ::uint32_t tag;
5077     ptr = ::_pbi::ReadTag(ptr, &tag);
5078     switch (tag >> 3) {
5079       // .aapt.pb.Source source = 1;
5080       case 1:
5081         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5082           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
5083           CHK_(ptr);
5084         } else {
5085           goto handle_unusual;
5086         }
5087         continue;
5088       // string comment = 2;
5089       case 2:
5090         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
5091           auto str = _internal_mutable_comment();
5092           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5093           CHK_(ptr);
5094           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.OverlayableItem.comment"));
5095         } else {
5096           goto handle_unusual;
5097         }
5098         continue;
5099       // repeated .aapt.pb.OverlayableItem.Policy policy = 3;
5100       case 3:
5101         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
5102           ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_policy(), ptr, ctx);
5103           CHK_(ptr);
5104         } else if (static_cast<::uint8_t>(tag) == 24) {
5105           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
5106           CHK_(ptr);
5107           _internal_add_policy(static_cast<::aapt::pb::OverlayableItem_Policy>(val));
5108         } else {
5109           goto handle_unusual;
5110         }
5111         continue;
5112       // uint32 overlayable_idx = 4;
5113       case 4:
5114         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
5115           _impl_.overlayable_idx_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5116           CHK_(ptr);
5117         } else {
5118           goto handle_unusual;
5119         }
5120         continue;
5121       default:
5122         goto handle_unusual;
5123     }  // switch
5124   handle_unusual:
5125     if ((tag == 0) || ((tag & 7) == 4)) {
5126       CHK_(ptr);
5127       ctx->SetLastTag(tag);
5128       goto message_done;
5129     }
5130     ptr = UnknownFieldParse(
5131         tag,
5132         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5133         ptr, ctx);
5134     CHK_(ptr != nullptr);
5135   }  // while
5136 message_done:
5137   return ptr;
5138 failure:
5139   ptr = nullptr;
5140   goto message_done;
5141 #undef CHK_
5142 }
5143 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5144 ::uint8_t* OverlayableItem::_InternalSerialize(
5145     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5146   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.OverlayableItem)
5147   ::uint32_t cached_has_bits = 0;
5148   (void) cached_has_bits;
5149 
5150   // .aapt.pb.Source source = 1;
5151   if (this->_internal_has_source()) {
5152     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5153       InternalWriteMessage(1, _Internal::source(this),
5154         _Internal::source(this).GetCachedSize(), target, stream);
5155   }
5156 
5157   // string comment = 2;
5158   if (!this->_internal_comment().empty()) {
5159     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5160       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
5161       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5162       "aapt.pb.OverlayableItem.comment");
5163     target = stream->WriteStringMaybeAliased(
5164         2, this->_internal_comment(), target);
5165   }
5166 
5167   // repeated .aapt.pb.OverlayableItem.Policy policy = 3;
5168   {
5169     int byte_size = _impl_._policy_cached_byte_size_.load(std::memory_order_relaxed);
5170     if (byte_size > 0) {
5171       target = stream->WriteEnumPacked(
5172           3, _impl_.policy_, byte_size, target);
5173     }
5174   }
5175 
5176   // uint32 overlayable_idx = 4;
5177   if (this->_internal_overlayable_idx() != 0) {
5178     target = stream->EnsureSpace(target);
5179     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_overlayable_idx(), target);
5180   }
5181 
5182   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5183     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5184         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5185   }
5186   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.OverlayableItem)
5187   return target;
5188 }
5189 
ByteSizeLong() const5190 size_t OverlayableItem::ByteSizeLong() const {
5191 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.OverlayableItem)
5192   size_t total_size = 0;
5193 
5194   ::uint32_t cached_has_bits = 0;
5195   // Prevent compiler warnings about cached_has_bits being unused
5196   (void) cached_has_bits;
5197 
5198   // repeated .aapt.pb.OverlayableItem.Policy policy = 3;
5199   {
5200     size_t data_size = 0;
5201     unsigned int count = static_cast<unsigned int>(this->_internal_policy_size());for (unsigned int i = 0; i < count; i++) {
5202       data_size += ::_pbi::WireFormatLite::EnumSize(
5203         this->_internal_policy(static_cast<int>(i)));
5204     }
5205     if (data_size > 0) {
5206       total_size += 1 +
5207         ::_pbi::WireFormatLite::Int32Size(static_cast<::int32_t>(data_size));
5208     }
5209     int cached_size = ::_pbi::ToCachedSize(data_size);
5210     _impl_._policy_cached_byte_size_.store(cached_size,
5211                                     std::memory_order_relaxed);
5212     total_size += data_size;
5213   }
5214 
5215   // string comment = 2;
5216   if (!this->_internal_comment().empty()) {
5217     total_size += 1 +
5218       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
5219         this->_internal_comment());
5220   }
5221 
5222   // .aapt.pb.Source source = 1;
5223   if (this->_internal_has_source()) {
5224     total_size += 1 +
5225       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5226         *_impl_.source_);
5227   }
5228 
5229   // uint32 overlayable_idx = 4;
5230   if (this->_internal_overlayable_idx() != 0) {
5231     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_overlayable_idx());
5232   }
5233 
5234   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5235 }
5236 
5237 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OverlayableItem::_class_data_ = {
5238     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5239     OverlayableItem::MergeImpl
5240 };
GetClassData() const5241 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OverlayableItem::GetClassData() const { return &_class_data_; }
5242 
5243 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5244 void OverlayableItem::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5245   auto* const _this = static_cast<OverlayableItem*>(&to_msg);
5246   auto& from = static_cast<const OverlayableItem&>(from_msg);
5247   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.OverlayableItem)
5248   GOOGLE_DCHECK_NE(&from, _this);
5249   ::uint32_t cached_has_bits = 0;
5250   (void) cached_has_bits;
5251 
5252   _this->_impl_.policy_.MergeFrom(from._impl_.policy_);
5253   if (!from._internal_comment().empty()) {
5254     _this->_internal_set_comment(from._internal_comment());
5255   }
5256   if (from._internal_has_source()) {
5257     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
5258         from._internal_source());
5259   }
5260   if (from._internal_overlayable_idx() != 0) {
5261     _this->_internal_set_overlayable_idx(from._internal_overlayable_idx());
5262   }
5263   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5264 }
5265 
CopyFrom(const OverlayableItem & from)5266 void OverlayableItem::CopyFrom(const OverlayableItem& from) {
5267 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.OverlayableItem)
5268   if (&from == this) return;
5269   Clear();
5270   MergeFrom(from);
5271 }
5272 
IsInitialized() const5273 bool OverlayableItem::IsInitialized() const {
5274   return true;
5275 }
5276 
InternalSwap(OverlayableItem * other)5277 void OverlayableItem::InternalSwap(OverlayableItem* other) {
5278   using std::swap;
5279   auto* lhs_arena = GetArenaForAllocation();
5280   auto* rhs_arena = other->GetArenaForAllocation();
5281   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5282   _impl_.policy_.InternalSwap(&other->_impl_.policy_);
5283   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
5284       &_impl_.comment_, lhs_arena,
5285       &other->_impl_.comment_, rhs_arena
5286   );
5287   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5288       PROTOBUF_FIELD_OFFSET(OverlayableItem, _impl_.overlayable_idx_)
5289       + sizeof(OverlayableItem::_impl_.overlayable_idx_)  // NOLINT
5290       - PROTOBUF_FIELD_OFFSET(OverlayableItem, _impl_.source_)>(
5291           reinterpret_cast<char*>(&_impl_.source_),
5292           reinterpret_cast<char*>(&other->_impl_.source_));
5293 }
5294 
GetMetadata() const5295 ::PROTOBUF_NAMESPACE_ID::Metadata OverlayableItem::GetMetadata() const {
5296   return ::_pbi::AssignDescriptors(
5297       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
5298       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[13]);
5299 }
5300 
5301 // ===================================================================
5302 
5303 class StagedId::_Internal {
5304  public:
5305   static const ::aapt::pb::Source& source(const StagedId* msg);
5306 };
5307 
5308 const ::aapt::pb::Source&
source(const StagedId * msg)5309 StagedId::_Internal::source(const StagedId* msg) {
5310   return *msg->_impl_.source_;
5311 }
StagedId(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5312 StagedId::StagedId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5313                          bool is_message_owned)
5314   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5315   SharedCtor(arena, is_message_owned);
5316   // @@protoc_insertion_point(arena_constructor:aapt.pb.StagedId)
5317 }
StagedId(const StagedId & from)5318 StagedId::StagedId(const StagedId& from)
5319   : ::PROTOBUF_NAMESPACE_ID::Message() {
5320   StagedId* const _this = this; (void)_this;
5321   new (&_impl_) Impl_{
5322       decltype(_impl_.source_){nullptr}
5323     , decltype(_impl_.staged_id_){}
5324     , /*decltype(_impl_._cached_size_)*/{}};
5325 
5326   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5327   if (from._internal_has_source()) {
5328     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
5329   }
5330   _this->_impl_.staged_id_ = from._impl_.staged_id_;
5331   // @@protoc_insertion_point(copy_constructor:aapt.pb.StagedId)
5332 }
5333 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5334 inline void StagedId::SharedCtor(
5335     ::_pb::Arena* arena, bool is_message_owned) {
5336   (void)arena;
5337   (void)is_message_owned;
5338   new (&_impl_) Impl_{
5339       decltype(_impl_.source_){nullptr}
5340     , decltype(_impl_.staged_id_){0u}
5341     , /*decltype(_impl_._cached_size_)*/{}
5342   };
5343 }
5344 
~StagedId()5345 StagedId::~StagedId() {
5346   // @@protoc_insertion_point(destructor:aapt.pb.StagedId)
5347   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5348   (void)arena;
5349     return;
5350   }
5351   SharedDtor();
5352 }
5353 
SharedDtor()5354 inline void StagedId::SharedDtor() {
5355   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5356   if (this != internal_default_instance()) delete _impl_.source_;
5357 }
5358 
SetCachedSize(int size) const5359 void StagedId::SetCachedSize(int size) const {
5360   _impl_._cached_size_.Set(size);
5361 }
5362 
Clear()5363 void StagedId::Clear() {
5364 // @@protoc_insertion_point(message_clear_start:aapt.pb.StagedId)
5365   ::uint32_t cached_has_bits = 0;
5366   // Prevent compiler warnings about cached_has_bits being unused
5367   (void) cached_has_bits;
5368 
5369   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
5370     delete _impl_.source_;
5371   }
5372   _impl_.source_ = nullptr;
5373   _impl_.staged_id_ = 0u;
5374   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5375 }
5376 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5377 const char* StagedId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5378 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5379   while (!ctx->Done(&ptr)) {
5380     ::uint32_t tag;
5381     ptr = ::_pbi::ReadTag(ptr, &tag);
5382     switch (tag >> 3) {
5383       // .aapt.pb.Source source = 1;
5384       case 1:
5385         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5386           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
5387           CHK_(ptr);
5388         } else {
5389           goto handle_unusual;
5390         }
5391         continue;
5392       // uint32 staged_id = 2;
5393       case 2:
5394         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
5395           _impl_.staged_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5396           CHK_(ptr);
5397         } else {
5398           goto handle_unusual;
5399         }
5400         continue;
5401       default:
5402         goto handle_unusual;
5403     }  // switch
5404   handle_unusual:
5405     if ((tag == 0) || ((tag & 7) == 4)) {
5406       CHK_(ptr);
5407       ctx->SetLastTag(tag);
5408       goto message_done;
5409     }
5410     ptr = UnknownFieldParse(
5411         tag,
5412         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5413         ptr, ctx);
5414     CHK_(ptr != nullptr);
5415   }  // while
5416 message_done:
5417   return ptr;
5418 failure:
5419   ptr = nullptr;
5420   goto message_done;
5421 #undef CHK_
5422 }
5423 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5424 ::uint8_t* StagedId::_InternalSerialize(
5425     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5426   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StagedId)
5427   ::uint32_t cached_has_bits = 0;
5428   (void) cached_has_bits;
5429 
5430   // .aapt.pb.Source source = 1;
5431   if (this->_internal_has_source()) {
5432     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5433       InternalWriteMessage(1, _Internal::source(this),
5434         _Internal::source(this).GetCachedSize(), target, stream);
5435   }
5436 
5437   // uint32 staged_id = 2;
5438   if (this->_internal_staged_id() != 0) {
5439     target = stream->EnsureSpace(target);
5440     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_staged_id(), target);
5441   }
5442 
5443   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5444     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5445         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5446   }
5447   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StagedId)
5448   return target;
5449 }
5450 
ByteSizeLong() const5451 size_t StagedId::ByteSizeLong() const {
5452 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StagedId)
5453   size_t total_size = 0;
5454 
5455   ::uint32_t cached_has_bits = 0;
5456   // Prevent compiler warnings about cached_has_bits being unused
5457   (void) cached_has_bits;
5458 
5459   // .aapt.pb.Source source = 1;
5460   if (this->_internal_has_source()) {
5461     total_size += 1 +
5462       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
5463         *_impl_.source_);
5464   }
5465 
5466   // uint32 staged_id = 2;
5467   if (this->_internal_staged_id() != 0) {
5468     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_staged_id());
5469   }
5470 
5471   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5472 }
5473 
5474 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StagedId::_class_data_ = {
5475     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5476     StagedId::MergeImpl
5477 };
GetClassData() const5478 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StagedId::GetClassData() const { return &_class_data_; }
5479 
5480 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5481 void StagedId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5482   auto* const _this = static_cast<StagedId*>(&to_msg);
5483   auto& from = static_cast<const StagedId&>(from_msg);
5484   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StagedId)
5485   GOOGLE_DCHECK_NE(&from, _this);
5486   ::uint32_t cached_has_bits = 0;
5487   (void) cached_has_bits;
5488 
5489   if (from._internal_has_source()) {
5490     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
5491         from._internal_source());
5492   }
5493   if (from._internal_staged_id() != 0) {
5494     _this->_internal_set_staged_id(from._internal_staged_id());
5495   }
5496   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5497 }
5498 
CopyFrom(const StagedId & from)5499 void StagedId::CopyFrom(const StagedId& from) {
5500 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StagedId)
5501   if (&from == this) return;
5502   Clear();
5503   MergeFrom(from);
5504 }
5505 
IsInitialized() const5506 bool StagedId::IsInitialized() const {
5507   return true;
5508 }
5509 
InternalSwap(StagedId * other)5510 void StagedId::InternalSwap(StagedId* other) {
5511   using std::swap;
5512   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5513   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
5514       PROTOBUF_FIELD_OFFSET(StagedId, _impl_.staged_id_)
5515       + sizeof(StagedId::_impl_.staged_id_)  // NOLINT
5516       - PROTOBUF_FIELD_OFFSET(StagedId, _impl_.source_)>(
5517           reinterpret_cast<char*>(&_impl_.source_),
5518           reinterpret_cast<char*>(&other->_impl_.source_));
5519 }
5520 
GetMetadata() const5521 ::PROTOBUF_NAMESPACE_ID::Metadata StagedId::GetMetadata() const {
5522   return ::_pbi::AssignDescriptors(
5523       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
5524       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[14]);
5525 }
5526 
5527 // ===================================================================
5528 
5529 class EntryId::_Internal {
5530  public:
5531 };
5532 
EntryId(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5533 EntryId::EntryId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5534                          bool is_message_owned)
5535   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5536   SharedCtor(arena, is_message_owned);
5537   // @@protoc_insertion_point(arena_constructor:aapt.pb.EntryId)
5538 }
EntryId(const EntryId & from)5539 EntryId::EntryId(const EntryId& from)
5540   : ::PROTOBUF_NAMESPACE_ID::Message() {
5541   EntryId* const _this = this; (void)_this;
5542   new (&_impl_) Impl_{
5543       decltype(_impl_.id_){}
5544     , /*decltype(_impl_._cached_size_)*/{}};
5545 
5546   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5547   _this->_impl_.id_ = from._impl_.id_;
5548   // @@protoc_insertion_point(copy_constructor:aapt.pb.EntryId)
5549 }
5550 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5551 inline void EntryId::SharedCtor(
5552     ::_pb::Arena* arena, bool is_message_owned) {
5553   (void)arena;
5554   (void)is_message_owned;
5555   new (&_impl_) Impl_{
5556       decltype(_impl_.id_){0u}
5557     , /*decltype(_impl_._cached_size_)*/{}
5558   };
5559 }
5560 
~EntryId()5561 EntryId::~EntryId() {
5562   // @@protoc_insertion_point(destructor:aapt.pb.EntryId)
5563   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5564   (void)arena;
5565     return;
5566   }
5567   SharedDtor();
5568 }
5569 
SharedDtor()5570 inline void EntryId::SharedDtor() {
5571   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5572 }
5573 
SetCachedSize(int size) const5574 void EntryId::SetCachedSize(int size) const {
5575   _impl_._cached_size_.Set(size);
5576 }
5577 
Clear()5578 void EntryId::Clear() {
5579 // @@protoc_insertion_point(message_clear_start:aapt.pb.EntryId)
5580   ::uint32_t cached_has_bits = 0;
5581   // Prevent compiler warnings about cached_has_bits being unused
5582   (void) cached_has_bits;
5583 
5584   _impl_.id_ = 0u;
5585   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5586 }
5587 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5588 const char* EntryId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5589 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5590   while (!ctx->Done(&ptr)) {
5591     ::uint32_t tag;
5592     ptr = ::_pbi::ReadTag(ptr, &tag);
5593     switch (tag >> 3) {
5594       // uint32 id = 1;
5595       case 1:
5596         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
5597           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
5598           CHK_(ptr);
5599         } else {
5600           goto handle_unusual;
5601         }
5602         continue;
5603       default:
5604         goto handle_unusual;
5605     }  // switch
5606   handle_unusual:
5607     if ((tag == 0) || ((tag & 7) == 4)) {
5608       CHK_(ptr);
5609       ctx->SetLastTag(tag);
5610       goto message_done;
5611     }
5612     ptr = UnknownFieldParse(
5613         tag,
5614         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5615         ptr, ctx);
5616     CHK_(ptr != nullptr);
5617   }  // while
5618 message_done:
5619   return ptr;
5620 failure:
5621   ptr = nullptr;
5622   goto message_done;
5623 #undef CHK_
5624 }
5625 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5626 ::uint8_t* EntryId::_InternalSerialize(
5627     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5628   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.EntryId)
5629   ::uint32_t cached_has_bits = 0;
5630   (void) cached_has_bits;
5631 
5632   // uint32 id = 1;
5633   if (this->_internal_id() != 0) {
5634     target = stream->EnsureSpace(target);
5635     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target);
5636   }
5637 
5638   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
5639     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
5640         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
5641   }
5642   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.EntryId)
5643   return target;
5644 }
5645 
ByteSizeLong() const5646 size_t EntryId::ByteSizeLong() const {
5647 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.EntryId)
5648   size_t total_size = 0;
5649 
5650   ::uint32_t cached_has_bits = 0;
5651   // Prevent compiler warnings about cached_has_bits being unused
5652   (void) cached_has_bits;
5653 
5654   // uint32 id = 1;
5655   if (this->_internal_id() != 0) {
5656     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
5657   }
5658 
5659   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
5660 }
5661 
5662 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EntryId::_class_data_ = {
5663     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
5664     EntryId::MergeImpl
5665 };
GetClassData() const5666 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EntryId::GetClassData() const { return &_class_data_; }
5667 
5668 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)5669 void EntryId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
5670   auto* const _this = static_cast<EntryId*>(&to_msg);
5671   auto& from = static_cast<const EntryId&>(from_msg);
5672   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.EntryId)
5673   GOOGLE_DCHECK_NE(&from, _this);
5674   ::uint32_t cached_has_bits = 0;
5675   (void) cached_has_bits;
5676 
5677   if (from._internal_id() != 0) {
5678     _this->_internal_set_id(from._internal_id());
5679   }
5680   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5681 }
5682 
CopyFrom(const EntryId & from)5683 void EntryId::CopyFrom(const EntryId& from) {
5684 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.EntryId)
5685   if (&from == this) return;
5686   Clear();
5687   MergeFrom(from);
5688 }
5689 
IsInitialized() const5690 bool EntryId::IsInitialized() const {
5691   return true;
5692 }
5693 
InternalSwap(EntryId * other)5694 void EntryId::InternalSwap(EntryId* other) {
5695   using std::swap;
5696   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
5697   swap(_impl_.id_, other->_impl_.id_);
5698 }
5699 
GetMetadata() const5700 ::PROTOBUF_NAMESPACE_ID::Metadata EntryId::GetMetadata() const {
5701   return ::_pbi::AssignDescriptors(
5702       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
5703       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[15]);
5704 }
5705 
5706 // ===================================================================
5707 
5708 class Entry::_Internal {
5709  public:
5710   static const ::aapt::pb::EntryId& entry_id(const Entry* msg);
5711   static const ::aapt::pb::Visibility& visibility(const Entry* msg);
5712   static const ::aapt::pb::AllowNew& allow_new(const Entry* msg);
5713   static const ::aapt::pb::OverlayableItem& overlayable_item(const Entry* msg);
5714   static const ::aapt::pb::StagedId& staged_id(const Entry* msg);
5715 };
5716 
5717 const ::aapt::pb::EntryId&
entry_id(const Entry * msg)5718 Entry::_Internal::entry_id(const Entry* msg) {
5719   return *msg->_impl_.entry_id_;
5720 }
5721 const ::aapt::pb::Visibility&
visibility(const Entry * msg)5722 Entry::_Internal::visibility(const Entry* msg) {
5723   return *msg->_impl_.visibility_;
5724 }
5725 const ::aapt::pb::AllowNew&
allow_new(const Entry * msg)5726 Entry::_Internal::allow_new(const Entry* msg) {
5727   return *msg->_impl_.allow_new_;
5728 }
5729 const ::aapt::pb::OverlayableItem&
overlayable_item(const Entry * msg)5730 Entry::_Internal::overlayable_item(const Entry* msg) {
5731   return *msg->_impl_.overlayable_item_;
5732 }
5733 const ::aapt::pb::StagedId&
staged_id(const Entry * msg)5734 Entry::_Internal::staged_id(const Entry* msg) {
5735   return *msg->_impl_.staged_id_;
5736 }
Entry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)5737 Entry::Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5738                          bool is_message_owned)
5739   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
5740   SharedCtor(arena, is_message_owned);
5741   // @@protoc_insertion_point(arena_constructor:aapt.pb.Entry)
5742 }
Entry(const Entry & from)5743 Entry::Entry(const Entry& from)
5744   : ::PROTOBUF_NAMESPACE_ID::Message() {
5745   Entry* const _this = this; (void)_this;
5746   new (&_impl_) Impl_{
5747       decltype(_impl_.config_value_){from._impl_.config_value_}
5748     , decltype(_impl_.flag_disabled_config_value_){from._impl_.flag_disabled_config_value_}
5749     , decltype(_impl_.name_){}
5750     , decltype(_impl_.entry_id_){nullptr}
5751     , decltype(_impl_.visibility_){nullptr}
5752     , decltype(_impl_.allow_new_){nullptr}
5753     , decltype(_impl_.overlayable_item_){nullptr}
5754     , decltype(_impl_.staged_id_){nullptr}
5755     , /*decltype(_impl_._cached_size_)*/{}};
5756 
5757   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
5758   _impl_.name_.InitDefault();
5759   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5760     _impl_.name_.Set("", GetArenaForAllocation());
5761   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5762   if (!from._internal_name().empty()) {
5763     _this->_impl_.name_.Set(from._internal_name(),
5764       _this->GetArenaForAllocation());
5765   }
5766   if (from._internal_has_entry_id()) {
5767     _this->_impl_.entry_id_ = new ::aapt::pb::EntryId(*from._impl_.entry_id_);
5768   }
5769   if (from._internal_has_visibility()) {
5770     _this->_impl_.visibility_ = new ::aapt::pb::Visibility(*from._impl_.visibility_);
5771   }
5772   if (from._internal_has_allow_new()) {
5773     _this->_impl_.allow_new_ = new ::aapt::pb::AllowNew(*from._impl_.allow_new_);
5774   }
5775   if (from._internal_has_overlayable_item()) {
5776     _this->_impl_.overlayable_item_ = new ::aapt::pb::OverlayableItem(*from._impl_.overlayable_item_);
5777   }
5778   if (from._internal_has_staged_id()) {
5779     _this->_impl_.staged_id_ = new ::aapt::pb::StagedId(*from._impl_.staged_id_);
5780   }
5781   // @@protoc_insertion_point(copy_constructor:aapt.pb.Entry)
5782 }
5783 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)5784 inline void Entry::SharedCtor(
5785     ::_pb::Arena* arena, bool is_message_owned) {
5786   (void)arena;
5787   (void)is_message_owned;
5788   new (&_impl_) Impl_{
5789       decltype(_impl_.config_value_){arena}
5790     , decltype(_impl_.flag_disabled_config_value_){arena}
5791     , decltype(_impl_.name_){}
5792     , decltype(_impl_.entry_id_){nullptr}
5793     , decltype(_impl_.visibility_){nullptr}
5794     , decltype(_impl_.allow_new_){nullptr}
5795     , decltype(_impl_.overlayable_item_){nullptr}
5796     , decltype(_impl_.staged_id_){nullptr}
5797     , /*decltype(_impl_._cached_size_)*/{}
5798   };
5799   _impl_.name_.InitDefault();
5800   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
5801     _impl_.name_.Set("", GetArenaForAllocation());
5802   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
5803 }
5804 
~Entry()5805 Entry::~Entry() {
5806   // @@protoc_insertion_point(destructor:aapt.pb.Entry)
5807   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
5808   (void)arena;
5809     return;
5810   }
5811   SharedDtor();
5812 }
5813 
SharedDtor()5814 inline void Entry::SharedDtor() {
5815   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
5816   _impl_.config_value_.~RepeatedPtrField();
5817   _impl_.flag_disabled_config_value_.~RepeatedPtrField();
5818   _impl_.name_.Destroy();
5819   if (this != internal_default_instance()) delete _impl_.entry_id_;
5820   if (this != internal_default_instance()) delete _impl_.visibility_;
5821   if (this != internal_default_instance()) delete _impl_.allow_new_;
5822   if (this != internal_default_instance()) delete _impl_.overlayable_item_;
5823   if (this != internal_default_instance()) delete _impl_.staged_id_;
5824 }
5825 
SetCachedSize(int size) const5826 void Entry::SetCachedSize(int size) const {
5827   _impl_._cached_size_.Set(size);
5828 }
5829 
Clear()5830 void Entry::Clear() {
5831 // @@protoc_insertion_point(message_clear_start:aapt.pb.Entry)
5832   ::uint32_t cached_has_bits = 0;
5833   // Prevent compiler warnings about cached_has_bits being unused
5834   (void) cached_has_bits;
5835 
5836   _impl_.config_value_.Clear();
5837   _impl_.flag_disabled_config_value_.Clear();
5838   _impl_.name_.ClearToEmpty();
5839   if (GetArenaForAllocation() == nullptr && _impl_.entry_id_ != nullptr) {
5840     delete _impl_.entry_id_;
5841   }
5842   _impl_.entry_id_ = nullptr;
5843   if (GetArenaForAllocation() == nullptr && _impl_.visibility_ != nullptr) {
5844     delete _impl_.visibility_;
5845   }
5846   _impl_.visibility_ = nullptr;
5847   if (GetArenaForAllocation() == nullptr && _impl_.allow_new_ != nullptr) {
5848     delete _impl_.allow_new_;
5849   }
5850   _impl_.allow_new_ = nullptr;
5851   if (GetArenaForAllocation() == nullptr && _impl_.overlayable_item_ != nullptr) {
5852     delete _impl_.overlayable_item_;
5853   }
5854   _impl_.overlayable_item_ = nullptr;
5855   if (GetArenaForAllocation() == nullptr && _impl_.staged_id_ != nullptr) {
5856     delete _impl_.staged_id_;
5857   }
5858   _impl_.staged_id_ = nullptr;
5859   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
5860 }
5861 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)5862 const char* Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
5863 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
5864   while (!ctx->Done(&ptr)) {
5865     ::uint32_t tag;
5866     ptr = ::_pbi::ReadTag(ptr, &tag);
5867     switch (tag >> 3) {
5868       // .aapt.pb.EntryId entry_id = 1;
5869       case 1:
5870         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
5871           ptr = ctx->ParseMessage(_internal_mutable_entry_id(), ptr);
5872           CHK_(ptr);
5873         } else {
5874           goto handle_unusual;
5875         }
5876         continue;
5877       // string name = 2;
5878       case 2:
5879         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
5880           auto str = _internal_mutable_name();
5881           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
5882           CHK_(ptr);
5883           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Entry.name"));
5884         } else {
5885           goto handle_unusual;
5886         }
5887         continue;
5888       // .aapt.pb.Visibility visibility = 3;
5889       case 3:
5890         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
5891           ptr = ctx->ParseMessage(_internal_mutable_visibility(), ptr);
5892           CHK_(ptr);
5893         } else {
5894           goto handle_unusual;
5895         }
5896         continue;
5897       // .aapt.pb.AllowNew allow_new = 4;
5898       case 4:
5899         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
5900           ptr = ctx->ParseMessage(_internal_mutable_allow_new(), ptr);
5901           CHK_(ptr);
5902         } else {
5903           goto handle_unusual;
5904         }
5905         continue;
5906       // .aapt.pb.OverlayableItem overlayable_item = 5;
5907       case 5:
5908         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
5909           ptr = ctx->ParseMessage(_internal_mutable_overlayable_item(), ptr);
5910           CHK_(ptr);
5911         } else {
5912           goto handle_unusual;
5913         }
5914         continue;
5915       // repeated .aapt.pb.ConfigValue config_value = 6;
5916       case 6:
5917         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
5918           ptr -= 1;
5919           do {
5920             ptr += 1;
5921             ptr = ctx->ParseMessage(_internal_add_config_value(), ptr);
5922             CHK_(ptr);
5923             if (!ctx->DataAvailable(ptr)) break;
5924           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
5925         } else {
5926           goto handle_unusual;
5927         }
5928         continue;
5929       // .aapt.pb.StagedId staged_id = 7;
5930       case 7:
5931         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
5932           ptr = ctx->ParseMessage(_internal_mutable_staged_id(), ptr);
5933           CHK_(ptr);
5934         } else {
5935           goto handle_unusual;
5936         }
5937         continue;
5938       // repeated .aapt.pb.ConfigValue flag_disabled_config_value = 8;
5939       case 8:
5940         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
5941           ptr -= 1;
5942           do {
5943             ptr += 1;
5944             ptr = ctx->ParseMessage(_internal_add_flag_disabled_config_value(), ptr);
5945             CHK_(ptr);
5946             if (!ctx->DataAvailable(ptr)) break;
5947           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
5948         } else {
5949           goto handle_unusual;
5950         }
5951         continue;
5952       default:
5953         goto handle_unusual;
5954     }  // switch
5955   handle_unusual:
5956     if ((tag == 0) || ((tag & 7) == 4)) {
5957       CHK_(ptr);
5958       ctx->SetLastTag(tag);
5959       goto message_done;
5960     }
5961     ptr = UnknownFieldParse(
5962         tag,
5963         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
5964         ptr, ctx);
5965     CHK_(ptr != nullptr);
5966   }  // while
5967 message_done:
5968   return ptr;
5969 failure:
5970   ptr = nullptr;
5971   goto message_done;
5972 #undef CHK_
5973 }
5974 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const5975 ::uint8_t* Entry::_InternalSerialize(
5976     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
5977   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Entry)
5978   ::uint32_t cached_has_bits = 0;
5979   (void) cached_has_bits;
5980 
5981   // .aapt.pb.EntryId entry_id = 1;
5982   if (this->_internal_has_entry_id()) {
5983     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
5984       InternalWriteMessage(1, _Internal::entry_id(this),
5985         _Internal::entry_id(this).GetCachedSize(), target, stream);
5986   }
5987 
5988   // string name = 2;
5989   if (!this->_internal_name().empty()) {
5990     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
5991       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
5992       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
5993       "aapt.pb.Entry.name");
5994     target = stream->WriteStringMaybeAliased(
5995         2, this->_internal_name(), target);
5996   }
5997 
5998   // .aapt.pb.Visibility visibility = 3;
5999   if (this->_internal_has_visibility()) {
6000     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6001       InternalWriteMessage(3, _Internal::visibility(this),
6002         _Internal::visibility(this).GetCachedSize(), target, stream);
6003   }
6004 
6005   // .aapt.pb.AllowNew allow_new = 4;
6006   if (this->_internal_has_allow_new()) {
6007     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6008       InternalWriteMessage(4, _Internal::allow_new(this),
6009         _Internal::allow_new(this).GetCachedSize(), target, stream);
6010   }
6011 
6012   // .aapt.pb.OverlayableItem overlayable_item = 5;
6013   if (this->_internal_has_overlayable_item()) {
6014     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6015       InternalWriteMessage(5, _Internal::overlayable_item(this),
6016         _Internal::overlayable_item(this).GetCachedSize(), target, stream);
6017   }
6018 
6019   // repeated .aapt.pb.ConfigValue config_value = 6;
6020   for (unsigned i = 0,
6021       n = static_cast<unsigned>(this->_internal_config_value_size()); i < n; i++) {
6022     const auto& repfield = this->_internal_config_value(i);
6023     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6024         InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
6025   }
6026 
6027   // .aapt.pb.StagedId staged_id = 7;
6028   if (this->_internal_has_staged_id()) {
6029     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6030       InternalWriteMessage(7, _Internal::staged_id(this),
6031         _Internal::staged_id(this).GetCachedSize(), target, stream);
6032   }
6033 
6034   // repeated .aapt.pb.ConfigValue flag_disabled_config_value = 8;
6035   for (unsigned i = 0,
6036       n = static_cast<unsigned>(this->_internal_flag_disabled_config_value_size()); i < n; i++) {
6037     const auto& repfield = this->_internal_flag_disabled_config_value(i);
6038     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6039         InternalWriteMessage(8, repfield, repfield.GetCachedSize(), target, stream);
6040   }
6041 
6042   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6043     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6044         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
6045   }
6046   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Entry)
6047   return target;
6048 }
6049 
ByteSizeLong() const6050 size_t Entry::ByteSizeLong() const {
6051 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Entry)
6052   size_t total_size = 0;
6053 
6054   ::uint32_t cached_has_bits = 0;
6055   // Prevent compiler warnings about cached_has_bits being unused
6056   (void) cached_has_bits;
6057 
6058   // repeated .aapt.pb.ConfigValue config_value = 6;
6059   total_size += 1UL * this->_internal_config_value_size();
6060   for (const auto& msg : this->_impl_.config_value_) {
6061     total_size +=
6062       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6063   }
6064 
6065   // repeated .aapt.pb.ConfigValue flag_disabled_config_value = 8;
6066   total_size += 1UL * this->_internal_flag_disabled_config_value_size();
6067   for (const auto& msg : this->_impl_.flag_disabled_config_value_) {
6068     total_size +=
6069       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
6070   }
6071 
6072   // string name = 2;
6073   if (!this->_internal_name().empty()) {
6074     total_size += 1 +
6075       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6076         this->_internal_name());
6077   }
6078 
6079   // .aapt.pb.EntryId entry_id = 1;
6080   if (this->_internal_has_entry_id()) {
6081     total_size += 1 +
6082       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6083         *_impl_.entry_id_);
6084   }
6085 
6086   // .aapt.pb.Visibility visibility = 3;
6087   if (this->_internal_has_visibility()) {
6088     total_size += 1 +
6089       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6090         *_impl_.visibility_);
6091   }
6092 
6093   // .aapt.pb.AllowNew allow_new = 4;
6094   if (this->_internal_has_allow_new()) {
6095     total_size += 1 +
6096       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6097         *_impl_.allow_new_);
6098   }
6099 
6100   // .aapt.pb.OverlayableItem overlayable_item = 5;
6101   if (this->_internal_has_overlayable_item()) {
6102     total_size += 1 +
6103       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6104         *_impl_.overlayable_item_);
6105   }
6106 
6107   // .aapt.pb.StagedId staged_id = 7;
6108   if (this->_internal_has_staged_id()) {
6109     total_size += 1 +
6110       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6111         *_impl_.staged_id_);
6112   }
6113 
6114   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
6115 }
6116 
6117 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Entry::_class_data_ = {
6118     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
6119     Entry::MergeImpl
6120 };
GetClassData() const6121 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Entry::GetClassData() const { return &_class_data_; }
6122 
6123 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)6124 void Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
6125   auto* const _this = static_cast<Entry*>(&to_msg);
6126   auto& from = static_cast<const Entry&>(from_msg);
6127   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Entry)
6128   GOOGLE_DCHECK_NE(&from, _this);
6129   ::uint32_t cached_has_bits = 0;
6130   (void) cached_has_bits;
6131 
6132   _this->_impl_.config_value_.MergeFrom(from._impl_.config_value_);
6133   _this->_impl_.flag_disabled_config_value_.MergeFrom(from._impl_.flag_disabled_config_value_);
6134   if (!from._internal_name().empty()) {
6135     _this->_internal_set_name(from._internal_name());
6136   }
6137   if (from._internal_has_entry_id()) {
6138     _this->_internal_mutable_entry_id()->::aapt::pb::EntryId::MergeFrom(
6139         from._internal_entry_id());
6140   }
6141   if (from._internal_has_visibility()) {
6142     _this->_internal_mutable_visibility()->::aapt::pb::Visibility::MergeFrom(
6143         from._internal_visibility());
6144   }
6145   if (from._internal_has_allow_new()) {
6146     _this->_internal_mutable_allow_new()->::aapt::pb::AllowNew::MergeFrom(
6147         from._internal_allow_new());
6148   }
6149   if (from._internal_has_overlayable_item()) {
6150     _this->_internal_mutable_overlayable_item()->::aapt::pb::OverlayableItem::MergeFrom(
6151         from._internal_overlayable_item());
6152   }
6153   if (from._internal_has_staged_id()) {
6154     _this->_internal_mutable_staged_id()->::aapt::pb::StagedId::MergeFrom(
6155         from._internal_staged_id());
6156   }
6157   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6158 }
6159 
CopyFrom(const Entry & from)6160 void Entry::CopyFrom(const Entry& from) {
6161 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Entry)
6162   if (&from == this) return;
6163   Clear();
6164   MergeFrom(from);
6165 }
6166 
IsInitialized() const6167 bool Entry::IsInitialized() const {
6168   return true;
6169 }
6170 
InternalSwap(Entry * other)6171 void Entry::InternalSwap(Entry* other) {
6172   using std::swap;
6173   auto* lhs_arena = GetArenaForAllocation();
6174   auto* rhs_arena = other->GetArenaForAllocation();
6175   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6176   _impl_.config_value_.InternalSwap(&other->_impl_.config_value_);
6177   _impl_.flag_disabled_config_value_.InternalSwap(&other->_impl_.flag_disabled_config_value_);
6178   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6179       &_impl_.name_, lhs_arena,
6180       &other->_impl_.name_, rhs_arena
6181   );
6182   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6183       PROTOBUF_FIELD_OFFSET(Entry, _impl_.staged_id_)
6184       + sizeof(Entry::_impl_.staged_id_)  // NOLINT
6185       - PROTOBUF_FIELD_OFFSET(Entry, _impl_.entry_id_)>(
6186           reinterpret_cast<char*>(&_impl_.entry_id_),
6187           reinterpret_cast<char*>(&other->_impl_.entry_id_));
6188 }
6189 
GetMetadata() const6190 ::PROTOBUF_NAMESPACE_ID::Metadata Entry::GetMetadata() const {
6191   return ::_pbi::AssignDescriptors(
6192       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
6193       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[16]);
6194 }
6195 
6196 // ===================================================================
6197 
6198 class ConfigValue::_Internal {
6199  public:
6200   static const ::aapt::pb::Configuration& config(const ConfigValue* msg);
6201   static const ::aapt::pb::Value& value(const ConfigValue* msg);
6202 };
6203 
6204 const ::aapt::pb::Configuration&
config(const ConfigValue * msg)6205 ConfigValue::_Internal::config(const ConfigValue* msg) {
6206   return *msg->_impl_.config_;
6207 }
6208 const ::aapt::pb::Value&
value(const ConfigValue * msg)6209 ConfigValue::_Internal::value(const ConfigValue* msg) {
6210   return *msg->_impl_.value_;
6211 }
clear_config()6212 void ConfigValue::clear_config() {
6213   if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) {
6214     delete _impl_.config_;
6215   }
6216   _impl_.config_ = nullptr;
6217 }
ConfigValue(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6218 ConfigValue::ConfigValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6219                          bool is_message_owned)
6220   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
6221   SharedCtor(arena, is_message_owned);
6222   // @@protoc_insertion_point(arena_constructor:aapt.pb.ConfigValue)
6223 }
ConfigValue(const ConfigValue & from)6224 ConfigValue::ConfigValue(const ConfigValue& from)
6225   : ::PROTOBUF_NAMESPACE_ID::Message() {
6226   ConfigValue* const _this = this; (void)_this;
6227   new (&_impl_) Impl_{
6228       decltype(_impl_.config_){nullptr}
6229     , decltype(_impl_.value_){nullptr}
6230     , /*decltype(_impl_._cached_size_)*/{}};
6231 
6232   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6233   if (from._internal_has_config()) {
6234     _this->_impl_.config_ = new ::aapt::pb::Configuration(*from._impl_.config_);
6235   }
6236   if (from._internal_has_value()) {
6237     _this->_impl_.value_ = new ::aapt::pb::Value(*from._impl_.value_);
6238   }
6239   // @@protoc_insertion_point(copy_constructor:aapt.pb.ConfigValue)
6240 }
6241 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6242 inline void ConfigValue::SharedCtor(
6243     ::_pb::Arena* arena, bool is_message_owned) {
6244   (void)arena;
6245   (void)is_message_owned;
6246   new (&_impl_) Impl_{
6247       decltype(_impl_.config_){nullptr}
6248     , decltype(_impl_.value_){nullptr}
6249     , /*decltype(_impl_._cached_size_)*/{}
6250   };
6251 }
6252 
~ConfigValue()6253 ConfigValue::~ConfigValue() {
6254   // @@protoc_insertion_point(destructor:aapt.pb.ConfigValue)
6255   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
6256   (void)arena;
6257     return;
6258   }
6259   SharedDtor();
6260 }
6261 
SharedDtor()6262 inline void ConfigValue::SharedDtor() {
6263   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6264   if (this != internal_default_instance()) delete _impl_.config_;
6265   if (this != internal_default_instance()) delete _impl_.value_;
6266 }
6267 
SetCachedSize(int size) const6268 void ConfigValue::SetCachedSize(int size) const {
6269   _impl_._cached_size_.Set(size);
6270 }
6271 
Clear()6272 void ConfigValue::Clear() {
6273 // @@protoc_insertion_point(message_clear_start:aapt.pb.ConfigValue)
6274   ::uint32_t cached_has_bits = 0;
6275   // Prevent compiler warnings about cached_has_bits being unused
6276   (void) cached_has_bits;
6277 
6278   if (GetArenaForAllocation() == nullptr && _impl_.config_ != nullptr) {
6279     delete _impl_.config_;
6280   }
6281   _impl_.config_ = nullptr;
6282   if (GetArenaForAllocation() == nullptr && _impl_.value_ != nullptr) {
6283     delete _impl_.value_;
6284   }
6285   _impl_.value_ = nullptr;
6286   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6287 }
6288 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6289 const char* ConfigValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6290 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6291   while (!ctx->Done(&ptr)) {
6292     ::uint32_t tag;
6293     ptr = ::_pbi::ReadTag(ptr, &tag);
6294     switch (tag >> 3) {
6295       // .aapt.pb.Configuration config = 1;
6296       case 1:
6297         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
6298           ptr = ctx->ParseMessage(_internal_mutable_config(), ptr);
6299           CHK_(ptr);
6300         } else {
6301           goto handle_unusual;
6302         }
6303         continue;
6304       // .aapt.pb.Value value = 2;
6305       case 2:
6306         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
6307           ptr = ctx->ParseMessage(_internal_mutable_value(), ptr);
6308           CHK_(ptr);
6309         } else {
6310           goto handle_unusual;
6311         }
6312         continue;
6313       default:
6314         goto handle_unusual;
6315     }  // switch
6316   handle_unusual:
6317     if ((tag == 0) || ((tag & 7) == 4)) {
6318       CHK_(ptr);
6319       ctx->SetLastTag(tag);
6320       goto message_done;
6321     }
6322     ptr = UnknownFieldParse(
6323         tag,
6324         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
6325         ptr, ctx);
6326     CHK_(ptr != nullptr);
6327   }  // while
6328 message_done:
6329   return ptr;
6330 failure:
6331   ptr = nullptr;
6332   goto message_done;
6333 #undef CHK_
6334 }
6335 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6336 ::uint8_t* ConfigValue::_InternalSerialize(
6337     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6338   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.ConfigValue)
6339   ::uint32_t cached_has_bits = 0;
6340   (void) cached_has_bits;
6341 
6342   // .aapt.pb.Configuration config = 1;
6343   if (this->_internal_has_config()) {
6344     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6345       InternalWriteMessage(1, _Internal::config(this),
6346         _Internal::config(this).GetCachedSize(), target, stream);
6347   }
6348 
6349   // .aapt.pb.Value value = 2;
6350   if (this->_internal_has_value()) {
6351     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6352       InternalWriteMessage(2, _Internal::value(this),
6353         _Internal::value(this).GetCachedSize(), target, stream);
6354   }
6355 
6356   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6357     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6358         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
6359   }
6360   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.ConfigValue)
6361   return target;
6362 }
6363 
ByteSizeLong() const6364 size_t ConfigValue::ByteSizeLong() const {
6365 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.ConfigValue)
6366   size_t total_size = 0;
6367 
6368   ::uint32_t cached_has_bits = 0;
6369   // Prevent compiler warnings about cached_has_bits being unused
6370   (void) cached_has_bits;
6371 
6372   // .aapt.pb.Configuration config = 1;
6373   if (this->_internal_has_config()) {
6374     total_size += 1 +
6375       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6376         *_impl_.config_);
6377   }
6378 
6379   // .aapt.pb.Value value = 2;
6380   if (this->_internal_has_value()) {
6381     total_size += 1 +
6382       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6383         *_impl_.value_);
6384   }
6385 
6386   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
6387 }
6388 
6389 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConfigValue::_class_data_ = {
6390     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
6391     ConfigValue::MergeImpl
6392 };
GetClassData() const6393 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConfigValue::GetClassData() const { return &_class_data_; }
6394 
6395 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)6396 void ConfigValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
6397   auto* const _this = static_cast<ConfigValue*>(&to_msg);
6398   auto& from = static_cast<const ConfigValue&>(from_msg);
6399   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.ConfigValue)
6400   GOOGLE_DCHECK_NE(&from, _this);
6401   ::uint32_t cached_has_bits = 0;
6402   (void) cached_has_bits;
6403 
6404   if (from._internal_has_config()) {
6405     _this->_internal_mutable_config()->::aapt::pb::Configuration::MergeFrom(
6406         from._internal_config());
6407   }
6408   if (from._internal_has_value()) {
6409     _this->_internal_mutable_value()->::aapt::pb::Value::MergeFrom(
6410         from._internal_value());
6411   }
6412   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6413 }
6414 
CopyFrom(const ConfigValue & from)6415 void ConfigValue::CopyFrom(const ConfigValue& from) {
6416 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.ConfigValue)
6417   if (&from == this) return;
6418   Clear();
6419   MergeFrom(from);
6420 }
6421 
IsInitialized() const6422 bool ConfigValue::IsInitialized() const {
6423   return true;
6424 }
6425 
InternalSwap(ConfigValue * other)6426 void ConfigValue::InternalSwap(ConfigValue* other) {
6427   using std::swap;
6428   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6429   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6430       PROTOBUF_FIELD_OFFSET(ConfigValue, _impl_.value_)
6431       + sizeof(ConfigValue::_impl_.value_)  // NOLINT
6432       - PROTOBUF_FIELD_OFFSET(ConfigValue, _impl_.config_)>(
6433           reinterpret_cast<char*>(&_impl_.config_),
6434           reinterpret_cast<char*>(&other->_impl_.config_));
6435 }
6436 
GetMetadata() const6437 ::PROTOBUF_NAMESPACE_ID::Metadata ConfigValue::GetMetadata() const {
6438   return ::_pbi::AssignDescriptors(
6439       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
6440       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[17]);
6441 }
6442 
6443 // ===================================================================
6444 
6445 class Value::_Internal {
6446  public:
6447   static const ::aapt::pb::Source& source(const Value* msg);
6448   static const ::aapt::pb::Item& item(const Value* msg);
6449   static const ::aapt::pb::CompoundValue& compound_value(const Value* msg);
6450 };
6451 
6452 const ::aapt::pb::Source&
source(const Value * msg)6453 Value::_Internal::source(const Value* msg) {
6454   return *msg->_impl_.source_;
6455 }
6456 const ::aapt::pb::Item&
item(const Value * msg)6457 Value::_Internal::item(const Value* msg) {
6458   return *msg->_impl_.value_.item_;
6459 }
6460 const ::aapt::pb::CompoundValue&
compound_value(const Value * msg)6461 Value::_Internal::compound_value(const Value* msg) {
6462   return *msg->_impl_.value_.compound_value_;
6463 }
set_allocated_item(::aapt::pb::Item * item)6464 void Value::set_allocated_item(::aapt::pb::Item* item) {
6465   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6466   clear_value();
6467   if (item) {
6468     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6469       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(item);
6470     if (message_arena != submessage_arena) {
6471       item = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6472           message_arena, item, submessage_arena);
6473     }
6474     set_has_item();
6475     _impl_.value_.item_ = item;
6476   }
6477   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Value.item)
6478 }
set_allocated_compound_value(::aapt::pb::CompoundValue * compound_value)6479 void Value::set_allocated_compound_value(::aapt::pb::CompoundValue* compound_value) {
6480   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6481   clear_value();
6482   if (compound_value) {
6483     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6484       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(compound_value);
6485     if (message_arena != submessage_arena) {
6486       compound_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6487           message_arena, compound_value, submessage_arena);
6488     }
6489     set_has_compound_value();
6490     _impl_.value_.compound_value_ = compound_value;
6491   }
6492   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Value.compound_value)
6493 }
Value(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)6494 Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6495                          bool is_message_owned)
6496   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
6497   SharedCtor(arena, is_message_owned);
6498   // @@protoc_insertion_point(arena_constructor:aapt.pb.Value)
6499 }
Value(const Value & from)6500 Value::Value(const Value& from)
6501   : ::PROTOBUF_NAMESPACE_ID::Message() {
6502   Value* const _this = this; (void)_this;
6503   new (&_impl_) Impl_{
6504       decltype(_impl_.comment_){}
6505     , decltype(_impl_.source_){nullptr}
6506     , decltype(_impl_.weak_){}
6507     , decltype(_impl_.value_){}
6508     , /*decltype(_impl_._cached_size_)*/{}
6509     , /*decltype(_impl_._oneof_case_)*/{}};
6510 
6511   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6512   _impl_.comment_.InitDefault();
6513   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6514     _impl_.comment_.Set("", GetArenaForAllocation());
6515   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6516   if (!from._internal_comment().empty()) {
6517     _this->_impl_.comment_.Set(from._internal_comment(),
6518       _this->GetArenaForAllocation());
6519   }
6520   if (from._internal_has_source()) {
6521     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
6522   }
6523   _this->_impl_.weak_ = from._impl_.weak_;
6524   clear_has_value();
6525   switch (from.value_case()) {
6526     case kItem: {
6527       _this->_internal_mutable_item()->::aapt::pb::Item::MergeFrom(
6528           from._internal_item());
6529       break;
6530     }
6531     case kCompoundValue: {
6532       _this->_internal_mutable_compound_value()->::aapt::pb::CompoundValue::MergeFrom(
6533           from._internal_compound_value());
6534       break;
6535     }
6536     case VALUE_NOT_SET: {
6537       break;
6538     }
6539   }
6540   // @@protoc_insertion_point(copy_constructor:aapt.pb.Value)
6541 }
6542 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)6543 inline void Value::SharedCtor(
6544     ::_pb::Arena* arena, bool is_message_owned) {
6545   (void)arena;
6546   (void)is_message_owned;
6547   new (&_impl_) Impl_{
6548       decltype(_impl_.comment_){}
6549     , decltype(_impl_.source_){nullptr}
6550     , decltype(_impl_.weak_){false}
6551     , decltype(_impl_.value_){}
6552     , /*decltype(_impl_._cached_size_)*/{}
6553     , /*decltype(_impl_._oneof_case_)*/{}
6554   };
6555   _impl_.comment_.InitDefault();
6556   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
6557     _impl_.comment_.Set("", GetArenaForAllocation());
6558   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
6559   clear_has_value();
6560 }
6561 
~Value()6562 Value::~Value() {
6563   // @@protoc_insertion_point(destructor:aapt.pb.Value)
6564   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
6565   (void)arena;
6566     return;
6567   }
6568   SharedDtor();
6569 }
6570 
SharedDtor()6571 inline void Value::SharedDtor() {
6572   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
6573   _impl_.comment_.Destroy();
6574   if (this != internal_default_instance()) delete _impl_.source_;
6575   if (has_value()) {
6576     clear_value();
6577   }
6578 }
6579 
SetCachedSize(int size) const6580 void Value::SetCachedSize(int size) const {
6581   _impl_._cached_size_.Set(size);
6582 }
6583 
clear_value()6584 void Value::clear_value() {
6585 // @@protoc_insertion_point(one_of_clear_start:aapt.pb.Value)
6586   switch (value_case()) {
6587     case kItem: {
6588       if (GetArenaForAllocation() == nullptr) {
6589         delete _impl_.value_.item_;
6590       }
6591       break;
6592     }
6593     case kCompoundValue: {
6594       if (GetArenaForAllocation() == nullptr) {
6595         delete _impl_.value_.compound_value_;
6596       }
6597       break;
6598     }
6599     case VALUE_NOT_SET: {
6600       break;
6601     }
6602   }
6603   _impl_._oneof_case_[0] = VALUE_NOT_SET;
6604 }
6605 
6606 
Clear()6607 void Value::Clear() {
6608 // @@protoc_insertion_point(message_clear_start:aapt.pb.Value)
6609   ::uint32_t cached_has_bits = 0;
6610   // Prevent compiler warnings about cached_has_bits being unused
6611   (void) cached_has_bits;
6612 
6613   _impl_.comment_.ClearToEmpty();
6614   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
6615     delete _impl_.source_;
6616   }
6617   _impl_.source_ = nullptr;
6618   _impl_.weak_ = false;
6619   clear_value();
6620   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
6621 }
6622 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)6623 const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
6624 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
6625   while (!ctx->Done(&ptr)) {
6626     ::uint32_t tag;
6627     ptr = ::_pbi::ReadTag(ptr, &tag);
6628     switch (tag >> 3) {
6629       // .aapt.pb.Source source = 1;
6630       case 1:
6631         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
6632           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
6633           CHK_(ptr);
6634         } else {
6635           goto handle_unusual;
6636         }
6637         continue;
6638       // string comment = 2;
6639       case 2:
6640         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
6641           auto str = _internal_mutable_comment();
6642           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
6643           CHK_(ptr);
6644           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Value.comment"));
6645         } else {
6646           goto handle_unusual;
6647         }
6648         continue;
6649       // bool weak = 3;
6650       case 3:
6651         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
6652           _impl_.weak_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
6653           CHK_(ptr);
6654         } else {
6655           goto handle_unusual;
6656         }
6657         continue;
6658       // .aapt.pb.Item item = 4;
6659       case 4:
6660         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
6661           ptr = ctx->ParseMessage(_internal_mutable_item(), ptr);
6662           CHK_(ptr);
6663         } else {
6664           goto handle_unusual;
6665         }
6666         continue;
6667       // .aapt.pb.CompoundValue compound_value = 5;
6668       case 5:
6669         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
6670           ptr = ctx->ParseMessage(_internal_mutable_compound_value(), ptr);
6671           CHK_(ptr);
6672         } else {
6673           goto handle_unusual;
6674         }
6675         continue;
6676       default:
6677         goto handle_unusual;
6678     }  // switch
6679   handle_unusual:
6680     if ((tag == 0) || ((tag & 7) == 4)) {
6681       CHK_(ptr);
6682       ctx->SetLastTag(tag);
6683       goto message_done;
6684     }
6685     ptr = UnknownFieldParse(
6686         tag,
6687         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
6688         ptr, ctx);
6689     CHK_(ptr != nullptr);
6690   }  // while
6691 message_done:
6692   return ptr;
6693 failure:
6694   ptr = nullptr;
6695   goto message_done;
6696 #undef CHK_
6697 }
6698 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const6699 ::uint8_t* Value::_InternalSerialize(
6700     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
6701   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Value)
6702   ::uint32_t cached_has_bits = 0;
6703   (void) cached_has_bits;
6704 
6705   // .aapt.pb.Source source = 1;
6706   if (this->_internal_has_source()) {
6707     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6708       InternalWriteMessage(1, _Internal::source(this),
6709         _Internal::source(this).GetCachedSize(), target, stream);
6710   }
6711 
6712   // string comment = 2;
6713   if (!this->_internal_comment().empty()) {
6714     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
6715       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
6716       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
6717       "aapt.pb.Value.comment");
6718     target = stream->WriteStringMaybeAliased(
6719         2, this->_internal_comment(), target);
6720   }
6721 
6722   // bool weak = 3;
6723   if (this->_internal_weak() != 0) {
6724     target = stream->EnsureSpace(target);
6725     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_weak(), target);
6726   }
6727 
6728   // .aapt.pb.Item item = 4;
6729   if (_internal_has_item()) {
6730     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6731       InternalWriteMessage(4, _Internal::item(this),
6732         _Internal::item(this).GetCachedSize(), target, stream);
6733   }
6734 
6735   // .aapt.pb.CompoundValue compound_value = 5;
6736   if (_internal_has_compound_value()) {
6737     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
6738       InternalWriteMessage(5, _Internal::compound_value(this),
6739         _Internal::compound_value(this).GetCachedSize(), target, stream);
6740   }
6741 
6742   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
6743     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
6744         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
6745   }
6746   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Value)
6747   return target;
6748 }
6749 
ByteSizeLong() const6750 size_t Value::ByteSizeLong() const {
6751 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Value)
6752   size_t total_size = 0;
6753 
6754   ::uint32_t cached_has_bits = 0;
6755   // Prevent compiler warnings about cached_has_bits being unused
6756   (void) cached_has_bits;
6757 
6758   // string comment = 2;
6759   if (!this->_internal_comment().empty()) {
6760     total_size += 1 +
6761       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
6762         this->_internal_comment());
6763   }
6764 
6765   // .aapt.pb.Source source = 1;
6766   if (this->_internal_has_source()) {
6767     total_size += 1 +
6768       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6769         *_impl_.source_);
6770   }
6771 
6772   // bool weak = 3;
6773   if (this->_internal_weak() != 0) {
6774     total_size += 1 + 1;
6775   }
6776 
6777   switch (value_case()) {
6778     // .aapt.pb.Item item = 4;
6779     case kItem: {
6780       total_size += 1 +
6781         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6782           *_impl_.value_.item_);
6783       break;
6784     }
6785     // .aapt.pb.CompoundValue compound_value = 5;
6786     case kCompoundValue: {
6787       total_size += 1 +
6788         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
6789           *_impl_.value_.compound_value_);
6790       break;
6791     }
6792     case VALUE_NOT_SET: {
6793       break;
6794     }
6795   }
6796   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
6797 }
6798 
6799 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Value::_class_data_ = {
6800     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
6801     Value::MergeImpl
6802 };
GetClassData() const6803 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Value::GetClassData() const { return &_class_data_; }
6804 
6805 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)6806 void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
6807   auto* const _this = static_cast<Value*>(&to_msg);
6808   auto& from = static_cast<const Value&>(from_msg);
6809   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Value)
6810   GOOGLE_DCHECK_NE(&from, _this);
6811   ::uint32_t cached_has_bits = 0;
6812   (void) cached_has_bits;
6813 
6814   if (!from._internal_comment().empty()) {
6815     _this->_internal_set_comment(from._internal_comment());
6816   }
6817   if (from._internal_has_source()) {
6818     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
6819         from._internal_source());
6820   }
6821   if (from._internal_weak() != 0) {
6822     _this->_internal_set_weak(from._internal_weak());
6823   }
6824   switch (from.value_case()) {
6825     case kItem: {
6826       _this->_internal_mutable_item()->::aapt::pb::Item::MergeFrom(
6827           from._internal_item());
6828       break;
6829     }
6830     case kCompoundValue: {
6831       _this->_internal_mutable_compound_value()->::aapt::pb::CompoundValue::MergeFrom(
6832           from._internal_compound_value());
6833       break;
6834     }
6835     case VALUE_NOT_SET: {
6836       break;
6837     }
6838   }
6839   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
6840 }
6841 
CopyFrom(const Value & from)6842 void Value::CopyFrom(const Value& from) {
6843 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Value)
6844   if (&from == this) return;
6845   Clear();
6846   MergeFrom(from);
6847 }
6848 
IsInitialized() const6849 bool Value::IsInitialized() const {
6850   return true;
6851 }
6852 
InternalSwap(Value * other)6853 void Value::InternalSwap(Value* other) {
6854   using std::swap;
6855   auto* lhs_arena = GetArenaForAllocation();
6856   auto* rhs_arena = other->GetArenaForAllocation();
6857   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
6858   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
6859       &_impl_.comment_, lhs_arena,
6860       &other->_impl_.comment_, rhs_arena
6861   );
6862   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
6863       PROTOBUF_FIELD_OFFSET(Value, _impl_.weak_)
6864       + sizeof(Value::_impl_.weak_)  // NOLINT
6865       - PROTOBUF_FIELD_OFFSET(Value, _impl_.source_)>(
6866           reinterpret_cast<char*>(&_impl_.source_),
6867           reinterpret_cast<char*>(&other->_impl_.source_));
6868   swap(_impl_.value_, other->_impl_.value_);
6869   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
6870 }
6871 
GetMetadata() const6872 ::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const {
6873   return ::_pbi::AssignDescriptors(
6874       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
6875       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[18]);
6876 }
6877 
6878 // ===================================================================
6879 
6880 class Item::_Internal {
6881  public:
6882   static const ::aapt::pb::Reference& ref(const Item* msg);
6883   static const ::aapt::pb::String& str(const Item* msg);
6884   static const ::aapt::pb::RawString& raw_str(const Item* msg);
6885   static const ::aapt::pb::StyledString& styled_str(const Item* msg);
6886   static const ::aapt::pb::FileReference& file(const Item* msg);
6887   static const ::aapt::pb::Id& id(const Item* msg);
6888   static const ::aapt::pb::Primitive& prim(const Item* msg);
6889 };
6890 
6891 const ::aapt::pb::Reference&
ref(const Item * msg)6892 Item::_Internal::ref(const Item* msg) {
6893   return *msg->_impl_.value_.ref_;
6894 }
6895 const ::aapt::pb::String&
str(const Item * msg)6896 Item::_Internal::str(const Item* msg) {
6897   return *msg->_impl_.value_.str_;
6898 }
6899 const ::aapt::pb::RawString&
raw_str(const Item * msg)6900 Item::_Internal::raw_str(const Item* msg) {
6901   return *msg->_impl_.value_.raw_str_;
6902 }
6903 const ::aapt::pb::StyledString&
styled_str(const Item * msg)6904 Item::_Internal::styled_str(const Item* msg) {
6905   return *msg->_impl_.value_.styled_str_;
6906 }
6907 const ::aapt::pb::FileReference&
file(const Item * msg)6908 Item::_Internal::file(const Item* msg) {
6909   return *msg->_impl_.value_.file_;
6910 }
6911 const ::aapt::pb::Id&
id(const Item * msg)6912 Item::_Internal::id(const Item* msg) {
6913   return *msg->_impl_.value_.id_;
6914 }
6915 const ::aapt::pb::Primitive&
prim(const Item * msg)6916 Item::_Internal::prim(const Item* msg) {
6917   return *msg->_impl_.value_.prim_;
6918 }
set_allocated_ref(::aapt::pb::Reference * ref)6919 void Item::set_allocated_ref(::aapt::pb::Reference* ref) {
6920   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6921   clear_value();
6922   if (ref) {
6923     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6924       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(ref);
6925     if (message_arena != submessage_arena) {
6926       ref = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6927           message_arena, ref, submessage_arena);
6928     }
6929     set_has_ref();
6930     _impl_.value_.ref_ = ref;
6931   }
6932   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.ref)
6933 }
set_allocated_str(::aapt::pb::String * str)6934 void Item::set_allocated_str(::aapt::pb::String* str) {
6935   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6936   clear_value();
6937   if (str) {
6938     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6939       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(str);
6940     if (message_arena != submessage_arena) {
6941       str = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6942           message_arena, str, submessage_arena);
6943     }
6944     set_has_str();
6945     _impl_.value_.str_ = str;
6946   }
6947   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.str)
6948 }
set_allocated_raw_str(::aapt::pb::RawString * raw_str)6949 void Item::set_allocated_raw_str(::aapt::pb::RawString* raw_str) {
6950   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6951   clear_value();
6952   if (raw_str) {
6953     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6954       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(raw_str);
6955     if (message_arena != submessage_arena) {
6956       raw_str = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6957           message_arena, raw_str, submessage_arena);
6958     }
6959     set_has_raw_str();
6960     _impl_.value_.raw_str_ = raw_str;
6961   }
6962   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.raw_str)
6963 }
set_allocated_styled_str(::aapt::pb::StyledString * styled_str)6964 void Item::set_allocated_styled_str(::aapt::pb::StyledString* styled_str) {
6965   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6966   clear_value();
6967   if (styled_str) {
6968     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6969       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(styled_str);
6970     if (message_arena != submessage_arena) {
6971       styled_str = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6972           message_arena, styled_str, submessage_arena);
6973     }
6974     set_has_styled_str();
6975     _impl_.value_.styled_str_ = styled_str;
6976   }
6977   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.styled_str)
6978 }
set_allocated_file(::aapt::pb::FileReference * file)6979 void Item::set_allocated_file(::aapt::pb::FileReference* file) {
6980   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6981   clear_value();
6982   if (file) {
6983     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6984       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(file);
6985     if (message_arena != submessage_arena) {
6986       file = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
6987           message_arena, file, submessage_arena);
6988     }
6989     set_has_file();
6990     _impl_.value_.file_ = file;
6991   }
6992   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.file)
6993 }
set_allocated_id(::aapt::pb::Id * id)6994 void Item::set_allocated_id(::aapt::pb::Id* id) {
6995   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
6996   clear_value();
6997   if (id) {
6998     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
6999       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(id);
7000     if (message_arena != submessage_arena) {
7001       id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7002           message_arena, id, submessage_arena);
7003     }
7004     set_has_id();
7005     _impl_.value_.id_ = id;
7006   }
7007   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.id)
7008 }
set_allocated_prim(::aapt::pb::Primitive * prim)7009 void Item::set_allocated_prim(::aapt::pb::Primitive* prim) {
7010   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7011   clear_value();
7012   if (prim) {
7013     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7014       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(prim);
7015     if (message_arena != submessage_arena) {
7016       prim = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7017           message_arena, prim, submessage_arena);
7018     }
7019     set_has_prim();
7020     _impl_.value_.prim_ = prim;
7021   }
7022   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Item.prim)
7023 }
Item(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7024 Item::Item(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7025                          bool is_message_owned)
7026   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
7027   SharedCtor(arena, is_message_owned);
7028   // @@protoc_insertion_point(arena_constructor:aapt.pb.Item)
7029 }
Item(const Item & from)7030 Item::Item(const Item& from)
7031   : ::PROTOBUF_NAMESPACE_ID::Message() {
7032   Item* const _this = this; (void)_this;
7033   new (&_impl_) Impl_{
7034       decltype(_impl_.flag_name_){}
7035     , decltype(_impl_.flag_status_){}
7036     , decltype(_impl_.flag_negated_){}
7037     , decltype(_impl_.value_){}
7038     , /*decltype(_impl_._cached_size_)*/{}
7039     , /*decltype(_impl_._oneof_case_)*/{}};
7040 
7041   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7042   _impl_.flag_name_.InitDefault();
7043   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7044     _impl_.flag_name_.Set("", GetArenaForAllocation());
7045   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7046   if (!from._internal_flag_name().empty()) {
7047     _this->_impl_.flag_name_.Set(from._internal_flag_name(),
7048       _this->GetArenaForAllocation());
7049   }
7050   ::memcpy(&_impl_.flag_status_, &from._impl_.flag_status_,
7051     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flag_negated_) -
7052     reinterpret_cast<char*>(&_impl_.flag_status_)) + sizeof(_impl_.flag_negated_));
7053   clear_has_value();
7054   switch (from.value_case()) {
7055     case kRef: {
7056       _this->_internal_mutable_ref()->::aapt::pb::Reference::MergeFrom(
7057           from._internal_ref());
7058       break;
7059     }
7060     case kStr: {
7061       _this->_internal_mutable_str()->::aapt::pb::String::MergeFrom(
7062           from._internal_str());
7063       break;
7064     }
7065     case kRawStr: {
7066       _this->_internal_mutable_raw_str()->::aapt::pb::RawString::MergeFrom(
7067           from._internal_raw_str());
7068       break;
7069     }
7070     case kStyledStr: {
7071       _this->_internal_mutable_styled_str()->::aapt::pb::StyledString::MergeFrom(
7072           from._internal_styled_str());
7073       break;
7074     }
7075     case kFile: {
7076       _this->_internal_mutable_file()->::aapt::pb::FileReference::MergeFrom(
7077           from._internal_file());
7078       break;
7079     }
7080     case kId: {
7081       _this->_internal_mutable_id()->::aapt::pb::Id::MergeFrom(
7082           from._internal_id());
7083       break;
7084     }
7085     case kPrim: {
7086       _this->_internal_mutable_prim()->::aapt::pb::Primitive::MergeFrom(
7087           from._internal_prim());
7088       break;
7089     }
7090     case VALUE_NOT_SET: {
7091       break;
7092     }
7093   }
7094   // @@protoc_insertion_point(copy_constructor:aapt.pb.Item)
7095 }
7096 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7097 inline void Item::SharedCtor(
7098     ::_pb::Arena* arena, bool is_message_owned) {
7099   (void)arena;
7100   (void)is_message_owned;
7101   new (&_impl_) Impl_{
7102       decltype(_impl_.flag_name_){}
7103     , decltype(_impl_.flag_status_){0u}
7104     , decltype(_impl_.flag_negated_){false}
7105     , decltype(_impl_.value_){}
7106     , /*decltype(_impl_._cached_size_)*/{}
7107     , /*decltype(_impl_._oneof_case_)*/{}
7108   };
7109   _impl_.flag_name_.InitDefault();
7110   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7111     _impl_.flag_name_.Set("", GetArenaForAllocation());
7112   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7113   clear_has_value();
7114 }
7115 
~Item()7116 Item::~Item() {
7117   // @@protoc_insertion_point(destructor:aapt.pb.Item)
7118   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
7119   (void)arena;
7120     return;
7121   }
7122   SharedDtor();
7123 }
7124 
SharedDtor()7125 inline void Item::SharedDtor() {
7126   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7127   _impl_.flag_name_.Destroy();
7128   if (has_value()) {
7129     clear_value();
7130   }
7131 }
7132 
SetCachedSize(int size) const7133 void Item::SetCachedSize(int size) const {
7134   _impl_._cached_size_.Set(size);
7135 }
7136 
clear_value()7137 void Item::clear_value() {
7138 // @@protoc_insertion_point(one_of_clear_start:aapt.pb.Item)
7139   switch (value_case()) {
7140     case kRef: {
7141       if (GetArenaForAllocation() == nullptr) {
7142         delete _impl_.value_.ref_;
7143       }
7144       break;
7145     }
7146     case kStr: {
7147       if (GetArenaForAllocation() == nullptr) {
7148         delete _impl_.value_.str_;
7149       }
7150       break;
7151     }
7152     case kRawStr: {
7153       if (GetArenaForAllocation() == nullptr) {
7154         delete _impl_.value_.raw_str_;
7155       }
7156       break;
7157     }
7158     case kStyledStr: {
7159       if (GetArenaForAllocation() == nullptr) {
7160         delete _impl_.value_.styled_str_;
7161       }
7162       break;
7163     }
7164     case kFile: {
7165       if (GetArenaForAllocation() == nullptr) {
7166         delete _impl_.value_.file_;
7167       }
7168       break;
7169     }
7170     case kId: {
7171       if (GetArenaForAllocation() == nullptr) {
7172         delete _impl_.value_.id_;
7173       }
7174       break;
7175     }
7176     case kPrim: {
7177       if (GetArenaForAllocation() == nullptr) {
7178         delete _impl_.value_.prim_;
7179       }
7180       break;
7181     }
7182     case VALUE_NOT_SET: {
7183       break;
7184     }
7185   }
7186   _impl_._oneof_case_[0] = VALUE_NOT_SET;
7187 }
7188 
7189 
Clear()7190 void Item::Clear() {
7191 // @@protoc_insertion_point(message_clear_start:aapt.pb.Item)
7192   ::uint32_t cached_has_bits = 0;
7193   // Prevent compiler warnings about cached_has_bits being unused
7194   (void) cached_has_bits;
7195 
7196   _impl_.flag_name_.ClearToEmpty();
7197   ::memset(&_impl_.flag_status_, 0, static_cast<size_t>(
7198       reinterpret_cast<char*>(&_impl_.flag_negated_) -
7199       reinterpret_cast<char*>(&_impl_.flag_status_)) + sizeof(_impl_.flag_negated_));
7200   clear_value();
7201   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7202 }
7203 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7204 const char* Item::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7205 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7206   while (!ctx->Done(&ptr)) {
7207     ::uint32_t tag;
7208     ptr = ::_pbi::ReadTag(ptr, &tag);
7209     switch (tag >> 3) {
7210       // .aapt.pb.Reference ref = 1;
7211       case 1:
7212         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
7213           ptr = ctx->ParseMessage(_internal_mutable_ref(), ptr);
7214           CHK_(ptr);
7215         } else {
7216           goto handle_unusual;
7217         }
7218         continue;
7219       // .aapt.pb.String str = 2;
7220       case 2:
7221         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
7222           ptr = ctx->ParseMessage(_internal_mutable_str(), ptr);
7223           CHK_(ptr);
7224         } else {
7225           goto handle_unusual;
7226         }
7227         continue;
7228       // .aapt.pb.RawString raw_str = 3;
7229       case 3:
7230         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
7231           ptr = ctx->ParseMessage(_internal_mutable_raw_str(), ptr);
7232           CHK_(ptr);
7233         } else {
7234           goto handle_unusual;
7235         }
7236         continue;
7237       // .aapt.pb.StyledString styled_str = 4;
7238       case 4:
7239         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
7240           ptr = ctx->ParseMessage(_internal_mutable_styled_str(), ptr);
7241           CHK_(ptr);
7242         } else {
7243           goto handle_unusual;
7244         }
7245         continue;
7246       // .aapt.pb.FileReference file = 5;
7247       case 5:
7248         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
7249           ptr = ctx->ParseMessage(_internal_mutable_file(), ptr);
7250           CHK_(ptr);
7251         } else {
7252           goto handle_unusual;
7253         }
7254         continue;
7255       // .aapt.pb.Id id = 6;
7256       case 6:
7257         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
7258           ptr = ctx->ParseMessage(_internal_mutable_id(), ptr);
7259           CHK_(ptr);
7260         } else {
7261           goto handle_unusual;
7262         }
7263         continue;
7264       // .aapt.pb.Primitive prim = 7;
7265       case 7:
7266         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
7267           ptr = ctx->ParseMessage(_internal_mutable_prim(), ptr);
7268           CHK_(ptr);
7269         } else {
7270           goto handle_unusual;
7271         }
7272         continue;
7273       // uint32 flag_status = 8;
7274       case 8:
7275         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
7276           _impl_.flag_status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7277           CHK_(ptr);
7278         } else {
7279           goto handle_unusual;
7280         }
7281         continue;
7282       // bool flag_negated = 9;
7283       case 9:
7284         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
7285           _impl_.flag_negated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7286           CHK_(ptr);
7287         } else {
7288           goto handle_unusual;
7289         }
7290         continue;
7291       // string flag_name = 10;
7292       case 10:
7293         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
7294           auto str = _internal_mutable_flag_name();
7295           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7296           CHK_(ptr);
7297           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Item.flag_name"));
7298         } else {
7299           goto handle_unusual;
7300         }
7301         continue;
7302       default:
7303         goto handle_unusual;
7304     }  // switch
7305   handle_unusual:
7306     if ((tag == 0) || ((tag & 7) == 4)) {
7307       CHK_(ptr);
7308       ctx->SetLastTag(tag);
7309       goto message_done;
7310     }
7311     ptr = UnknownFieldParse(
7312         tag,
7313         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
7314         ptr, ctx);
7315     CHK_(ptr != nullptr);
7316   }  // while
7317 message_done:
7318   return ptr;
7319 failure:
7320   ptr = nullptr;
7321   goto message_done;
7322 #undef CHK_
7323 }
7324 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const7325 ::uint8_t* Item::_InternalSerialize(
7326     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
7327   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Item)
7328   ::uint32_t cached_has_bits = 0;
7329   (void) cached_has_bits;
7330 
7331   // .aapt.pb.Reference ref = 1;
7332   if (_internal_has_ref()) {
7333     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7334       InternalWriteMessage(1, _Internal::ref(this),
7335         _Internal::ref(this).GetCachedSize(), target, stream);
7336   }
7337 
7338   // .aapt.pb.String str = 2;
7339   if (_internal_has_str()) {
7340     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7341       InternalWriteMessage(2, _Internal::str(this),
7342         _Internal::str(this).GetCachedSize(), target, stream);
7343   }
7344 
7345   // .aapt.pb.RawString raw_str = 3;
7346   if (_internal_has_raw_str()) {
7347     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7348       InternalWriteMessage(3, _Internal::raw_str(this),
7349         _Internal::raw_str(this).GetCachedSize(), target, stream);
7350   }
7351 
7352   // .aapt.pb.StyledString styled_str = 4;
7353   if (_internal_has_styled_str()) {
7354     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7355       InternalWriteMessage(4, _Internal::styled_str(this),
7356         _Internal::styled_str(this).GetCachedSize(), target, stream);
7357   }
7358 
7359   // .aapt.pb.FileReference file = 5;
7360   if (_internal_has_file()) {
7361     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7362       InternalWriteMessage(5, _Internal::file(this),
7363         _Internal::file(this).GetCachedSize(), target, stream);
7364   }
7365 
7366   // .aapt.pb.Id id = 6;
7367   if (_internal_has_id()) {
7368     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7369       InternalWriteMessage(6, _Internal::id(this),
7370         _Internal::id(this).GetCachedSize(), target, stream);
7371   }
7372 
7373   // .aapt.pb.Primitive prim = 7;
7374   if (_internal_has_prim()) {
7375     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
7376       InternalWriteMessage(7, _Internal::prim(this),
7377         _Internal::prim(this).GetCachedSize(), target, stream);
7378   }
7379 
7380   // uint32 flag_status = 8;
7381   if (this->_internal_flag_status() != 0) {
7382     target = stream->EnsureSpace(target);
7383     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_flag_status(), target);
7384   }
7385 
7386   // bool flag_negated = 9;
7387   if (this->_internal_flag_negated() != 0) {
7388     target = stream->EnsureSpace(target);
7389     target = ::_pbi::WireFormatLite::WriteBoolToArray(9, this->_internal_flag_negated(), target);
7390   }
7391 
7392   // string flag_name = 10;
7393   if (!this->_internal_flag_name().empty()) {
7394     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
7395       this->_internal_flag_name().data(), static_cast<int>(this->_internal_flag_name().length()),
7396       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
7397       "aapt.pb.Item.flag_name");
7398     target = stream->WriteStringMaybeAliased(
7399         10, this->_internal_flag_name(), target);
7400   }
7401 
7402   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
7403     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
7404         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
7405   }
7406   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Item)
7407   return target;
7408 }
7409 
ByteSizeLong() const7410 size_t Item::ByteSizeLong() const {
7411 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Item)
7412   size_t total_size = 0;
7413 
7414   ::uint32_t cached_has_bits = 0;
7415   // Prevent compiler warnings about cached_has_bits being unused
7416   (void) cached_has_bits;
7417 
7418   // string flag_name = 10;
7419   if (!this->_internal_flag_name().empty()) {
7420     total_size += 1 +
7421       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
7422         this->_internal_flag_name());
7423   }
7424 
7425   // uint32 flag_status = 8;
7426   if (this->_internal_flag_status() != 0) {
7427     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flag_status());
7428   }
7429 
7430   // bool flag_negated = 9;
7431   if (this->_internal_flag_negated() != 0) {
7432     total_size += 1 + 1;
7433   }
7434 
7435   switch (value_case()) {
7436     // .aapt.pb.Reference ref = 1;
7437     case kRef: {
7438       total_size += 1 +
7439         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7440           *_impl_.value_.ref_);
7441       break;
7442     }
7443     // .aapt.pb.String str = 2;
7444     case kStr: {
7445       total_size += 1 +
7446         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7447           *_impl_.value_.str_);
7448       break;
7449     }
7450     // .aapt.pb.RawString raw_str = 3;
7451     case kRawStr: {
7452       total_size += 1 +
7453         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7454           *_impl_.value_.raw_str_);
7455       break;
7456     }
7457     // .aapt.pb.StyledString styled_str = 4;
7458     case kStyledStr: {
7459       total_size += 1 +
7460         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7461           *_impl_.value_.styled_str_);
7462       break;
7463     }
7464     // .aapt.pb.FileReference file = 5;
7465     case kFile: {
7466       total_size += 1 +
7467         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7468           *_impl_.value_.file_);
7469       break;
7470     }
7471     // .aapt.pb.Id id = 6;
7472     case kId: {
7473       total_size += 1 +
7474         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7475           *_impl_.value_.id_);
7476       break;
7477     }
7478     // .aapt.pb.Primitive prim = 7;
7479     case kPrim: {
7480       total_size += 1 +
7481         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
7482           *_impl_.value_.prim_);
7483       break;
7484     }
7485     case VALUE_NOT_SET: {
7486       break;
7487     }
7488   }
7489   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
7490 }
7491 
7492 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Item::_class_data_ = {
7493     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
7494     Item::MergeImpl
7495 };
GetClassData() const7496 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Item::GetClassData() const { return &_class_data_; }
7497 
7498 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)7499 void Item::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
7500   auto* const _this = static_cast<Item*>(&to_msg);
7501   auto& from = static_cast<const Item&>(from_msg);
7502   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Item)
7503   GOOGLE_DCHECK_NE(&from, _this);
7504   ::uint32_t cached_has_bits = 0;
7505   (void) cached_has_bits;
7506 
7507   if (!from._internal_flag_name().empty()) {
7508     _this->_internal_set_flag_name(from._internal_flag_name());
7509   }
7510   if (from._internal_flag_status() != 0) {
7511     _this->_internal_set_flag_status(from._internal_flag_status());
7512   }
7513   if (from._internal_flag_negated() != 0) {
7514     _this->_internal_set_flag_negated(from._internal_flag_negated());
7515   }
7516   switch (from.value_case()) {
7517     case kRef: {
7518       _this->_internal_mutable_ref()->::aapt::pb::Reference::MergeFrom(
7519           from._internal_ref());
7520       break;
7521     }
7522     case kStr: {
7523       _this->_internal_mutable_str()->::aapt::pb::String::MergeFrom(
7524           from._internal_str());
7525       break;
7526     }
7527     case kRawStr: {
7528       _this->_internal_mutable_raw_str()->::aapt::pb::RawString::MergeFrom(
7529           from._internal_raw_str());
7530       break;
7531     }
7532     case kStyledStr: {
7533       _this->_internal_mutable_styled_str()->::aapt::pb::StyledString::MergeFrom(
7534           from._internal_styled_str());
7535       break;
7536     }
7537     case kFile: {
7538       _this->_internal_mutable_file()->::aapt::pb::FileReference::MergeFrom(
7539           from._internal_file());
7540       break;
7541     }
7542     case kId: {
7543       _this->_internal_mutable_id()->::aapt::pb::Id::MergeFrom(
7544           from._internal_id());
7545       break;
7546     }
7547     case kPrim: {
7548       _this->_internal_mutable_prim()->::aapt::pb::Primitive::MergeFrom(
7549           from._internal_prim());
7550       break;
7551     }
7552     case VALUE_NOT_SET: {
7553       break;
7554     }
7555   }
7556   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7557 }
7558 
CopyFrom(const Item & from)7559 void Item::CopyFrom(const Item& from) {
7560 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Item)
7561   if (&from == this) return;
7562   Clear();
7563   MergeFrom(from);
7564 }
7565 
IsInitialized() const7566 bool Item::IsInitialized() const {
7567   return true;
7568 }
7569 
InternalSwap(Item * other)7570 void Item::InternalSwap(Item* other) {
7571   using std::swap;
7572   auto* lhs_arena = GetArenaForAllocation();
7573   auto* rhs_arena = other->GetArenaForAllocation();
7574   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
7575   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
7576       &_impl_.flag_name_, lhs_arena,
7577       &other->_impl_.flag_name_, rhs_arena
7578   );
7579   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
7580       PROTOBUF_FIELD_OFFSET(Item, _impl_.flag_negated_)
7581       + sizeof(Item::_impl_.flag_negated_)  // NOLINT
7582       - PROTOBUF_FIELD_OFFSET(Item, _impl_.flag_status_)>(
7583           reinterpret_cast<char*>(&_impl_.flag_status_),
7584           reinterpret_cast<char*>(&other->_impl_.flag_status_));
7585   swap(_impl_.value_, other->_impl_.value_);
7586   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
7587 }
7588 
GetMetadata() const7589 ::PROTOBUF_NAMESPACE_ID::Metadata Item::GetMetadata() const {
7590   return ::_pbi::AssignDescriptors(
7591       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
7592       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[19]);
7593 }
7594 
7595 // ===================================================================
7596 
7597 class CompoundValue::_Internal {
7598  public:
7599   static const ::aapt::pb::Attribute& attr(const CompoundValue* msg);
7600   static const ::aapt::pb::Style& style(const CompoundValue* msg);
7601   static const ::aapt::pb::Styleable& styleable(const CompoundValue* msg);
7602   static const ::aapt::pb::Array& array(const CompoundValue* msg);
7603   static const ::aapt::pb::Plural& plural(const CompoundValue* msg);
7604   static const ::aapt::pb::MacroBody& macro(const CompoundValue* msg);
7605 };
7606 
7607 const ::aapt::pb::Attribute&
attr(const CompoundValue * msg)7608 CompoundValue::_Internal::attr(const CompoundValue* msg) {
7609   return *msg->_impl_.value_.attr_;
7610 }
7611 const ::aapt::pb::Style&
style(const CompoundValue * msg)7612 CompoundValue::_Internal::style(const CompoundValue* msg) {
7613   return *msg->_impl_.value_.style_;
7614 }
7615 const ::aapt::pb::Styleable&
styleable(const CompoundValue * msg)7616 CompoundValue::_Internal::styleable(const CompoundValue* msg) {
7617   return *msg->_impl_.value_.styleable_;
7618 }
7619 const ::aapt::pb::Array&
array(const CompoundValue * msg)7620 CompoundValue::_Internal::array(const CompoundValue* msg) {
7621   return *msg->_impl_.value_.array_;
7622 }
7623 const ::aapt::pb::Plural&
plural(const CompoundValue * msg)7624 CompoundValue::_Internal::plural(const CompoundValue* msg) {
7625   return *msg->_impl_.value_.plural_;
7626 }
7627 const ::aapt::pb::MacroBody&
macro(const CompoundValue * msg)7628 CompoundValue::_Internal::macro(const CompoundValue* msg) {
7629   return *msg->_impl_.value_.macro_;
7630 }
set_allocated_attr(::aapt::pb::Attribute * attr)7631 void CompoundValue::set_allocated_attr(::aapt::pb::Attribute* attr) {
7632   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7633   clear_value();
7634   if (attr) {
7635     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7636       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(attr);
7637     if (message_arena != submessage_arena) {
7638       attr = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7639           message_arena, attr, submessage_arena);
7640     }
7641     set_has_attr();
7642     _impl_.value_.attr_ = attr;
7643   }
7644   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.attr)
7645 }
set_allocated_style(::aapt::pb::Style * style)7646 void CompoundValue::set_allocated_style(::aapt::pb::Style* style) {
7647   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7648   clear_value();
7649   if (style) {
7650     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7651       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(style);
7652     if (message_arena != submessage_arena) {
7653       style = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7654           message_arena, style, submessage_arena);
7655     }
7656     set_has_style();
7657     _impl_.value_.style_ = style;
7658   }
7659   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.style)
7660 }
set_allocated_styleable(::aapt::pb::Styleable * styleable)7661 void CompoundValue::set_allocated_styleable(::aapt::pb::Styleable* styleable) {
7662   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7663   clear_value();
7664   if (styleable) {
7665     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7666       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(styleable);
7667     if (message_arena != submessage_arena) {
7668       styleable = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7669           message_arena, styleable, submessage_arena);
7670     }
7671     set_has_styleable();
7672     _impl_.value_.styleable_ = styleable;
7673   }
7674   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.styleable)
7675 }
set_allocated_array(::aapt::pb::Array * array)7676 void CompoundValue::set_allocated_array(::aapt::pb::Array* array) {
7677   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7678   clear_value();
7679   if (array) {
7680     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7681       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(array);
7682     if (message_arena != submessage_arena) {
7683       array = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7684           message_arena, array, submessage_arena);
7685     }
7686     set_has_array();
7687     _impl_.value_.array_ = array;
7688   }
7689   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.array)
7690 }
set_allocated_plural(::aapt::pb::Plural * plural)7691 void CompoundValue::set_allocated_plural(::aapt::pb::Plural* plural) {
7692   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7693   clear_value();
7694   if (plural) {
7695     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7696       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(plural);
7697     if (message_arena != submessage_arena) {
7698       plural = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7699           message_arena, plural, submessage_arena);
7700     }
7701     set_has_plural();
7702     _impl_.value_.plural_ = plural;
7703   }
7704   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.plural)
7705 }
set_allocated_macro(::aapt::pb::MacroBody * macro)7706 void CompoundValue::set_allocated_macro(::aapt::pb::MacroBody* macro) {
7707   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
7708   clear_value();
7709   if (macro) {
7710     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
7711       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(macro);
7712     if (message_arena != submessage_arena) {
7713       macro = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
7714           message_arena, macro, submessage_arena);
7715     }
7716     set_has_macro();
7717     _impl_.value_.macro_ = macro;
7718   }
7719   // @@protoc_insertion_point(field_set_allocated:aapt.pb.CompoundValue.macro)
7720 }
CompoundValue(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)7721 CompoundValue::CompoundValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7722                          bool is_message_owned)
7723   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
7724   SharedCtor(arena, is_message_owned);
7725   // @@protoc_insertion_point(arena_constructor:aapt.pb.CompoundValue)
7726 }
CompoundValue(const CompoundValue & from)7727 CompoundValue::CompoundValue(const CompoundValue& from)
7728   : ::PROTOBUF_NAMESPACE_ID::Message() {
7729   CompoundValue* const _this = this; (void)_this;
7730   new (&_impl_) Impl_{
7731       decltype(_impl_.flag_name_){}
7732     , decltype(_impl_.flag_status_){}
7733     , decltype(_impl_.flag_negated_){}
7734     , decltype(_impl_.value_){}
7735     , /*decltype(_impl_._cached_size_)*/{}
7736     , /*decltype(_impl_._oneof_case_)*/{}};
7737 
7738   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
7739   _impl_.flag_name_.InitDefault();
7740   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7741     _impl_.flag_name_.Set("", GetArenaForAllocation());
7742   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7743   if (!from._internal_flag_name().empty()) {
7744     _this->_impl_.flag_name_.Set(from._internal_flag_name(),
7745       _this->GetArenaForAllocation());
7746   }
7747   ::memcpy(&_impl_.flag_status_, &from._impl_.flag_status_,
7748     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flag_negated_) -
7749     reinterpret_cast<char*>(&_impl_.flag_status_)) + sizeof(_impl_.flag_negated_));
7750   clear_has_value();
7751   switch (from.value_case()) {
7752     case kAttr: {
7753       _this->_internal_mutable_attr()->::aapt::pb::Attribute::MergeFrom(
7754           from._internal_attr());
7755       break;
7756     }
7757     case kStyle: {
7758       _this->_internal_mutable_style()->::aapt::pb::Style::MergeFrom(
7759           from._internal_style());
7760       break;
7761     }
7762     case kStyleable: {
7763       _this->_internal_mutable_styleable()->::aapt::pb::Styleable::MergeFrom(
7764           from._internal_styleable());
7765       break;
7766     }
7767     case kArray: {
7768       _this->_internal_mutable_array()->::aapt::pb::Array::MergeFrom(
7769           from._internal_array());
7770       break;
7771     }
7772     case kPlural: {
7773       _this->_internal_mutable_plural()->::aapt::pb::Plural::MergeFrom(
7774           from._internal_plural());
7775       break;
7776     }
7777     case kMacro: {
7778       _this->_internal_mutable_macro()->::aapt::pb::MacroBody::MergeFrom(
7779           from._internal_macro());
7780       break;
7781     }
7782     case VALUE_NOT_SET: {
7783       break;
7784     }
7785   }
7786   // @@protoc_insertion_point(copy_constructor:aapt.pb.CompoundValue)
7787 }
7788 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)7789 inline void CompoundValue::SharedCtor(
7790     ::_pb::Arena* arena, bool is_message_owned) {
7791   (void)arena;
7792   (void)is_message_owned;
7793   new (&_impl_) Impl_{
7794       decltype(_impl_.flag_name_){}
7795     , decltype(_impl_.flag_status_){0u}
7796     , decltype(_impl_.flag_negated_){false}
7797     , decltype(_impl_.value_){}
7798     , /*decltype(_impl_._cached_size_)*/{}
7799     , /*decltype(_impl_._oneof_case_)*/{}
7800   };
7801   _impl_.flag_name_.InitDefault();
7802   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
7803     _impl_.flag_name_.Set("", GetArenaForAllocation());
7804   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
7805   clear_has_value();
7806 }
7807 
~CompoundValue()7808 CompoundValue::~CompoundValue() {
7809   // @@protoc_insertion_point(destructor:aapt.pb.CompoundValue)
7810   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
7811   (void)arena;
7812     return;
7813   }
7814   SharedDtor();
7815 }
7816 
SharedDtor()7817 inline void CompoundValue::SharedDtor() {
7818   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
7819   _impl_.flag_name_.Destroy();
7820   if (has_value()) {
7821     clear_value();
7822   }
7823 }
7824 
SetCachedSize(int size) const7825 void CompoundValue::SetCachedSize(int size) const {
7826   _impl_._cached_size_.Set(size);
7827 }
7828 
clear_value()7829 void CompoundValue::clear_value() {
7830 // @@protoc_insertion_point(one_of_clear_start:aapt.pb.CompoundValue)
7831   switch (value_case()) {
7832     case kAttr: {
7833       if (GetArenaForAllocation() == nullptr) {
7834         delete _impl_.value_.attr_;
7835       }
7836       break;
7837     }
7838     case kStyle: {
7839       if (GetArenaForAllocation() == nullptr) {
7840         delete _impl_.value_.style_;
7841       }
7842       break;
7843     }
7844     case kStyleable: {
7845       if (GetArenaForAllocation() == nullptr) {
7846         delete _impl_.value_.styleable_;
7847       }
7848       break;
7849     }
7850     case kArray: {
7851       if (GetArenaForAllocation() == nullptr) {
7852         delete _impl_.value_.array_;
7853       }
7854       break;
7855     }
7856     case kPlural: {
7857       if (GetArenaForAllocation() == nullptr) {
7858         delete _impl_.value_.plural_;
7859       }
7860       break;
7861     }
7862     case kMacro: {
7863       if (GetArenaForAllocation() == nullptr) {
7864         delete _impl_.value_.macro_;
7865       }
7866       break;
7867     }
7868     case VALUE_NOT_SET: {
7869       break;
7870     }
7871   }
7872   _impl_._oneof_case_[0] = VALUE_NOT_SET;
7873 }
7874 
7875 
Clear()7876 void CompoundValue::Clear() {
7877 // @@protoc_insertion_point(message_clear_start:aapt.pb.CompoundValue)
7878   ::uint32_t cached_has_bits = 0;
7879   // Prevent compiler warnings about cached_has_bits being unused
7880   (void) cached_has_bits;
7881 
7882   _impl_.flag_name_.ClearToEmpty();
7883   ::memset(&_impl_.flag_status_, 0, static_cast<size_t>(
7884       reinterpret_cast<char*>(&_impl_.flag_negated_) -
7885       reinterpret_cast<char*>(&_impl_.flag_status_)) + sizeof(_impl_.flag_negated_));
7886   clear_value();
7887   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
7888 }
7889 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)7890 const char* CompoundValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
7891 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
7892   while (!ctx->Done(&ptr)) {
7893     ::uint32_t tag;
7894     ptr = ::_pbi::ReadTag(ptr, &tag);
7895     switch (tag >> 3) {
7896       // .aapt.pb.Attribute attr = 1;
7897       case 1:
7898         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
7899           ptr = ctx->ParseMessage(_internal_mutable_attr(), ptr);
7900           CHK_(ptr);
7901         } else {
7902           goto handle_unusual;
7903         }
7904         continue;
7905       // .aapt.pb.Style style = 2;
7906       case 2:
7907         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
7908           ptr = ctx->ParseMessage(_internal_mutable_style(), ptr);
7909           CHK_(ptr);
7910         } else {
7911           goto handle_unusual;
7912         }
7913         continue;
7914       // .aapt.pb.Styleable styleable = 3;
7915       case 3:
7916         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
7917           ptr = ctx->ParseMessage(_internal_mutable_styleable(), ptr);
7918           CHK_(ptr);
7919         } else {
7920           goto handle_unusual;
7921         }
7922         continue;
7923       // .aapt.pb.Array array = 4;
7924       case 4:
7925         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
7926           ptr = ctx->ParseMessage(_internal_mutable_array(), ptr);
7927           CHK_(ptr);
7928         } else {
7929           goto handle_unusual;
7930         }
7931         continue;
7932       // .aapt.pb.Plural plural = 5;
7933       case 5:
7934         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
7935           ptr = ctx->ParseMessage(_internal_mutable_plural(), ptr);
7936           CHK_(ptr);
7937         } else {
7938           goto handle_unusual;
7939         }
7940         continue;
7941       // .aapt.pb.MacroBody macro = 6;
7942       case 6:
7943         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
7944           ptr = ctx->ParseMessage(_internal_mutable_macro(), ptr);
7945           CHK_(ptr);
7946         } else {
7947           goto handle_unusual;
7948         }
7949         continue;
7950       // uint32 flag_status = 7;
7951       case 7:
7952         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
7953           _impl_.flag_status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
7954           CHK_(ptr);
7955         } else {
7956           goto handle_unusual;
7957         }
7958         continue;
7959       // bool flag_negated = 8;
7960       case 8:
7961         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
7962           _impl_.flag_negated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
7963           CHK_(ptr);
7964         } else {
7965           goto handle_unusual;
7966         }
7967         continue;
7968       // string flag_name = 9;
7969       case 9:
7970         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
7971           auto str = _internal_mutable_flag_name();
7972           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
7973           CHK_(ptr);
7974           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.CompoundValue.flag_name"));
7975         } else {
7976           goto handle_unusual;
7977         }
7978         continue;
7979       default:
7980         goto handle_unusual;
7981     }  // switch
7982   handle_unusual:
7983     if ((tag == 0) || ((tag & 7) == 4)) {
7984       CHK_(ptr);
7985       ctx->SetLastTag(tag);
7986       goto message_done;
7987     }
7988     ptr = UnknownFieldParse(
7989         tag,
7990         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
7991         ptr, ctx);
7992     CHK_(ptr != nullptr);
7993   }  // while
7994 message_done:
7995   return ptr;
7996 failure:
7997   ptr = nullptr;
7998   goto message_done;
7999 #undef CHK_
8000 }
8001 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8002 ::uint8_t* CompoundValue::_InternalSerialize(
8003     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8004   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.CompoundValue)
8005   ::uint32_t cached_has_bits = 0;
8006   (void) cached_has_bits;
8007 
8008   // .aapt.pb.Attribute attr = 1;
8009   if (_internal_has_attr()) {
8010     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8011       InternalWriteMessage(1, _Internal::attr(this),
8012         _Internal::attr(this).GetCachedSize(), target, stream);
8013   }
8014 
8015   // .aapt.pb.Style style = 2;
8016   if (_internal_has_style()) {
8017     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8018       InternalWriteMessage(2, _Internal::style(this),
8019         _Internal::style(this).GetCachedSize(), target, stream);
8020   }
8021 
8022   // .aapt.pb.Styleable styleable = 3;
8023   if (_internal_has_styleable()) {
8024     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8025       InternalWriteMessage(3, _Internal::styleable(this),
8026         _Internal::styleable(this).GetCachedSize(), target, stream);
8027   }
8028 
8029   // .aapt.pb.Array array = 4;
8030   if (_internal_has_array()) {
8031     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8032       InternalWriteMessage(4, _Internal::array(this),
8033         _Internal::array(this).GetCachedSize(), target, stream);
8034   }
8035 
8036   // .aapt.pb.Plural plural = 5;
8037   if (_internal_has_plural()) {
8038     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8039       InternalWriteMessage(5, _Internal::plural(this),
8040         _Internal::plural(this).GetCachedSize(), target, stream);
8041   }
8042 
8043   // .aapt.pb.MacroBody macro = 6;
8044   if (_internal_has_macro()) {
8045     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8046       InternalWriteMessage(6, _Internal::macro(this),
8047         _Internal::macro(this).GetCachedSize(), target, stream);
8048   }
8049 
8050   // uint32 flag_status = 7;
8051   if (this->_internal_flag_status() != 0) {
8052     target = stream->EnsureSpace(target);
8053     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_flag_status(), target);
8054   }
8055 
8056   // bool flag_negated = 8;
8057   if (this->_internal_flag_negated() != 0) {
8058     target = stream->EnsureSpace(target);
8059     target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_flag_negated(), target);
8060   }
8061 
8062   // string flag_name = 9;
8063   if (!this->_internal_flag_name().empty()) {
8064     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8065       this->_internal_flag_name().data(), static_cast<int>(this->_internal_flag_name().length()),
8066       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8067       "aapt.pb.CompoundValue.flag_name");
8068     target = stream->WriteStringMaybeAliased(
8069         9, this->_internal_flag_name(), target);
8070   }
8071 
8072   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8073     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8074         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8075   }
8076   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.CompoundValue)
8077   return target;
8078 }
8079 
ByteSizeLong() const8080 size_t CompoundValue::ByteSizeLong() const {
8081 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.CompoundValue)
8082   size_t total_size = 0;
8083 
8084   ::uint32_t cached_has_bits = 0;
8085   // Prevent compiler warnings about cached_has_bits being unused
8086   (void) cached_has_bits;
8087 
8088   // string flag_name = 9;
8089   if (!this->_internal_flag_name().empty()) {
8090     total_size += 1 +
8091       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8092         this->_internal_flag_name());
8093   }
8094 
8095   // uint32 flag_status = 7;
8096   if (this->_internal_flag_status() != 0) {
8097     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flag_status());
8098   }
8099 
8100   // bool flag_negated = 8;
8101   if (this->_internal_flag_negated() != 0) {
8102     total_size += 1 + 1;
8103   }
8104 
8105   switch (value_case()) {
8106     // .aapt.pb.Attribute attr = 1;
8107     case kAttr: {
8108       total_size += 1 +
8109         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8110           *_impl_.value_.attr_);
8111       break;
8112     }
8113     // .aapt.pb.Style style = 2;
8114     case kStyle: {
8115       total_size += 1 +
8116         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8117           *_impl_.value_.style_);
8118       break;
8119     }
8120     // .aapt.pb.Styleable styleable = 3;
8121     case kStyleable: {
8122       total_size += 1 +
8123         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8124           *_impl_.value_.styleable_);
8125       break;
8126     }
8127     // .aapt.pb.Array array = 4;
8128     case kArray: {
8129       total_size += 1 +
8130         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8131           *_impl_.value_.array_);
8132       break;
8133     }
8134     // .aapt.pb.Plural plural = 5;
8135     case kPlural: {
8136       total_size += 1 +
8137         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8138           *_impl_.value_.plural_);
8139       break;
8140     }
8141     // .aapt.pb.MacroBody macro = 6;
8142     case kMacro: {
8143       total_size += 1 +
8144         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8145           *_impl_.value_.macro_);
8146       break;
8147     }
8148     case VALUE_NOT_SET: {
8149       break;
8150     }
8151   }
8152   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
8153 }
8154 
8155 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CompoundValue::_class_data_ = {
8156     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
8157     CompoundValue::MergeImpl
8158 };
GetClassData() const8159 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CompoundValue::GetClassData() const { return &_class_data_; }
8160 
8161 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)8162 void CompoundValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
8163   auto* const _this = static_cast<CompoundValue*>(&to_msg);
8164   auto& from = static_cast<const CompoundValue&>(from_msg);
8165   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.CompoundValue)
8166   GOOGLE_DCHECK_NE(&from, _this);
8167   ::uint32_t cached_has_bits = 0;
8168   (void) cached_has_bits;
8169 
8170   if (!from._internal_flag_name().empty()) {
8171     _this->_internal_set_flag_name(from._internal_flag_name());
8172   }
8173   if (from._internal_flag_status() != 0) {
8174     _this->_internal_set_flag_status(from._internal_flag_status());
8175   }
8176   if (from._internal_flag_negated() != 0) {
8177     _this->_internal_set_flag_negated(from._internal_flag_negated());
8178   }
8179   switch (from.value_case()) {
8180     case kAttr: {
8181       _this->_internal_mutable_attr()->::aapt::pb::Attribute::MergeFrom(
8182           from._internal_attr());
8183       break;
8184     }
8185     case kStyle: {
8186       _this->_internal_mutable_style()->::aapt::pb::Style::MergeFrom(
8187           from._internal_style());
8188       break;
8189     }
8190     case kStyleable: {
8191       _this->_internal_mutable_styleable()->::aapt::pb::Styleable::MergeFrom(
8192           from._internal_styleable());
8193       break;
8194     }
8195     case kArray: {
8196       _this->_internal_mutable_array()->::aapt::pb::Array::MergeFrom(
8197           from._internal_array());
8198       break;
8199     }
8200     case kPlural: {
8201       _this->_internal_mutable_plural()->::aapt::pb::Plural::MergeFrom(
8202           from._internal_plural());
8203       break;
8204     }
8205     case kMacro: {
8206       _this->_internal_mutable_macro()->::aapt::pb::MacroBody::MergeFrom(
8207           from._internal_macro());
8208       break;
8209     }
8210     case VALUE_NOT_SET: {
8211       break;
8212     }
8213   }
8214   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8215 }
8216 
CopyFrom(const CompoundValue & from)8217 void CompoundValue::CopyFrom(const CompoundValue& from) {
8218 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.CompoundValue)
8219   if (&from == this) return;
8220   Clear();
8221   MergeFrom(from);
8222 }
8223 
IsInitialized() const8224 bool CompoundValue::IsInitialized() const {
8225   return true;
8226 }
8227 
InternalSwap(CompoundValue * other)8228 void CompoundValue::InternalSwap(CompoundValue* other) {
8229   using std::swap;
8230   auto* lhs_arena = GetArenaForAllocation();
8231   auto* rhs_arena = other->GetArenaForAllocation();
8232   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8233   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8234       &_impl_.flag_name_, lhs_arena,
8235       &other->_impl_.flag_name_, rhs_arena
8236   );
8237   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8238       PROTOBUF_FIELD_OFFSET(CompoundValue, _impl_.flag_negated_)
8239       + sizeof(CompoundValue::_impl_.flag_negated_)  // NOLINT
8240       - PROTOBUF_FIELD_OFFSET(CompoundValue, _impl_.flag_status_)>(
8241           reinterpret_cast<char*>(&_impl_.flag_status_),
8242           reinterpret_cast<char*>(&other->_impl_.flag_status_));
8243   swap(_impl_.value_, other->_impl_.value_);
8244   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
8245 }
8246 
GetMetadata() const8247 ::PROTOBUF_NAMESPACE_ID::Metadata CompoundValue::GetMetadata() const {
8248   return ::_pbi::AssignDescriptors(
8249       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
8250       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[20]);
8251 }
8252 
8253 // ===================================================================
8254 
8255 class Boolean::_Internal {
8256  public:
8257 };
8258 
Boolean(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8259 Boolean::Boolean(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8260                          bool is_message_owned)
8261   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
8262   SharedCtor(arena, is_message_owned);
8263   // @@protoc_insertion_point(arena_constructor:aapt.pb.Boolean)
8264 }
Boolean(const Boolean & from)8265 Boolean::Boolean(const Boolean& from)
8266   : ::PROTOBUF_NAMESPACE_ID::Message() {
8267   Boolean* const _this = this; (void)_this;
8268   new (&_impl_) Impl_{
8269       decltype(_impl_.value_){}
8270     , /*decltype(_impl_._cached_size_)*/{}};
8271 
8272   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8273   _this->_impl_.value_ = from._impl_.value_;
8274   // @@protoc_insertion_point(copy_constructor:aapt.pb.Boolean)
8275 }
8276 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8277 inline void Boolean::SharedCtor(
8278     ::_pb::Arena* arena, bool is_message_owned) {
8279   (void)arena;
8280   (void)is_message_owned;
8281   new (&_impl_) Impl_{
8282       decltype(_impl_.value_){false}
8283     , /*decltype(_impl_._cached_size_)*/{}
8284   };
8285 }
8286 
~Boolean()8287 Boolean::~Boolean() {
8288   // @@protoc_insertion_point(destructor:aapt.pb.Boolean)
8289   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8290   (void)arena;
8291     return;
8292   }
8293   SharedDtor();
8294 }
8295 
SharedDtor()8296 inline void Boolean::SharedDtor() {
8297   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8298 }
8299 
SetCachedSize(int size) const8300 void Boolean::SetCachedSize(int size) const {
8301   _impl_._cached_size_.Set(size);
8302 }
8303 
Clear()8304 void Boolean::Clear() {
8305 // @@protoc_insertion_point(message_clear_start:aapt.pb.Boolean)
8306   ::uint32_t cached_has_bits = 0;
8307   // Prevent compiler warnings about cached_has_bits being unused
8308   (void) cached_has_bits;
8309 
8310   _impl_.value_ = false;
8311   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8312 }
8313 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8314 const char* Boolean::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8315 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8316   while (!ctx->Done(&ptr)) {
8317     ::uint32_t tag;
8318     ptr = ::_pbi::ReadTag(ptr, &tag);
8319     switch (tag >> 3) {
8320       // bool value = 1;
8321       case 1:
8322         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8323           _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8324           CHK_(ptr);
8325         } else {
8326           goto handle_unusual;
8327         }
8328         continue;
8329       default:
8330         goto handle_unusual;
8331     }  // switch
8332   handle_unusual:
8333     if ((tag == 0) || ((tag & 7) == 4)) {
8334       CHK_(ptr);
8335       ctx->SetLastTag(tag);
8336       goto message_done;
8337     }
8338     ptr = UnknownFieldParse(
8339         tag,
8340         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8341         ptr, ctx);
8342     CHK_(ptr != nullptr);
8343   }  // while
8344 message_done:
8345   return ptr;
8346 failure:
8347   ptr = nullptr;
8348   goto message_done;
8349 #undef CHK_
8350 }
8351 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8352 ::uint8_t* Boolean::_InternalSerialize(
8353     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8354   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Boolean)
8355   ::uint32_t cached_has_bits = 0;
8356   (void) cached_has_bits;
8357 
8358   // bool value = 1;
8359   if (this->_internal_value() != 0) {
8360     target = stream->EnsureSpace(target);
8361     target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_value(), target);
8362   }
8363 
8364   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8365     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8366         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8367   }
8368   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Boolean)
8369   return target;
8370 }
8371 
ByteSizeLong() const8372 size_t Boolean::ByteSizeLong() const {
8373 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Boolean)
8374   size_t total_size = 0;
8375 
8376   ::uint32_t cached_has_bits = 0;
8377   // Prevent compiler warnings about cached_has_bits being unused
8378   (void) cached_has_bits;
8379 
8380   // bool value = 1;
8381   if (this->_internal_value() != 0) {
8382     total_size += 1 + 1;
8383   }
8384 
8385   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
8386 }
8387 
8388 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Boolean::_class_data_ = {
8389     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
8390     Boolean::MergeImpl
8391 };
GetClassData() const8392 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Boolean::GetClassData() const { return &_class_data_; }
8393 
8394 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)8395 void Boolean::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
8396   auto* const _this = static_cast<Boolean*>(&to_msg);
8397   auto& from = static_cast<const Boolean&>(from_msg);
8398   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Boolean)
8399   GOOGLE_DCHECK_NE(&from, _this);
8400   ::uint32_t cached_has_bits = 0;
8401   (void) cached_has_bits;
8402 
8403   if (from._internal_value() != 0) {
8404     _this->_internal_set_value(from._internal_value());
8405   }
8406   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8407 }
8408 
CopyFrom(const Boolean & from)8409 void Boolean::CopyFrom(const Boolean& from) {
8410 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Boolean)
8411   if (&from == this) return;
8412   Clear();
8413   MergeFrom(from);
8414 }
8415 
IsInitialized() const8416 bool Boolean::IsInitialized() const {
8417   return true;
8418 }
8419 
InternalSwap(Boolean * other)8420 void Boolean::InternalSwap(Boolean* other) {
8421   using std::swap;
8422   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8423   swap(_impl_.value_, other->_impl_.value_);
8424 }
8425 
GetMetadata() const8426 ::PROTOBUF_NAMESPACE_ID::Metadata Boolean::GetMetadata() const {
8427   return ::_pbi::AssignDescriptors(
8428       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
8429       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[21]);
8430 }
8431 
8432 // ===================================================================
8433 
8434 class Reference::_Internal {
8435  public:
8436   static const ::aapt::pb::Boolean& is_dynamic(const Reference* msg);
8437 };
8438 
8439 const ::aapt::pb::Boolean&
is_dynamic(const Reference * msg)8440 Reference::_Internal::is_dynamic(const Reference* msg) {
8441   return *msg->_impl_.is_dynamic_;
8442 }
Reference(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8443 Reference::Reference(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8444                          bool is_message_owned)
8445   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
8446   SharedCtor(arena, is_message_owned);
8447   // @@protoc_insertion_point(arena_constructor:aapt.pb.Reference)
8448 }
Reference(const Reference & from)8449 Reference::Reference(const Reference& from)
8450   : ::PROTOBUF_NAMESPACE_ID::Message() {
8451   Reference* const _this = this; (void)_this;
8452   new (&_impl_) Impl_{
8453       decltype(_impl_.name_){}
8454     , decltype(_impl_.is_dynamic_){nullptr}
8455     , decltype(_impl_.type_){}
8456     , decltype(_impl_.id_){}
8457     , decltype(_impl_.private__){}
8458     , decltype(_impl_.allow_raw_){}
8459     , decltype(_impl_.type_flags_){}
8460     , /*decltype(_impl_._cached_size_)*/{}};
8461 
8462   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8463   _impl_.name_.InitDefault();
8464   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8465     _impl_.name_.Set("", GetArenaForAllocation());
8466   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8467   if (!from._internal_name().empty()) {
8468     _this->_impl_.name_.Set(from._internal_name(),
8469       _this->GetArenaForAllocation());
8470   }
8471   if (from._internal_has_is_dynamic()) {
8472     _this->_impl_.is_dynamic_ = new ::aapt::pb::Boolean(*from._impl_.is_dynamic_);
8473   }
8474   ::memcpy(&_impl_.type_, &from._impl_.type_,
8475     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_flags_) -
8476     reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.type_flags_));
8477   // @@protoc_insertion_point(copy_constructor:aapt.pb.Reference)
8478 }
8479 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8480 inline void Reference::SharedCtor(
8481     ::_pb::Arena* arena, bool is_message_owned) {
8482   (void)arena;
8483   (void)is_message_owned;
8484   new (&_impl_) Impl_{
8485       decltype(_impl_.name_){}
8486     , decltype(_impl_.is_dynamic_){nullptr}
8487     , decltype(_impl_.type_){0}
8488     , decltype(_impl_.id_){0u}
8489     , decltype(_impl_.private__){false}
8490     , decltype(_impl_.allow_raw_){false}
8491     , decltype(_impl_.type_flags_){0u}
8492     , /*decltype(_impl_._cached_size_)*/{}
8493   };
8494   _impl_.name_.InitDefault();
8495   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8496     _impl_.name_.Set("", GetArenaForAllocation());
8497   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8498 }
8499 
~Reference()8500 Reference::~Reference() {
8501   // @@protoc_insertion_point(destructor:aapt.pb.Reference)
8502   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8503   (void)arena;
8504     return;
8505   }
8506   SharedDtor();
8507 }
8508 
SharedDtor()8509 inline void Reference::SharedDtor() {
8510   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8511   _impl_.name_.Destroy();
8512   if (this != internal_default_instance()) delete _impl_.is_dynamic_;
8513 }
8514 
SetCachedSize(int size) const8515 void Reference::SetCachedSize(int size) const {
8516   _impl_._cached_size_.Set(size);
8517 }
8518 
Clear()8519 void Reference::Clear() {
8520 // @@protoc_insertion_point(message_clear_start:aapt.pb.Reference)
8521   ::uint32_t cached_has_bits = 0;
8522   // Prevent compiler warnings about cached_has_bits being unused
8523   (void) cached_has_bits;
8524 
8525   _impl_.name_.ClearToEmpty();
8526   if (GetArenaForAllocation() == nullptr && _impl_.is_dynamic_ != nullptr) {
8527     delete _impl_.is_dynamic_;
8528   }
8529   _impl_.is_dynamic_ = nullptr;
8530   ::memset(&_impl_.type_, 0, static_cast<size_t>(
8531       reinterpret_cast<char*>(&_impl_.type_flags_) -
8532       reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.type_flags_));
8533   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8534 }
8535 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8536 const char* Reference::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8537 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8538   while (!ctx->Done(&ptr)) {
8539     ::uint32_t tag;
8540     ptr = ::_pbi::ReadTag(ptr, &tag);
8541     switch (tag >> 3) {
8542       // .aapt.pb.Reference.Type type = 1;
8543       case 1:
8544         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
8545           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8546           CHK_(ptr);
8547           _internal_set_type(static_cast<::aapt::pb::Reference_Type>(val));
8548         } else {
8549           goto handle_unusual;
8550         }
8551         continue;
8552       // uint32 id = 2;
8553       case 2:
8554         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
8555           _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8556           CHK_(ptr);
8557         } else {
8558           goto handle_unusual;
8559         }
8560         continue;
8561       // string name = 3;
8562       case 3:
8563         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
8564           auto str = _internal_mutable_name();
8565           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
8566           CHK_(ptr);
8567           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Reference.name"));
8568         } else {
8569           goto handle_unusual;
8570         }
8571         continue;
8572       // bool private = 4;
8573       case 4:
8574         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
8575           _impl_.private__ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8576           CHK_(ptr);
8577         } else {
8578           goto handle_unusual;
8579         }
8580         continue;
8581       // .aapt.pb.Boolean is_dynamic = 5;
8582       case 5:
8583         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
8584           ptr = ctx->ParseMessage(_internal_mutable_is_dynamic(), ptr);
8585           CHK_(ptr);
8586         } else {
8587           goto handle_unusual;
8588         }
8589         continue;
8590       // uint32 type_flags = 6;
8591       case 6:
8592         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
8593           _impl_.type_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
8594           CHK_(ptr);
8595         } else {
8596           goto handle_unusual;
8597         }
8598         continue;
8599       // bool allow_raw = 7;
8600       case 7:
8601         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
8602           _impl_.allow_raw_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
8603           CHK_(ptr);
8604         } else {
8605           goto handle_unusual;
8606         }
8607         continue;
8608       default:
8609         goto handle_unusual;
8610     }  // switch
8611   handle_unusual:
8612     if ((tag == 0) || ((tag & 7) == 4)) {
8613       CHK_(ptr);
8614       ctx->SetLastTag(tag);
8615       goto message_done;
8616     }
8617     ptr = UnknownFieldParse(
8618         tag,
8619         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8620         ptr, ctx);
8621     CHK_(ptr != nullptr);
8622   }  // while
8623 message_done:
8624   return ptr;
8625 failure:
8626   ptr = nullptr;
8627   goto message_done;
8628 #undef CHK_
8629 }
8630 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8631 ::uint8_t* Reference::_InternalSerialize(
8632     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8633   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Reference)
8634   ::uint32_t cached_has_bits = 0;
8635   (void) cached_has_bits;
8636 
8637   // .aapt.pb.Reference.Type type = 1;
8638   if (this->_internal_type() != 0) {
8639     target = stream->EnsureSpace(target);
8640     target = ::_pbi::WireFormatLite::WriteEnumToArray(
8641       1, this->_internal_type(), target);
8642   }
8643 
8644   // uint32 id = 2;
8645   if (this->_internal_id() != 0) {
8646     target = stream->EnsureSpace(target);
8647     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_id(), target);
8648   }
8649 
8650   // string name = 3;
8651   if (!this->_internal_name().empty()) {
8652     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8653       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
8654       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8655       "aapt.pb.Reference.name");
8656     target = stream->WriteStringMaybeAliased(
8657         3, this->_internal_name(), target);
8658   }
8659 
8660   // bool private = 4;
8661   if (this->_internal_private_() != 0) {
8662     target = stream->EnsureSpace(target);
8663     target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_private_(), target);
8664   }
8665 
8666   // .aapt.pb.Boolean is_dynamic = 5;
8667   if (this->_internal_has_is_dynamic()) {
8668     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
8669       InternalWriteMessage(5, _Internal::is_dynamic(this),
8670         _Internal::is_dynamic(this).GetCachedSize(), target, stream);
8671   }
8672 
8673   // uint32 type_flags = 6;
8674   if (this->_internal_type_flags() != 0) {
8675     target = stream->EnsureSpace(target);
8676     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_type_flags(), target);
8677   }
8678 
8679   // bool allow_raw = 7;
8680   if (this->_internal_allow_raw() != 0) {
8681     target = stream->EnsureSpace(target);
8682     target = ::_pbi::WireFormatLite::WriteBoolToArray(7, this->_internal_allow_raw(), target);
8683   }
8684 
8685   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8686     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8687         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8688   }
8689   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Reference)
8690   return target;
8691 }
8692 
ByteSizeLong() const8693 size_t Reference::ByteSizeLong() const {
8694 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Reference)
8695   size_t total_size = 0;
8696 
8697   ::uint32_t cached_has_bits = 0;
8698   // Prevent compiler warnings about cached_has_bits being unused
8699   (void) cached_has_bits;
8700 
8701   // string name = 3;
8702   if (!this->_internal_name().empty()) {
8703     total_size += 1 +
8704       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
8705         this->_internal_name());
8706   }
8707 
8708   // .aapt.pb.Boolean is_dynamic = 5;
8709   if (this->_internal_has_is_dynamic()) {
8710     total_size += 1 +
8711       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
8712         *_impl_.is_dynamic_);
8713   }
8714 
8715   // .aapt.pb.Reference.Type type = 1;
8716   if (this->_internal_type() != 0) {
8717     total_size += 1 +
8718       ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
8719   }
8720 
8721   // uint32 id = 2;
8722   if (this->_internal_id() != 0) {
8723     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
8724   }
8725 
8726   // bool private = 4;
8727   if (this->_internal_private_() != 0) {
8728     total_size += 1 + 1;
8729   }
8730 
8731   // bool allow_raw = 7;
8732   if (this->_internal_allow_raw() != 0) {
8733     total_size += 1 + 1;
8734   }
8735 
8736   // uint32 type_flags = 6;
8737   if (this->_internal_type_flags() != 0) {
8738     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type_flags());
8739   }
8740 
8741   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
8742 }
8743 
8744 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Reference::_class_data_ = {
8745     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
8746     Reference::MergeImpl
8747 };
GetClassData() const8748 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Reference::GetClassData() const { return &_class_data_; }
8749 
8750 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)8751 void Reference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
8752   auto* const _this = static_cast<Reference*>(&to_msg);
8753   auto& from = static_cast<const Reference&>(from_msg);
8754   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Reference)
8755   GOOGLE_DCHECK_NE(&from, _this);
8756   ::uint32_t cached_has_bits = 0;
8757   (void) cached_has_bits;
8758 
8759   if (!from._internal_name().empty()) {
8760     _this->_internal_set_name(from._internal_name());
8761   }
8762   if (from._internal_has_is_dynamic()) {
8763     _this->_internal_mutable_is_dynamic()->::aapt::pb::Boolean::MergeFrom(
8764         from._internal_is_dynamic());
8765   }
8766   if (from._internal_type() != 0) {
8767     _this->_internal_set_type(from._internal_type());
8768   }
8769   if (from._internal_id() != 0) {
8770     _this->_internal_set_id(from._internal_id());
8771   }
8772   if (from._internal_private_() != 0) {
8773     _this->_internal_set_private_(from._internal_private_());
8774   }
8775   if (from._internal_allow_raw() != 0) {
8776     _this->_internal_set_allow_raw(from._internal_allow_raw());
8777   }
8778   if (from._internal_type_flags() != 0) {
8779     _this->_internal_set_type_flags(from._internal_type_flags());
8780   }
8781   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8782 }
8783 
CopyFrom(const Reference & from)8784 void Reference::CopyFrom(const Reference& from) {
8785 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Reference)
8786   if (&from == this) return;
8787   Clear();
8788   MergeFrom(from);
8789 }
8790 
IsInitialized() const8791 bool Reference::IsInitialized() const {
8792   return true;
8793 }
8794 
InternalSwap(Reference * other)8795 void Reference::InternalSwap(Reference* other) {
8796   using std::swap;
8797   auto* lhs_arena = GetArenaForAllocation();
8798   auto* rhs_arena = other->GetArenaForAllocation();
8799   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
8800   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
8801       &_impl_.name_, lhs_arena,
8802       &other->_impl_.name_, rhs_arena
8803   );
8804   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
8805       PROTOBUF_FIELD_OFFSET(Reference, _impl_.type_flags_)
8806       + sizeof(Reference::_impl_.type_flags_)  // NOLINT
8807       - PROTOBUF_FIELD_OFFSET(Reference, _impl_.is_dynamic_)>(
8808           reinterpret_cast<char*>(&_impl_.is_dynamic_),
8809           reinterpret_cast<char*>(&other->_impl_.is_dynamic_));
8810 }
8811 
GetMetadata() const8812 ::PROTOBUF_NAMESPACE_ID::Metadata Reference::GetMetadata() const {
8813   return ::_pbi::AssignDescriptors(
8814       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
8815       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[22]);
8816 }
8817 
8818 // ===================================================================
8819 
8820 class Id::_Internal {
8821  public:
8822 };
8823 
Id(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8824 Id::Id(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8825                          bool is_message_owned)
8826   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
8827   // @@protoc_insertion_point(arena_constructor:aapt.pb.Id)
8828 }
Id(const Id & from)8829 Id::Id(const Id& from)
8830   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
8831   Id* const _this = this; (void)_this;
8832   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8833   // @@protoc_insertion_point(copy_constructor:aapt.pb.Id)
8834 }
8835 
8836 
8837 
8838 
8839 
8840 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Id::_class_data_ = {
8841     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
8842     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
8843 };
GetClassData() const8844 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Id::GetClassData() const { return &_class_data_; }
8845 
8846 
8847 
8848 
8849 
8850 
8851 
GetMetadata() const8852 ::PROTOBUF_NAMESPACE_ID::Metadata Id::GetMetadata() const {
8853   return ::_pbi::AssignDescriptors(
8854       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
8855       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[23]);
8856 }
8857 
8858 // ===================================================================
8859 
8860 class String::_Internal {
8861  public:
8862 };
8863 
String(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)8864 String::String(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8865                          bool is_message_owned)
8866   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
8867   SharedCtor(arena, is_message_owned);
8868   // @@protoc_insertion_point(arena_constructor:aapt.pb.String)
8869 }
String(const String & from)8870 String::String(const String& from)
8871   : ::PROTOBUF_NAMESPACE_ID::Message() {
8872   String* const _this = this; (void)_this;
8873   new (&_impl_) Impl_{
8874       decltype(_impl_.value_){}
8875     , /*decltype(_impl_._cached_size_)*/{}};
8876 
8877   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
8878   _impl_.value_.InitDefault();
8879   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8880     _impl_.value_.Set("", GetArenaForAllocation());
8881   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8882   if (!from._internal_value().empty()) {
8883     _this->_impl_.value_.Set(from._internal_value(),
8884       _this->GetArenaForAllocation());
8885   }
8886   // @@protoc_insertion_point(copy_constructor:aapt.pb.String)
8887 }
8888 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)8889 inline void String::SharedCtor(
8890     ::_pb::Arena* arena, bool is_message_owned) {
8891   (void)arena;
8892   (void)is_message_owned;
8893   new (&_impl_) Impl_{
8894       decltype(_impl_.value_){}
8895     , /*decltype(_impl_._cached_size_)*/{}
8896   };
8897   _impl_.value_.InitDefault();
8898   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
8899     _impl_.value_.Set("", GetArenaForAllocation());
8900   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
8901 }
8902 
~String()8903 String::~String() {
8904   // @@protoc_insertion_point(destructor:aapt.pb.String)
8905   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
8906   (void)arena;
8907     return;
8908   }
8909   SharedDtor();
8910 }
8911 
SharedDtor()8912 inline void String::SharedDtor() {
8913   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
8914   _impl_.value_.Destroy();
8915 }
8916 
SetCachedSize(int size) const8917 void String::SetCachedSize(int size) const {
8918   _impl_._cached_size_.Set(size);
8919 }
8920 
Clear()8921 void String::Clear() {
8922 // @@protoc_insertion_point(message_clear_start:aapt.pb.String)
8923   ::uint32_t cached_has_bits = 0;
8924   // Prevent compiler warnings about cached_has_bits being unused
8925   (void) cached_has_bits;
8926 
8927   _impl_.value_.ClearToEmpty();
8928   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
8929 }
8930 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)8931 const char* String::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
8932 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
8933   while (!ctx->Done(&ptr)) {
8934     ::uint32_t tag;
8935     ptr = ::_pbi::ReadTag(ptr, &tag);
8936     switch (tag >> 3) {
8937       // string value = 1;
8938       case 1:
8939         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
8940           auto str = _internal_mutable_value();
8941           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
8942           CHK_(ptr);
8943           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.String.value"));
8944         } else {
8945           goto handle_unusual;
8946         }
8947         continue;
8948       default:
8949         goto handle_unusual;
8950     }  // switch
8951   handle_unusual:
8952     if ((tag == 0) || ((tag & 7) == 4)) {
8953       CHK_(ptr);
8954       ctx->SetLastTag(tag);
8955       goto message_done;
8956     }
8957     ptr = UnknownFieldParse(
8958         tag,
8959         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
8960         ptr, ctx);
8961     CHK_(ptr != nullptr);
8962   }  // while
8963 message_done:
8964   return ptr;
8965 failure:
8966   ptr = nullptr;
8967   goto message_done;
8968 #undef CHK_
8969 }
8970 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const8971 ::uint8_t* String::_InternalSerialize(
8972     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
8973   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.String)
8974   ::uint32_t cached_has_bits = 0;
8975   (void) cached_has_bits;
8976 
8977   // string value = 1;
8978   if (!this->_internal_value().empty()) {
8979     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
8980       this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
8981       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
8982       "aapt.pb.String.value");
8983     target = stream->WriteStringMaybeAliased(
8984         1, this->_internal_value(), target);
8985   }
8986 
8987   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
8988     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
8989         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
8990   }
8991   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.String)
8992   return target;
8993 }
8994 
ByteSizeLong() const8995 size_t String::ByteSizeLong() const {
8996 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.String)
8997   size_t total_size = 0;
8998 
8999   ::uint32_t cached_has_bits = 0;
9000   // Prevent compiler warnings about cached_has_bits being unused
9001   (void) cached_has_bits;
9002 
9003   // string value = 1;
9004   if (!this->_internal_value().empty()) {
9005     total_size += 1 +
9006       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9007         this->_internal_value());
9008   }
9009 
9010   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
9011 }
9012 
9013 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData String::_class_data_ = {
9014     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
9015     String::MergeImpl
9016 };
GetClassData() const9017 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*String::GetClassData() const { return &_class_data_; }
9018 
9019 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)9020 void String::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
9021   auto* const _this = static_cast<String*>(&to_msg);
9022   auto& from = static_cast<const String&>(from_msg);
9023   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.String)
9024   GOOGLE_DCHECK_NE(&from, _this);
9025   ::uint32_t cached_has_bits = 0;
9026   (void) cached_has_bits;
9027 
9028   if (!from._internal_value().empty()) {
9029     _this->_internal_set_value(from._internal_value());
9030   }
9031   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9032 }
9033 
CopyFrom(const String & from)9034 void String::CopyFrom(const String& from) {
9035 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.String)
9036   if (&from == this) return;
9037   Clear();
9038   MergeFrom(from);
9039 }
9040 
IsInitialized() const9041 bool String::IsInitialized() const {
9042   return true;
9043 }
9044 
InternalSwap(String * other)9045 void String::InternalSwap(String* other) {
9046   using std::swap;
9047   auto* lhs_arena = GetArenaForAllocation();
9048   auto* rhs_arena = other->GetArenaForAllocation();
9049   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9050   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9051       &_impl_.value_, lhs_arena,
9052       &other->_impl_.value_, rhs_arena
9053   );
9054 }
9055 
GetMetadata() const9056 ::PROTOBUF_NAMESPACE_ID::Metadata String::GetMetadata() const {
9057   return ::_pbi::AssignDescriptors(
9058       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
9059       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[24]);
9060 }
9061 
9062 // ===================================================================
9063 
9064 class RawString::_Internal {
9065  public:
9066 };
9067 
RawString(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9068 RawString::RawString(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9069                          bool is_message_owned)
9070   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
9071   SharedCtor(arena, is_message_owned);
9072   // @@protoc_insertion_point(arena_constructor:aapt.pb.RawString)
9073 }
RawString(const RawString & from)9074 RawString::RawString(const RawString& from)
9075   : ::PROTOBUF_NAMESPACE_ID::Message() {
9076   RawString* const _this = this; (void)_this;
9077   new (&_impl_) Impl_{
9078       decltype(_impl_.value_){}
9079     , /*decltype(_impl_._cached_size_)*/{}};
9080 
9081   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9082   _impl_.value_.InitDefault();
9083   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9084     _impl_.value_.Set("", GetArenaForAllocation());
9085   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9086   if (!from._internal_value().empty()) {
9087     _this->_impl_.value_.Set(from._internal_value(),
9088       _this->GetArenaForAllocation());
9089   }
9090   // @@protoc_insertion_point(copy_constructor:aapt.pb.RawString)
9091 }
9092 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9093 inline void RawString::SharedCtor(
9094     ::_pb::Arena* arena, bool is_message_owned) {
9095   (void)arena;
9096   (void)is_message_owned;
9097   new (&_impl_) Impl_{
9098       decltype(_impl_.value_){}
9099     , /*decltype(_impl_._cached_size_)*/{}
9100   };
9101   _impl_.value_.InitDefault();
9102   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9103     _impl_.value_.Set("", GetArenaForAllocation());
9104   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9105 }
9106 
~RawString()9107 RawString::~RawString() {
9108   // @@protoc_insertion_point(destructor:aapt.pb.RawString)
9109   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9110   (void)arena;
9111     return;
9112   }
9113   SharedDtor();
9114 }
9115 
SharedDtor()9116 inline void RawString::SharedDtor() {
9117   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9118   _impl_.value_.Destroy();
9119 }
9120 
SetCachedSize(int size) const9121 void RawString::SetCachedSize(int size) const {
9122   _impl_._cached_size_.Set(size);
9123 }
9124 
Clear()9125 void RawString::Clear() {
9126 // @@protoc_insertion_point(message_clear_start:aapt.pb.RawString)
9127   ::uint32_t cached_has_bits = 0;
9128   // Prevent compiler warnings about cached_has_bits being unused
9129   (void) cached_has_bits;
9130 
9131   _impl_.value_.ClearToEmpty();
9132   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9133 }
9134 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9135 const char* RawString::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9136 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9137   while (!ctx->Done(&ptr)) {
9138     ::uint32_t tag;
9139     ptr = ::_pbi::ReadTag(ptr, &tag);
9140     switch (tag >> 3) {
9141       // string value = 1;
9142       case 1:
9143         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9144           auto str = _internal_mutable_value();
9145           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9146           CHK_(ptr);
9147           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.RawString.value"));
9148         } else {
9149           goto handle_unusual;
9150         }
9151         continue;
9152       default:
9153         goto handle_unusual;
9154     }  // switch
9155   handle_unusual:
9156     if ((tag == 0) || ((tag & 7) == 4)) {
9157       CHK_(ptr);
9158       ctx->SetLastTag(tag);
9159       goto message_done;
9160     }
9161     ptr = UnknownFieldParse(
9162         tag,
9163         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9164         ptr, ctx);
9165     CHK_(ptr != nullptr);
9166   }  // while
9167 message_done:
9168   return ptr;
9169 failure:
9170   ptr = nullptr;
9171   goto message_done;
9172 #undef CHK_
9173 }
9174 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9175 ::uint8_t* RawString::_InternalSerialize(
9176     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9177   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.RawString)
9178   ::uint32_t cached_has_bits = 0;
9179   (void) cached_has_bits;
9180 
9181   // string value = 1;
9182   if (!this->_internal_value().empty()) {
9183     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9184       this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
9185       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9186       "aapt.pb.RawString.value");
9187     target = stream->WriteStringMaybeAliased(
9188         1, this->_internal_value(), target);
9189   }
9190 
9191   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9192     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9193         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9194   }
9195   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.RawString)
9196   return target;
9197 }
9198 
ByteSizeLong() const9199 size_t RawString::ByteSizeLong() const {
9200 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.RawString)
9201   size_t total_size = 0;
9202 
9203   ::uint32_t cached_has_bits = 0;
9204   // Prevent compiler warnings about cached_has_bits being unused
9205   (void) cached_has_bits;
9206 
9207   // string value = 1;
9208   if (!this->_internal_value().empty()) {
9209     total_size += 1 +
9210       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9211         this->_internal_value());
9212   }
9213 
9214   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
9215 }
9216 
9217 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RawString::_class_data_ = {
9218     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
9219     RawString::MergeImpl
9220 };
GetClassData() const9221 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RawString::GetClassData() const { return &_class_data_; }
9222 
9223 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)9224 void RawString::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
9225   auto* const _this = static_cast<RawString*>(&to_msg);
9226   auto& from = static_cast<const RawString&>(from_msg);
9227   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.RawString)
9228   GOOGLE_DCHECK_NE(&from, _this);
9229   ::uint32_t cached_has_bits = 0;
9230   (void) cached_has_bits;
9231 
9232   if (!from._internal_value().empty()) {
9233     _this->_internal_set_value(from._internal_value());
9234   }
9235   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9236 }
9237 
CopyFrom(const RawString & from)9238 void RawString::CopyFrom(const RawString& from) {
9239 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.RawString)
9240   if (&from == this) return;
9241   Clear();
9242   MergeFrom(from);
9243 }
9244 
IsInitialized() const9245 bool RawString::IsInitialized() const {
9246   return true;
9247 }
9248 
InternalSwap(RawString * other)9249 void RawString::InternalSwap(RawString* other) {
9250   using std::swap;
9251   auto* lhs_arena = GetArenaForAllocation();
9252   auto* rhs_arena = other->GetArenaForAllocation();
9253   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9254   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9255       &_impl_.value_, lhs_arena,
9256       &other->_impl_.value_, rhs_arena
9257   );
9258 }
9259 
GetMetadata() const9260 ::PROTOBUF_NAMESPACE_ID::Metadata RawString::GetMetadata() const {
9261   return ::_pbi::AssignDescriptors(
9262       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
9263       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[25]);
9264 }
9265 
9266 // ===================================================================
9267 
9268 class StyledString_Span::_Internal {
9269  public:
9270 };
9271 
StyledString_Span(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9272 StyledString_Span::StyledString_Span(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9273                          bool is_message_owned)
9274   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
9275   SharedCtor(arena, is_message_owned);
9276   // @@protoc_insertion_point(arena_constructor:aapt.pb.StyledString.Span)
9277 }
StyledString_Span(const StyledString_Span & from)9278 StyledString_Span::StyledString_Span(const StyledString_Span& from)
9279   : ::PROTOBUF_NAMESPACE_ID::Message() {
9280   StyledString_Span* const _this = this; (void)_this;
9281   new (&_impl_) Impl_{
9282       decltype(_impl_.tag_){}
9283     , decltype(_impl_.first_char_){}
9284     , decltype(_impl_.last_char_){}
9285     , /*decltype(_impl_._cached_size_)*/{}};
9286 
9287   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9288   _impl_.tag_.InitDefault();
9289   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9290     _impl_.tag_.Set("", GetArenaForAllocation());
9291   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9292   if (!from._internal_tag().empty()) {
9293     _this->_impl_.tag_.Set(from._internal_tag(),
9294       _this->GetArenaForAllocation());
9295   }
9296   ::memcpy(&_impl_.first_char_, &from._impl_.first_char_,
9297     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.last_char_) -
9298     reinterpret_cast<char*>(&_impl_.first_char_)) + sizeof(_impl_.last_char_));
9299   // @@protoc_insertion_point(copy_constructor:aapt.pb.StyledString.Span)
9300 }
9301 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9302 inline void StyledString_Span::SharedCtor(
9303     ::_pb::Arena* arena, bool is_message_owned) {
9304   (void)arena;
9305   (void)is_message_owned;
9306   new (&_impl_) Impl_{
9307       decltype(_impl_.tag_){}
9308     , decltype(_impl_.first_char_){0u}
9309     , decltype(_impl_.last_char_){0u}
9310     , /*decltype(_impl_._cached_size_)*/{}
9311   };
9312   _impl_.tag_.InitDefault();
9313   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9314     _impl_.tag_.Set("", GetArenaForAllocation());
9315   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9316 }
9317 
~StyledString_Span()9318 StyledString_Span::~StyledString_Span() {
9319   // @@protoc_insertion_point(destructor:aapt.pb.StyledString.Span)
9320   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9321   (void)arena;
9322     return;
9323   }
9324   SharedDtor();
9325 }
9326 
SharedDtor()9327 inline void StyledString_Span::SharedDtor() {
9328   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9329   _impl_.tag_.Destroy();
9330 }
9331 
SetCachedSize(int size) const9332 void StyledString_Span::SetCachedSize(int size) const {
9333   _impl_._cached_size_.Set(size);
9334 }
9335 
Clear()9336 void StyledString_Span::Clear() {
9337 // @@protoc_insertion_point(message_clear_start:aapt.pb.StyledString.Span)
9338   ::uint32_t cached_has_bits = 0;
9339   // Prevent compiler warnings about cached_has_bits being unused
9340   (void) cached_has_bits;
9341 
9342   _impl_.tag_.ClearToEmpty();
9343   ::memset(&_impl_.first_char_, 0, static_cast<size_t>(
9344       reinterpret_cast<char*>(&_impl_.last_char_) -
9345       reinterpret_cast<char*>(&_impl_.first_char_)) + sizeof(_impl_.last_char_));
9346   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9347 }
9348 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9349 const char* StyledString_Span::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9350 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9351   while (!ctx->Done(&ptr)) {
9352     ::uint32_t tag;
9353     ptr = ::_pbi::ReadTag(ptr, &tag);
9354     switch (tag >> 3) {
9355       // string tag = 1;
9356       case 1:
9357         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9358           auto str = _internal_mutable_tag();
9359           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9360           CHK_(ptr);
9361           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.StyledString.Span.tag"));
9362         } else {
9363           goto handle_unusual;
9364         }
9365         continue;
9366       // uint32 first_char = 2;
9367       case 2:
9368         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9369           _impl_.first_char_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9370           CHK_(ptr);
9371         } else {
9372           goto handle_unusual;
9373         }
9374         continue;
9375       // uint32 last_char = 3;
9376       case 3:
9377         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
9378           _impl_.last_char_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
9379           CHK_(ptr);
9380         } else {
9381           goto handle_unusual;
9382         }
9383         continue;
9384       default:
9385         goto handle_unusual;
9386     }  // switch
9387   handle_unusual:
9388     if ((tag == 0) || ((tag & 7) == 4)) {
9389       CHK_(ptr);
9390       ctx->SetLastTag(tag);
9391       goto message_done;
9392     }
9393     ptr = UnknownFieldParse(
9394         tag,
9395         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9396         ptr, ctx);
9397     CHK_(ptr != nullptr);
9398   }  // while
9399 message_done:
9400   return ptr;
9401 failure:
9402   ptr = nullptr;
9403   goto message_done;
9404 #undef CHK_
9405 }
9406 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9407 ::uint8_t* StyledString_Span::_InternalSerialize(
9408     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9409   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StyledString.Span)
9410   ::uint32_t cached_has_bits = 0;
9411   (void) cached_has_bits;
9412 
9413   // string tag = 1;
9414   if (!this->_internal_tag().empty()) {
9415     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9416       this->_internal_tag().data(), static_cast<int>(this->_internal_tag().length()),
9417       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9418       "aapt.pb.StyledString.Span.tag");
9419     target = stream->WriteStringMaybeAliased(
9420         1, this->_internal_tag(), target);
9421   }
9422 
9423   // uint32 first_char = 2;
9424   if (this->_internal_first_char() != 0) {
9425     target = stream->EnsureSpace(target);
9426     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_first_char(), target);
9427   }
9428 
9429   // uint32 last_char = 3;
9430   if (this->_internal_last_char() != 0) {
9431     target = stream->EnsureSpace(target);
9432     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_last_char(), target);
9433   }
9434 
9435   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9436     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9437         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9438   }
9439   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StyledString.Span)
9440   return target;
9441 }
9442 
ByteSizeLong() const9443 size_t StyledString_Span::ByteSizeLong() const {
9444 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StyledString.Span)
9445   size_t total_size = 0;
9446 
9447   ::uint32_t cached_has_bits = 0;
9448   // Prevent compiler warnings about cached_has_bits being unused
9449   (void) cached_has_bits;
9450 
9451   // string tag = 1;
9452   if (!this->_internal_tag().empty()) {
9453     total_size += 1 +
9454       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9455         this->_internal_tag());
9456   }
9457 
9458   // uint32 first_char = 2;
9459   if (this->_internal_first_char() != 0) {
9460     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_first_char());
9461   }
9462 
9463   // uint32 last_char = 3;
9464   if (this->_internal_last_char() != 0) {
9465     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_last_char());
9466   }
9467 
9468   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
9469 }
9470 
9471 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StyledString_Span::_class_data_ = {
9472     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
9473     StyledString_Span::MergeImpl
9474 };
GetClassData() const9475 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StyledString_Span::GetClassData() const { return &_class_data_; }
9476 
9477 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)9478 void StyledString_Span::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
9479   auto* const _this = static_cast<StyledString_Span*>(&to_msg);
9480   auto& from = static_cast<const StyledString_Span&>(from_msg);
9481   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StyledString.Span)
9482   GOOGLE_DCHECK_NE(&from, _this);
9483   ::uint32_t cached_has_bits = 0;
9484   (void) cached_has_bits;
9485 
9486   if (!from._internal_tag().empty()) {
9487     _this->_internal_set_tag(from._internal_tag());
9488   }
9489   if (from._internal_first_char() != 0) {
9490     _this->_internal_set_first_char(from._internal_first_char());
9491   }
9492   if (from._internal_last_char() != 0) {
9493     _this->_internal_set_last_char(from._internal_last_char());
9494   }
9495   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9496 }
9497 
CopyFrom(const StyledString_Span & from)9498 void StyledString_Span::CopyFrom(const StyledString_Span& from) {
9499 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StyledString.Span)
9500   if (&from == this) return;
9501   Clear();
9502   MergeFrom(from);
9503 }
9504 
IsInitialized() const9505 bool StyledString_Span::IsInitialized() const {
9506   return true;
9507 }
9508 
InternalSwap(StyledString_Span * other)9509 void StyledString_Span::InternalSwap(StyledString_Span* other) {
9510   using std::swap;
9511   auto* lhs_arena = GetArenaForAllocation();
9512   auto* rhs_arena = other->GetArenaForAllocation();
9513   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9514   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9515       &_impl_.tag_, lhs_arena,
9516       &other->_impl_.tag_, rhs_arena
9517   );
9518   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
9519       PROTOBUF_FIELD_OFFSET(StyledString_Span, _impl_.last_char_)
9520       + sizeof(StyledString_Span::_impl_.last_char_)  // NOLINT
9521       - PROTOBUF_FIELD_OFFSET(StyledString_Span, _impl_.first_char_)>(
9522           reinterpret_cast<char*>(&_impl_.first_char_),
9523           reinterpret_cast<char*>(&other->_impl_.first_char_));
9524 }
9525 
GetMetadata() const9526 ::PROTOBUF_NAMESPACE_ID::Metadata StyledString_Span::GetMetadata() const {
9527   return ::_pbi::AssignDescriptors(
9528       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
9529       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[26]);
9530 }
9531 
9532 // ===================================================================
9533 
9534 class StyledString::_Internal {
9535  public:
9536 };
9537 
StyledString(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9538 StyledString::StyledString(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9539                          bool is_message_owned)
9540   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
9541   SharedCtor(arena, is_message_owned);
9542   // @@protoc_insertion_point(arena_constructor:aapt.pb.StyledString)
9543 }
StyledString(const StyledString & from)9544 StyledString::StyledString(const StyledString& from)
9545   : ::PROTOBUF_NAMESPACE_ID::Message() {
9546   StyledString* const _this = this; (void)_this;
9547   new (&_impl_) Impl_{
9548       decltype(_impl_.span_){from._impl_.span_}
9549     , decltype(_impl_.value_){}
9550     , /*decltype(_impl_._cached_size_)*/{}};
9551 
9552   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9553   _impl_.value_.InitDefault();
9554   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9555     _impl_.value_.Set("", GetArenaForAllocation());
9556   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9557   if (!from._internal_value().empty()) {
9558     _this->_impl_.value_.Set(from._internal_value(),
9559       _this->GetArenaForAllocation());
9560   }
9561   // @@protoc_insertion_point(copy_constructor:aapt.pb.StyledString)
9562 }
9563 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9564 inline void StyledString::SharedCtor(
9565     ::_pb::Arena* arena, bool is_message_owned) {
9566   (void)arena;
9567   (void)is_message_owned;
9568   new (&_impl_) Impl_{
9569       decltype(_impl_.span_){arena}
9570     , decltype(_impl_.value_){}
9571     , /*decltype(_impl_._cached_size_)*/{}
9572   };
9573   _impl_.value_.InitDefault();
9574   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9575     _impl_.value_.Set("", GetArenaForAllocation());
9576   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9577 }
9578 
~StyledString()9579 StyledString::~StyledString() {
9580   // @@protoc_insertion_point(destructor:aapt.pb.StyledString)
9581   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9582   (void)arena;
9583     return;
9584   }
9585   SharedDtor();
9586 }
9587 
SharedDtor()9588 inline void StyledString::SharedDtor() {
9589   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9590   _impl_.span_.~RepeatedPtrField();
9591   _impl_.value_.Destroy();
9592 }
9593 
SetCachedSize(int size) const9594 void StyledString::SetCachedSize(int size) const {
9595   _impl_._cached_size_.Set(size);
9596 }
9597 
Clear()9598 void StyledString::Clear() {
9599 // @@protoc_insertion_point(message_clear_start:aapt.pb.StyledString)
9600   ::uint32_t cached_has_bits = 0;
9601   // Prevent compiler warnings about cached_has_bits being unused
9602   (void) cached_has_bits;
9603 
9604   _impl_.span_.Clear();
9605   _impl_.value_.ClearToEmpty();
9606   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9607 }
9608 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9609 const char* StyledString::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9610 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9611   while (!ctx->Done(&ptr)) {
9612     ::uint32_t tag;
9613     ptr = ::_pbi::ReadTag(ptr, &tag);
9614     switch (tag >> 3) {
9615       // string value = 1;
9616       case 1:
9617         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9618           auto str = _internal_mutable_value();
9619           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9620           CHK_(ptr);
9621           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.StyledString.value"));
9622         } else {
9623           goto handle_unusual;
9624         }
9625         continue;
9626       // repeated .aapt.pb.StyledString.Span span = 2;
9627       case 2:
9628         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
9629           ptr -= 1;
9630           do {
9631             ptr += 1;
9632             ptr = ctx->ParseMessage(_internal_add_span(), ptr);
9633             CHK_(ptr);
9634             if (!ctx->DataAvailable(ptr)) break;
9635           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
9636         } else {
9637           goto handle_unusual;
9638         }
9639         continue;
9640       default:
9641         goto handle_unusual;
9642     }  // switch
9643   handle_unusual:
9644     if ((tag == 0) || ((tag & 7) == 4)) {
9645       CHK_(ptr);
9646       ctx->SetLastTag(tag);
9647       goto message_done;
9648     }
9649     ptr = UnknownFieldParse(
9650         tag,
9651         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9652         ptr, ctx);
9653     CHK_(ptr != nullptr);
9654   }  // while
9655 message_done:
9656   return ptr;
9657 failure:
9658   ptr = nullptr;
9659   goto message_done;
9660 #undef CHK_
9661 }
9662 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9663 ::uint8_t* StyledString::_InternalSerialize(
9664     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9665   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StyledString)
9666   ::uint32_t cached_has_bits = 0;
9667   (void) cached_has_bits;
9668 
9669   // string value = 1;
9670   if (!this->_internal_value().empty()) {
9671     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9672       this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
9673       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9674       "aapt.pb.StyledString.value");
9675     target = stream->WriteStringMaybeAliased(
9676         1, this->_internal_value(), target);
9677   }
9678 
9679   // repeated .aapt.pb.StyledString.Span span = 2;
9680   for (unsigned i = 0,
9681       n = static_cast<unsigned>(this->_internal_span_size()); i < n; i++) {
9682     const auto& repfield = this->_internal_span(i);
9683     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
9684         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
9685   }
9686 
9687   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9688     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9689         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9690   }
9691   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StyledString)
9692   return target;
9693 }
9694 
ByteSizeLong() const9695 size_t StyledString::ByteSizeLong() const {
9696 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StyledString)
9697   size_t total_size = 0;
9698 
9699   ::uint32_t cached_has_bits = 0;
9700   // Prevent compiler warnings about cached_has_bits being unused
9701   (void) cached_has_bits;
9702 
9703   // repeated .aapt.pb.StyledString.Span span = 2;
9704   total_size += 1UL * this->_internal_span_size();
9705   for (const auto& msg : this->_impl_.span_) {
9706     total_size +=
9707       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
9708   }
9709 
9710   // string value = 1;
9711   if (!this->_internal_value().empty()) {
9712     total_size += 1 +
9713       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9714         this->_internal_value());
9715   }
9716 
9717   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
9718 }
9719 
9720 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StyledString::_class_data_ = {
9721     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
9722     StyledString::MergeImpl
9723 };
GetClassData() const9724 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StyledString::GetClassData() const { return &_class_data_; }
9725 
9726 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)9727 void StyledString::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
9728   auto* const _this = static_cast<StyledString*>(&to_msg);
9729   auto& from = static_cast<const StyledString&>(from_msg);
9730   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StyledString)
9731   GOOGLE_DCHECK_NE(&from, _this);
9732   ::uint32_t cached_has_bits = 0;
9733   (void) cached_has_bits;
9734 
9735   _this->_impl_.span_.MergeFrom(from._impl_.span_);
9736   if (!from._internal_value().empty()) {
9737     _this->_internal_set_value(from._internal_value());
9738   }
9739   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9740 }
9741 
CopyFrom(const StyledString & from)9742 void StyledString::CopyFrom(const StyledString& from) {
9743 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StyledString)
9744   if (&from == this) return;
9745   Clear();
9746   MergeFrom(from);
9747 }
9748 
IsInitialized() const9749 bool StyledString::IsInitialized() const {
9750   return true;
9751 }
9752 
InternalSwap(StyledString * other)9753 void StyledString::InternalSwap(StyledString* other) {
9754   using std::swap;
9755   auto* lhs_arena = GetArenaForAllocation();
9756   auto* rhs_arena = other->GetArenaForAllocation();
9757   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9758   _impl_.span_.InternalSwap(&other->_impl_.span_);
9759   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9760       &_impl_.value_, lhs_arena,
9761       &other->_impl_.value_, rhs_arena
9762   );
9763 }
9764 
GetMetadata() const9765 ::PROTOBUF_NAMESPACE_ID::Metadata StyledString::GetMetadata() const {
9766   return ::_pbi::AssignDescriptors(
9767       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
9768       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[27]);
9769 }
9770 
9771 // ===================================================================
9772 
9773 class FileReference::_Internal {
9774  public:
9775 };
9776 
FileReference(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)9777 FileReference::FileReference(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9778                          bool is_message_owned)
9779   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
9780   SharedCtor(arena, is_message_owned);
9781   // @@protoc_insertion_point(arena_constructor:aapt.pb.FileReference)
9782 }
FileReference(const FileReference & from)9783 FileReference::FileReference(const FileReference& from)
9784   : ::PROTOBUF_NAMESPACE_ID::Message() {
9785   FileReference* const _this = this; (void)_this;
9786   new (&_impl_) Impl_{
9787       decltype(_impl_.path_){}
9788     , decltype(_impl_.type_){}
9789     , /*decltype(_impl_._cached_size_)*/{}};
9790 
9791   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9792   _impl_.path_.InitDefault();
9793   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9794     _impl_.path_.Set("", GetArenaForAllocation());
9795   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9796   if (!from._internal_path().empty()) {
9797     _this->_impl_.path_.Set(from._internal_path(),
9798       _this->GetArenaForAllocation());
9799   }
9800   _this->_impl_.type_ = from._impl_.type_;
9801   // @@protoc_insertion_point(copy_constructor:aapt.pb.FileReference)
9802 }
9803 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)9804 inline void FileReference::SharedCtor(
9805     ::_pb::Arena* arena, bool is_message_owned) {
9806   (void)arena;
9807   (void)is_message_owned;
9808   new (&_impl_) Impl_{
9809       decltype(_impl_.path_){}
9810     , decltype(_impl_.type_){0}
9811     , /*decltype(_impl_._cached_size_)*/{}
9812   };
9813   _impl_.path_.InitDefault();
9814   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
9815     _impl_.path_.Set("", GetArenaForAllocation());
9816   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
9817 }
9818 
~FileReference()9819 FileReference::~FileReference() {
9820   // @@protoc_insertion_point(destructor:aapt.pb.FileReference)
9821   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
9822   (void)arena;
9823     return;
9824   }
9825   SharedDtor();
9826 }
9827 
SharedDtor()9828 inline void FileReference::SharedDtor() {
9829   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
9830   _impl_.path_.Destroy();
9831 }
9832 
SetCachedSize(int size) const9833 void FileReference::SetCachedSize(int size) const {
9834   _impl_._cached_size_.Set(size);
9835 }
9836 
Clear()9837 void FileReference::Clear() {
9838 // @@protoc_insertion_point(message_clear_start:aapt.pb.FileReference)
9839   ::uint32_t cached_has_bits = 0;
9840   // Prevent compiler warnings about cached_has_bits being unused
9841   (void) cached_has_bits;
9842 
9843   _impl_.path_.ClearToEmpty();
9844   _impl_.type_ = 0;
9845   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
9846 }
9847 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)9848 const char* FileReference::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
9849 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
9850   while (!ctx->Done(&ptr)) {
9851     ::uint32_t tag;
9852     ptr = ::_pbi::ReadTag(ptr, &tag);
9853     switch (tag >> 3) {
9854       // string path = 1;
9855       case 1:
9856         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
9857           auto str = _internal_mutable_path();
9858           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
9859           CHK_(ptr);
9860           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.FileReference.path"));
9861         } else {
9862           goto handle_unusual;
9863         }
9864         continue;
9865       // .aapt.pb.FileReference.Type type = 2;
9866       case 2:
9867         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
9868           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
9869           CHK_(ptr);
9870           _internal_set_type(static_cast<::aapt::pb::FileReference_Type>(val));
9871         } else {
9872           goto handle_unusual;
9873         }
9874         continue;
9875       default:
9876         goto handle_unusual;
9877     }  // switch
9878   handle_unusual:
9879     if ((tag == 0) || ((tag & 7) == 4)) {
9880       CHK_(ptr);
9881       ctx->SetLastTag(tag);
9882       goto message_done;
9883     }
9884     ptr = UnknownFieldParse(
9885         tag,
9886         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
9887         ptr, ctx);
9888     CHK_(ptr != nullptr);
9889   }  // while
9890 message_done:
9891   return ptr;
9892 failure:
9893   ptr = nullptr;
9894   goto message_done;
9895 #undef CHK_
9896 }
9897 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const9898 ::uint8_t* FileReference::_InternalSerialize(
9899     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
9900   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.FileReference)
9901   ::uint32_t cached_has_bits = 0;
9902   (void) cached_has_bits;
9903 
9904   // string path = 1;
9905   if (!this->_internal_path().empty()) {
9906     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
9907       this->_internal_path().data(), static_cast<int>(this->_internal_path().length()),
9908       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
9909       "aapt.pb.FileReference.path");
9910     target = stream->WriteStringMaybeAliased(
9911         1, this->_internal_path(), target);
9912   }
9913 
9914   // .aapt.pb.FileReference.Type type = 2;
9915   if (this->_internal_type() != 0) {
9916     target = stream->EnsureSpace(target);
9917     target = ::_pbi::WireFormatLite::WriteEnumToArray(
9918       2, this->_internal_type(), target);
9919   }
9920 
9921   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
9922     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
9923         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
9924   }
9925   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.FileReference)
9926   return target;
9927 }
9928 
ByteSizeLong() const9929 size_t FileReference::ByteSizeLong() const {
9930 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.FileReference)
9931   size_t total_size = 0;
9932 
9933   ::uint32_t cached_has_bits = 0;
9934   // Prevent compiler warnings about cached_has_bits being unused
9935   (void) cached_has_bits;
9936 
9937   // string path = 1;
9938   if (!this->_internal_path().empty()) {
9939     total_size += 1 +
9940       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
9941         this->_internal_path());
9942   }
9943 
9944   // .aapt.pb.FileReference.Type type = 2;
9945   if (this->_internal_type() != 0) {
9946     total_size += 1 +
9947       ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
9948   }
9949 
9950   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
9951 }
9952 
9953 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FileReference::_class_data_ = {
9954     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
9955     FileReference::MergeImpl
9956 };
GetClassData() const9957 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FileReference::GetClassData() const { return &_class_data_; }
9958 
9959 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)9960 void FileReference::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
9961   auto* const _this = static_cast<FileReference*>(&to_msg);
9962   auto& from = static_cast<const FileReference&>(from_msg);
9963   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.FileReference)
9964   GOOGLE_DCHECK_NE(&from, _this);
9965   ::uint32_t cached_has_bits = 0;
9966   (void) cached_has_bits;
9967 
9968   if (!from._internal_path().empty()) {
9969     _this->_internal_set_path(from._internal_path());
9970   }
9971   if (from._internal_type() != 0) {
9972     _this->_internal_set_type(from._internal_type());
9973   }
9974   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
9975 }
9976 
CopyFrom(const FileReference & from)9977 void FileReference::CopyFrom(const FileReference& from) {
9978 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.FileReference)
9979   if (&from == this) return;
9980   Clear();
9981   MergeFrom(from);
9982 }
9983 
IsInitialized() const9984 bool FileReference::IsInitialized() const {
9985   return true;
9986 }
9987 
InternalSwap(FileReference * other)9988 void FileReference::InternalSwap(FileReference* other) {
9989   using std::swap;
9990   auto* lhs_arena = GetArenaForAllocation();
9991   auto* rhs_arena = other->GetArenaForAllocation();
9992   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
9993   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
9994       &_impl_.path_, lhs_arena,
9995       &other->_impl_.path_, rhs_arena
9996   );
9997   swap(_impl_.type_, other->_impl_.type_);
9998 }
9999 
GetMetadata() const10000 ::PROTOBUF_NAMESPACE_ID::Metadata FileReference::GetMetadata() const {
10001   return ::_pbi::AssignDescriptors(
10002       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
10003       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[28]);
10004 }
10005 
10006 // ===================================================================
10007 
10008 class Primitive_NullType::_Internal {
10009  public:
10010 };
10011 
Primitive_NullType(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10012 Primitive_NullType::Primitive_NullType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10013                          bool is_message_owned)
10014   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
10015   // @@protoc_insertion_point(arena_constructor:aapt.pb.Primitive.NullType)
10016 }
Primitive_NullType(const Primitive_NullType & from)10017 Primitive_NullType::Primitive_NullType(const Primitive_NullType& from)
10018   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
10019   Primitive_NullType* const _this = this; (void)_this;
10020   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10021   // @@protoc_insertion_point(copy_constructor:aapt.pb.Primitive.NullType)
10022 }
10023 
10024 
10025 
10026 
10027 
10028 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Primitive_NullType::_class_data_ = {
10029     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
10030     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
10031 };
GetClassData() const10032 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Primitive_NullType::GetClassData() const { return &_class_data_; }
10033 
10034 
10035 
10036 
10037 
10038 
10039 
GetMetadata() const10040 ::PROTOBUF_NAMESPACE_ID::Metadata Primitive_NullType::GetMetadata() const {
10041   return ::_pbi::AssignDescriptors(
10042       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
10043       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[29]);
10044 }
10045 
10046 // ===================================================================
10047 
10048 class Primitive_EmptyType::_Internal {
10049  public:
10050 };
10051 
Primitive_EmptyType(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10052 Primitive_EmptyType::Primitive_EmptyType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10053                          bool is_message_owned)
10054   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
10055   // @@protoc_insertion_point(arena_constructor:aapt.pb.Primitive.EmptyType)
10056 }
Primitive_EmptyType(const Primitive_EmptyType & from)10057 Primitive_EmptyType::Primitive_EmptyType(const Primitive_EmptyType& from)
10058   : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
10059   Primitive_EmptyType* const _this = this; (void)_this;
10060   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10061   // @@protoc_insertion_point(copy_constructor:aapt.pb.Primitive.EmptyType)
10062 }
10063 
10064 
10065 
10066 
10067 
10068 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Primitive_EmptyType::_class_data_ = {
10069     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
10070     ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
10071 };
GetClassData() const10072 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Primitive_EmptyType::GetClassData() const { return &_class_data_; }
10073 
10074 
10075 
10076 
10077 
10078 
10079 
GetMetadata() const10080 ::PROTOBUF_NAMESPACE_ID::Metadata Primitive_EmptyType::GetMetadata() const {
10081   return ::_pbi::AssignDescriptors(
10082       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
10083       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[30]);
10084 }
10085 
10086 // ===================================================================
10087 
10088 class Primitive::_Internal {
10089  public:
10090   static const ::aapt::pb::Primitive_NullType& null_value(const Primitive* msg);
10091   static const ::aapt::pb::Primitive_EmptyType& empty_value(const Primitive* msg);
10092 };
10093 
10094 const ::aapt::pb::Primitive_NullType&
null_value(const Primitive * msg)10095 Primitive::_Internal::null_value(const Primitive* msg) {
10096   return *msg->_impl_.oneof_value_.null_value_;
10097 }
10098 const ::aapt::pb::Primitive_EmptyType&
empty_value(const Primitive * msg)10099 Primitive::_Internal::empty_value(const Primitive* msg) {
10100   return *msg->_impl_.oneof_value_.empty_value_;
10101 }
set_allocated_null_value(::aapt::pb::Primitive_NullType * null_value)10102 void Primitive::set_allocated_null_value(::aapt::pb::Primitive_NullType* null_value) {
10103   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
10104   clear_oneof_value();
10105   if (null_value) {
10106     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10107       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(null_value);
10108     if (message_arena != submessage_arena) {
10109       null_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10110           message_arena, null_value, submessage_arena);
10111     }
10112     set_has_null_value();
10113     _impl_.oneof_value_.null_value_ = null_value;
10114   }
10115   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Primitive.null_value)
10116 }
set_allocated_empty_value(::aapt::pb::Primitive_EmptyType * empty_value)10117 void Primitive::set_allocated_empty_value(::aapt::pb::Primitive_EmptyType* empty_value) {
10118   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
10119   clear_oneof_value();
10120   if (empty_value) {
10121     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
10122       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(empty_value);
10123     if (message_arena != submessage_arena) {
10124       empty_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
10125           message_arena, empty_value, submessage_arena);
10126     }
10127     set_has_empty_value();
10128     _impl_.oneof_value_.empty_value_ = empty_value;
10129   }
10130   // @@protoc_insertion_point(field_set_allocated:aapt.pb.Primitive.empty_value)
10131 }
Primitive(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10132 Primitive::Primitive(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10133                          bool is_message_owned)
10134   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
10135   SharedCtor(arena, is_message_owned);
10136   // @@protoc_insertion_point(arena_constructor:aapt.pb.Primitive)
10137 }
Primitive(const Primitive & from)10138 Primitive::Primitive(const Primitive& from)
10139   : ::PROTOBUF_NAMESPACE_ID::Message() {
10140   Primitive* const _this = this; (void)_this;
10141   new (&_impl_) Impl_{
10142       decltype(_impl_.oneof_value_){}
10143     , /*decltype(_impl_._cached_size_)*/{}
10144     , /*decltype(_impl_._oneof_case_)*/{}};
10145 
10146   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10147   clear_has_oneof_value();
10148   switch (from.oneof_value_case()) {
10149     case kNullValue: {
10150       _this->_internal_mutable_null_value()->::aapt::pb::Primitive_NullType::MergeFrom(
10151           from._internal_null_value());
10152       break;
10153     }
10154     case kEmptyValue: {
10155       _this->_internal_mutable_empty_value()->::aapt::pb::Primitive_EmptyType::MergeFrom(
10156           from._internal_empty_value());
10157       break;
10158     }
10159     case kFloatValue: {
10160       _this->_internal_set_float_value(from._internal_float_value());
10161       break;
10162     }
10163     case kDimensionValue: {
10164       _this->_internal_set_dimension_value(from._internal_dimension_value());
10165       break;
10166     }
10167     case kFractionValue: {
10168       _this->_internal_set_fraction_value(from._internal_fraction_value());
10169       break;
10170     }
10171     case kIntDecimalValue: {
10172       _this->_internal_set_int_decimal_value(from._internal_int_decimal_value());
10173       break;
10174     }
10175     case kIntHexadecimalValue: {
10176       _this->_internal_set_int_hexadecimal_value(from._internal_int_hexadecimal_value());
10177       break;
10178     }
10179     case kBooleanValue: {
10180       _this->_internal_set_boolean_value(from._internal_boolean_value());
10181       break;
10182     }
10183     case kColorArgb8Value: {
10184       _this->_internal_set_color_argb8_value(from._internal_color_argb8_value());
10185       break;
10186     }
10187     case kColorRgb8Value: {
10188       _this->_internal_set_color_rgb8_value(from._internal_color_rgb8_value());
10189       break;
10190     }
10191     case kColorArgb4Value: {
10192       _this->_internal_set_color_argb4_value(from._internal_color_argb4_value());
10193       break;
10194     }
10195     case kColorRgb4Value: {
10196       _this->_internal_set_color_rgb4_value(from._internal_color_rgb4_value());
10197       break;
10198     }
10199     case kDimensionValueDeprecated: {
10200       _this->_internal_set_dimension_value_deprecated(from._internal_dimension_value_deprecated());
10201       break;
10202     }
10203     case kFractionValueDeprecated: {
10204       _this->_internal_set_fraction_value_deprecated(from._internal_fraction_value_deprecated());
10205       break;
10206     }
10207     case ONEOF_VALUE_NOT_SET: {
10208       break;
10209     }
10210   }
10211   // @@protoc_insertion_point(copy_constructor:aapt.pb.Primitive)
10212 }
10213 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10214 inline void Primitive::SharedCtor(
10215     ::_pb::Arena* arena, bool is_message_owned) {
10216   (void)arena;
10217   (void)is_message_owned;
10218   new (&_impl_) Impl_{
10219       decltype(_impl_.oneof_value_){}
10220     , /*decltype(_impl_._cached_size_)*/{}
10221     , /*decltype(_impl_._oneof_case_)*/{}
10222   };
10223   clear_has_oneof_value();
10224 }
10225 
~Primitive()10226 Primitive::~Primitive() {
10227   // @@protoc_insertion_point(destructor:aapt.pb.Primitive)
10228   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
10229   (void)arena;
10230     return;
10231   }
10232   SharedDtor();
10233 }
10234 
SharedDtor()10235 inline void Primitive::SharedDtor() {
10236   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10237   if (has_oneof_value()) {
10238     clear_oneof_value();
10239   }
10240 }
10241 
SetCachedSize(int size) const10242 void Primitive::SetCachedSize(int size) const {
10243   _impl_._cached_size_.Set(size);
10244 }
10245 
clear_oneof_value()10246 void Primitive::clear_oneof_value() {
10247 // @@protoc_insertion_point(one_of_clear_start:aapt.pb.Primitive)
10248   switch (oneof_value_case()) {
10249     case kNullValue: {
10250       if (GetArenaForAllocation() == nullptr) {
10251         delete _impl_.oneof_value_.null_value_;
10252       }
10253       break;
10254     }
10255     case kEmptyValue: {
10256       if (GetArenaForAllocation() == nullptr) {
10257         delete _impl_.oneof_value_.empty_value_;
10258       }
10259       break;
10260     }
10261     case kFloatValue: {
10262       // No need to clear
10263       break;
10264     }
10265     case kDimensionValue: {
10266       // No need to clear
10267       break;
10268     }
10269     case kFractionValue: {
10270       // No need to clear
10271       break;
10272     }
10273     case kIntDecimalValue: {
10274       // No need to clear
10275       break;
10276     }
10277     case kIntHexadecimalValue: {
10278       // No need to clear
10279       break;
10280     }
10281     case kBooleanValue: {
10282       // No need to clear
10283       break;
10284     }
10285     case kColorArgb8Value: {
10286       // No need to clear
10287       break;
10288     }
10289     case kColorRgb8Value: {
10290       // No need to clear
10291       break;
10292     }
10293     case kColorArgb4Value: {
10294       // No need to clear
10295       break;
10296     }
10297     case kColorRgb4Value: {
10298       // No need to clear
10299       break;
10300     }
10301     case kDimensionValueDeprecated: {
10302       // No need to clear
10303       break;
10304     }
10305     case kFractionValueDeprecated: {
10306       // No need to clear
10307       break;
10308     }
10309     case ONEOF_VALUE_NOT_SET: {
10310       break;
10311     }
10312   }
10313   _impl_._oneof_case_[0] = ONEOF_VALUE_NOT_SET;
10314 }
10315 
10316 
Clear()10317 void Primitive::Clear() {
10318 // @@protoc_insertion_point(message_clear_start:aapt.pb.Primitive)
10319   ::uint32_t cached_has_bits = 0;
10320   // Prevent compiler warnings about cached_has_bits being unused
10321   (void) cached_has_bits;
10322 
10323   clear_oneof_value();
10324   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
10325 }
10326 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10327 const char* Primitive::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10328 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10329   while (!ctx->Done(&ptr)) {
10330     ::uint32_t tag;
10331     ptr = ::_pbi::ReadTag(ptr, &tag);
10332     switch (tag >> 3) {
10333       // .aapt.pb.Primitive.NullType null_value = 1;
10334       case 1:
10335         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
10336           ptr = ctx->ParseMessage(_internal_mutable_null_value(), ptr);
10337           CHK_(ptr);
10338         } else {
10339           goto handle_unusual;
10340         }
10341         continue;
10342       // .aapt.pb.Primitive.EmptyType empty_value = 2;
10343       case 2:
10344         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
10345           ptr = ctx->ParseMessage(_internal_mutable_empty_value(), ptr);
10346           CHK_(ptr);
10347         } else {
10348           goto handle_unusual;
10349         }
10350         continue;
10351       // float float_value = 3;
10352       case 3:
10353         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
10354           _internal_set_float_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
10355           ptr += sizeof(float);
10356         } else {
10357           goto handle_unusual;
10358         }
10359         continue;
10360       // float dimension_value_deprecated = 4 [deprecated = true];
10361       case 4:
10362         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
10363           _internal_set_dimension_value_deprecated(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
10364           ptr += sizeof(float);
10365         } else {
10366           goto handle_unusual;
10367         }
10368         continue;
10369       // float fraction_value_deprecated = 5 [deprecated = true];
10370       case 5:
10371         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
10372           _internal_set_fraction_value_deprecated(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
10373           ptr += sizeof(float);
10374         } else {
10375           goto handle_unusual;
10376         }
10377         continue;
10378       // int32 int_decimal_value = 6;
10379       case 6:
10380         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
10381           _internal_set_int_decimal_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10382           CHK_(ptr);
10383         } else {
10384           goto handle_unusual;
10385         }
10386         continue;
10387       // uint32 int_hexadecimal_value = 7;
10388       case 7:
10389         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
10390           _internal_set_int_hexadecimal_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10391           CHK_(ptr);
10392         } else {
10393           goto handle_unusual;
10394         }
10395         continue;
10396       // bool boolean_value = 8;
10397       case 8:
10398         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
10399           _internal_set_boolean_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
10400           CHK_(ptr);
10401         } else {
10402           goto handle_unusual;
10403         }
10404         continue;
10405       // uint32 color_argb8_value = 9;
10406       case 9:
10407         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
10408           _internal_set_color_argb8_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10409           CHK_(ptr);
10410         } else {
10411           goto handle_unusual;
10412         }
10413         continue;
10414       // uint32 color_rgb8_value = 10;
10415       case 10:
10416         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) {
10417           _internal_set_color_rgb8_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10418           CHK_(ptr);
10419         } else {
10420           goto handle_unusual;
10421         }
10422         continue;
10423       // uint32 color_argb4_value = 11;
10424       case 11:
10425         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
10426           _internal_set_color_argb4_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10427           CHK_(ptr);
10428         } else {
10429           goto handle_unusual;
10430         }
10431         continue;
10432       // uint32 color_rgb4_value = 12;
10433       case 12:
10434         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 96)) {
10435           _internal_set_color_rgb4_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10436           CHK_(ptr);
10437         } else {
10438           goto handle_unusual;
10439         }
10440         continue;
10441       // uint32 dimension_value = 13;
10442       case 13:
10443         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
10444           _internal_set_dimension_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10445           CHK_(ptr);
10446         } else {
10447           goto handle_unusual;
10448         }
10449         continue;
10450       // uint32 fraction_value = 14;
10451       case 14:
10452         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 112)) {
10453           _internal_set_fraction_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
10454           CHK_(ptr);
10455         } else {
10456           goto handle_unusual;
10457         }
10458         continue;
10459       default:
10460         goto handle_unusual;
10461     }  // switch
10462   handle_unusual:
10463     if ((tag == 0) || ((tag & 7) == 4)) {
10464       CHK_(ptr);
10465       ctx->SetLastTag(tag);
10466       goto message_done;
10467     }
10468     ptr = UnknownFieldParse(
10469         tag,
10470         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
10471         ptr, ctx);
10472     CHK_(ptr != nullptr);
10473   }  // while
10474 message_done:
10475   return ptr;
10476 failure:
10477   ptr = nullptr;
10478   goto message_done;
10479 #undef CHK_
10480 }
10481 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10482 ::uint8_t* Primitive::_InternalSerialize(
10483     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10484   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Primitive)
10485   ::uint32_t cached_has_bits = 0;
10486   (void) cached_has_bits;
10487 
10488   // .aapt.pb.Primitive.NullType null_value = 1;
10489   if (_internal_has_null_value()) {
10490     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10491       InternalWriteMessage(1, _Internal::null_value(this),
10492         _Internal::null_value(this).GetCachedSize(), target, stream);
10493   }
10494 
10495   // .aapt.pb.Primitive.EmptyType empty_value = 2;
10496   if (_internal_has_empty_value()) {
10497     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10498       InternalWriteMessage(2, _Internal::empty_value(this),
10499         _Internal::empty_value(this).GetCachedSize(), target, stream);
10500   }
10501 
10502   // float float_value = 3;
10503   if (_internal_has_float_value()) {
10504     target = stream->EnsureSpace(target);
10505     target = ::_pbi::WireFormatLite::WriteFloatToArray(3, this->_internal_float_value(), target);
10506   }
10507 
10508   // float dimension_value_deprecated = 4 [deprecated = true];
10509   if (_internal_has_dimension_value_deprecated()) {
10510     target = stream->EnsureSpace(target);
10511     target = ::_pbi::WireFormatLite::WriteFloatToArray(4, this->_internal_dimension_value_deprecated(), target);
10512   }
10513 
10514   // float fraction_value_deprecated = 5 [deprecated = true];
10515   if (_internal_has_fraction_value_deprecated()) {
10516     target = stream->EnsureSpace(target);
10517     target = ::_pbi::WireFormatLite::WriteFloatToArray(5, this->_internal_fraction_value_deprecated(), target);
10518   }
10519 
10520   // int32 int_decimal_value = 6;
10521   if (_internal_has_int_decimal_value()) {
10522     target = stream->EnsureSpace(target);
10523     target = ::_pbi::WireFormatLite::WriteInt32ToArray(6, this->_internal_int_decimal_value(), target);
10524   }
10525 
10526   // uint32 int_hexadecimal_value = 7;
10527   if (_internal_has_int_hexadecimal_value()) {
10528     target = stream->EnsureSpace(target);
10529     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_int_hexadecimal_value(), target);
10530   }
10531 
10532   // bool boolean_value = 8;
10533   if (_internal_has_boolean_value()) {
10534     target = stream->EnsureSpace(target);
10535     target = ::_pbi::WireFormatLite::WriteBoolToArray(8, this->_internal_boolean_value(), target);
10536   }
10537 
10538   // uint32 color_argb8_value = 9;
10539   if (_internal_has_color_argb8_value()) {
10540     target = stream->EnsureSpace(target);
10541     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_color_argb8_value(), target);
10542   }
10543 
10544   // uint32 color_rgb8_value = 10;
10545   if (_internal_has_color_rgb8_value()) {
10546     target = stream->EnsureSpace(target);
10547     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_color_rgb8_value(), target);
10548   }
10549 
10550   // uint32 color_argb4_value = 11;
10551   if (_internal_has_color_argb4_value()) {
10552     target = stream->EnsureSpace(target);
10553     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_color_argb4_value(), target);
10554   }
10555 
10556   // uint32 color_rgb4_value = 12;
10557   if (_internal_has_color_rgb4_value()) {
10558     target = stream->EnsureSpace(target);
10559     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_color_rgb4_value(), target);
10560   }
10561 
10562   // uint32 dimension_value = 13;
10563   if (_internal_has_dimension_value()) {
10564     target = stream->EnsureSpace(target);
10565     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(13, this->_internal_dimension_value(), target);
10566   }
10567 
10568   // uint32 fraction_value = 14;
10569   if (_internal_has_fraction_value()) {
10570     target = stream->EnsureSpace(target);
10571     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(14, this->_internal_fraction_value(), target);
10572   }
10573 
10574   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
10575     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
10576         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
10577   }
10578   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Primitive)
10579   return target;
10580 }
10581 
ByteSizeLong() const10582 size_t Primitive::ByteSizeLong() const {
10583 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Primitive)
10584   size_t total_size = 0;
10585 
10586   switch (oneof_value_case()) {
10587     // .aapt.pb.Primitive.NullType null_value = 1;
10588     case kNullValue: {
10589       total_size += 1 +
10590         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10591           *_impl_.oneof_value_.null_value_);
10592       break;
10593     }
10594     // .aapt.pb.Primitive.EmptyType empty_value = 2;
10595     case kEmptyValue: {
10596       total_size += 1 +
10597         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
10598           *_impl_.oneof_value_.empty_value_);
10599       break;
10600     }
10601     // float float_value = 3;
10602     case kFloatValue: {
10603       total_size += 1 + 4;
10604       break;
10605     }
10606     // uint32 dimension_value = 13;
10607     case kDimensionValue: {
10608       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_dimension_value());
10609       break;
10610     }
10611     // uint32 fraction_value = 14;
10612     case kFractionValue: {
10613       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_fraction_value());
10614       break;
10615     }
10616     // int32 int_decimal_value = 6;
10617     case kIntDecimalValue: {
10618       total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_int_decimal_value());
10619       break;
10620     }
10621     // uint32 int_hexadecimal_value = 7;
10622     case kIntHexadecimalValue: {
10623       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_int_hexadecimal_value());
10624       break;
10625     }
10626     // bool boolean_value = 8;
10627     case kBooleanValue: {
10628       total_size += 1 + 1;
10629       break;
10630     }
10631     // uint32 color_argb8_value = 9;
10632     case kColorArgb8Value: {
10633       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_color_argb8_value());
10634       break;
10635     }
10636     // uint32 color_rgb8_value = 10;
10637     case kColorRgb8Value: {
10638       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_color_rgb8_value());
10639       break;
10640     }
10641     // uint32 color_argb4_value = 11;
10642     case kColorArgb4Value: {
10643       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_color_argb4_value());
10644       break;
10645     }
10646     // uint32 color_rgb4_value = 12;
10647     case kColorRgb4Value: {
10648       total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_color_rgb4_value());
10649       break;
10650     }
10651     // float dimension_value_deprecated = 4 [deprecated = true];
10652     case kDimensionValueDeprecated: {
10653       total_size += 1 + 4;
10654       break;
10655     }
10656     // float fraction_value_deprecated = 5 [deprecated = true];
10657     case kFractionValueDeprecated: {
10658       total_size += 1 + 4;
10659       break;
10660     }
10661     case ONEOF_VALUE_NOT_SET: {
10662       break;
10663     }
10664   }
10665   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
10666 }
10667 
10668 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Primitive::_class_data_ = {
10669     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
10670     Primitive::MergeImpl
10671 };
GetClassData() const10672 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Primitive::GetClassData() const { return &_class_data_; }
10673 
10674 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)10675 void Primitive::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
10676   auto* const _this = static_cast<Primitive*>(&to_msg);
10677   auto& from = static_cast<const Primitive&>(from_msg);
10678   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Primitive)
10679   GOOGLE_DCHECK_NE(&from, _this);
10680   ::uint32_t cached_has_bits = 0;
10681   (void) cached_has_bits;
10682 
10683   switch (from.oneof_value_case()) {
10684     case kNullValue: {
10685       _this->_internal_mutable_null_value()->::aapt::pb::Primitive_NullType::MergeFrom(
10686           from._internal_null_value());
10687       break;
10688     }
10689     case kEmptyValue: {
10690       _this->_internal_mutable_empty_value()->::aapt::pb::Primitive_EmptyType::MergeFrom(
10691           from._internal_empty_value());
10692       break;
10693     }
10694     case kFloatValue: {
10695       _this->_internal_set_float_value(from._internal_float_value());
10696       break;
10697     }
10698     case kDimensionValue: {
10699       _this->_internal_set_dimension_value(from._internal_dimension_value());
10700       break;
10701     }
10702     case kFractionValue: {
10703       _this->_internal_set_fraction_value(from._internal_fraction_value());
10704       break;
10705     }
10706     case kIntDecimalValue: {
10707       _this->_internal_set_int_decimal_value(from._internal_int_decimal_value());
10708       break;
10709     }
10710     case kIntHexadecimalValue: {
10711       _this->_internal_set_int_hexadecimal_value(from._internal_int_hexadecimal_value());
10712       break;
10713     }
10714     case kBooleanValue: {
10715       _this->_internal_set_boolean_value(from._internal_boolean_value());
10716       break;
10717     }
10718     case kColorArgb8Value: {
10719       _this->_internal_set_color_argb8_value(from._internal_color_argb8_value());
10720       break;
10721     }
10722     case kColorRgb8Value: {
10723       _this->_internal_set_color_rgb8_value(from._internal_color_rgb8_value());
10724       break;
10725     }
10726     case kColorArgb4Value: {
10727       _this->_internal_set_color_argb4_value(from._internal_color_argb4_value());
10728       break;
10729     }
10730     case kColorRgb4Value: {
10731       _this->_internal_set_color_rgb4_value(from._internal_color_rgb4_value());
10732       break;
10733     }
10734     case kDimensionValueDeprecated: {
10735       _this->_internal_set_dimension_value_deprecated(from._internal_dimension_value_deprecated());
10736       break;
10737     }
10738     case kFractionValueDeprecated: {
10739       _this->_internal_set_fraction_value_deprecated(from._internal_fraction_value_deprecated());
10740       break;
10741     }
10742     case ONEOF_VALUE_NOT_SET: {
10743       break;
10744     }
10745   }
10746   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10747 }
10748 
CopyFrom(const Primitive & from)10749 void Primitive::CopyFrom(const Primitive& from) {
10750 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Primitive)
10751   if (&from == this) return;
10752   Clear();
10753   MergeFrom(from);
10754 }
10755 
IsInitialized() const10756 bool Primitive::IsInitialized() const {
10757   return true;
10758 }
10759 
InternalSwap(Primitive * other)10760 void Primitive::InternalSwap(Primitive* other) {
10761   using std::swap;
10762   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
10763   swap(_impl_.oneof_value_, other->_impl_.oneof_value_);
10764   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
10765 }
10766 
GetMetadata() const10767 ::PROTOBUF_NAMESPACE_ID::Metadata Primitive::GetMetadata() const {
10768   return ::_pbi::AssignDescriptors(
10769       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
10770       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[31]);
10771 }
10772 
10773 // ===================================================================
10774 
10775 class Attribute_Symbol::_Internal {
10776  public:
10777   static const ::aapt::pb::Source& source(const Attribute_Symbol* msg);
10778   static const ::aapt::pb::Reference& name(const Attribute_Symbol* msg);
10779 };
10780 
10781 const ::aapt::pb::Source&
source(const Attribute_Symbol * msg)10782 Attribute_Symbol::_Internal::source(const Attribute_Symbol* msg) {
10783   return *msg->_impl_.source_;
10784 }
10785 const ::aapt::pb::Reference&
name(const Attribute_Symbol * msg)10786 Attribute_Symbol::_Internal::name(const Attribute_Symbol* msg) {
10787   return *msg->_impl_.name_;
10788 }
Attribute_Symbol(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)10789 Attribute_Symbol::Attribute_Symbol(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10790                          bool is_message_owned)
10791   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
10792   SharedCtor(arena, is_message_owned);
10793   // @@protoc_insertion_point(arena_constructor:aapt.pb.Attribute.Symbol)
10794 }
Attribute_Symbol(const Attribute_Symbol & from)10795 Attribute_Symbol::Attribute_Symbol(const Attribute_Symbol& from)
10796   : ::PROTOBUF_NAMESPACE_ID::Message() {
10797   Attribute_Symbol* const _this = this; (void)_this;
10798   new (&_impl_) Impl_{
10799       decltype(_impl_.comment_){}
10800     , decltype(_impl_.source_){nullptr}
10801     , decltype(_impl_.name_){nullptr}
10802     , decltype(_impl_.value_){}
10803     , decltype(_impl_.type_){}
10804     , /*decltype(_impl_._cached_size_)*/{}};
10805 
10806   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
10807   _impl_.comment_.InitDefault();
10808   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10809     _impl_.comment_.Set("", GetArenaForAllocation());
10810   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10811   if (!from._internal_comment().empty()) {
10812     _this->_impl_.comment_.Set(from._internal_comment(),
10813       _this->GetArenaForAllocation());
10814   }
10815   if (from._internal_has_source()) {
10816     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
10817   }
10818   if (from._internal_has_name()) {
10819     _this->_impl_.name_ = new ::aapt::pb::Reference(*from._impl_.name_);
10820   }
10821   ::memcpy(&_impl_.value_, &from._impl_.value_,
10822     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) -
10823     reinterpret_cast<char*>(&_impl_.value_)) + sizeof(_impl_.type_));
10824   // @@protoc_insertion_point(copy_constructor:aapt.pb.Attribute.Symbol)
10825 }
10826 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)10827 inline void Attribute_Symbol::SharedCtor(
10828     ::_pb::Arena* arena, bool is_message_owned) {
10829   (void)arena;
10830   (void)is_message_owned;
10831   new (&_impl_) Impl_{
10832       decltype(_impl_.comment_){}
10833     , decltype(_impl_.source_){nullptr}
10834     , decltype(_impl_.name_){nullptr}
10835     , decltype(_impl_.value_){0u}
10836     , decltype(_impl_.type_){0u}
10837     , /*decltype(_impl_._cached_size_)*/{}
10838   };
10839   _impl_.comment_.InitDefault();
10840   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
10841     _impl_.comment_.Set("", GetArenaForAllocation());
10842   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
10843 }
10844 
~Attribute_Symbol()10845 Attribute_Symbol::~Attribute_Symbol() {
10846   // @@protoc_insertion_point(destructor:aapt.pb.Attribute.Symbol)
10847   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
10848   (void)arena;
10849     return;
10850   }
10851   SharedDtor();
10852 }
10853 
SharedDtor()10854 inline void Attribute_Symbol::SharedDtor() {
10855   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
10856   _impl_.comment_.Destroy();
10857   if (this != internal_default_instance()) delete _impl_.source_;
10858   if (this != internal_default_instance()) delete _impl_.name_;
10859 }
10860 
SetCachedSize(int size) const10861 void Attribute_Symbol::SetCachedSize(int size) const {
10862   _impl_._cached_size_.Set(size);
10863 }
10864 
Clear()10865 void Attribute_Symbol::Clear() {
10866 // @@protoc_insertion_point(message_clear_start:aapt.pb.Attribute.Symbol)
10867   ::uint32_t cached_has_bits = 0;
10868   // Prevent compiler warnings about cached_has_bits being unused
10869   (void) cached_has_bits;
10870 
10871   _impl_.comment_.ClearToEmpty();
10872   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
10873     delete _impl_.source_;
10874   }
10875   _impl_.source_ = nullptr;
10876   if (GetArenaForAllocation() == nullptr && _impl_.name_ != nullptr) {
10877     delete _impl_.name_;
10878   }
10879   _impl_.name_ = nullptr;
10880   ::memset(&_impl_.value_, 0, static_cast<size_t>(
10881       reinterpret_cast<char*>(&_impl_.type_) -
10882       reinterpret_cast<char*>(&_impl_.value_)) + sizeof(_impl_.type_));
10883   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
10884 }
10885 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)10886 const char* Attribute_Symbol::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
10887 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
10888   while (!ctx->Done(&ptr)) {
10889     ::uint32_t tag;
10890     ptr = ::_pbi::ReadTag(ptr, &tag);
10891     switch (tag >> 3) {
10892       // .aapt.pb.Source source = 1;
10893       case 1:
10894         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
10895           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
10896           CHK_(ptr);
10897         } else {
10898           goto handle_unusual;
10899         }
10900         continue;
10901       // string comment = 2;
10902       case 2:
10903         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
10904           auto str = _internal_mutable_comment();
10905           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
10906           CHK_(ptr);
10907           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Attribute.Symbol.comment"));
10908         } else {
10909           goto handle_unusual;
10910         }
10911         continue;
10912       // .aapt.pb.Reference name = 3;
10913       case 3:
10914         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
10915           ptr = ctx->ParseMessage(_internal_mutable_name(), ptr);
10916           CHK_(ptr);
10917         } else {
10918           goto handle_unusual;
10919         }
10920         continue;
10921       // uint32 value = 4;
10922       case 4:
10923         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
10924           _impl_.value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10925           CHK_(ptr);
10926         } else {
10927           goto handle_unusual;
10928         }
10929         continue;
10930       // uint32 type = 5;
10931       case 5:
10932         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
10933           _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
10934           CHK_(ptr);
10935         } else {
10936           goto handle_unusual;
10937         }
10938         continue;
10939       default:
10940         goto handle_unusual;
10941     }  // switch
10942   handle_unusual:
10943     if ((tag == 0) || ((tag & 7) == 4)) {
10944       CHK_(ptr);
10945       ctx->SetLastTag(tag);
10946       goto message_done;
10947     }
10948     ptr = UnknownFieldParse(
10949         tag,
10950         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
10951         ptr, ctx);
10952     CHK_(ptr != nullptr);
10953   }  // while
10954 message_done:
10955   return ptr;
10956 failure:
10957   ptr = nullptr;
10958   goto message_done;
10959 #undef CHK_
10960 }
10961 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const10962 ::uint8_t* Attribute_Symbol::_InternalSerialize(
10963     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
10964   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Attribute.Symbol)
10965   ::uint32_t cached_has_bits = 0;
10966   (void) cached_has_bits;
10967 
10968   // .aapt.pb.Source source = 1;
10969   if (this->_internal_has_source()) {
10970     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10971       InternalWriteMessage(1, _Internal::source(this),
10972         _Internal::source(this).GetCachedSize(), target, stream);
10973   }
10974 
10975   // string comment = 2;
10976   if (!this->_internal_comment().empty()) {
10977     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
10978       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
10979       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
10980       "aapt.pb.Attribute.Symbol.comment");
10981     target = stream->WriteStringMaybeAliased(
10982         2, this->_internal_comment(), target);
10983   }
10984 
10985   // .aapt.pb.Reference name = 3;
10986   if (this->_internal_has_name()) {
10987     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
10988       InternalWriteMessage(3, _Internal::name(this),
10989         _Internal::name(this).GetCachedSize(), target, stream);
10990   }
10991 
10992   // uint32 value = 4;
10993   if (this->_internal_value() != 0) {
10994     target = stream->EnsureSpace(target);
10995     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_value(), target);
10996   }
10997 
10998   // uint32 type = 5;
10999   if (this->_internal_type() != 0) {
11000     target = stream->EnsureSpace(target);
11001     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_type(), target);
11002   }
11003 
11004   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11005     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
11006         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
11007   }
11008   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Attribute.Symbol)
11009   return target;
11010 }
11011 
ByteSizeLong() const11012 size_t Attribute_Symbol::ByteSizeLong() const {
11013 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Attribute.Symbol)
11014   size_t total_size = 0;
11015 
11016   ::uint32_t cached_has_bits = 0;
11017   // Prevent compiler warnings about cached_has_bits being unused
11018   (void) cached_has_bits;
11019 
11020   // string comment = 2;
11021   if (!this->_internal_comment().empty()) {
11022     total_size += 1 +
11023       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11024         this->_internal_comment());
11025   }
11026 
11027   // .aapt.pb.Source source = 1;
11028   if (this->_internal_has_source()) {
11029     total_size += 1 +
11030       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11031         *_impl_.source_);
11032   }
11033 
11034   // .aapt.pb.Reference name = 3;
11035   if (this->_internal_has_name()) {
11036     total_size += 1 +
11037       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11038         *_impl_.name_);
11039   }
11040 
11041   // uint32 value = 4;
11042   if (this->_internal_value() != 0) {
11043     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_value());
11044   }
11045 
11046   // uint32 type = 5;
11047   if (this->_internal_type() != 0) {
11048     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type());
11049   }
11050 
11051   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
11052 }
11053 
11054 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Attribute_Symbol::_class_data_ = {
11055     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
11056     Attribute_Symbol::MergeImpl
11057 };
GetClassData() const11058 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Attribute_Symbol::GetClassData() const { return &_class_data_; }
11059 
11060 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)11061 void Attribute_Symbol::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
11062   auto* const _this = static_cast<Attribute_Symbol*>(&to_msg);
11063   auto& from = static_cast<const Attribute_Symbol&>(from_msg);
11064   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Attribute.Symbol)
11065   GOOGLE_DCHECK_NE(&from, _this);
11066   ::uint32_t cached_has_bits = 0;
11067   (void) cached_has_bits;
11068 
11069   if (!from._internal_comment().empty()) {
11070     _this->_internal_set_comment(from._internal_comment());
11071   }
11072   if (from._internal_has_source()) {
11073     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
11074         from._internal_source());
11075   }
11076   if (from._internal_has_name()) {
11077     _this->_internal_mutable_name()->::aapt::pb::Reference::MergeFrom(
11078         from._internal_name());
11079   }
11080   if (from._internal_value() != 0) {
11081     _this->_internal_set_value(from._internal_value());
11082   }
11083   if (from._internal_type() != 0) {
11084     _this->_internal_set_type(from._internal_type());
11085   }
11086   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11087 }
11088 
CopyFrom(const Attribute_Symbol & from)11089 void Attribute_Symbol::CopyFrom(const Attribute_Symbol& from) {
11090 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Attribute.Symbol)
11091   if (&from == this) return;
11092   Clear();
11093   MergeFrom(from);
11094 }
11095 
IsInitialized() const11096 bool Attribute_Symbol::IsInitialized() const {
11097   return true;
11098 }
11099 
InternalSwap(Attribute_Symbol * other)11100 void Attribute_Symbol::InternalSwap(Attribute_Symbol* other) {
11101   using std::swap;
11102   auto* lhs_arena = GetArenaForAllocation();
11103   auto* rhs_arena = other->GetArenaForAllocation();
11104   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11105   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11106       &_impl_.comment_, lhs_arena,
11107       &other->_impl_.comment_, rhs_arena
11108   );
11109   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11110       PROTOBUF_FIELD_OFFSET(Attribute_Symbol, _impl_.type_)
11111       + sizeof(Attribute_Symbol::_impl_.type_)  // NOLINT
11112       - PROTOBUF_FIELD_OFFSET(Attribute_Symbol, _impl_.source_)>(
11113           reinterpret_cast<char*>(&_impl_.source_),
11114           reinterpret_cast<char*>(&other->_impl_.source_));
11115 }
11116 
GetMetadata() const11117 ::PROTOBUF_NAMESPACE_ID::Metadata Attribute_Symbol::GetMetadata() const {
11118   return ::_pbi::AssignDescriptors(
11119       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
11120       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[32]);
11121 }
11122 
11123 // ===================================================================
11124 
11125 class Attribute::_Internal {
11126  public:
11127 };
11128 
Attribute(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11129 Attribute::Attribute(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11130                          bool is_message_owned)
11131   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
11132   SharedCtor(arena, is_message_owned);
11133   // @@protoc_insertion_point(arena_constructor:aapt.pb.Attribute)
11134 }
Attribute(const Attribute & from)11135 Attribute::Attribute(const Attribute& from)
11136   : ::PROTOBUF_NAMESPACE_ID::Message() {
11137   Attribute* const _this = this; (void)_this;
11138   new (&_impl_) Impl_{
11139       decltype(_impl_.symbol_){from._impl_.symbol_}
11140     , decltype(_impl_.format_flags_){}
11141     , decltype(_impl_.min_int_){}
11142     , decltype(_impl_.max_int_){}
11143     , /*decltype(_impl_._cached_size_)*/{}};
11144 
11145   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11146   ::memcpy(&_impl_.format_flags_, &from._impl_.format_flags_,
11147     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.max_int_) -
11148     reinterpret_cast<char*>(&_impl_.format_flags_)) + sizeof(_impl_.max_int_));
11149   // @@protoc_insertion_point(copy_constructor:aapt.pb.Attribute)
11150 }
11151 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11152 inline void Attribute::SharedCtor(
11153     ::_pb::Arena* arena, bool is_message_owned) {
11154   (void)arena;
11155   (void)is_message_owned;
11156   new (&_impl_) Impl_{
11157       decltype(_impl_.symbol_){arena}
11158     , decltype(_impl_.format_flags_){0u}
11159     , decltype(_impl_.min_int_){0}
11160     , decltype(_impl_.max_int_){0}
11161     , /*decltype(_impl_._cached_size_)*/{}
11162   };
11163 }
11164 
~Attribute()11165 Attribute::~Attribute() {
11166   // @@protoc_insertion_point(destructor:aapt.pb.Attribute)
11167   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
11168   (void)arena;
11169     return;
11170   }
11171   SharedDtor();
11172 }
11173 
SharedDtor()11174 inline void Attribute::SharedDtor() {
11175   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11176   _impl_.symbol_.~RepeatedPtrField();
11177 }
11178 
SetCachedSize(int size) const11179 void Attribute::SetCachedSize(int size) const {
11180   _impl_._cached_size_.Set(size);
11181 }
11182 
Clear()11183 void Attribute::Clear() {
11184 // @@protoc_insertion_point(message_clear_start:aapt.pb.Attribute)
11185   ::uint32_t cached_has_bits = 0;
11186   // Prevent compiler warnings about cached_has_bits being unused
11187   (void) cached_has_bits;
11188 
11189   _impl_.symbol_.Clear();
11190   ::memset(&_impl_.format_flags_, 0, static_cast<size_t>(
11191       reinterpret_cast<char*>(&_impl_.max_int_) -
11192       reinterpret_cast<char*>(&_impl_.format_flags_)) + sizeof(_impl_.max_int_));
11193   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
11194 }
11195 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11196 const char* Attribute::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11197 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11198   while (!ctx->Done(&ptr)) {
11199     ::uint32_t tag;
11200     ptr = ::_pbi::ReadTag(ptr, &tag);
11201     switch (tag >> 3) {
11202       // uint32 format_flags = 1;
11203       case 1:
11204         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
11205           _impl_.format_flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11206           CHK_(ptr);
11207         } else {
11208           goto handle_unusual;
11209         }
11210         continue;
11211       // int32 min_int = 2;
11212       case 2:
11213         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
11214           _impl_.min_int_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11215           CHK_(ptr);
11216         } else {
11217           goto handle_unusual;
11218         }
11219         continue;
11220       // int32 max_int = 3;
11221       case 3:
11222         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
11223           _impl_.max_int_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
11224           CHK_(ptr);
11225         } else {
11226           goto handle_unusual;
11227         }
11228         continue;
11229       // repeated .aapt.pb.Attribute.Symbol symbol = 4;
11230       case 4:
11231         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
11232           ptr -= 1;
11233           do {
11234             ptr += 1;
11235             ptr = ctx->ParseMessage(_internal_add_symbol(), ptr);
11236             CHK_(ptr);
11237             if (!ctx->DataAvailable(ptr)) break;
11238           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
11239         } else {
11240           goto handle_unusual;
11241         }
11242         continue;
11243       default:
11244         goto handle_unusual;
11245     }  // switch
11246   handle_unusual:
11247     if ((tag == 0) || ((tag & 7) == 4)) {
11248       CHK_(ptr);
11249       ctx->SetLastTag(tag);
11250       goto message_done;
11251     }
11252     ptr = UnknownFieldParse(
11253         tag,
11254         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
11255         ptr, ctx);
11256     CHK_(ptr != nullptr);
11257   }  // while
11258 message_done:
11259   return ptr;
11260 failure:
11261   ptr = nullptr;
11262   goto message_done;
11263 #undef CHK_
11264 }
11265 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11266 ::uint8_t* Attribute::_InternalSerialize(
11267     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11268   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Attribute)
11269   ::uint32_t cached_has_bits = 0;
11270   (void) cached_has_bits;
11271 
11272   // uint32 format_flags = 1;
11273   if (this->_internal_format_flags() != 0) {
11274     target = stream->EnsureSpace(target);
11275     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_format_flags(), target);
11276   }
11277 
11278   // int32 min_int = 2;
11279   if (this->_internal_min_int() != 0) {
11280     target = stream->EnsureSpace(target);
11281     target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_min_int(), target);
11282   }
11283 
11284   // int32 max_int = 3;
11285   if (this->_internal_max_int() != 0) {
11286     target = stream->EnsureSpace(target);
11287     target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_max_int(), target);
11288   }
11289 
11290   // repeated .aapt.pb.Attribute.Symbol symbol = 4;
11291   for (unsigned i = 0,
11292       n = static_cast<unsigned>(this->_internal_symbol_size()); i < n; i++) {
11293     const auto& repfield = this->_internal_symbol(i);
11294     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11295         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
11296   }
11297 
11298   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11299     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
11300         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
11301   }
11302   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Attribute)
11303   return target;
11304 }
11305 
ByteSizeLong() const11306 size_t Attribute::ByteSizeLong() const {
11307 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Attribute)
11308   size_t total_size = 0;
11309 
11310   ::uint32_t cached_has_bits = 0;
11311   // Prevent compiler warnings about cached_has_bits being unused
11312   (void) cached_has_bits;
11313 
11314   // repeated .aapt.pb.Attribute.Symbol symbol = 4;
11315   total_size += 1UL * this->_internal_symbol_size();
11316   for (const auto& msg : this->_impl_.symbol_) {
11317     total_size +=
11318       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
11319   }
11320 
11321   // uint32 format_flags = 1;
11322   if (this->_internal_format_flags() != 0) {
11323     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_format_flags());
11324   }
11325 
11326   // int32 min_int = 2;
11327   if (this->_internal_min_int() != 0) {
11328     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_min_int());
11329   }
11330 
11331   // int32 max_int = 3;
11332   if (this->_internal_max_int() != 0) {
11333     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_max_int());
11334   }
11335 
11336   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
11337 }
11338 
11339 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Attribute::_class_data_ = {
11340     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
11341     Attribute::MergeImpl
11342 };
GetClassData() const11343 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Attribute::GetClassData() const { return &_class_data_; }
11344 
11345 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)11346 void Attribute::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
11347   auto* const _this = static_cast<Attribute*>(&to_msg);
11348   auto& from = static_cast<const Attribute&>(from_msg);
11349   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Attribute)
11350   GOOGLE_DCHECK_NE(&from, _this);
11351   ::uint32_t cached_has_bits = 0;
11352   (void) cached_has_bits;
11353 
11354   _this->_impl_.symbol_.MergeFrom(from._impl_.symbol_);
11355   if (from._internal_format_flags() != 0) {
11356     _this->_internal_set_format_flags(from._internal_format_flags());
11357   }
11358   if (from._internal_min_int() != 0) {
11359     _this->_internal_set_min_int(from._internal_min_int());
11360   }
11361   if (from._internal_max_int() != 0) {
11362     _this->_internal_set_max_int(from._internal_max_int());
11363   }
11364   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11365 }
11366 
CopyFrom(const Attribute & from)11367 void Attribute::CopyFrom(const Attribute& from) {
11368 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Attribute)
11369   if (&from == this) return;
11370   Clear();
11371   MergeFrom(from);
11372 }
11373 
IsInitialized() const11374 bool Attribute::IsInitialized() const {
11375   return true;
11376 }
11377 
InternalSwap(Attribute * other)11378 void Attribute::InternalSwap(Attribute* other) {
11379   using std::swap;
11380   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11381   _impl_.symbol_.InternalSwap(&other->_impl_.symbol_);
11382   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11383       PROTOBUF_FIELD_OFFSET(Attribute, _impl_.max_int_)
11384       + sizeof(Attribute::_impl_.max_int_)  // NOLINT
11385       - PROTOBUF_FIELD_OFFSET(Attribute, _impl_.format_flags_)>(
11386           reinterpret_cast<char*>(&_impl_.format_flags_),
11387           reinterpret_cast<char*>(&other->_impl_.format_flags_));
11388 }
11389 
GetMetadata() const11390 ::PROTOBUF_NAMESPACE_ID::Metadata Attribute::GetMetadata() const {
11391   return ::_pbi::AssignDescriptors(
11392       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
11393       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[33]);
11394 }
11395 
11396 // ===================================================================
11397 
11398 class Style_Entry::_Internal {
11399  public:
11400   static const ::aapt::pb::Source& source(const Style_Entry* msg);
11401   static const ::aapt::pb::Reference& key(const Style_Entry* msg);
11402   static const ::aapt::pb::Item& item(const Style_Entry* msg);
11403 };
11404 
11405 const ::aapt::pb::Source&
source(const Style_Entry * msg)11406 Style_Entry::_Internal::source(const Style_Entry* msg) {
11407   return *msg->_impl_.source_;
11408 }
11409 const ::aapt::pb::Reference&
key(const Style_Entry * msg)11410 Style_Entry::_Internal::key(const Style_Entry* msg) {
11411   return *msg->_impl_.key_;
11412 }
11413 const ::aapt::pb::Item&
item(const Style_Entry * msg)11414 Style_Entry::_Internal::item(const Style_Entry* msg) {
11415   return *msg->_impl_.item_;
11416 }
Style_Entry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11417 Style_Entry::Style_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11418                          bool is_message_owned)
11419   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
11420   SharedCtor(arena, is_message_owned);
11421   // @@protoc_insertion_point(arena_constructor:aapt.pb.Style.Entry)
11422 }
Style_Entry(const Style_Entry & from)11423 Style_Entry::Style_Entry(const Style_Entry& from)
11424   : ::PROTOBUF_NAMESPACE_ID::Message() {
11425   Style_Entry* const _this = this; (void)_this;
11426   new (&_impl_) Impl_{
11427       decltype(_impl_.comment_){}
11428     , decltype(_impl_.source_){nullptr}
11429     , decltype(_impl_.key_){nullptr}
11430     , decltype(_impl_.item_){nullptr}
11431     , /*decltype(_impl_._cached_size_)*/{}};
11432 
11433   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11434   _impl_.comment_.InitDefault();
11435   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11436     _impl_.comment_.Set("", GetArenaForAllocation());
11437   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11438   if (!from._internal_comment().empty()) {
11439     _this->_impl_.comment_.Set(from._internal_comment(),
11440       _this->GetArenaForAllocation());
11441   }
11442   if (from._internal_has_source()) {
11443     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
11444   }
11445   if (from._internal_has_key()) {
11446     _this->_impl_.key_ = new ::aapt::pb::Reference(*from._impl_.key_);
11447   }
11448   if (from._internal_has_item()) {
11449     _this->_impl_.item_ = new ::aapt::pb::Item(*from._impl_.item_);
11450   }
11451   // @@protoc_insertion_point(copy_constructor:aapt.pb.Style.Entry)
11452 }
11453 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11454 inline void Style_Entry::SharedCtor(
11455     ::_pb::Arena* arena, bool is_message_owned) {
11456   (void)arena;
11457   (void)is_message_owned;
11458   new (&_impl_) Impl_{
11459       decltype(_impl_.comment_){}
11460     , decltype(_impl_.source_){nullptr}
11461     , decltype(_impl_.key_){nullptr}
11462     , decltype(_impl_.item_){nullptr}
11463     , /*decltype(_impl_._cached_size_)*/{}
11464   };
11465   _impl_.comment_.InitDefault();
11466   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
11467     _impl_.comment_.Set("", GetArenaForAllocation());
11468   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
11469 }
11470 
~Style_Entry()11471 Style_Entry::~Style_Entry() {
11472   // @@protoc_insertion_point(destructor:aapt.pb.Style.Entry)
11473   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
11474   (void)arena;
11475     return;
11476   }
11477   SharedDtor();
11478 }
11479 
SharedDtor()11480 inline void Style_Entry::SharedDtor() {
11481   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11482   _impl_.comment_.Destroy();
11483   if (this != internal_default_instance()) delete _impl_.source_;
11484   if (this != internal_default_instance()) delete _impl_.key_;
11485   if (this != internal_default_instance()) delete _impl_.item_;
11486 }
11487 
SetCachedSize(int size) const11488 void Style_Entry::SetCachedSize(int size) const {
11489   _impl_._cached_size_.Set(size);
11490 }
11491 
Clear()11492 void Style_Entry::Clear() {
11493 // @@protoc_insertion_point(message_clear_start:aapt.pb.Style.Entry)
11494   ::uint32_t cached_has_bits = 0;
11495   // Prevent compiler warnings about cached_has_bits being unused
11496   (void) cached_has_bits;
11497 
11498   _impl_.comment_.ClearToEmpty();
11499   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
11500     delete _impl_.source_;
11501   }
11502   _impl_.source_ = nullptr;
11503   if (GetArenaForAllocation() == nullptr && _impl_.key_ != nullptr) {
11504     delete _impl_.key_;
11505   }
11506   _impl_.key_ = nullptr;
11507   if (GetArenaForAllocation() == nullptr && _impl_.item_ != nullptr) {
11508     delete _impl_.item_;
11509   }
11510   _impl_.item_ = nullptr;
11511   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
11512 }
11513 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11514 const char* Style_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11515 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11516   while (!ctx->Done(&ptr)) {
11517     ::uint32_t tag;
11518     ptr = ::_pbi::ReadTag(ptr, &tag);
11519     switch (tag >> 3) {
11520       // .aapt.pb.Source source = 1;
11521       case 1:
11522         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
11523           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
11524           CHK_(ptr);
11525         } else {
11526           goto handle_unusual;
11527         }
11528         continue;
11529       // string comment = 2;
11530       case 2:
11531         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
11532           auto str = _internal_mutable_comment();
11533           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
11534           CHK_(ptr);
11535           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Style.Entry.comment"));
11536         } else {
11537           goto handle_unusual;
11538         }
11539         continue;
11540       // .aapt.pb.Reference key = 3;
11541       case 3:
11542         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
11543           ptr = ctx->ParseMessage(_internal_mutable_key(), ptr);
11544           CHK_(ptr);
11545         } else {
11546           goto handle_unusual;
11547         }
11548         continue;
11549       // .aapt.pb.Item item = 4;
11550       case 4:
11551         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
11552           ptr = ctx->ParseMessage(_internal_mutable_item(), ptr);
11553           CHK_(ptr);
11554         } else {
11555           goto handle_unusual;
11556         }
11557         continue;
11558       default:
11559         goto handle_unusual;
11560     }  // switch
11561   handle_unusual:
11562     if ((tag == 0) || ((tag & 7) == 4)) {
11563       CHK_(ptr);
11564       ctx->SetLastTag(tag);
11565       goto message_done;
11566     }
11567     ptr = UnknownFieldParse(
11568         tag,
11569         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
11570         ptr, ctx);
11571     CHK_(ptr != nullptr);
11572   }  // while
11573 message_done:
11574   return ptr;
11575 failure:
11576   ptr = nullptr;
11577   goto message_done;
11578 #undef CHK_
11579 }
11580 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11581 ::uint8_t* Style_Entry::_InternalSerialize(
11582     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11583   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Style.Entry)
11584   ::uint32_t cached_has_bits = 0;
11585   (void) cached_has_bits;
11586 
11587   // .aapt.pb.Source source = 1;
11588   if (this->_internal_has_source()) {
11589     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11590       InternalWriteMessage(1, _Internal::source(this),
11591         _Internal::source(this).GetCachedSize(), target, stream);
11592   }
11593 
11594   // string comment = 2;
11595   if (!this->_internal_comment().empty()) {
11596     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
11597       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
11598       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
11599       "aapt.pb.Style.Entry.comment");
11600     target = stream->WriteStringMaybeAliased(
11601         2, this->_internal_comment(), target);
11602   }
11603 
11604   // .aapt.pb.Reference key = 3;
11605   if (this->_internal_has_key()) {
11606     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11607       InternalWriteMessage(3, _Internal::key(this),
11608         _Internal::key(this).GetCachedSize(), target, stream);
11609   }
11610 
11611   // .aapt.pb.Item item = 4;
11612   if (this->_internal_has_item()) {
11613     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11614       InternalWriteMessage(4, _Internal::item(this),
11615         _Internal::item(this).GetCachedSize(), target, stream);
11616   }
11617 
11618   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11619     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
11620         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
11621   }
11622   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Style.Entry)
11623   return target;
11624 }
11625 
ByteSizeLong() const11626 size_t Style_Entry::ByteSizeLong() const {
11627 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Style.Entry)
11628   size_t total_size = 0;
11629 
11630   ::uint32_t cached_has_bits = 0;
11631   // Prevent compiler warnings about cached_has_bits being unused
11632   (void) cached_has_bits;
11633 
11634   // string comment = 2;
11635   if (!this->_internal_comment().empty()) {
11636     total_size += 1 +
11637       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
11638         this->_internal_comment());
11639   }
11640 
11641   // .aapt.pb.Source source = 1;
11642   if (this->_internal_has_source()) {
11643     total_size += 1 +
11644       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11645         *_impl_.source_);
11646   }
11647 
11648   // .aapt.pb.Reference key = 3;
11649   if (this->_internal_has_key()) {
11650     total_size += 1 +
11651       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11652         *_impl_.key_);
11653   }
11654 
11655   // .aapt.pb.Item item = 4;
11656   if (this->_internal_has_item()) {
11657     total_size += 1 +
11658       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11659         *_impl_.item_);
11660   }
11661 
11662   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
11663 }
11664 
11665 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Style_Entry::_class_data_ = {
11666     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
11667     Style_Entry::MergeImpl
11668 };
GetClassData() const11669 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Style_Entry::GetClassData() const { return &_class_data_; }
11670 
11671 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)11672 void Style_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
11673   auto* const _this = static_cast<Style_Entry*>(&to_msg);
11674   auto& from = static_cast<const Style_Entry&>(from_msg);
11675   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Style.Entry)
11676   GOOGLE_DCHECK_NE(&from, _this);
11677   ::uint32_t cached_has_bits = 0;
11678   (void) cached_has_bits;
11679 
11680   if (!from._internal_comment().empty()) {
11681     _this->_internal_set_comment(from._internal_comment());
11682   }
11683   if (from._internal_has_source()) {
11684     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
11685         from._internal_source());
11686   }
11687   if (from._internal_has_key()) {
11688     _this->_internal_mutable_key()->::aapt::pb::Reference::MergeFrom(
11689         from._internal_key());
11690   }
11691   if (from._internal_has_item()) {
11692     _this->_internal_mutable_item()->::aapt::pb::Item::MergeFrom(
11693         from._internal_item());
11694   }
11695   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11696 }
11697 
CopyFrom(const Style_Entry & from)11698 void Style_Entry::CopyFrom(const Style_Entry& from) {
11699 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Style.Entry)
11700   if (&from == this) return;
11701   Clear();
11702   MergeFrom(from);
11703 }
11704 
IsInitialized() const11705 bool Style_Entry::IsInitialized() const {
11706   return true;
11707 }
11708 
InternalSwap(Style_Entry * other)11709 void Style_Entry::InternalSwap(Style_Entry* other) {
11710   using std::swap;
11711   auto* lhs_arena = GetArenaForAllocation();
11712   auto* rhs_arena = other->GetArenaForAllocation();
11713   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11714   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
11715       &_impl_.comment_, lhs_arena,
11716       &other->_impl_.comment_, rhs_arena
11717   );
11718   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11719       PROTOBUF_FIELD_OFFSET(Style_Entry, _impl_.item_)
11720       + sizeof(Style_Entry::_impl_.item_)  // NOLINT
11721       - PROTOBUF_FIELD_OFFSET(Style_Entry, _impl_.source_)>(
11722           reinterpret_cast<char*>(&_impl_.source_),
11723           reinterpret_cast<char*>(&other->_impl_.source_));
11724 }
11725 
GetMetadata() const11726 ::PROTOBUF_NAMESPACE_ID::Metadata Style_Entry::GetMetadata() const {
11727   return ::_pbi::AssignDescriptors(
11728       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
11729       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[34]);
11730 }
11731 
11732 // ===================================================================
11733 
11734 class Style::_Internal {
11735  public:
11736   static const ::aapt::pb::Reference& parent(const Style* msg);
11737   static const ::aapt::pb::Source& parent_source(const Style* msg);
11738 };
11739 
11740 const ::aapt::pb::Reference&
parent(const Style * msg)11741 Style::_Internal::parent(const Style* msg) {
11742   return *msg->_impl_.parent_;
11743 }
11744 const ::aapt::pb::Source&
parent_source(const Style * msg)11745 Style::_Internal::parent_source(const Style* msg) {
11746   return *msg->_impl_.parent_source_;
11747 }
Style(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)11748 Style::Style(::PROTOBUF_NAMESPACE_ID::Arena* arena,
11749                          bool is_message_owned)
11750   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
11751   SharedCtor(arena, is_message_owned);
11752   // @@protoc_insertion_point(arena_constructor:aapt.pb.Style)
11753 }
Style(const Style & from)11754 Style::Style(const Style& from)
11755   : ::PROTOBUF_NAMESPACE_ID::Message() {
11756   Style* const _this = this; (void)_this;
11757   new (&_impl_) Impl_{
11758       decltype(_impl_.entry_){from._impl_.entry_}
11759     , decltype(_impl_.parent_){nullptr}
11760     , decltype(_impl_.parent_source_){nullptr}
11761     , /*decltype(_impl_._cached_size_)*/{}};
11762 
11763   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11764   if (from._internal_has_parent()) {
11765     _this->_impl_.parent_ = new ::aapt::pb::Reference(*from._impl_.parent_);
11766   }
11767   if (from._internal_has_parent_source()) {
11768     _this->_impl_.parent_source_ = new ::aapt::pb::Source(*from._impl_.parent_source_);
11769   }
11770   // @@protoc_insertion_point(copy_constructor:aapt.pb.Style)
11771 }
11772 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)11773 inline void Style::SharedCtor(
11774     ::_pb::Arena* arena, bool is_message_owned) {
11775   (void)arena;
11776   (void)is_message_owned;
11777   new (&_impl_) Impl_{
11778       decltype(_impl_.entry_){arena}
11779     , decltype(_impl_.parent_){nullptr}
11780     , decltype(_impl_.parent_source_){nullptr}
11781     , /*decltype(_impl_._cached_size_)*/{}
11782   };
11783 }
11784 
~Style()11785 Style::~Style() {
11786   // @@protoc_insertion_point(destructor:aapt.pb.Style)
11787   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
11788   (void)arena;
11789     return;
11790   }
11791   SharedDtor();
11792 }
11793 
SharedDtor()11794 inline void Style::SharedDtor() {
11795   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
11796   _impl_.entry_.~RepeatedPtrField();
11797   if (this != internal_default_instance()) delete _impl_.parent_;
11798   if (this != internal_default_instance()) delete _impl_.parent_source_;
11799 }
11800 
SetCachedSize(int size) const11801 void Style::SetCachedSize(int size) const {
11802   _impl_._cached_size_.Set(size);
11803 }
11804 
Clear()11805 void Style::Clear() {
11806 // @@protoc_insertion_point(message_clear_start:aapt.pb.Style)
11807   ::uint32_t cached_has_bits = 0;
11808   // Prevent compiler warnings about cached_has_bits being unused
11809   (void) cached_has_bits;
11810 
11811   _impl_.entry_.Clear();
11812   if (GetArenaForAllocation() == nullptr && _impl_.parent_ != nullptr) {
11813     delete _impl_.parent_;
11814   }
11815   _impl_.parent_ = nullptr;
11816   if (GetArenaForAllocation() == nullptr && _impl_.parent_source_ != nullptr) {
11817     delete _impl_.parent_source_;
11818   }
11819   _impl_.parent_source_ = nullptr;
11820   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
11821 }
11822 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)11823 const char* Style::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
11824 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
11825   while (!ctx->Done(&ptr)) {
11826     ::uint32_t tag;
11827     ptr = ::_pbi::ReadTag(ptr, &tag);
11828     switch (tag >> 3) {
11829       // .aapt.pb.Reference parent = 1;
11830       case 1:
11831         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
11832           ptr = ctx->ParseMessage(_internal_mutable_parent(), ptr);
11833           CHK_(ptr);
11834         } else {
11835           goto handle_unusual;
11836         }
11837         continue;
11838       // .aapt.pb.Source parent_source = 2;
11839       case 2:
11840         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
11841           ptr = ctx->ParseMessage(_internal_mutable_parent_source(), ptr);
11842           CHK_(ptr);
11843         } else {
11844           goto handle_unusual;
11845         }
11846         continue;
11847       // repeated .aapt.pb.Style.Entry entry = 3;
11848       case 3:
11849         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
11850           ptr -= 1;
11851           do {
11852             ptr += 1;
11853             ptr = ctx->ParseMessage(_internal_add_entry(), ptr);
11854             CHK_(ptr);
11855             if (!ctx->DataAvailable(ptr)) break;
11856           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
11857         } else {
11858           goto handle_unusual;
11859         }
11860         continue;
11861       default:
11862         goto handle_unusual;
11863     }  // switch
11864   handle_unusual:
11865     if ((tag == 0) || ((tag & 7) == 4)) {
11866       CHK_(ptr);
11867       ctx->SetLastTag(tag);
11868       goto message_done;
11869     }
11870     ptr = UnknownFieldParse(
11871         tag,
11872         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
11873         ptr, ctx);
11874     CHK_(ptr != nullptr);
11875   }  // while
11876 message_done:
11877   return ptr;
11878 failure:
11879   ptr = nullptr;
11880   goto message_done;
11881 #undef CHK_
11882 }
11883 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const11884 ::uint8_t* Style::_InternalSerialize(
11885     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
11886   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Style)
11887   ::uint32_t cached_has_bits = 0;
11888   (void) cached_has_bits;
11889 
11890   // .aapt.pb.Reference parent = 1;
11891   if (this->_internal_has_parent()) {
11892     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11893       InternalWriteMessage(1, _Internal::parent(this),
11894         _Internal::parent(this).GetCachedSize(), target, stream);
11895   }
11896 
11897   // .aapt.pb.Source parent_source = 2;
11898   if (this->_internal_has_parent_source()) {
11899     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11900       InternalWriteMessage(2, _Internal::parent_source(this),
11901         _Internal::parent_source(this).GetCachedSize(), target, stream);
11902   }
11903 
11904   // repeated .aapt.pb.Style.Entry entry = 3;
11905   for (unsigned i = 0,
11906       n = static_cast<unsigned>(this->_internal_entry_size()); i < n; i++) {
11907     const auto& repfield = this->_internal_entry(i);
11908     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
11909         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
11910   }
11911 
11912   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
11913     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
11914         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
11915   }
11916   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Style)
11917   return target;
11918 }
11919 
ByteSizeLong() const11920 size_t Style::ByteSizeLong() const {
11921 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Style)
11922   size_t total_size = 0;
11923 
11924   ::uint32_t cached_has_bits = 0;
11925   // Prevent compiler warnings about cached_has_bits being unused
11926   (void) cached_has_bits;
11927 
11928   // repeated .aapt.pb.Style.Entry entry = 3;
11929   total_size += 1UL * this->_internal_entry_size();
11930   for (const auto& msg : this->_impl_.entry_) {
11931     total_size +=
11932       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
11933   }
11934 
11935   // .aapt.pb.Reference parent = 1;
11936   if (this->_internal_has_parent()) {
11937     total_size += 1 +
11938       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11939         *_impl_.parent_);
11940   }
11941 
11942   // .aapt.pb.Source parent_source = 2;
11943   if (this->_internal_has_parent_source()) {
11944     total_size += 1 +
11945       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
11946         *_impl_.parent_source_);
11947   }
11948 
11949   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
11950 }
11951 
11952 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Style::_class_data_ = {
11953     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
11954     Style::MergeImpl
11955 };
GetClassData() const11956 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Style::GetClassData() const { return &_class_data_; }
11957 
11958 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)11959 void Style::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
11960   auto* const _this = static_cast<Style*>(&to_msg);
11961   auto& from = static_cast<const Style&>(from_msg);
11962   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Style)
11963   GOOGLE_DCHECK_NE(&from, _this);
11964   ::uint32_t cached_has_bits = 0;
11965   (void) cached_has_bits;
11966 
11967   _this->_impl_.entry_.MergeFrom(from._impl_.entry_);
11968   if (from._internal_has_parent()) {
11969     _this->_internal_mutable_parent()->::aapt::pb::Reference::MergeFrom(
11970         from._internal_parent());
11971   }
11972   if (from._internal_has_parent_source()) {
11973     _this->_internal_mutable_parent_source()->::aapt::pb::Source::MergeFrom(
11974         from._internal_parent_source());
11975   }
11976   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
11977 }
11978 
CopyFrom(const Style & from)11979 void Style::CopyFrom(const Style& from) {
11980 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Style)
11981   if (&from == this) return;
11982   Clear();
11983   MergeFrom(from);
11984 }
11985 
IsInitialized() const11986 bool Style::IsInitialized() const {
11987   return true;
11988 }
11989 
InternalSwap(Style * other)11990 void Style::InternalSwap(Style* other) {
11991   using std::swap;
11992   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
11993   _impl_.entry_.InternalSwap(&other->_impl_.entry_);
11994   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
11995       PROTOBUF_FIELD_OFFSET(Style, _impl_.parent_source_)
11996       + sizeof(Style::_impl_.parent_source_)  // NOLINT
11997       - PROTOBUF_FIELD_OFFSET(Style, _impl_.parent_)>(
11998           reinterpret_cast<char*>(&_impl_.parent_),
11999           reinterpret_cast<char*>(&other->_impl_.parent_));
12000 }
12001 
GetMetadata() const12002 ::PROTOBUF_NAMESPACE_ID::Metadata Style::GetMetadata() const {
12003   return ::_pbi::AssignDescriptors(
12004       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
12005       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[35]);
12006 }
12007 
12008 // ===================================================================
12009 
12010 class Styleable_Entry::_Internal {
12011  public:
12012   static const ::aapt::pb::Source& source(const Styleable_Entry* msg);
12013   static const ::aapt::pb::Reference& attr(const Styleable_Entry* msg);
12014 };
12015 
12016 const ::aapt::pb::Source&
source(const Styleable_Entry * msg)12017 Styleable_Entry::_Internal::source(const Styleable_Entry* msg) {
12018   return *msg->_impl_.source_;
12019 }
12020 const ::aapt::pb::Reference&
attr(const Styleable_Entry * msg)12021 Styleable_Entry::_Internal::attr(const Styleable_Entry* msg) {
12022   return *msg->_impl_.attr_;
12023 }
Styleable_Entry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12024 Styleable_Entry::Styleable_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12025                          bool is_message_owned)
12026   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
12027   SharedCtor(arena, is_message_owned);
12028   // @@protoc_insertion_point(arena_constructor:aapt.pb.Styleable.Entry)
12029 }
Styleable_Entry(const Styleable_Entry & from)12030 Styleable_Entry::Styleable_Entry(const Styleable_Entry& from)
12031   : ::PROTOBUF_NAMESPACE_ID::Message() {
12032   Styleable_Entry* const _this = this; (void)_this;
12033   new (&_impl_) Impl_{
12034       decltype(_impl_.comment_){}
12035     , decltype(_impl_.source_){nullptr}
12036     , decltype(_impl_.attr_){nullptr}
12037     , /*decltype(_impl_._cached_size_)*/{}};
12038 
12039   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12040   _impl_.comment_.InitDefault();
12041   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12042     _impl_.comment_.Set("", GetArenaForAllocation());
12043   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12044   if (!from._internal_comment().empty()) {
12045     _this->_impl_.comment_.Set(from._internal_comment(),
12046       _this->GetArenaForAllocation());
12047   }
12048   if (from._internal_has_source()) {
12049     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
12050   }
12051   if (from._internal_has_attr()) {
12052     _this->_impl_.attr_ = new ::aapt::pb::Reference(*from._impl_.attr_);
12053   }
12054   // @@protoc_insertion_point(copy_constructor:aapt.pb.Styleable.Entry)
12055 }
12056 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12057 inline void Styleable_Entry::SharedCtor(
12058     ::_pb::Arena* arena, bool is_message_owned) {
12059   (void)arena;
12060   (void)is_message_owned;
12061   new (&_impl_) Impl_{
12062       decltype(_impl_.comment_){}
12063     , decltype(_impl_.source_){nullptr}
12064     , decltype(_impl_.attr_){nullptr}
12065     , /*decltype(_impl_._cached_size_)*/{}
12066   };
12067   _impl_.comment_.InitDefault();
12068   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12069     _impl_.comment_.Set("", GetArenaForAllocation());
12070   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12071 }
12072 
~Styleable_Entry()12073 Styleable_Entry::~Styleable_Entry() {
12074   // @@protoc_insertion_point(destructor:aapt.pb.Styleable.Entry)
12075   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
12076   (void)arena;
12077     return;
12078   }
12079   SharedDtor();
12080 }
12081 
SharedDtor()12082 inline void Styleable_Entry::SharedDtor() {
12083   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12084   _impl_.comment_.Destroy();
12085   if (this != internal_default_instance()) delete _impl_.source_;
12086   if (this != internal_default_instance()) delete _impl_.attr_;
12087 }
12088 
SetCachedSize(int size) const12089 void Styleable_Entry::SetCachedSize(int size) const {
12090   _impl_._cached_size_.Set(size);
12091 }
12092 
Clear()12093 void Styleable_Entry::Clear() {
12094 // @@protoc_insertion_point(message_clear_start:aapt.pb.Styleable.Entry)
12095   ::uint32_t cached_has_bits = 0;
12096   // Prevent compiler warnings about cached_has_bits being unused
12097   (void) cached_has_bits;
12098 
12099   _impl_.comment_.ClearToEmpty();
12100   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
12101     delete _impl_.source_;
12102   }
12103   _impl_.source_ = nullptr;
12104   if (GetArenaForAllocation() == nullptr && _impl_.attr_ != nullptr) {
12105     delete _impl_.attr_;
12106   }
12107   _impl_.attr_ = nullptr;
12108   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
12109 }
12110 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12111 const char* Styleable_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12112 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12113   while (!ctx->Done(&ptr)) {
12114     ::uint32_t tag;
12115     ptr = ::_pbi::ReadTag(ptr, &tag);
12116     switch (tag >> 3) {
12117       // .aapt.pb.Source source = 1;
12118       case 1:
12119         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12120           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
12121           CHK_(ptr);
12122         } else {
12123           goto handle_unusual;
12124         }
12125         continue;
12126       // string comment = 2;
12127       case 2:
12128         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
12129           auto str = _internal_mutable_comment();
12130           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12131           CHK_(ptr);
12132           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Styleable.Entry.comment"));
12133         } else {
12134           goto handle_unusual;
12135         }
12136         continue;
12137       // .aapt.pb.Reference attr = 3;
12138       case 3:
12139         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
12140           ptr = ctx->ParseMessage(_internal_mutable_attr(), ptr);
12141           CHK_(ptr);
12142         } else {
12143           goto handle_unusual;
12144         }
12145         continue;
12146       default:
12147         goto handle_unusual;
12148     }  // switch
12149   handle_unusual:
12150     if ((tag == 0) || ((tag & 7) == 4)) {
12151       CHK_(ptr);
12152       ctx->SetLastTag(tag);
12153       goto message_done;
12154     }
12155     ptr = UnknownFieldParse(
12156         tag,
12157         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
12158         ptr, ctx);
12159     CHK_(ptr != nullptr);
12160   }  // while
12161 message_done:
12162   return ptr;
12163 failure:
12164   ptr = nullptr;
12165   goto message_done;
12166 #undef CHK_
12167 }
12168 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12169 ::uint8_t* Styleable_Entry::_InternalSerialize(
12170     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12171   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Styleable.Entry)
12172   ::uint32_t cached_has_bits = 0;
12173   (void) cached_has_bits;
12174 
12175   // .aapt.pb.Source source = 1;
12176   if (this->_internal_has_source()) {
12177     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12178       InternalWriteMessage(1, _Internal::source(this),
12179         _Internal::source(this).GetCachedSize(), target, stream);
12180   }
12181 
12182   // string comment = 2;
12183   if (!this->_internal_comment().empty()) {
12184     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
12185       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
12186       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
12187       "aapt.pb.Styleable.Entry.comment");
12188     target = stream->WriteStringMaybeAliased(
12189         2, this->_internal_comment(), target);
12190   }
12191 
12192   // .aapt.pb.Reference attr = 3;
12193   if (this->_internal_has_attr()) {
12194     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12195       InternalWriteMessage(3, _Internal::attr(this),
12196         _Internal::attr(this).GetCachedSize(), target, stream);
12197   }
12198 
12199   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12200     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
12201         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
12202   }
12203   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Styleable.Entry)
12204   return target;
12205 }
12206 
ByteSizeLong() const12207 size_t Styleable_Entry::ByteSizeLong() const {
12208 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Styleable.Entry)
12209   size_t total_size = 0;
12210 
12211   ::uint32_t cached_has_bits = 0;
12212   // Prevent compiler warnings about cached_has_bits being unused
12213   (void) cached_has_bits;
12214 
12215   // string comment = 2;
12216   if (!this->_internal_comment().empty()) {
12217     total_size += 1 +
12218       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12219         this->_internal_comment());
12220   }
12221 
12222   // .aapt.pb.Source source = 1;
12223   if (this->_internal_has_source()) {
12224     total_size += 1 +
12225       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12226         *_impl_.source_);
12227   }
12228 
12229   // .aapt.pb.Reference attr = 3;
12230   if (this->_internal_has_attr()) {
12231     total_size += 1 +
12232       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12233         *_impl_.attr_);
12234   }
12235 
12236   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
12237 }
12238 
12239 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Styleable_Entry::_class_data_ = {
12240     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
12241     Styleable_Entry::MergeImpl
12242 };
GetClassData() const12243 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Styleable_Entry::GetClassData() const { return &_class_data_; }
12244 
12245 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)12246 void Styleable_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
12247   auto* const _this = static_cast<Styleable_Entry*>(&to_msg);
12248   auto& from = static_cast<const Styleable_Entry&>(from_msg);
12249   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Styleable.Entry)
12250   GOOGLE_DCHECK_NE(&from, _this);
12251   ::uint32_t cached_has_bits = 0;
12252   (void) cached_has_bits;
12253 
12254   if (!from._internal_comment().empty()) {
12255     _this->_internal_set_comment(from._internal_comment());
12256   }
12257   if (from._internal_has_source()) {
12258     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
12259         from._internal_source());
12260   }
12261   if (from._internal_has_attr()) {
12262     _this->_internal_mutable_attr()->::aapt::pb::Reference::MergeFrom(
12263         from._internal_attr());
12264   }
12265   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12266 }
12267 
CopyFrom(const Styleable_Entry & from)12268 void Styleable_Entry::CopyFrom(const Styleable_Entry& from) {
12269 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Styleable.Entry)
12270   if (&from == this) return;
12271   Clear();
12272   MergeFrom(from);
12273 }
12274 
IsInitialized() const12275 bool Styleable_Entry::IsInitialized() const {
12276   return true;
12277 }
12278 
InternalSwap(Styleable_Entry * other)12279 void Styleable_Entry::InternalSwap(Styleable_Entry* other) {
12280   using std::swap;
12281   auto* lhs_arena = GetArenaForAllocation();
12282   auto* rhs_arena = other->GetArenaForAllocation();
12283   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12284   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12285       &_impl_.comment_, lhs_arena,
12286       &other->_impl_.comment_, rhs_arena
12287   );
12288   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
12289       PROTOBUF_FIELD_OFFSET(Styleable_Entry, _impl_.attr_)
12290       + sizeof(Styleable_Entry::_impl_.attr_)  // NOLINT
12291       - PROTOBUF_FIELD_OFFSET(Styleable_Entry, _impl_.source_)>(
12292           reinterpret_cast<char*>(&_impl_.source_),
12293           reinterpret_cast<char*>(&other->_impl_.source_));
12294 }
12295 
GetMetadata() const12296 ::PROTOBUF_NAMESPACE_ID::Metadata Styleable_Entry::GetMetadata() const {
12297   return ::_pbi::AssignDescriptors(
12298       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
12299       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[36]);
12300 }
12301 
12302 // ===================================================================
12303 
12304 class Styleable::_Internal {
12305  public:
12306 };
12307 
Styleable(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12308 Styleable::Styleable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12309                          bool is_message_owned)
12310   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
12311   SharedCtor(arena, is_message_owned);
12312   // @@protoc_insertion_point(arena_constructor:aapt.pb.Styleable)
12313 }
Styleable(const Styleable & from)12314 Styleable::Styleable(const Styleable& from)
12315   : ::PROTOBUF_NAMESPACE_ID::Message() {
12316   Styleable* const _this = this; (void)_this;
12317   new (&_impl_) Impl_{
12318       decltype(_impl_.entry_){from._impl_.entry_}
12319     , /*decltype(_impl_._cached_size_)*/{}};
12320 
12321   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12322   // @@protoc_insertion_point(copy_constructor:aapt.pb.Styleable)
12323 }
12324 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12325 inline void Styleable::SharedCtor(
12326     ::_pb::Arena* arena, bool is_message_owned) {
12327   (void)arena;
12328   (void)is_message_owned;
12329   new (&_impl_) Impl_{
12330       decltype(_impl_.entry_){arena}
12331     , /*decltype(_impl_._cached_size_)*/{}
12332   };
12333 }
12334 
~Styleable()12335 Styleable::~Styleable() {
12336   // @@protoc_insertion_point(destructor:aapt.pb.Styleable)
12337   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
12338   (void)arena;
12339     return;
12340   }
12341   SharedDtor();
12342 }
12343 
SharedDtor()12344 inline void Styleable::SharedDtor() {
12345   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12346   _impl_.entry_.~RepeatedPtrField();
12347 }
12348 
SetCachedSize(int size) const12349 void Styleable::SetCachedSize(int size) const {
12350   _impl_._cached_size_.Set(size);
12351 }
12352 
Clear()12353 void Styleable::Clear() {
12354 // @@protoc_insertion_point(message_clear_start:aapt.pb.Styleable)
12355   ::uint32_t cached_has_bits = 0;
12356   // Prevent compiler warnings about cached_has_bits being unused
12357   (void) cached_has_bits;
12358 
12359   _impl_.entry_.Clear();
12360   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
12361 }
12362 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12363 const char* Styleable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12364 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12365   while (!ctx->Done(&ptr)) {
12366     ::uint32_t tag;
12367     ptr = ::_pbi::ReadTag(ptr, &tag);
12368     switch (tag >> 3) {
12369       // repeated .aapt.pb.Styleable.Entry entry = 1;
12370       case 1:
12371         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12372           ptr -= 1;
12373           do {
12374             ptr += 1;
12375             ptr = ctx->ParseMessage(_internal_add_entry(), ptr);
12376             CHK_(ptr);
12377             if (!ctx->DataAvailable(ptr)) break;
12378           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
12379         } else {
12380           goto handle_unusual;
12381         }
12382         continue;
12383       default:
12384         goto handle_unusual;
12385     }  // switch
12386   handle_unusual:
12387     if ((tag == 0) || ((tag & 7) == 4)) {
12388       CHK_(ptr);
12389       ctx->SetLastTag(tag);
12390       goto message_done;
12391     }
12392     ptr = UnknownFieldParse(
12393         tag,
12394         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
12395         ptr, ctx);
12396     CHK_(ptr != nullptr);
12397   }  // while
12398 message_done:
12399   return ptr;
12400 failure:
12401   ptr = nullptr;
12402   goto message_done;
12403 #undef CHK_
12404 }
12405 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12406 ::uint8_t* Styleable::_InternalSerialize(
12407     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12408   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Styleable)
12409   ::uint32_t cached_has_bits = 0;
12410   (void) cached_has_bits;
12411 
12412   // repeated .aapt.pb.Styleable.Entry entry = 1;
12413   for (unsigned i = 0,
12414       n = static_cast<unsigned>(this->_internal_entry_size()); i < n; i++) {
12415     const auto& repfield = this->_internal_entry(i);
12416     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12417         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
12418   }
12419 
12420   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12421     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
12422         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
12423   }
12424   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Styleable)
12425   return target;
12426 }
12427 
ByteSizeLong() const12428 size_t Styleable::ByteSizeLong() const {
12429 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Styleable)
12430   size_t total_size = 0;
12431 
12432   ::uint32_t cached_has_bits = 0;
12433   // Prevent compiler warnings about cached_has_bits being unused
12434   (void) cached_has_bits;
12435 
12436   // repeated .aapt.pb.Styleable.Entry entry = 1;
12437   total_size += 1UL * this->_internal_entry_size();
12438   for (const auto& msg : this->_impl_.entry_) {
12439     total_size +=
12440       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
12441   }
12442 
12443   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
12444 }
12445 
12446 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Styleable::_class_data_ = {
12447     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
12448     Styleable::MergeImpl
12449 };
GetClassData() const12450 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Styleable::GetClassData() const { return &_class_data_; }
12451 
12452 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)12453 void Styleable::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
12454   auto* const _this = static_cast<Styleable*>(&to_msg);
12455   auto& from = static_cast<const Styleable&>(from_msg);
12456   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Styleable)
12457   GOOGLE_DCHECK_NE(&from, _this);
12458   ::uint32_t cached_has_bits = 0;
12459   (void) cached_has_bits;
12460 
12461   _this->_impl_.entry_.MergeFrom(from._impl_.entry_);
12462   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12463 }
12464 
CopyFrom(const Styleable & from)12465 void Styleable::CopyFrom(const Styleable& from) {
12466 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Styleable)
12467   if (&from == this) return;
12468   Clear();
12469   MergeFrom(from);
12470 }
12471 
IsInitialized() const12472 bool Styleable::IsInitialized() const {
12473   return true;
12474 }
12475 
InternalSwap(Styleable * other)12476 void Styleable::InternalSwap(Styleable* other) {
12477   using std::swap;
12478   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12479   _impl_.entry_.InternalSwap(&other->_impl_.entry_);
12480 }
12481 
GetMetadata() const12482 ::PROTOBUF_NAMESPACE_ID::Metadata Styleable::GetMetadata() const {
12483   return ::_pbi::AssignDescriptors(
12484       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
12485       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[37]);
12486 }
12487 
12488 // ===================================================================
12489 
12490 class Array_Element::_Internal {
12491  public:
12492   static const ::aapt::pb::Source& source(const Array_Element* msg);
12493   static const ::aapt::pb::Item& item(const Array_Element* msg);
12494 };
12495 
12496 const ::aapt::pb::Source&
source(const Array_Element * msg)12497 Array_Element::_Internal::source(const Array_Element* msg) {
12498   return *msg->_impl_.source_;
12499 }
12500 const ::aapt::pb::Item&
item(const Array_Element * msg)12501 Array_Element::_Internal::item(const Array_Element* msg) {
12502   return *msg->_impl_.item_;
12503 }
Array_Element(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12504 Array_Element::Array_Element(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12505                          bool is_message_owned)
12506   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
12507   SharedCtor(arena, is_message_owned);
12508   // @@protoc_insertion_point(arena_constructor:aapt.pb.Array.Element)
12509 }
Array_Element(const Array_Element & from)12510 Array_Element::Array_Element(const Array_Element& from)
12511   : ::PROTOBUF_NAMESPACE_ID::Message() {
12512   Array_Element* const _this = this; (void)_this;
12513   new (&_impl_) Impl_{
12514       decltype(_impl_.comment_){}
12515     , decltype(_impl_.source_){nullptr}
12516     , decltype(_impl_.item_){nullptr}
12517     , /*decltype(_impl_._cached_size_)*/{}};
12518 
12519   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12520   _impl_.comment_.InitDefault();
12521   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12522     _impl_.comment_.Set("", GetArenaForAllocation());
12523   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12524   if (!from._internal_comment().empty()) {
12525     _this->_impl_.comment_.Set(from._internal_comment(),
12526       _this->GetArenaForAllocation());
12527   }
12528   if (from._internal_has_source()) {
12529     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
12530   }
12531   if (from._internal_has_item()) {
12532     _this->_impl_.item_ = new ::aapt::pb::Item(*from._impl_.item_);
12533   }
12534   // @@protoc_insertion_point(copy_constructor:aapt.pb.Array.Element)
12535 }
12536 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12537 inline void Array_Element::SharedCtor(
12538     ::_pb::Arena* arena, bool is_message_owned) {
12539   (void)arena;
12540   (void)is_message_owned;
12541   new (&_impl_) Impl_{
12542       decltype(_impl_.comment_){}
12543     , decltype(_impl_.source_){nullptr}
12544     , decltype(_impl_.item_){nullptr}
12545     , /*decltype(_impl_._cached_size_)*/{}
12546   };
12547   _impl_.comment_.InitDefault();
12548   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
12549     _impl_.comment_.Set("", GetArenaForAllocation());
12550   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
12551 }
12552 
~Array_Element()12553 Array_Element::~Array_Element() {
12554   // @@protoc_insertion_point(destructor:aapt.pb.Array.Element)
12555   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
12556   (void)arena;
12557     return;
12558   }
12559   SharedDtor();
12560 }
12561 
SharedDtor()12562 inline void Array_Element::SharedDtor() {
12563   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12564   _impl_.comment_.Destroy();
12565   if (this != internal_default_instance()) delete _impl_.source_;
12566   if (this != internal_default_instance()) delete _impl_.item_;
12567 }
12568 
SetCachedSize(int size) const12569 void Array_Element::SetCachedSize(int size) const {
12570   _impl_._cached_size_.Set(size);
12571 }
12572 
Clear()12573 void Array_Element::Clear() {
12574 // @@protoc_insertion_point(message_clear_start:aapt.pb.Array.Element)
12575   ::uint32_t cached_has_bits = 0;
12576   // Prevent compiler warnings about cached_has_bits being unused
12577   (void) cached_has_bits;
12578 
12579   _impl_.comment_.ClearToEmpty();
12580   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
12581     delete _impl_.source_;
12582   }
12583   _impl_.source_ = nullptr;
12584   if (GetArenaForAllocation() == nullptr && _impl_.item_ != nullptr) {
12585     delete _impl_.item_;
12586   }
12587   _impl_.item_ = nullptr;
12588   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
12589 }
12590 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12591 const char* Array_Element::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12592 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12593   while (!ctx->Done(&ptr)) {
12594     ::uint32_t tag;
12595     ptr = ::_pbi::ReadTag(ptr, &tag);
12596     switch (tag >> 3) {
12597       // .aapt.pb.Source source = 1;
12598       case 1:
12599         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12600           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
12601           CHK_(ptr);
12602         } else {
12603           goto handle_unusual;
12604         }
12605         continue;
12606       // string comment = 2;
12607       case 2:
12608         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
12609           auto str = _internal_mutable_comment();
12610           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
12611           CHK_(ptr);
12612           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Array.Element.comment"));
12613         } else {
12614           goto handle_unusual;
12615         }
12616         continue;
12617       // .aapt.pb.Item item = 3;
12618       case 3:
12619         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
12620           ptr = ctx->ParseMessage(_internal_mutable_item(), ptr);
12621           CHK_(ptr);
12622         } else {
12623           goto handle_unusual;
12624         }
12625         continue;
12626       default:
12627         goto handle_unusual;
12628     }  // switch
12629   handle_unusual:
12630     if ((tag == 0) || ((tag & 7) == 4)) {
12631       CHK_(ptr);
12632       ctx->SetLastTag(tag);
12633       goto message_done;
12634     }
12635     ptr = UnknownFieldParse(
12636         tag,
12637         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
12638         ptr, ctx);
12639     CHK_(ptr != nullptr);
12640   }  // while
12641 message_done:
12642   return ptr;
12643 failure:
12644   ptr = nullptr;
12645   goto message_done;
12646 #undef CHK_
12647 }
12648 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12649 ::uint8_t* Array_Element::_InternalSerialize(
12650     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12651   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Array.Element)
12652   ::uint32_t cached_has_bits = 0;
12653   (void) cached_has_bits;
12654 
12655   // .aapt.pb.Source source = 1;
12656   if (this->_internal_has_source()) {
12657     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12658       InternalWriteMessage(1, _Internal::source(this),
12659         _Internal::source(this).GetCachedSize(), target, stream);
12660   }
12661 
12662   // string comment = 2;
12663   if (!this->_internal_comment().empty()) {
12664     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
12665       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
12666       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
12667       "aapt.pb.Array.Element.comment");
12668     target = stream->WriteStringMaybeAliased(
12669         2, this->_internal_comment(), target);
12670   }
12671 
12672   // .aapt.pb.Item item = 3;
12673   if (this->_internal_has_item()) {
12674     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12675       InternalWriteMessage(3, _Internal::item(this),
12676         _Internal::item(this).GetCachedSize(), target, stream);
12677   }
12678 
12679   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12680     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
12681         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
12682   }
12683   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Array.Element)
12684   return target;
12685 }
12686 
ByteSizeLong() const12687 size_t Array_Element::ByteSizeLong() const {
12688 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Array.Element)
12689   size_t total_size = 0;
12690 
12691   ::uint32_t cached_has_bits = 0;
12692   // Prevent compiler warnings about cached_has_bits being unused
12693   (void) cached_has_bits;
12694 
12695   // string comment = 2;
12696   if (!this->_internal_comment().empty()) {
12697     total_size += 1 +
12698       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
12699         this->_internal_comment());
12700   }
12701 
12702   // .aapt.pb.Source source = 1;
12703   if (this->_internal_has_source()) {
12704     total_size += 1 +
12705       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12706         *_impl_.source_);
12707   }
12708 
12709   // .aapt.pb.Item item = 3;
12710   if (this->_internal_has_item()) {
12711     total_size += 1 +
12712       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
12713         *_impl_.item_);
12714   }
12715 
12716   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
12717 }
12718 
12719 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Array_Element::_class_data_ = {
12720     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
12721     Array_Element::MergeImpl
12722 };
GetClassData() const12723 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Array_Element::GetClassData() const { return &_class_data_; }
12724 
12725 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)12726 void Array_Element::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
12727   auto* const _this = static_cast<Array_Element*>(&to_msg);
12728   auto& from = static_cast<const Array_Element&>(from_msg);
12729   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Array.Element)
12730   GOOGLE_DCHECK_NE(&from, _this);
12731   ::uint32_t cached_has_bits = 0;
12732   (void) cached_has_bits;
12733 
12734   if (!from._internal_comment().empty()) {
12735     _this->_internal_set_comment(from._internal_comment());
12736   }
12737   if (from._internal_has_source()) {
12738     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
12739         from._internal_source());
12740   }
12741   if (from._internal_has_item()) {
12742     _this->_internal_mutable_item()->::aapt::pb::Item::MergeFrom(
12743         from._internal_item());
12744   }
12745   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12746 }
12747 
CopyFrom(const Array_Element & from)12748 void Array_Element::CopyFrom(const Array_Element& from) {
12749 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Array.Element)
12750   if (&from == this) return;
12751   Clear();
12752   MergeFrom(from);
12753 }
12754 
IsInitialized() const12755 bool Array_Element::IsInitialized() const {
12756   return true;
12757 }
12758 
InternalSwap(Array_Element * other)12759 void Array_Element::InternalSwap(Array_Element* other) {
12760   using std::swap;
12761   auto* lhs_arena = GetArenaForAllocation();
12762   auto* rhs_arena = other->GetArenaForAllocation();
12763   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12764   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
12765       &_impl_.comment_, lhs_arena,
12766       &other->_impl_.comment_, rhs_arena
12767   );
12768   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
12769       PROTOBUF_FIELD_OFFSET(Array_Element, _impl_.item_)
12770       + sizeof(Array_Element::_impl_.item_)  // NOLINT
12771       - PROTOBUF_FIELD_OFFSET(Array_Element, _impl_.source_)>(
12772           reinterpret_cast<char*>(&_impl_.source_),
12773           reinterpret_cast<char*>(&other->_impl_.source_));
12774 }
12775 
GetMetadata() const12776 ::PROTOBUF_NAMESPACE_ID::Metadata Array_Element::GetMetadata() const {
12777   return ::_pbi::AssignDescriptors(
12778       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
12779       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[38]);
12780 }
12781 
12782 // ===================================================================
12783 
12784 class Array::_Internal {
12785  public:
12786 };
12787 
Array(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12788 Array::Array(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12789                          bool is_message_owned)
12790   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
12791   SharedCtor(arena, is_message_owned);
12792   // @@protoc_insertion_point(arena_constructor:aapt.pb.Array)
12793 }
Array(const Array & from)12794 Array::Array(const Array& from)
12795   : ::PROTOBUF_NAMESPACE_ID::Message() {
12796   Array* const _this = this; (void)_this;
12797   new (&_impl_) Impl_{
12798       decltype(_impl_.element_){from._impl_.element_}
12799     , /*decltype(_impl_._cached_size_)*/{}};
12800 
12801   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12802   // @@protoc_insertion_point(copy_constructor:aapt.pb.Array)
12803 }
12804 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)12805 inline void Array::SharedCtor(
12806     ::_pb::Arena* arena, bool is_message_owned) {
12807   (void)arena;
12808   (void)is_message_owned;
12809   new (&_impl_) Impl_{
12810       decltype(_impl_.element_){arena}
12811     , /*decltype(_impl_._cached_size_)*/{}
12812   };
12813 }
12814 
~Array()12815 Array::~Array() {
12816   // @@protoc_insertion_point(destructor:aapt.pb.Array)
12817   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
12818   (void)arena;
12819     return;
12820   }
12821   SharedDtor();
12822 }
12823 
SharedDtor()12824 inline void Array::SharedDtor() {
12825   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
12826   _impl_.element_.~RepeatedPtrField();
12827 }
12828 
SetCachedSize(int size) const12829 void Array::SetCachedSize(int size) const {
12830   _impl_._cached_size_.Set(size);
12831 }
12832 
Clear()12833 void Array::Clear() {
12834 // @@protoc_insertion_point(message_clear_start:aapt.pb.Array)
12835   ::uint32_t cached_has_bits = 0;
12836   // Prevent compiler warnings about cached_has_bits being unused
12837   (void) cached_has_bits;
12838 
12839   _impl_.element_.Clear();
12840   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
12841 }
12842 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)12843 const char* Array::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
12844 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
12845   while (!ctx->Done(&ptr)) {
12846     ::uint32_t tag;
12847     ptr = ::_pbi::ReadTag(ptr, &tag);
12848     switch (tag >> 3) {
12849       // repeated .aapt.pb.Array.Element element = 1;
12850       case 1:
12851         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
12852           ptr -= 1;
12853           do {
12854             ptr += 1;
12855             ptr = ctx->ParseMessage(_internal_add_element(), ptr);
12856             CHK_(ptr);
12857             if (!ctx->DataAvailable(ptr)) break;
12858           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
12859         } else {
12860           goto handle_unusual;
12861         }
12862         continue;
12863       default:
12864         goto handle_unusual;
12865     }  // switch
12866   handle_unusual:
12867     if ((tag == 0) || ((tag & 7) == 4)) {
12868       CHK_(ptr);
12869       ctx->SetLastTag(tag);
12870       goto message_done;
12871     }
12872     ptr = UnknownFieldParse(
12873         tag,
12874         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
12875         ptr, ctx);
12876     CHK_(ptr != nullptr);
12877   }  // while
12878 message_done:
12879   return ptr;
12880 failure:
12881   ptr = nullptr;
12882   goto message_done;
12883 #undef CHK_
12884 }
12885 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const12886 ::uint8_t* Array::_InternalSerialize(
12887     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
12888   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Array)
12889   ::uint32_t cached_has_bits = 0;
12890   (void) cached_has_bits;
12891 
12892   // repeated .aapt.pb.Array.Element element = 1;
12893   for (unsigned i = 0,
12894       n = static_cast<unsigned>(this->_internal_element_size()); i < n; i++) {
12895     const auto& repfield = this->_internal_element(i);
12896     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
12897         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
12898   }
12899 
12900   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
12901     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
12902         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
12903   }
12904   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Array)
12905   return target;
12906 }
12907 
ByteSizeLong() const12908 size_t Array::ByteSizeLong() const {
12909 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Array)
12910   size_t total_size = 0;
12911 
12912   ::uint32_t cached_has_bits = 0;
12913   // Prevent compiler warnings about cached_has_bits being unused
12914   (void) cached_has_bits;
12915 
12916   // repeated .aapt.pb.Array.Element element = 1;
12917   total_size += 1UL * this->_internal_element_size();
12918   for (const auto& msg : this->_impl_.element_) {
12919     total_size +=
12920       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
12921   }
12922 
12923   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
12924 }
12925 
12926 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Array::_class_data_ = {
12927     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
12928     Array::MergeImpl
12929 };
GetClassData() const12930 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Array::GetClassData() const { return &_class_data_; }
12931 
12932 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)12933 void Array::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
12934   auto* const _this = static_cast<Array*>(&to_msg);
12935   auto& from = static_cast<const Array&>(from_msg);
12936   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Array)
12937   GOOGLE_DCHECK_NE(&from, _this);
12938   ::uint32_t cached_has_bits = 0;
12939   (void) cached_has_bits;
12940 
12941   _this->_impl_.element_.MergeFrom(from._impl_.element_);
12942   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
12943 }
12944 
CopyFrom(const Array & from)12945 void Array::CopyFrom(const Array& from) {
12946 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Array)
12947   if (&from == this) return;
12948   Clear();
12949   MergeFrom(from);
12950 }
12951 
IsInitialized() const12952 bool Array::IsInitialized() const {
12953   return true;
12954 }
12955 
InternalSwap(Array * other)12956 void Array::InternalSwap(Array* other) {
12957   using std::swap;
12958   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
12959   _impl_.element_.InternalSwap(&other->_impl_.element_);
12960 }
12961 
GetMetadata() const12962 ::PROTOBUF_NAMESPACE_ID::Metadata Array::GetMetadata() const {
12963   return ::_pbi::AssignDescriptors(
12964       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
12965       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[39]);
12966 }
12967 
12968 // ===================================================================
12969 
12970 class Plural_Entry::_Internal {
12971  public:
12972   static const ::aapt::pb::Source& source(const Plural_Entry* msg);
12973   static const ::aapt::pb::Item& item(const Plural_Entry* msg);
12974 };
12975 
12976 const ::aapt::pb::Source&
source(const Plural_Entry * msg)12977 Plural_Entry::_Internal::source(const Plural_Entry* msg) {
12978   return *msg->_impl_.source_;
12979 }
12980 const ::aapt::pb::Item&
item(const Plural_Entry * msg)12981 Plural_Entry::_Internal::item(const Plural_Entry* msg) {
12982   return *msg->_impl_.item_;
12983 }
Plural_Entry(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)12984 Plural_Entry::Plural_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
12985                          bool is_message_owned)
12986   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
12987   SharedCtor(arena, is_message_owned);
12988   // @@protoc_insertion_point(arena_constructor:aapt.pb.Plural.Entry)
12989 }
Plural_Entry(const Plural_Entry & from)12990 Plural_Entry::Plural_Entry(const Plural_Entry& from)
12991   : ::PROTOBUF_NAMESPACE_ID::Message() {
12992   Plural_Entry* const _this = this; (void)_this;
12993   new (&_impl_) Impl_{
12994       decltype(_impl_.comment_){}
12995     , decltype(_impl_.source_){nullptr}
12996     , decltype(_impl_.item_){nullptr}
12997     , decltype(_impl_.arity_){}
12998     , /*decltype(_impl_._cached_size_)*/{}};
12999 
13000   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13001   _impl_.comment_.InitDefault();
13002   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13003     _impl_.comment_.Set("", GetArenaForAllocation());
13004   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13005   if (!from._internal_comment().empty()) {
13006     _this->_impl_.comment_.Set(from._internal_comment(),
13007       _this->GetArenaForAllocation());
13008   }
13009   if (from._internal_has_source()) {
13010     _this->_impl_.source_ = new ::aapt::pb::Source(*from._impl_.source_);
13011   }
13012   if (from._internal_has_item()) {
13013     _this->_impl_.item_ = new ::aapt::pb::Item(*from._impl_.item_);
13014   }
13015   _this->_impl_.arity_ = from._impl_.arity_;
13016   // @@protoc_insertion_point(copy_constructor:aapt.pb.Plural.Entry)
13017 }
13018 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)13019 inline void Plural_Entry::SharedCtor(
13020     ::_pb::Arena* arena, bool is_message_owned) {
13021   (void)arena;
13022   (void)is_message_owned;
13023   new (&_impl_) Impl_{
13024       decltype(_impl_.comment_){}
13025     , decltype(_impl_.source_){nullptr}
13026     , decltype(_impl_.item_){nullptr}
13027     , decltype(_impl_.arity_){0}
13028     , /*decltype(_impl_._cached_size_)*/{}
13029   };
13030   _impl_.comment_.InitDefault();
13031   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13032     _impl_.comment_.Set("", GetArenaForAllocation());
13033   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13034 }
13035 
~Plural_Entry()13036 Plural_Entry::~Plural_Entry() {
13037   // @@protoc_insertion_point(destructor:aapt.pb.Plural.Entry)
13038   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
13039   (void)arena;
13040     return;
13041   }
13042   SharedDtor();
13043 }
13044 
SharedDtor()13045 inline void Plural_Entry::SharedDtor() {
13046   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
13047   _impl_.comment_.Destroy();
13048   if (this != internal_default_instance()) delete _impl_.source_;
13049   if (this != internal_default_instance()) delete _impl_.item_;
13050 }
13051 
SetCachedSize(int size) const13052 void Plural_Entry::SetCachedSize(int size) const {
13053   _impl_._cached_size_.Set(size);
13054 }
13055 
Clear()13056 void Plural_Entry::Clear() {
13057 // @@protoc_insertion_point(message_clear_start:aapt.pb.Plural.Entry)
13058   ::uint32_t cached_has_bits = 0;
13059   // Prevent compiler warnings about cached_has_bits being unused
13060   (void) cached_has_bits;
13061 
13062   _impl_.comment_.ClearToEmpty();
13063   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
13064     delete _impl_.source_;
13065   }
13066   _impl_.source_ = nullptr;
13067   if (GetArenaForAllocation() == nullptr && _impl_.item_ != nullptr) {
13068     delete _impl_.item_;
13069   }
13070   _impl_.item_ = nullptr;
13071   _impl_.arity_ = 0;
13072   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
13073 }
13074 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)13075 const char* Plural_Entry::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
13076 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13077   while (!ctx->Done(&ptr)) {
13078     ::uint32_t tag;
13079     ptr = ::_pbi::ReadTag(ptr, &tag);
13080     switch (tag >> 3) {
13081       // .aapt.pb.Source source = 1;
13082       case 1:
13083         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
13084           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
13085           CHK_(ptr);
13086         } else {
13087           goto handle_unusual;
13088         }
13089         continue;
13090       // string comment = 2;
13091       case 2:
13092         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
13093           auto str = _internal_mutable_comment();
13094           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13095           CHK_(ptr);
13096           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.Plural.Entry.comment"));
13097         } else {
13098           goto handle_unusual;
13099         }
13100         continue;
13101       // .aapt.pb.Plural.Arity arity = 3;
13102       case 3:
13103         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
13104           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
13105           CHK_(ptr);
13106           _internal_set_arity(static_cast<::aapt::pb::Plural_Arity>(val));
13107         } else {
13108           goto handle_unusual;
13109         }
13110         continue;
13111       // .aapt.pb.Item item = 4;
13112       case 4:
13113         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
13114           ptr = ctx->ParseMessage(_internal_mutable_item(), ptr);
13115           CHK_(ptr);
13116         } else {
13117           goto handle_unusual;
13118         }
13119         continue;
13120       default:
13121         goto handle_unusual;
13122     }  // switch
13123   handle_unusual:
13124     if ((tag == 0) || ((tag & 7) == 4)) {
13125       CHK_(ptr);
13126       ctx->SetLastTag(tag);
13127       goto message_done;
13128     }
13129     ptr = UnknownFieldParse(
13130         tag,
13131         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
13132         ptr, ctx);
13133     CHK_(ptr != nullptr);
13134   }  // while
13135 message_done:
13136   return ptr;
13137 failure:
13138   ptr = nullptr;
13139   goto message_done;
13140 #undef CHK_
13141 }
13142 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const13143 ::uint8_t* Plural_Entry::_InternalSerialize(
13144     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
13145   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Plural.Entry)
13146   ::uint32_t cached_has_bits = 0;
13147   (void) cached_has_bits;
13148 
13149   // .aapt.pb.Source source = 1;
13150   if (this->_internal_has_source()) {
13151     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13152       InternalWriteMessage(1, _Internal::source(this),
13153         _Internal::source(this).GetCachedSize(), target, stream);
13154   }
13155 
13156   // string comment = 2;
13157   if (!this->_internal_comment().empty()) {
13158     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13159       this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
13160       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13161       "aapt.pb.Plural.Entry.comment");
13162     target = stream->WriteStringMaybeAliased(
13163         2, this->_internal_comment(), target);
13164   }
13165 
13166   // .aapt.pb.Plural.Arity arity = 3;
13167   if (this->_internal_arity() != 0) {
13168     target = stream->EnsureSpace(target);
13169     target = ::_pbi::WireFormatLite::WriteEnumToArray(
13170       3, this->_internal_arity(), target);
13171   }
13172 
13173   // .aapt.pb.Item item = 4;
13174   if (this->_internal_has_item()) {
13175     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13176       InternalWriteMessage(4, _Internal::item(this),
13177         _Internal::item(this).GetCachedSize(), target, stream);
13178   }
13179 
13180   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13181     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
13182         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
13183   }
13184   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Plural.Entry)
13185   return target;
13186 }
13187 
ByteSizeLong() const13188 size_t Plural_Entry::ByteSizeLong() const {
13189 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Plural.Entry)
13190   size_t total_size = 0;
13191 
13192   ::uint32_t cached_has_bits = 0;
13193   // Prevent compiler warnings about cached_has_bits being unused
13194   (void) cached_has_bits;
13195 
13196   // string comment = 2;
13197   if (!this->_internal_comment().empty()) {
13198     total_size += 1 +
13199       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13200         this->_internal_comment());
13201   }
13202 
13203   // .aapt.pb.Source source = 1;
13204   if (this->_internal_has_source()) {
13205     total_size += 1 +
13206       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13207         *_impl_.source_);
13208   }
13209 
13210   // .aapt.pb.Item item = 4;
13211   if (this->_internal_has_item()) {
13212     total_size += 1 +
13213       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13214         *_impl_.item_);
13215   }
13216 
13217   // .aapt.pb.Plural.Arity arity = 3;
13218   if (this->_internal_arity() != 0) {
13219     total_size += 1 +
13220       ::_pbi::WireFormatLite::EnumSize(this->_internal_arity());
13221   }
13222 
13223   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
13224 }
13225 
13226 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Plural_Entry::_class_data_ = {
13227     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
13228     Plural_Entry::MergeImpl
13229 };
GetClassData() const13230 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Plural_Entry::GetClassData() const { return &_class_data_; }
13231 
13232 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)13233 void Plural_Entry::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
13234   auto* const _this = static_cast<Plural_Entry*>(&to_msg);
13235   auto& from = static_cast<const Plural_Entry&>(from_msg);
13236   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Plural.Entry)
13237   GOOGLE_DCHECK_NE(&from, _this);
13238   ::uint32_t cached_has_bits = 0;
13239   (void) cached_has_bits;
13240 
13241   if (!from._internal_comment().empty()) {
13242     _this->_internal_set_comment(from._internal_comment());
13243   }
13244   if (from._internal_has_source()) {
13245     _this->_internal_mutable_source()->::aapt::pb::Source::MergeFrom(
13246         from._internal_source());
13247   }
13248   if (from._internal_has_item()) {
13249     _this->_internal_mutable_item()->::aapt::pb::Item::MergeFrom(
13250         from._internal_item());
13251   }
13252   if (from._internal_arity() != 0) {
13253     _this->_internal_set_arity(from._internal_arity());
13254   }
13255   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13256 }
13257 
CopyFrom(const Plural_Entry & from)13258 void Plural_Entry::CopyFrom(const Plural_Entry& from) {
13259 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Plural.Entry)
13260   if (&from == this) return;
13261   Clear();
13262   MergeFrom(from);
13263 }
13264 
IsInitialized() const13265 bool Plural_Entry::IsInitialized() const {
13266   return true;
13267 }
13268 
InternalSwap(Plural_Entry * other)13269 void Plural_Entry::InternalSwap(Plural_Entry* other) {
13270   using std::swap;
13271   auto* lhs_arena = GetArenaForAllocation();
13272   auto* rhs_arena = other->GetArenaForAllocation();
13273   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13274   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
13275       &_impl_.comment_, lhs_arena,
13276       &other->_impl_.comment_, rhs_arena
13277   );
13278   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
13279       PROTOBUF_FIELD_OFFSET(Plural_Entry, _impl_.arity_)
13280       + sizeof(Plural_Entry::_impl_.arity_)  // NOLINT
13281       - PROTOBUF_FIELD_OFFSET(Plural_Entry, _impl_.source_)>(
13282           reinterpret_cast<char*>(&_impl_.source_),
13283           reinterpret_cast<char*>(&other->_impl_.source_));
13284 }
13285 
GetMetadata() const13286 ::PROTOBUF_NAMESPACE_ID::Metadata Plural_Entry::GetMetadata() const {
13287   return ::_pbi::AssignDescriptors(
13288       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
13289       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[40]);
13290 }
13291 
13292 // ===================================================================
13293 
13294 class Plural::_Internal {
13295  public:
13296 };
13297 
Plural(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)13298 Plural::Plural(::PROTOBUF_NAMESPACE_ID::Arena* arena,
13299                          bool is_message_owned)
13300   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
13301   SharedCtor(arena, is_message_owned);
13302   // @@protoc_insertion_point(arena_constructor:aapt.pb.Plural)
13303 }
Plural(const Plural & from)13304 Plural::Plural(const Plural& from)
13305   : ::PROTOBUF_NAMESPACE_ID::Message() {
13306   Plural* const _this = this; (void)_this;
13307   new (&_impl_) Impl_{
13308       decltype(_impl_.entry_){from._impl_.entry_}
13309     , /*decltype(_impl_._cached_size_)*/{}};
13310 
13311   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13312   // @@protoc_insertion_point(copy_constructor:aapt.pb.Plural)
13313 }
13314 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)13315 inline void Plural::SharedCtor(
13316     ::_pb::Arena* arena, bool is_message_owned) {
13317   (void)arena;
13318   (void)is_message_owned;
13319   new (&_impl_) Impl_{
13320       decltype(_impl_.entry_){arena}
13321     , /*decltype(_impl_._cached_size_)*/{}
13322   };
13323 }
13324 
~Plural()13325 Plural::~Plural() {
13326   // @@protoc_insertion_point(destructor:aapt.pb.Plural)
13327   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
13328   (void)arena;
13329     return;
13330   }
13331   SharedDtor();
13332 }
13333 
SharedDtor()13334 inline void Plural::SharedDtor() {
13335   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
13336   _impl_.entry_.~RepeatedPtrField();
13337 }
13338 
SetCachedSize(int size) const13339 void Plural::SetCachedSize(int size) const {
13340   _impl_._cached_size_.Set(size);
13341 }
13342 
Clear()13343 void Plural::Clear() {
13344 // @@protoc_insertion_point(message_clear_start:aapt.pb.Plural)
13345   ::uint32_t cached_has_bits = 0;
13346   // Prevent compiler warnings about cached_has_bits being unused
13347   (void) cached_has_bits;
13348 
13349   _impl_.entry_.Clear();
13350   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
13351 }
13352 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)13353 const char* Plural::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
13354 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13355   while (!ctx->Done(&ptr)) {
13356     ::uint32_t tag;
13357     ptr = ::_pbi::ReadTag(ptr, &tag);
13358     switch (tag >> 3) {
13359       // repeated .aapt.pb.Plural.Entry entry = 1;
13360       case 1:
13361         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
13362           ptr -= 1;
13363           do {
13364             ptr += 1;
13365             ptr = ctx->ParseMessage(_internal_add_entry(), ptr);
13366             CHK_(ptr);
13367             if (!ctx->DataAvailable(ptr)) break;
13368           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
13369         } else {
13370           goto handle_unusual;
13371         }
13372         continue;
13373       default:
13374         goto handle_unusual;
13375     }  // switch
13376   handle_unusual:
13377     if ((tag == 0) || ((tag & 7) == 4)) {
13378       CHK_(ptr);
13379       ctx->SetLastTag(tag);
13380       goto message_done;
13381     }
13382     ptr = UnknownFieldParse(
13383         tag,
13384         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
13385         ptr, ctx);
13386     CHK_(ptr != nullptr);
13387   }  // while
13388 message_done:
13389   return ptr;
13390 failure:
13391   ptr = nullptr;
13392   goto message_done;
13393 #undef CHK_
13394 }
13395 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const13396 ::uint8_t* Plural::_InternalSerialize(
13397     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
13398   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.Plural)
13399   ::uint32_t cached_has_bits = 0;
13400   (void) cached_has_bits;
13401 
13402   // repeated .aapt.pb.Plural.Entry entry = 1;
13403   for (unsigned i = 0,
13404       n = static_cast<unsigned>(this->_internal_entry_size()); i < n; i++) {
13405     const auto& repfield = this->_internal_entry(i);
13406     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13407         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
13408   }
13409 
13410   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13411     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
13412         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
13413   }
13414   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.Plural)
13415   return target;
13416 }
13417 
ByteSizeLong() const13418 size_t Plural::ByteSizeLong() const {
13419 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.Plural)
13420   size_t total_size = 0;
13421 
13422   ::uint32_t cached_has_bits = 0;
13423   // Prevent compiler warnings about cached_has_bits being unused
13424   (void) cached_has_bits;
13425 
13426   // repeated .aapt.pb.Plural.Entry entry = 1;
13427   total_size += 1UL * this->_internal_entry_size();
13428   for (const auto& msg : this->_impl_.entry_) {
13429     total_size +=
13430       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
13431   }
13432 
13433   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
13434 }
13435 
13436 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Plural::_class_data_ = {
13437     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
13438     Plural::MergeImpl
13439 };
GetClassData() const13440 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Plural::GetClassData() const { return &_class_data_; }
13441 
13442 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)13443 void Plural::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
13444   auto* const _this = static_cast<Plural*>(&to_msg);
13445   auto& from = static_cast<const Plural&>(from_msg);
13446   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.Plural)
13447   GOOGLE_DCHECK_NE(&from, _this);
13448   ::uint32_t cached_has_bits = 0;
13449   (void) cached_has_bits;
13450 
13451   _this->_impl_.entry_.MergeFrom(from._impl_.entry_);
13452   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13453 }
13454 
CopyFrom(const Plural & from)13455 void Plural::CopyFrom(const Plural& from) {
13456 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.Plural)
13457   if (&from == this) return;
13458   Clear();
13459   MergeFrom(from);
13460 }
13461 
IsInitialized() const13462 bool Plural::IsInitialized() const {
13463   return true;
13464 }
13465 
InternalSwap(Plural * other)13466 void Plural::InternalSwap(Plural* other) {
13467   using std::swap;
13468   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13469   _impl_.entry_.InternalSwap(&other->_impl_.entry_);
13470 }
13471 
GetMetadata() const13472 ::PROTOBUF_NAMESPACE_ID::Metadata Plural::GetMetadata() const {
13473   return ::_pbi::AssignDescriptors(
13474       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
13475       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[41]);
13476 }
13477 
13478 // ===================================================================
13479 
13480 class XmlNode::_Internal {
13481  public:
13482   static const ::aapt::pb::XmlElement& element(const XmlNode* msg);
13483   static const ::aapt::pb::SourcePosition& source(const XmlNode* msg);
13484 };
13485 
13486 const ::aapt::pb::XmlElement&
element(const XmlNode * msg)13487 XmlNode::_Internal::element(const XmlNode* msg) {
13488   return *msg->_impl_.node_.element_;
13489 }
13490 const ::aapt::pb::SourcePosition&
source(const XmlNode * msg)13491 XmlNode::_Internal::source(const XmlNode* msg) {
13492   return *msg->_impl_.source_;
13493 }
set_allocated_element(::aapt::pb::XmlElement * element)13494 void XmlNode::set_allocated_element(::aapt::pb::XmlElement* element) {
13495   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
13496   clear_node();
13497   if (element) {
13498     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
13499       ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(element);
13500     if (message_arena != submessage_arena) {
13501       element = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
13502           message_arena, element, submessage_arena);
13503     }
13504     set_has_element();
13505     _impl_.node_.element_ = element;
13506   }
13507   // @@protoc_insertion_point(field_set_allocated:aapt.pb.XmlNode.element)
13508 }
XmlNode(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)13509 XmlNode::XmlNode(::PROTOBUF_NAMESPACE_ID::Arena* arena,
13510                          bool is_message_owned)
13511   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
13512   SharedCtor(arena, is_message_owned);
13513   // @@protoc_insertion_point(arena_constructor:aapt.pb.XmlNode)
13514 }
XmlNode(const XmlNode & from)13515 XmlNode::XmlNode(const XmlNode& from)
13516   : ::PROTOBUF_NAMESPACE_ID::Message() {
13517   XmlNode* const _this = this; (void)_this;
13518   new (&_impl_) Impl_{
13519       decltype(_impl_.source_){nullptr}
13520     , decltype(_impl_.node_){}
13521     , /*decltype(_impl_._cached_size_)*/{}
13522     , /*decltype(_impl_._oneof_case_)*/{}};
13523 
13524   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13525   if (from._internal_has_source()) {
13526     _this->_impl_.source_ = new ::aapt::pb::SourcePosition(*from._impl_.source_);
13527   }
13528   clear_has_node();
13529   switch (from.node_case()) {
13530     case kElement: {
13531       _this->_internal_mutable_element()->::aapt::pb::XmlElement::MergeFrom(
13532           from._internal_element());
13533       break;
13534     }
13535     case kText: {
13536       _this->_internal_set_text(from._internal_text());
13537       break;
13538     }
13539     case NODE_NOT_SET: {
13540       break;
13541     }
13542   }
13543   // @@protoc_insertion_point(copy_constructor:aapt.pb.XmlNode)
13544 }
13545 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)13546 inline void XmlNode::SharedCtor(
13547     ::_pb::Arena* arena, bool is_message_owned) {
13548   (void)arena;
13549   (void)is_message_owned;
13550   new (&_impl_) Impl_{
13551       decltype(_impl_.source_){nullptr}
13552     , decltype(_impl_.node_){}
13553     , /*decltype(_impl_._cached_size_)*/{}
13554     , /*decltype(_impl_._oneof_case_)*/{}
13555   };
13556   clear_has_node();
13557 }
13558 
~XmlNode()13559 XmlNode::~XmlNode() {
13560   // @@protoc_insertion_point(destructor:aapt.pb.XmlNode)
13561   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
13562   (void)arena;
13563     return;
13564   }
13565   SharedDtor();
13566 }
13567 
SharedDtor()13568 inline void XmlNode::SharedDtor() {
13569   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
13570   if (this != internal_default_instance()) delete _impl_.source_;
13571   if (has_node()) {
13572     clear_node();
13573   }
13574 }
13575 
SetCachedSize(int size) const13576 void XmlNode::SetCachedSize(int size) const {
13577   _impl_._cached_size_.Set(size);
13578 }
13579 
clear_node()13580 void XmlNode::clear_node() {
13581 // @@protoc_insertion_point(one_of_clear_start:aapt.pb.XmlNode)
13582   switch (node_case()) {
13583     case kElement: {
13584       if (GetArenaForAllocation() == nullptr) {
13585         delete _impl_.node_.element_;
13586       }
13587       break;
13588     }
13589     case kText: {
13590       _impl_.node_.text_.Destroy();
13591       break;
13592     }
13593     case NODE_NOT_SET: {
13594       break;
13595     }
13596   }
13597   _impl_._oneof_case_[0] = NODE_NOT_SET;
13598 }
13599 
13600 
Clear()13601 void XmlNode::Clear() {
13602 // @@protoc_insertion_point(message_clear_start:aapt.pb.XmlNode)
13603   ::uint32_t cached_has_bits = 0;
13604   // Prevent compiler warnings about cached_has_bits being unused
13605   (void) cached_has_bits;
13606 
13607   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
13608     delete _impl_.source_;
13609   }
13610   _impl_.source_ = nullptr;
13611   clear_node();
13612   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
13613 }
13614 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)13615 const char* XmlNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
13616 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13617   while (!ctx->Done(&ptr)) {
13618     ::uint32_t tag;
13619     ptr = ::_pbi::ReadTag(ptr, &tag);
13620     switch (tag >> 3) {
13621       // .aapt.pb.XmlElement element = 1;
13622       case 1:
13623         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
13624           ptr = ctx->ParseMessage(_internal_mutable_element(), ptr);
13625           CHK_(ptr);
13626         } else {
13627           goto handle_unusual;
13628         }
13629         continue;
13630       // string text = 2;
13631       case 2:
13632         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
13633           auto str = _internal_mutable_text();
13634           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13635           CHK_(ptr);
13636           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlNode.text"));
13637         } else {
13638           goto handle_unusual;
13639         }
13640         continue;
13641       // .aapt.pb.SourcePosition source = 3;
13642       case 3:
13643         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
13644           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
13645           CHK_(ptr);
13646         } else {
13647           goto handle_unusual;
13648         }
13649         continue;
13650       default:
13651         goto handle_unusual;
13652     }  // switch
13653   handle_unusual:
13654     if ((tag == 0) || ((tag & 7) == 4)) {
13655       CHK_(ptr);
13656       ctx->SetLastTag(tag);
13657       goto message_done;
13658     }
13659     ptr = UnknownFieldParse(
13660         tag,
13661         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
13662         ptr, ctx);
13663     CHK_(ptr != nullptr);
13664   }  // while
13665 message_done:
13666   return ptr;
13667 failure:
13668   ptr = nullptr;
13669   goto message_done;
13670 #undef CHK_
13671 }
13672 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const13673 ::uint8_t* XmlNode::_InternalSerialize(
13674     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
13675   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.XmlNode)
13676   ::uint32_t cached_has_bits = 0;
13677   (void) cached_has_bits;
13678 
13679   // .aapt.pb.XmlElement element = 1;
13680   if (_internal_has_element()) {
13681     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13682       InternalWriteMessage(1, _Internal::element(this),
13683         _Internal::element(this).GetCachedSize(), target, stream);
13684   }
13685 
13686   // string text = 2;
13687   if (_internal_has_text()) {
13688     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
13689       this->_internal_text().data(), static_cast<int>(this->_internal_text().length()),
13690       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
13691       "aapt.pb.XmlNode.text");
13692     target = stream->WriteStringMaybeAliased(
13693         2, this->_internal_text(), target);
13694   }
13695 
13696   // .aapt.pb.SourcePosition source = 3;
13697   if (this->_internal_has_source()) {
13698     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
13699       InternalWriteMessage(3, _Internal::source(this),
13700         _Internal::source(this).GetCachedSize(), target, stream);
13701   }
13702 
13703   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
13704     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
13705         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
13706   }
13707   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.XmlNode)
13708   return target;
13709 }
13710 
ByteSizeLong() const13711 size_t XmlNode::ByteSizeLong() const {
13712 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.XmlNode)
13713   size_t total_size = 0;
13714 
13715   ::uint32_t cached_has_bits = 0;
13716   // Prevent compiler warnings about cached_has_bits being unused
13717   (void) cached_has_bits;
13718 
13719   // .aapt.pb.SourcePosition source = 3;
13720   if (this->_internal_has_source()) {
13721     total_size += 1 +
13722       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13723         *_impl_.source_);
13724   }
13725 
13726   switch (node_case()) {
13727     // .aapt.pb.XmlElement element = 1;
13728     case kElement: {
13729       total_size += 1 +
13730         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
13731           *_impl_.node_.element_);
13732       break;
13733     }
13734     // string text = 2;
13735     case kText: {
13736       total_size += 1 +
13737         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
13738           this->_internal_text());
13739       break;
13740     }
13741     case NODE_NOT_SET: {
13742       break;
13743     }
13744   }
13745   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
13746 }
13747 
13748 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData XmlNode::_class_data_ = {
13749     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
13750     XmlNode::MergeImpl
13751 };
GetClassData() const13752 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*XmlNode::GetClassData() const { return &_class_data_; }
13753 
13754 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)13755 void XmlNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
13756   auto* const _this = static_cast<XmlNode*>(&to_msg);
13757   auto& from = static_cast<const XmlNode&>(from_msg);
13758   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.XmlNode)
13759   GOOGLE_DCHECK_NE(&from, _this);
13760   ::uint32_t cached_has_bits = 0;
13761   (void) cached_has_bits;
13762 
13763   if (from._internal_has_source()) {
13764     _this->_internal_mutable_source()->::aapt::pb::SourcePosition::MergeFrom(
13765         from._internal_source());
13766   }
13767   switch (from.node_case()) {
13768     case kElement: {
13769       _this->_internal_mutable_element()->::aapt::pb::XmlElement::MergeFrom(
13770           from._internal_element());
13771       break;
13772     }
13773     case kText: {
13774       _this->_internal_set_text(from._internal_text());
13775       break;
13776     }
13777     case NODE_NOT_SET: {
13778       break;
13779     }
13780   }
13781   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13782 }
13783 
CopyFrom(const XmlNode & from)13784 void XmlNode::CopyFrom(const XmlNode& from) {
13785 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.XmlNode)
13786   if (&from == this) return;
13787   Clear();
13788   MergeFrom(from);
13789 }
13790 
IsInitialized() const13791 bool XmlNode::IsInitialized() const {
13792   return true;
13793 }
13794 
InternalSwap(XmlNode * other)13795 void XmlNode::InternalSwap(XmlNode* other) {
13796   using std::swap;
13797   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
13798   swap(_impl_.source_, other->_impl_.source_);
13799   swap(_impl_.node_, other->_impl_.node_);
13800   swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
13801 }
13802 
GetMetadata() const13803 ::PROTOBUF_NAMESPACE_ID::Metadata XmlNode::GetMetadata() const {
13804   return ::_pbi::AssignDescriptors(
13805       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
13806       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[42]);
13807 }
13808 
13809 // ===================================================================
13810 
13811 class XmlElement::_Internal {
13812  public:
13813 };
13814 
XmlElement(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)13815 XmlElement::XmlElement(::PROTOBUF_NAMESPACE_ID::Arena* arena,
13816                          bool is_message_owned)
13817   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
13818   SharedCtor(arena, is_message_owned);
13819   // @@protoc_insertion_point(arena_constructor:aapt.pb.XmlElement)
13820 }
XmlElement(const XmlElement & from)13821 XmlElement::XmlElement(const XmlElement& from)
13822   : ::PROTOBUF_NAMESPACE_ID::Message() {
13823   XmlElement* const _this = this; (void)_this;
13824   new (&_impl_) Impl_{
13825       decltype(_impl_.namespace_declaration_){from._impl_.namespace_declaration_}
13826     , decltype(_impl_.attribute_){from._impl_.attribute_}
13827     , decltype(_impl_.child_){from._impl_.child_}
13828     , decltype(_impl_.namespace_uri_){}
13829     , decltype(_impl_.name_){}
13830     , /*decltype(_impl_._cached_size_)*/{}};
13831 
13832   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
13833   _impl_.namespace_uri_.InitDefault();
13834   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13835     _impl_.namespace_uri_.Set("", GetArenaForAllocation());
13836   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13837   if (!from._internal_namespace_uri().empty()) {
13838     _this->_impl_.namespace_uri_.Set(from._internal_namespace_uri(),
13839       _this->GetArenaForAllocation());
13840   }
13841   _impl_.name_.InitDefault();
13842   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13843     _impl_.name_.Set("", GetArenaForAllocation());
13844   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13845   if (!from._internal_name().empty()) {
13846     _this->_impl_.name_.Set(from._internal_name(),
13847       _this->GetArenaForAllocation());
13848   }
13849   // @@protoc_insertion_point(copy_constructor:aapt.pb.XmlElement)
13850 }
13851 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)13852 inline void XmlElement::SharedCtor(
13853     ::_pb::Arena* arena, bool is_message_owned) {
13854   (void)arena;
13855   (void)is_message_owned;
13856   new (&_impl_) Impl_{
13857       decltype(_impl_.namespace_declaration_){arena}
13858     , decltype(_impl_.attribute_){arena}
13859     , decltype(_impl_.child_){arena}
13860     , decltype(_impl_.namespace_uri_){}
13861     , decltype(_impl_.name_){}
13862     , /*decltype(_impl_._cached_size_)*/{}
13863   };
13864   _impl_.namespace_uri_.InitDefault();
13865   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13866     _impl_.namespace_uri_.Set("", GetArenaForAllocation());
13867   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13868   _impl_.name_.InitDefault();
13869   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
13870     _impl_.name_.Set("", GetArenaForAllocation());
13871   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
13872 }
13873 
~XmlElement()13874 XmlElement::~XmlElement() {
13875   // @@protoc_insertion_point(destructor:aapt.pb.XmlElement)
13876   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
13877   (void)arena;
13878     return;
13879   }
13880   SharedDtor();
13881 }
13882 
SharedDtor()13883 inline void XmlElement::SharedDtor() {
13884   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
13885   _impl_.namespace_declaration_.~RepeatedPtrField();
13886   _impl_.attribute_.~RepeatedPtrField();
13887   _impl_.child_.~RepeatedPtrField();
13888   _impl_.namespace_uri_.Destroy();
13889   _impl_.name_.Destroy();
13890 }
13891 
SetCachedSize(int size) const13892 void XmlElement::SetCachedSize(int size) const {
13893   _impl_._cached_size_.Set(size);
13894 }
13895 
Clear()13896 void XmlElement::Clear() {
13897 // @@protoc_insertion_point(message_clear_start:aapt.pb.XmlElement)
13898   ::uint32_t cached_has_bits = 0;
13899   // Prevent compiler warnings about cached_has_bits being unused
13900   (void) cached_has_bits;
13901 
13902   _impl_.namespace_declaration_.Clear();
13903   _impl_.attribute_.Clear();
13904   _impl_.child_.Clear();
13905   _impl_.namespace_uri_.ClearToEmpty();
13906   _impl_.name_.ClearToEmpty();
13907   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
13908 }
13909 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)13910 const char* XmlElement::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
13911 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
13912   while (!ctx->Done(&ptr)) {
13913     ::uint32_t tag;
13914     ptr = ::_pbi::ReadTag(ptr, &tag);
13915     switch (tag >> 3) {
13916       // repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
13917       case 1:
13918         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
13919           ptr -= 1;
13920           do {
13921             ptr += 1;
13922             ptr = ctx->ParseMessage(_internal_add_namespace_declaration(), ptr);
13923             CHK_(ptr);
13924             if (!ctx->DataAvailable(ptr)) break;
13925           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
13926         } else {
13927           goto handle_unusual;
13928         }
13929         continue;
13930       // string namespace_uri = 2;
13931       case 2:
13932         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
13933           auto str = _internal_mutable_namespace_uri();
13934           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13935           CHK_(ptr);
13936           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlElement.namespace_uri"));
13937         } else {
13938           goto handle_unusual;
13939         }
13940         continue;
13941       // string name = 3;
13942       case 3:
13943         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
13944           auto str = _internal_mutable_name();
13945           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
13946           CHK_(ptr);
13947           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlElement.name"));
13948         } else {
13949           goto handle_unusual;
13950         }
13951         continue;
13952       // repeated .aapt.pb.XmlAttribute attribute = 4;
13953       case 4:
13954         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
13955           ptr -= 1;
13956           do {
13957             ptr += 1;
13958             ptr = ctx->ParseMessage(_internal_add_attribute(), ptr);
13959             CHK_(ptr);
13960             if (!ctx->DataAvailable(ptr)) break;
13961           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
13962         } else {
13963           goto handle_unusual;
13964         }
13965         continue;
13966       // repeated .aapt.pb.XmlNode child = 5;
13967       case 5:
13968         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
13969           ptr -= 1;
13970           do {
13971             ptr += 1;
13972             ptr = ctx->ParseMessage(_internal_add_child(), ptr);
13973             CHK_(ptr);
13974             if (!ctx->DataAvailable(ptr)) break;
13975           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
13976         } else {
13977           goto handle_unusual;
13978         }
13979         continue;
13980       default:
13981         goto handle_unusual;
13982     }  // switch
13983   handle_unusual:
13984     if ((tag == 0) || ((tag & 7) == 4)) {
13985       CHK_(ptr);
13986       ctx->SetLastTag(tag);
13987       goto message_done;
13988     }
13989     ptr = UnknownFieldParse(
13990         tag,
13991         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
13992         ptr, ctx);
13993     CHK_(ptr != nullptr);
13994   }  // while
13995 message_done:
13996   return ptr;
13997 failure:
13998   ptr = nullptr;
13999   goto message_done;
14000 #undef CHK_
14001 }
14002 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const14003 ::uint8_t* XmlElement::_InternalSerialize(
14004     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
14005   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.XmlElement)
14006   ::uint32_t cached_has_bits = 0;
14007   (void) cached_has_bits;
14008 
14009   // repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
14010   for (unsigned i = 0,
14011       n = static_cast<unsigned>(this->_internal_namespace_declaration_size()); i < n; i++) {
14012     const auto& repfield = this->_internal_namespace_declaration(i);
14013     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14014         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
14015   }
14016 
14017   // string namespace_uri = 2;
14018   if (!this->_internal_namespace_uri().empty()) {
14019     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14020       this->_internal_namespace_uri().data(), static_cast<int>(this->_internal_namespace_uri().length()),
14021       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14022       "aapt.pb.XmlElement.namespace_uri");
14023     target = stream->WriteStringMaybeAliased(
14024         2, this->_internal_namespace_uri(), target);
14025   }
14026 
14027   // string name = 3;
14028   if (!this->_internal_name().empty()) {
14029     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14030       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
14031       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14032       "aapt.pb.XmlElement.name");
14033     target = stream->WriteStringMaybeAliased(
14034         3, this->_internal_name(), target);
14035   }
14036 
14037   // repeated .aapt.pb.XmlAttribute attribute = 4;
14038   for (unsigned i = 0,
14039       n = static_cast<unsigned>(this->_internal_attribute_size()); i < n; i++) {
14040     const auto& repfield = this->_internal_attribute(i);
14041     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14042         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
14043   }
14044 
14045   // repeated .aapt.pb.XmlNode child = 5;
14046   for (unsigned i = 0,
14047       n = static_cast<unsigned>(this->_internal_child_size()); i < n; i++) {
14048     const auto& repfield = this->_internal_child(i);
14049     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14050         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
14051   }
14052 
14053   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
14054     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
14055         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
14056   }
14057   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.XmlElement)
14058   return target;
14059 }
14060 
ByteSizeLong() const14061 size_t XmlElement::ByteSizeLong() const {
14062 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.XmlElement)
14063   size_t total_size = 0;
14064 
14065   ::uint32_t cached_has_bits = 0;
14066   // Prevent compiler warnings about cached_has_bits being unused
14067   (void) cached_has_bits;
14068 
14069   // repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
14070   total_size += 1UL * this->_internal_namespace_declaration_size();
14071   for (const auto& msg : this->_impl_.namespace_declaration_) {
14072     total_size +=
14073       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
14074   }
14075 
14076   // repeated .aapt.pb.XmlAttribute attribute = 4;
14077   total_size += 1UL * this->_internal_attribute_size();
14078   for (const auto& msg : this->_impl_.attribute_) {
14079     total_size +=
14080       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
14081   }
14082 
14083   // repeated .aapt.pb.XmlNode child = 5;
14084   total_size += 1UL * this->_internal_child_size();
14085   for (const auto& msg : this->_impl_.child_) {
14086     total_size +=
14087       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
14088   }
14089 
14090   // string namespace_uri = 2;
14091   if (!this->_internal_namespace_uri().empty()) {
14092     total_size += 1 +
14093       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14094         this->_internal_namespace_uri());
14095   }
14096 
14097   // string name = 3;
14098   if (!this->_internal_name().empty()) {
14099     total_size += 1 +
14100       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14101         this->_internal_name());
14102   }
14103 
14104   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
14105 }
14106 
14107 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData XmlElement::_class_data_ = {
14108     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
14109     XmlElement::MergeImpl
14110 };
GetClassData() const14111 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*XmlElement::GetClassData() const { return &_class_data_; }
14112 
14113 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)14114 void XmlElement::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
14115   auto* const _this = static_cast<XmlElement*>(&to_msg);
14116   auto& from = static_cast<const XmlElement&>(from_msg);
14117   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.XmlElement)
14118   GOOGLE_DCHECK_NE(&from, _this);
14119   ::uint32_t cached_has_bits = 0;
14120   (void) cached_has_bits;
14121 
14122   _this->_impl_.namespace_declaration_.MergeFrom(from._impl_.namespace_declaration_);
14123   _this->_impl_.attribute_.MergeFrom(from._impl_.attribute_);
14124   _this->_impl_.child_.MergeFrom(from._impl_.child_);
14125   if (!from._internal_namespace_uri().empty()) {
14126     _this->_internal_set_namespace_uri(from._internal_namespace_uri());
14127   }
14128   if (!from._internal_name().empty()) {
14129     _this->_internal_set_name(from._internal_name());
14130   }
14131   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14132 }
14133 
CopyFrom(const XmlElement & from)14134 void XmlElement::CopyFrom(const XmlElement& from) {
14135 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.XmlElement)
14136   if (&from == this) return;
14137   Clear();
14138   MergeFrom(from);
14139 }
14140 
IsInitialized() const14141 bool XmlElement::IsInitialized() const {
14142   return true;
14143 }
14144 
InternalSwap(XmlElement * other)14145 void XmlElement::InternalSwap(XmlElement* other) {
14146   using std::swap;
14147   auto* lhs_arena = GetArenaForAllocation();
14148   auto* rhs_arena = other->GetArenaForAllocation();
14149   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
14150   _impl_.namespace_declaration_.InternalSwap(&other->_impl_.namespace_declaration_);
14151   _impl_.attribute_.InternalSwap(&other->_impl_.attribute_);
14152   _impl_.child_.InternalSwap(&other->_impl_.child_);
14153   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14154       &_impl_.namespace_uri_, lhs_arena,
14155       &other->_impl_.namespace_uri_, rhs_arena
14156   );
14157   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14158       &_impl_.name_, lhs_arena,
14159       &other->_impl_.name_, rhs_arena
14160   );
14161 }
14162 
GetMetadata() const14163 ::PROTOBUF_NAMESPACE_ID::Metadata XmlElement::GetMetadata() const {
14164   return ::_pbi::AssignDescriptors(
14165       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
14166       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[43]);
14167 }
14168 
14169 // ===================================================================
14170 
14171 class XmlNamespace::_Internal {
14172  public:
14173   static const ::aapt::pb::SourcePosition& source(const XmlNamespace* msg);
14174 };
14175 
14176 const ::aapt::pb::SourcePosition&
source(const XmlNamespace * msg)14177 XmlNamespace::_Internal::source(const XmlNamespace* msg) {
14178   return *msg->_impl_.source_;
14179 }
XmlNamespace(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)14180 XmlNamespace::XmlNamespace(::PROTOBUF_NAMESPACE_ID::Arena* arena,
14181                          bool is_message_owned)
14182   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
14183   SharedCtor(arena, is_message_owned);
14184   // @@protoc_insertion_point(arena_constructor:aapt.pb.XmlNamespace)
14185 }
XmlNamespace(const XmlNamespace & from)14186 XmlNamespace::XmlNamespace(const XmlNamespace& from)
14187   : ::PROTOBUF_NAMESPACE_ID::Message() {
14188   XmlNamespace* const _this = this; (void)_this;
14189   new (&_impl_) Impl_{
14190       decltype(_impl_.prefix_){}
14191     , decltype(_impl_.uri_){}
14192     , decltype(_impl_.source_){nullptr}
14193     , /*decltype(_impl_._cached_size_)*/{}};
14194 
14195   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14196   _impl_.prefix_.InitDefault();
14197   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14198     _impl_.prefix_.Set("", GetArenaForAllocation());
14199   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14200   if (!from._internal_prefix().empty()) {
14201     _this->_impl_.prefix_.Set(from._internal_prefix(),
14202       _this->GetArenaForAllocation());
14203   }
14204   _impl_.uri_.InitDefault();
14205   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14206     _impl_.uri_.Set("", GetArenaForAllocation());
14207   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14208   if (!from._internal_uri().empty()) {
14209     _this->_impl_.uri_.Set(from._internal_uri(),
14210       _this->GetArenaForAllocation());
14211   }
14212   if (from._internal_has_source()) {
14213     _this->_impl_.source_ = new ::aapt::pb::SourcePosition(*from._impl_.source_);
14214   }
14215   // @@protoc_insertion_point(copy_constructor:aapt.pb.XmlNamespace)
14216 }
14217 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)14218 inline void XmlNamespace::SharedCtor(
14219     ::_pb::Arena* arena, bool is_message_owned) {
14220   (void)arena;
14221   (void)is_message_owned;
14222   new (&_impl_) Impl_{
14223       decltype(_impl_.prefix_){}
14224     , decltype(_impl_.uri_){}
14225     , decltype(_impl_.source_){nullptr}
14226     , /*decltype(_impl_._cached_size_)*/{}
14227   };
14228   _impl_.prefix_.InitDefault();
14229   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14230     _impl_.prefix_.Set("", GetArenaForAllocation());
14231   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14232   _impl_.uri_.InitDefault();
14233   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14234     _impl_.uri_.Set("", GetArenaForAllocation());
14235   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14236 }
14237 
~XmlNamespace()14238 XmlNamespace::~XmlNamespace() {
14239   // @@protoc_insertion_point(destructor:aapt.pb.XmlNamespace)
14240   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
14241   (void)arena;
14242     return;
14243   }
14244   SharedDtor();
14245 }
14246 
SharedDtor()14247 inline void XmlNamespace::SharedDtor() {
14248   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
14249   _impl_.prefix_.Destroy();
14250   _impl_.uri_.Destroy();
14251   if (this != internal_default_instance()) delete _impl_.source_;
14252 }
14253 
SetCachedSize(int size) const14254 void XmlNamespace::SetCachedSize(int size) const {
14255   _impl_._cached_size_.Set(size);
14256 }
14257 
Clear()14258 void XmlNamespace::Clear() {
14259 // @@protoc_insertion_point(message_clear_start:aapt.pb.XmlNamespace)
14260   ::uint32_t cached_has_bits = 0;
14261   // Prevent compiler warnings about cached_has_bits being unused
14262   (void) cached_has_bits;
14263 
14264   _impl_.prefix_.ClearToEmpty();
14265   _impl_.uri_.ClearToEmpty();
14266   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
14267     delete _impl_.source_;
14268   }
14269   _impl_.source_ = nullptr;
14270   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
14271 }
14272 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)14273 const char* XmlNamespace::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
14274 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14275   while (!ctx->Done(&ptr)) {
14276     ::uint32_t tag;
14277     ptr = ::_pbi::ReadTag(ptr, &tag);
14278     switch (tag >> 3) {
14279       // string prefix = 1;
14280       case 1:
14281         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
14282           auto str = _internal_mutable_prefix();
14283           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
14284           CHK_(ptr);
14285           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlNamespace.prefix"));
14286         } else {
14287           goto handle_unusual;
14288         }
14289         continue;
14290       // string uri = 2;
14291       case 2:
14292         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
14293           auto str = _internal_mutable_uri();
14294           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
14295           CHK_(ptr);
14296           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlNamespace.uri"));
14297         } else {
14298           goto handle_unusual;
14299         }
14300         continue;
14301       // .aapt.pb.SourcePosition source = 3;
14302       case 3:
14303         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
14304           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
14305           CHK_(ptr);
14306         } else {
14307           goto handle_unusual;
14308         }
14309         continue;
14310       default:
14311         goto handle_unusual;
14312     }  // switch
14313   handle_unusual:
14314     if ((tag == 0) || ((tag & 7) == 4)) {
14315       CHK_(ptr);
14316       ctx->SetLastTag(tag);
14317       goto message_done;
14318     }
14319     ptr = UnknownFieldParse(
14320         tag,
14321         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
14322         ptr, ctx);
14323     CHK_(ptr != nullptr);
14324   }  // while
14325 message_done:
14326   return ptr;
14327 failure:
14328   ptr = nullptr;
14329   goto message_done;
14330 #undef CHK_
14331 }
14332 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const14333 ::uint8_t* XmlNamespace::_InternalSerialize(
14334     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
14335   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.XmlNamespace)
14336   ::uint32_t cached_has_bits = 0;
14337   (void) cached_has_bits;
14338 
14339   // string prefix = 1;
14340   if (!this->_internal_prefix().empty()) {
14341     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14342       this->_internal_prefix().data(), static_cast<int>(this->_internal_prefix().length()),
14343       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14344       "aapt.pb.XmlNamespace.prefix");
14345     target = stream->WriteStringMaybeAliased(
14346         1, this->_internal_prefix(), target);
14347   }
14348 
14349   // string uri = 2;
14350   if (!this->_internal_uri().empty()) {
14351     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14352       this->_internal_uri().data(), static_cast<int>(this->_internal_uri().length()),
14353       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14354       "aapt.pb.XmlNamespace.uri");
14355     target = stream->WriteStringMaybeAliased(
14356         2, this->_internal_uri(), target);
14357   }
14358 
14359   // .aapt.pb.SourcePosition source = 3;
14360   if (this->_internal_has_source()) {
14361     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14362       InternalWriteMessage(3, _Internal::source(this),
14363         _Internal::source(this).GetCachedSize(), target, stream);
14364   }
14365 
14366   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
14367     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
14368         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
14369   }
14370   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.XmlNamespace)
14371   return target;
14372 }
14373 
ByteSizeLong() const14374 size_t XmlNamespace::ByteSizeLong() const {
14375 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.XmlNamespace)
14376   size_t total_size = 0;
14377 
14378   ::uint32_t cached_has_bits = 0;
14379   // Prevent compiler warnings about cached_has_bits being unused
14380   (void) cached_has_bits;
14381 
14382   // string prefix = 1;
14383   if (!this->_internal_prefix().empty()) {
14384     total_size += 1 +
14385       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14386         this->_internal_prefix());
14387   }
14388 
14389   // string uri = 2;
14390   if (!this->_internal_uri().empty()) {
14391     total_size += 1 +
14392       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14393         this->_internal_uri());
14394   }
14395 
14396   // .aapt.pb.SourcePosition source = 3;
14397   if (this->_internal_has_source()) {
14398     total_size += 1 +
14399       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
14400         *_impl_.source_);
14401   }
14402 
14403   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
14404 }
14405 
14406 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData XmlNamespace::_class_data_ = {
14407     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
14408     XmlNamespace::MergeImpl
14409 };
GetClassData() const14410 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*XmlNamespace::GetClassData() const { return &_class_data_; }
14411 
14412 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)14413 void XmlNamespace::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
14414   auto* const _this = static_cast<XmlNamespace*>(&to_msg);
14415   auto& from = static_cast<const XmlNamespace&>(from_msg);
14416   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.XmlNamespace)
14417   GOOGLE_DCHECK_NE(&from, _this);
14418   ::uint32_t cached_has_bits = 0;
14419   (void) cached_has_bits;
14420 
14421   if (!from._internal_prefix().empty()) {
14422     _this->_internal_set_prefix(from._internal_prefix());
14423   }
14424   if (!from._internal_uri().empty()) {
14425     _this->_internal_set_uri(from._internal_uri());
14426   }
14427   if (from._internal_has_source()) {
14428     _this->_internal_mutable_source()->::aapt::pb::SourcePosition::MergeFrom(
14429         from._internal_source());
14430   }
14431   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14432 }
14433 
CopyFrom(const XmlNamespace & from)14434 void XmlNamespace::CopyFrom(const XmlNamespace& from) {
14435 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.XmlNamespace)
14436   if (&from == this) return;
14437   Clear();
14438   MergeFrom(from);
14439 }
14440 
IsInitialized() const14441 bool XmlNamespace::IsInitialized() const {
14442   return true;
14443 }
14444 
InternalSwap(XmlNamespace * other)14445 void XmlNamespace::InternalSwap(XmlNamespace* other) {
14446   using std::swap;
14447   auto* lhs_arena = GetArenaForAllocation();
14448   auto* rhs_arena = other->GetArenaForAllocation();
14449   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
14450   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14451       &_impl_.prefix_, lhs_arena,
14452       &other->_impl_.prefix_, rhs_arena
14453   );
14454   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14455       &_impl_.uri_, lhs_arena,
14456       &other->_impl_.uri_, rhs_arena
14457   );
14458   swap(_impl_.source_, other->_impl_.source_);
14459 }
14460 
GetMetadata() const14461 ::PROTOBUF_NAMESPACE_ID::Metadata XmlNamespace::GetMetadata() const {
14462   return ::_pbi::AssignDescriptors(
14463       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
14464       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[44]);
14465 }
14466 
14467 // ===================================================================
14468 
14469 class XmlAttribute::_Internal {
14470  public:
14471   static const ::aapt::pb::SourcePosition& source(const XmlAttribute* msg);
14472   static const ::aapt::pb::Item& compiled_item(const XmlAttribute* msg);
14473 };
14474 
14475 const ::aapt::pb::SourcePosition&
source(const XmlAttribute * msg)14476 XmlAttribute::_Internal::source(const XmlAttribute* msg) {
14477   return *msg->_impl_.source_;
14478 }
14479 const ::aapt::pb::Item&
compiled_item(const XmlAttribute * msg)14480 XmlAttribute::_Internal::compiled_item(const XmlAttribute* msg) {
14481   return *msg->_impl_.compiled_item_;
14482 }
XmlAttribute(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)14483 XmlAttribute::XmlAttribute(::PROTOBUF_NAMESPACE_ID::Arena* arena,
14484                          bool is_message_owned)
14485   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
14486   SharedCtor(arena, is_message_owned);
14487   // @@protoc_insertion_point(arena_constructor:aapt.pb.XmlAttribute)
14488 }
XmlAttribute(const XmlAttribute & from)14489 XmlAttribute::XmlAttribute(const XmlAttribute& from)
14490   : ::PROTOBUF_NAMESPACE_ID::Message() {
14491   XmlAttribute* const _this = this; (void)_this;
14492   new (&_impl_) Impl_{
14493       decltype(_impl_.namespace_uri_){}
14494     , decltype(_impl_.name_){}
14495     , decltype(_impl_.value_){}
14496     , decltype(_impl_.source_){nullptr}
14497     , decltype(_impl_.compiled_item_){nullptr}
14498     , decltype(_impl_.resource_id_){}
14499     , /*decltype(_impl_._cached_size_)*/{}};
14500 
14501   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14502   _impl_.namespace_uri_.InitDefault();
14503   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14504     _impl_.namespace_uri_.Set("", GetArenaForAllocation());
14505   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14506   if (!from._internal_namespace_uri().empty()) {
14507     _this->_impl_.namespace_uri_.Set(from._internal_namespace_uri(),
14508       _this->GetArenaForAllocation());
14509   }
14510   _impl_.name_.InitDefault();
14511   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14512     _impl_.name_.Set("", GetArenaForAllocation());
14513   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14514   if (!from._internal_name().empty()) {
14515     _this->_impl_.name_.Set(from._internal_name(),
14516       _this->GetArenaForAllocation());
14517   }
14518   _impl_.value_.InitDefault();
14519   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14520     _impl_.value_.Set("", GetArenaForAllocation());
14521   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14522   if (!from._internal_value().empty()) {
14523     _this->_impl_.value_.Set(from._internal_value(),
14524       _this->GetArenaForAllocation());
14525   }
14526   if (from._internal_has_source()) {
14527     _this->_impl_.source_ = new ::aapt::pb::SourcePosition(*from._impl_.source_);
14528   }
14529   if (from._internal_has_compiled_item()) {
14530     _this->_impl_.compiled_item_ = new ::aapt::pb::Item(*from._impl_.compiled_item_);
14531   }
14532   _this->_impl_.resource_id_ = from._impl_.resource_id_;
14533   // @@protoc_insertion_point(copy_constructor:aapt.pb.XmlAttribute)
14534 }
14535 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)14536 inline void XmlAttribute::SharedCtor(
14537     ::_pb::Arena* arena, bool is_message_owned) {
14538   (void)arena;
14539   (void)is_message_owned;
14540   new (&_impl_) Impl_{
14541       decltype(_impl_.namespace_uri_){}
14542     , decltype(_impl_.name_){}
14543     , decltype(_impl_.value_){}
14544     , decltype(_impl_.source_){nullptr}
14545     , decltype(_impl_.compiled_item_){nullptr}
14546     , decltype(_impl_.resource_id_){0u}
14547     , /*decltype(_impl_._cached_size_)*/{}
14548   };
14549   _impl_.namespace_uri_.InitDefault();
14550   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14551     _impl_.namespace_uri_.Set("", GetArenaForAllocation());
14552   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14553   _impl_.name_.InitDefault();
14554   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14555     _impl_.name_.Set("", GetArenaForAllocation());
14556   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14557   _impl_.value_.InitDefault();
14558   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14559     _impl_.value_.Set("", GetArenaForAllocation());
14560   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14561 }
14562 
~XmlAttribute()14563 XmlAttribute::~XmlAttribute() {
14564   // @@protoc_insertion_point(destructor:aapt.pb.XmlAttribute)
14565   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
14566   (void)arena;
14567     return;
14568   }
14569   SharedDtor();
14570 }
14571 
SharedDtor()14572 inline void XmlAttribute::SharedDtor() {
14573   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
14574   _impl_.namespace_uri_.Destroy();
14575   _impl_.name_.Destroy();
14576   _impl_.value_.Destroy();
14577   if (this != internal_default_instance()) delete _impl_.source_;
14578   if (this != internal_default_instance()) delete _impl_.compiled_item_;
14579 }
14580 
SetCachedSize(int size) const14581 void XmlAttribute::SetCachedSize(int size) const {
14582   _impl_._cached_size_.Set(size);
14583 }
14584 
Clear()14585 void XmlAttribute::Clear() {
14586 // @@protoc_insertion_point(message_clear_start:aapt.pb.XmlAttribute)
14587   ::uint32_t cached_has_bits = 0;
14588   // Prevent compiler warnings about cached_has_bits being unused
14589   (void) cached_has_bits;
14590 
14591   _impl_.namespace_uri_.ClearToEmpty();
14592   _impl_.name_.ClearToEmpty();
14593   _impl_.value_.ClearToEmpty();
14594   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
14595     delete _impl_.source_;
14596   }
14597   _impl_.source_ = nullptr;
14598   if (GetArenaForAllocation() == nullptr && _impl_.compiled_item_ != nullptr) {
14599     delete _impl_.compiled_item_;
14600   }
14601   _impl_.compiled_item_ = nullptr;
14602   _impl_.resource_id_ = 0u;
14603   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
14604 }
14605 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)14606 const char* XmlAttribute::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
14607 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
14608   while (!ctx->Done(&ptr)) {
14609     ::uint32_t tag;
14610     ptr = ::_pbi::ReadTag(ptr, &tag);
14611     switch (tag >> 3) {
14612       // string namespace_uri = 1;
14613       case 1:
14614         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
14615           auto str = _internal_mutable_namespace_uri();
14616           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
14617           CHK_(ptr);
14618           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlAttribute.namespace_uri"));
14619         } else {
14620           goto handle_unusual;
14621         }
14622         continue;
14623       // string name = 2;
14624       case 2:
14625         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
14626           auto str = _internal_mutable_name();
14627           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
14628           CHK_(ptr);
14629           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlAttribute.name"));
14630         } else {
14631           goto handle_unusual;
14632         }
14633         continue;
14634       // string value = 3;
14635       case 3:
14636         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
14637           auto str = _internal_mutable_value();
14638           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
14639           CHK_(ptr);
14640           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.XmlAttribute.value"));
14641         } else {
14642           goto handle_unusual;
14643         }
14644         continue;
14645       // .aapt.pb.SourcePosition source = 4;
14646       case 4:
14647         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
14648           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
14649           CHK_(ptr);
14650         } else {
14651           goto handle_unusual;
14652         }
14653         continue;
14654       // uint32 resource_id = 5;
14655       case 5:
14656         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
14657           _impl_.resource_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
14658           CHK_(ptr);
14659         } else {
14660           goto handle_unusual;
14661         }
14662         continue;
14663       // .aapt.pb.Item compiled_item = 6;
14664       case 6:
14665         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
14666           ptr = ctx->ParseMessage(_internal_mutable_compiled_item(), ptr);
14667           CHK_(ptr);
14668         } else {
14669           goto handle_unusual;
14670         }
14671         continue;
14672       default:
14673         goto handle_unusual;
14674     }  // switch
14675   handle_unusual:
14676     if ((tag == 0) || ((tag & 7) == 4)) {
14677       CHK_(ptr);
14678       ctx->SetLastTag(tag);
14679       goto message_done;
14680     }
14681     ptr = UnknownFieldParse(
14682         tag,
14683         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
14684         ptr, ctx);
14685     CHK_(ptr != nullptr);
14686   }  // while
14687 message_done:
14688   return ptr;
14689 failure:
14690   ptr = nullptr;
14691   goto message_done;
14692 #undef CHK_
14693 }
14694 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const14695 ::uint8_t* XmlAttribute::_InternalSerialize(
14696     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
14697   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.XmlAttribute)
14698   ::uint32_t cached_has_bits = 0;
14699   (void) cached_has_bits;
14700 
14701   // string namespace_uri = 1;
14702   if (!this->_internal_namespace_uri().empty()) {
14703     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14704       this->_internal_namespace_uri().data(), static_cast<int>(this->_internal_namespace_uri().length()),
14705       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14706       "aapt.pb.XmlAttribute.namespace_uri");
14707     target = stream->WriteStringMaybeAliased(
14708         1, this->_internal_namespace_uri(), target);
14709   }
14710 
14711   // string name = 2;
14712   if (!this->_internal_name().empty()) {
14713     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14714       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
14715       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14716       "aapt.pb.XmlAttribute.name");
14717     target = stream->WriteStringMaybeAliased(
14718         2, this->_internal_name(), target);
14719   }
14720 
14721   // string value = 3;
14722   if (!this->_internal_value().empty()) {
14723     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
14724       this->_internal_value().data(), static_cast<int>(this->_internal_value().length()),
14725       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
14726       "aapt.pb.XmlAttribute.value");
14727     target = stream->WriteStringMaybeAliased(
14728         3, this->_internal_value(), target);
14729   }
14730 
14731   // .aapt.pb.SourcePosition source = 4;
14732   if (this->_internal_has_source()) {
14733     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14734       InternalWriteMessage(4, _Internal::source(this),
14735         _Internal::source(this).GetCachedSize(), target, stream);
14736   }
14737 
14738   // uint32 resource_id = 5;
14739   if (this->_internal_resource_id() != 0) {
14740     target = stream->EnsureSpace(target);
14741     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_resource_id(), target);
14742   }
14743 
14744   // .aapt.pb.Item compiled_item = 6;
14745   if (this->_internal_has_compiled_item()) {
14746     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
14747       InternalWriteMessage(6, _Internal::compiled_item(this),
14748         _Internal::compiled_item(this).GetCachedSize(), target, stream);
14749   }
14750 
14751   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
14752     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
14753         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
14754   }
14755   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.XmlAttribute)
14756   return target;
14757 }
14758 
ByteSizeLong() const14759 size_t XmlAttribute::ByteSizeLong() const {
14760 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.XmlAttribute)
14761   size_t total_size = 0;
14762 
14763   ::uint32_t cached_has_bits = 0;
14764   // Prevent compiler warnings about cached_has_bits being unused
14765   (void) cached_has_bits;
14766 
14767   // string namespace_uri = 1;
14768   if (!this->_internal_namespace_uri().empty()) {
14769     total_size += 1 +
14770       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14771         this->_internal_namespace_uri());
14772   }
14773 
14774   // string name = 2;
14775   if (!this->_internal_name().empty()) {
14776     total_size += 1 +
14777       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14778         this->_internal_name());
14779   }
14780 
14781   // string value = 3;
14782   if (!this->_internal_value().empty()) {
14783     total_size += 1 +
14784       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
14785         this->_internal_value());
14786   }
14787 
14788   // .aapt.pb.SourcePosition source = 4;
14789   if (this->_internal_has_source()) {
14790     total_size += 1 +
14791       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
14792         *_impl_.source_);
14793   }
14794 
14795   // .aapt.pb.Item compiled_item = 6;
14796   if (this->_internal_has_compiled_item()) {
14797     total_size += 1 +
14798       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
14799         *_impl_.compiled_item_);
14800   }
14801 
14802   // uint32 resource_id = 5;
14803   if (this->_internal_resource_id() != 0) {
14804     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_resource_id());
14805   }
14806 
14807   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
14808 }
14809 
14810 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData XmlAttribute::_class_data_ = {
14811     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
14812     XmlAttribute::MergeImpl
14813 };
GetClassData() const14814 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*XmlAttribute::GetClassData() const { return &_class_data_; }
14815 
14816 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)14817 void XmlAttribute::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
14818   auto* const _this = static_cast<XmlAttribute*>(&to_msg);
14819   auto& from = static_cast<const XmlAttribute&>(from_msg);
14820   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.XmlAttribute)
14821   GOOGLE_DCHECK_NE(&from, _this);
14822   ::uint32_t cached_has_bits = 0;
14823   (void) cached_has_bits;
14824 
14825   if (!from._internal_namespace_uri().empty()) {
14826     _this->_internal_set_namespace_uri(from._internal_namespace_uri());
14827   }
14828   if (!from._internal_name().empty()) {
14829     _this->_internal_set_name(from._internal_name());
14830   }
14831   if (!from._internal_value().empty()) {
14832     _this->_internal_set_value(from._internal_value());
14833   }
14834   if (from._internal_has_source()) {
14835     _this->_internal_mutable_source()->::aapt::pb::SourcePosition::MergeFrom(
14836         from._internal_source());
14837   }
14838   if (from._internal_has_compiled_item()) {
14839     _this->_internal_mutable_compiled_item()->::aapt::pb::Item::MergeFrom(
14840         from._internal_compiled_item());
14841   }
14842   if (from._internal_resource_id() != 0) {
14843     _this->_internal_set_resource_id(from._internal_resource_id());
14844   }
14845   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14846 }
14847 
CopyFrom(const XmlAttribute & from)14848 void XmlAttribute::CopyFrom(const XmlAttribute& from) {
14849 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.XmlAttribute)
14850   if (&from == this) return;
14851   Clear();
14852   MergeFrom(from);
14853 }
14854 
IsInitialized() const14855 bool XmlAttribute::IsInitialized() const {
14856   return true;
14857 }
14858 
InternalSwap(XmlAttribute * other)14859 void XmlAttribute::InternalSwap(XmlAttribute* other) {
14860   using std::swap;
14861   auto* lhs_arena = GetArenaForAllocation();
14862   auto* rhs_arena = other->GetArenaForAllocation();
14863   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
14864   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14865       &_impl_.namespace_uri_, lhs_arena,
14866       &other->_impl_.namespace_uri_, rhs_arena
14867   );
14868   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14869       &_impl_.name_, lhs_arena,
14870       &other->_impl_.name_, rhs_arena
14871   );
14872   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
14873       &_impl_.value_, lhs_arena,
14874       &other->_impl_.value_, rhs_arena
14875   );
14876   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
14877       PROTOBUF_FIELD_OFFSET(XmlAttribute, _impl_.resource_id_)
14878       + sizeof(XmlAttribute::_impl_.resource_id_)  // NOLINT
14879       - PROTOBUF_FIELD_OFFSET(XmlAttribute, _impl_.source_)>(
14880           reinterpret_cast<char*>(&_impl_.source_),
14881           reinterpret_cast<char*>(&other->_impl_.source_));
14882 }
14883 
GetMetadata() const14884 ::PROTOBUF_NAMESPACE_ID::Metadata XmlAttribute::GetMetadata() const {
14885   return ::_pbi::AssignDescriptors(
14886       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
14887       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[45]);
14888 }
14889 
14890 // ===================================================================
14891 
14892 class MacroBody::_Internal {
14893  public:
14894   static const ::aapt::pb::StyleString& style_string(const MacroBody* msg);
14895   static const ::aapt::pb::SourcePosition& source(const MacroBody* msg);
14896 };
14897 
14898 const ::aapt::pb::StyleString&
style_string(const MacroBody * msg)14899 MacroBody::_Internal::style_string(const MacroBody* msg) {
14900   return *msg->_impl_.style_string_;
14901 }
14902 const ::aapt::pb::SourcePosition&
source(const MacroBody * msg)14903 MacroBody::_Internal::source(const MacroBody* msg) {
14904   return *msg->_impl_.source_;
14905 }
MacroBody(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)14906 MacroBody::MacroBody(::PROTOBUF_NAMESPACE_ID::Arena* arena,
14907                          bool is_message_owned)
14908   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
14909   SharedCtor(arena, is_message_owned);
14910   // @@protoc_insertion_point(arena_constructor:aapt.pb.MacroBody)
14911 }
MacroBody(const MacroBody & from)14912 MacroBody::MacroBody(const MacroBody& from)
14913   : ::PROTOBUF_NAMESPACE_ID::Message() {
14914   MacroBody* const _this = this; (void)_this;
14915   new (&_impl_) Impl_{
14916       decltype(_impl_.untranslatable_sections_){from._impl_.untranslatable_sections_}
14917     , decltype(_impl_.namespace_stack_){from._impl_.namespace_stack_}
14918     , decltype(_impl_.raw_string_){}
14919     , decltype(_impl_.style_string_){nullptr}
14920     , decltype(_impl_.source_){nullptr}
14921     , /*decltype(_impl_._cached_size_)*/{}};
14922 
14923   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
14924   _impl_.raw_string_.InitDefault();
14925   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14926     _impl_.raw_string_.Set("", GetArenaForAllocation());
14927   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14928   if (!from._internal_raw_string().empty()) {
14929     _this->_impl_.raw_string_.Set(from._internal_raw_string(),
14930       _this->GetArenaForAllocation());
14931   }
14932   if (from._internal_has_style_string()) {
14933     _this->_impl_.style_string_ = new ::aapt::pb::StyleString(*from._impl_.style_string_);
14934   }
14935   if (from._internal_has_source()) {
14936     _this->_impl_.source_ = new ::aapt::pb::SourcePosition(*from._impl_.source_);
14937   }
14938   // @@protoc_insertion_point(copy_constructor:aapt.pb.MacroBody)
14939 }
14940 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)14941 inline void MacroBody::SharedCtor(
14942     ::_pb::Arena* arena, bool is_message_owned) {
14943   (void)arena;
14944   (void)is_message_owned;
14945   new (&_impl_) Impl_{
14946       decltype(_impl_.untranslatable_sections_){arena}
14947     , decltype(_impl_.namespace_stack_){arena}
14948     , decltype(_impl_.raw_string_){}
14949     , decltype(_impl_.style_string_){nullptr}
14950     , decltype(_impl_.source_){nullptr}
14951     , /*decltype(_impl_._cached_size_)*/{}
14952   };
14953   _impl_.raw_string_.InitDefault();
14954   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
14955     _impl_.raw_string_.Set("", GetArenaForAllocation());
14956   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
14957 }
14958 
~MacroBody()14959 MacroBody::~MacroBody() {
14960   // @@protoc_insertion_point(destructor:aapt.pb.MacroBody)
14961   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
14962   (void)arena;
14963     return;
14964   }
14965   SharedDtor();
14966 }
14967 
SharedDtor()14968 inline void MacroBody::SharedDtor() {
14969   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
14970   _impl_.untranslatable_sections_.~RepeatedPtrField();
14971   _impl_.namespace_stack_.~RepeatedPtrField();
14972   _impl_.raw_string_.Destroy();
14973   if (this != internal_default_instance()) delete _impl_.style_string_;
14974   if (this != internal_default_instance()) delete _impl_.source_;
14975 }
14976 
SetCachedSize(int size) const14977 void MacroBody::SetCachedSize(int size) const {
14978   _impl_._cached_size_.Set(size);
14979 }
14980 
Clear()14981 void MacroBody::Clear() {
14982 // @@protoc_insertion_point(message_clear_start:aapt.pb.MacroBody)
14983   ::uint32_t cached_has_bits = 0;
14984   // Prevent compiler warnings about cached_has_bits being unused
14985   (void) cached_has_bits;
14986 
14987   _impl_.untranslatable_sections_.Clear();
14988   _impl_.namespace_stack_.Clear();
14989   _impl_.raw_string_.ClearToEmpty();
14990   if (GetArenaForAllocation() == nullptr && _impl_.style_string_ != nullptr) {
14991     delete _impl_.style_string_;
14992   }
14993   _impl_.style_string_ = nullptr;
14994   if (GetArenaForAllocation() == nullptr && _impl_.source_ != nullptr) {
14995     delete _impl_.source_;
14996   }
14997   _impl_.source_ = nullptr;
14998   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
14999 }
15000 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)15001 const char* MacroBody::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
15002 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15003   while (!ctx->Done(&ptr)) {
15004     ::uint32_t tag;
15005     ptr = ::_pbi::ReadTag(ptr, &tag);
15006     switch (tag >> 3) {
15007       // string raw_string = 1;
15008       case 1:
15009         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
15010           auto str = _internal_mutable_raw_string();
15011           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
15012           CHK_(ptr);
15013           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.MacroBody.raw_string"));
15014         } else {
15015           goto handle_unusual;
15016         }
15017         continue;
15018       // .aapt.pb.StyleString style_string = 2;
15019       case 2:
15020         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
15021           ptr = ctx->ParseMessage(_internal_mutable_style_string(), ptr);
15022           CHK_(ptr);
15023         } else {
15024           goto handle_unusual;
15025         }
15026         continue;
15027       // repeated .aapt.pb.UntranslatableSection untranslatable_sections = 3;
15028       case 3:
15029         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
15030           ptr -= 1;
15031           do {
15032             ptr += 1;
15033             ptr = ctx->ParseMessage(_internal_add_untranslatable_sections(), ptr);
15034             CHK_(ptr);
15035             if (!ctx->DataAvailable(ptr)) break;
15036           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
15037         } else {
15038           goto handle_unusual;
15039         }
15040         continue;
15041       // repeated .aapt.pb.NamespaceAlias namespace_stack = 4;
15042       case 4:
15043         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
15044           ptr -= 1;
15045           do {
15046             ptr += 1;
15047             ptr = ctx->ParseMessage(_internal_add_namespace_stack(), ptr);
15048             CHK_(ptr);
15049             if (!ctx->DataAvailable(ptr)) break;
15050           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
15051         } else {
15052           goto handle_unusual;
15053         }
15054         continue;
15055       // .aapt.pb.SourcePosition source = 5;
15056       case 5:
15057         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
15058           ptr = ctx->ParseMessage(_internal_mutable_source(), ptr);
15059           CHK_(ptr);
15060         } else {
15061           goto handle_unusual;
15062         }
15063         continue;
15064       default:
15065         goto handle_unusual;
15066     }  // switch
15067   handle_unusual:
15068     if ((tag == 0) || ((tag & 7) == 4)) {
15069       CHK_(ptr);
15070       ctx->SetLastTag(tag);
15071       goto message_done;
15072     }
15073     ptr = UnknownFieldParse(
15074         tag,
15075         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
15076         ptr, ctx);
15077     CHK_(ptr != nullptr);
15078   }  // while
15079 message_done:
15080   return ptr;
15081 failure:
15082   ptr = nullptr;
15083   goto message_done;
15084 #undef CHK_
15085 }
15086 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const15087 ::uint8_t* MacroBody::_InternalSerialize(
15088     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
15089   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.MacroBody)
15090   ::uint32_t cached_has_bits = 0;
15091   (void) cached_has_bits;
15092 
15093   // string raw_string = 1;
15094   if (!this->_internal_raw_string().empty()) {
15095     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
15096       this->_internal_raw_string().data(), static_cast<int>(this->_internal_raw_string().length()),
15097       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
15098       "aapt.pb.MacroBody.raw_string");
15099     target = stream->WriteStringMaybeAliased(
15100         1, this->_internal_raw_string(), target);
15101   }
15102 
15103   // .aapt.pb.StyleString style_string = 2;
15104   if (this->_internal_has_style_string()) {
15105     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15106       InternalWriteMessage(2, _Internal::style_string(this),
15107         _Internal::style_string(this).GetCachedSize(), target, stream);
15108   }
15109 
15110   // repeated .aapt.pb.UntranslatableSection untranslatable_sections = 3;
15111   for (unsigned i = 0,
15112       n = static_cast<unsigned>(this->_internal_untranslatable_sections_size()); i < n; i++) {
15113     const auto& repfield = this->_internal_untranslatable_sections(i);
15114     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15115         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
15116   }
15117 
15118   // repeated .aapt.pb.NamespaceAlias namespace_stack = 4;
15119   for (unsigned i = 0,
15120       n = static_cast<unsigned>(this->_internal_namespace_stack_size()); i < n; i++) {
15121     const auto& repfield = this->_internal_namespace_stack(i);
15122     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15123         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
15124   }
15125 
15126   // .aapt.pb.SourcePosition source = 5;
15127   if (this->_internal_has_source()) {
15128     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15129       InternalWriteMessage(5, _Internal::source(this),
15130         _Internal::source(this).GetCachedSize(), target, stream);
15131   }
15132 
15133   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
15134     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
15135         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
15136   }
15137   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.MacroBody)
15138   return target;
15139 }
15140 
ByteSizeLong() const15141 size_t MacroBody::ByteSizeLong() const {
15142 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.MacroBody)
15143   size_t total_size = 0;
15144 
15145   ::uint32_t cached_has_bits = 0;
15146   // Prevent compiler warnings about cached_has_bits being unused
15147   (void) cached_has_bits;
15148 
15149   // repeated .aapt.pb.UntranslatableSection untranslatable_sections = 3;
15150   total_size += 1UL * this->_internal_untranslatable_sections_size();
15151   for (const auto& msg : this->_impl_.untranslatable_sections_) {
15152     total_size +=
15153       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
15154   }
15155 
15156   // repeated .aapt.pb.NamespaceAlias namespace_stack = 4;
15157   total_size += 1UL * this->_internal_namespace_stack_size();
15158   for (const auto& msg : this->_impl_.namespace_stack_) {
15159     total_size +=
15160       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
15161   }
15162 
15163   // string raw_string = 1;
15164   if (!this->_internal_raw_string().empty()) {
15165     total_size += 1 +
15166       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
15167         this->_internal_raw_string());
15168   }
15169 
15170   // .aapt.pb.StyleString style_string = 2;
15171   if (this->_internal_has_style_string()) {
15172     total_size += 1 +
15173       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
15174         *_impl_.style_string_);
15175   }
15176 
15177   // .aapt.pb.SourcePosition source = 5;
15178   if (this->_internal_has_source()) {
15179     total_size += 1 +
15180       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
15181         *_impl_.source_);
15182   }
15183 
15184   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
15185 }
15186 
15187 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MacroBody::_class_data_ = {
15188     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
15189     MacroBody::MergeImpl
15190 };
GetClassData() const15191 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MacroBody::GetClassData() const { return &_class_data_; }
15192 
15193 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)15194 void MacroBody::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
15195   auto* const _this = static_cast<MacroBody*>(&to_msg);
15196   auto& from = static_cast<const MacroBody&>(from_msg);
15197   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.MacroBody)
15198   GOOGLE_DCHECK_NE(&from, _this);
15199   ::uint32_t cached_has_bits = 0;
15200   (void) cached_has_bits;
15201 
15202   _this->_impl_.untranslatable_sections_.MergeFrom(from._impl_.untranslatable_sections_);
15203   _this->_impl_.namespace_stack_.MergeFrom(from._impl_.namespace_stack_);
15204   if (!from._internal_raw_string().empty()) {
15205     _this->_internal_set_raw_string(from._internal_raw_string());
15206   }
15207   if (from._internal_has_style_string()) {
15208     _this->_internal_mutable_style_string()->::aapt::pb::StyleString::MergeFrom(
15209         from._internal_style_string());
15210   }
15211   if (from._internal_has_source()) {
15212     _this->_internal_mutable_source()->::aapt::pb::SourcePosition::MergeFrom(
15213         from._internal_source());
15214   }
15215   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15216 }
15217 
CopyFrom(const MacroBody & from)15218 void MacroBody::CopyFrom(const MacroBody& from) {
15219 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.MacroBody)
15220   if (&from == this) return;
15221   Clear();
15222   MergeFrom(from);
15223 }
15224 
IsInitialized() const15225 bool MacroBody::IsInitialized() const {
15226   return true;
15227 }
15228 
InternalSwap(MacroBody * other)15229 void MacroBody::InternalSwap(MacroBody* other) {
15230   using std::swap;
15231   auto* lhs_arena = GetArenaForAllocation();
15232   auto* rhs_arena = other->GetArenaForAllocation();
15233   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
15234   _impl_.untranslatable_sections_.InternalSwap(&other->_impl_.untranslatable_sections_);
15235   _impl_.namespace_stack_.InternalSwap(&other->_impl_.namespace_stack_);
15236   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
15237       &_impl_.raw_string_, lhs_arena,
15238       &other->_impl_.raw_string_, rhs_arena
15239   );
15240   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
15241       PROTOBUF_FIELD_OFFSET(MacroBody, _impl_.source_)
15242       + sizeof(MacroBody::_impl_.source_)  // NOLINT
15243       - PROTOBUF_FIELD_OFFSET(MacroBody, _impl_.style_string_)>(
15244           reinterpret_cast<char*>(&_impl_.style_string_),
15245           reinterpret_cast<char*>(&other->_impl_.style_string_));
15246 }
15247 
GetMetadata() const15248 ::PROTOBUF_NAMESPACE_ID::Metadata MacroBody::GetMetadata() const {
15249   return ::_pbi::AssignDescriptors(
15250       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
15251       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[46]);
15252 }
15253 
15254 // ===================================================================
15255 
15256 class NamespaceAlias::_Internal {
15257  public:
15258 };
15259 
NamespaceAlias(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)15260 NamespaceAlias::NamespaceAlias(::PROTOBUF_NAMESPACE_ID::Arena* arena,
15261                          bool is_message_owned)
15262   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
15263   SharedCtor(arena, is_message_owned);
15264   // @@protoc_insertion_point(arena_constructor:aapt.pb.NamespaceAlias)
15265 }
NamespaceAlias(const NamespaceAlias & from)15266 NamespaceAlias::NamespaceAlias(const NamespaceAlias& from)
15267   : ::PROTOBUF_NAMESPACE_ID::Message() {
15268   NamespaceAlias* const _this = this; (void)_this;
15269   new (&_impl_) Impl_{
15270       decltype(_impl_.prefix_){}
15271     , decltype(_impl_.package_name_){}
15272     , decltype(_impl_.is_private_){}
15273     , /*decltype(_impl_._cached_size_)*/{}};
15274 
15275   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15276   _impl_.prefix_.InitDefault();
15277   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15278     _impl_.prefix_.Set("", GetArenaForAllocation());
15279   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15280   if (!from._internal_prefix().empty()) {
15281     _this->_impl_.prefix_.Set(from._internal_prefix(),
15282       _this->GetArenaForAllocation());
15283   }
15284   _impl_.package_name_.InitDefault();
15285   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15286     _impl_.package_name_.Set("", GetArenaForAllocation());
15287   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15288   if (!from._internal_package_name().empty()) {
15289     _this->_impl_.package_name_.Set(from._internal_package_name(),
15290       _this->GetArenaForAllocation());
15291   }
15292   _this->_impl_.is_private_ = from._impl_.is_private_;
15293   // @@protoc_insertion_point(copy_constructor:aapt.pb.NamespaceAlias)
15294 }
15295 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)15296 inline void NamespaceAlias::SharedCtor(
15297     ::_pb::Arena* arena, bool is_message_owned) {
15298   (void)arena;
15299   (void)is_message_owned;
15300   new (&_impl_) Impl_{
15301       decltype(_impl_.prefix_){}
15302     , decltype(_impl_.package_name_){}
15303     , decltype(_impl_.is_private_){false}
15304     , /*decltype(_impl_._cached_size_)*/{}
15305   };
15306   _impl_.prefix_.InitDefault();
15307   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15308     _impl_.prefix_.Set("", GetArenaForAllocation());
15309   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15310   _impl_.package_name_.InitDefault();
15311   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15312     _impl_.package_name_.Set("", GetArenaForAllocation());
15313   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15314 }
15315 
~NamespaceAlias()15316 NamespaceAlias::~NamespaceAlias() {
15317   // @@protoc_insertion_point(destructor:aapt.pb.NamespaceAlias)
15318   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
15319   (void)arena;
15320     return;
15321   }
15322   SharedDtor();
15323 }
15324 
SharedDtor()15325 inline void NamespaceAlias::SharedDtor() {
15326   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
15327   _impl_.prefix_.Destroy();
15328   _impl_.package_name_.Destroy();
15329 }
15330 
SetCachedSize(int size) const15331 void NamespaceAlias::SetCachedSize(int size) const {
15332   _impl_._cached_size_.Set(size);
15333 }
15334 
Clear()15335 void NamespaceAlias::Clear() {
15336 // @@protoc_insertion_point(message_clear_start:aapt.pb.NamespaceAlias)
15337   ::uint32_t cached_has_bits = 0;
15338   // Prevent compiler warnings about cached_has_bits being unused
15339   (void) cached_has_bits;
15340 
15341   _impl_.prefix_.ClearToEmpty();
15342   _impl_.package_name_.ClearToEmpty();
15343   _impl_.is_private_ = false;
15344   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
15345 }
15346 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)15347 const char* NamespaceAlias::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
15348 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15349   while (!ctx->Done(&ptr)) {
15350     ::uint32_t tag;
15351     ptr = ::_pbi::ReadTag(ptr, &tag);
15352     switch (tag >> 3) {
15353       // string prefix = 1;
15354       case 1:
15355         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
15356           auto str = _internal_mutable_prefix();
15357           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
15358           CHK_(ptr);
15359           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.NamespaceAlias.prefix"));
15360         } else {
15361           goto handle_unusual;
15362         }
15363         continue;
15364       // string package_name = 2;
15365       case 2:
15366         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
15367           auto str = _internal_mutable_package_name();
15368           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
15369           CHK_(ptr);
15370           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.NamespaceAlias.package_name"));
15371         } else {
15372           goto handle_unusual;
15373         }
15374         continue;
15375       // bool is_private = 3;
15376       case 3:
15377         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
15378           _impl_.is_private_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
15379           CHK_(ptr);
15380         } else {
15381           goto handle_unusual;
15382         }
15383         continue;
15384       default:
15385         goto handle_unusual;
15386     }  // switch
15387   handle_unusual:
15388     if ((tag == 0) || ((tag & 7) == 4)) {
15389       CHK_(ptr);
15390       ctx->SetLastTag(tag);
15391       goto message_done;
15392     }
15393     ptr = UnknownFieldParse(
15394         tag,
15395         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
15396         ptr, ctx);
15397     CHK_(ptr != nullptr);
15398   }  // while
15399 message_done:
15400   return ptr;
15401 failure:
15402   ptr = nullptr;
15403   goto message_done;
15404 #undef CHK_
15405 }
15406 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const15407 ::uint8_t* NamespaceAlias::_InternalSerialize(
15408     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
15409   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.NamespaceAlias)
15410   ::uint32_t cached_has_bits = 0;
15411   (void) cached_has_bits;
15412 
15413   // string prefix = 1;
15414   if (!this->_internal_prefix().empty()) {
15415     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
15416       this->_internal_prefix().data(), static_cast<int>(this->_internal_prefix().length()),
15417       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
15418       "aapt.pb.NamespaceAlias.prefix");
15419     target = stream->WriteStringMaybeAliased(
15420         1, this->_internal_prefix(), target);
15421   }
15422 
15423   // string package_name = 2;
15424   if (!this->_internal_package_name().empty()) {
15425     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
15426       this->_internal_package_name().data(), static_cast<int>(this->_internal_package_name().length()),
15427       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
15428       "aapt.pb.NamespaceAlias.package_name");
15429     target = stream->WriteStringMaybeAliased(
15430         2, this->_internal_package_name(), target);
15431   }
15432 
15433   // bool is_private = 3;
15434   if (this->_internal_is_private() != 0) {
15435     target = stream->EnsureSpace(target);
15436     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_private(), target);
15437   }
15438 
15439   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
15440     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
15441         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
15442   }
15443   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.NamespaceAlias)
15444   return target;
15445 }
15446 
ByteSizeLong() const15447 size_t NamespaceAlias::ByteSizeLong() const {
15448 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.NamespaceAlias)
15449   size_t total_size = 0;
15450 
15451   ::uint32_t cached_has_bits = 0;
15452   // Prevent compiler warnings about cached_has_bits being unused
15453   (void) cached_has_bits;
15454 
15455   // string prefix = 1;
15456   if (!this->_internal_prefix().empty()) {
15457     total_size += 1 +
15458       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
15459         this->_internal_prefix());
15460   }
15461 
15462   // string package_name = 2;
15463   if (!this->_internal_package_name().empty()) {
15464     total_size += 1 +
15465       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
15466         this->_internal_package_name());
15467   }
15468 
15469   // bool is_private = 3;
15470   if (this->_internal_is_private() != 0) {
15471     total_size += 1 + 1;
15472   }
15473 
15474   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
15475 }
15476 
15477 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NamespaceAlias::_class_data_ = {
15478     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
15479     NamespaceAlias::MergeImpl
15480 };
GetClassData() const15481 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NamespaceAlias::GetClassData() const { return &_class_data_; }
15482 
15483 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)15484 void NamespaceAlias::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
15485   auto* const _this = static_cast<NamespaceAlias*>(&to_msg);
15486   auto& from = static_cast<const NamespaceAlias&>(from_msg);
15487   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.NamespaceAlias)
15488   GOOGLE_DCHECK_NE(&from, _this);
15489   ::uint32_t cached_has_bits = 0;
15490   (void) cached_has_bits;
15491 
15492   if (!from._internal_prefix().empty()) {
15493     _this->_internal_set_prefix(from._internal_prefix());
15494   }
15495   if (!from._internal_package_name().empty()) {
15496     _this->_internal_set_package_name(from._internal_package_name());
15497   }
15498   if (from._internal_is_private() != 0) {
15499     _this->_internal_set_is_private(from._internal_is_private());
15500   }
15501   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15502 }
15503 
CopyFrom(const NamespaceAlias & from)15504 void NamespaceAlias::CopyFrom(const NamespaceAlias& from) {
15505 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.NamespaceAlias)
15506   if (&from == this) return;
15507   Clear();
15508   MergeFrom(from);
15509 }
15510 
IsInitialized() const15511 bool NamespaceAlias::IsInitialized() const {
15512   return true;
15513 }
15514 
InternalSwap(NamespaceAlias * other)15515 void NamespaceAlias::InternalSwap(NamespaceAlias* other) {
15516   using std::swap;
15517   auto* lhs_arena = GetArenaForAllocation();
15518   auto* rhs_arena = other->GetArenaForAllocation();
15519   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
15520   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
15521       &_impl_.prefix_, lhs_arena,
15522       &other->_impl_.prefix_, rhs_arena
15523   );
15524   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
15525       &_impl_.package_name_, lhs_arena,
15526       &other->_impl_.package_name_, rhs_arena
15527   );
15528   swap(_impl_.is_private_, other->_impl_.is_private_);
15529 }
15530 
GetMetadata() const15531 ::PROTOBUF_NAMESPACE_ID::Metadata NamespaceAlias::GetMetadata() const {
15532   return ::_pbi::AssignDescriptors(
15533       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
15534       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[47]);
15535 }
15536 
15537 // ===================================================================
15538 
15539 class StyleString_Span::_Internal {
15540  public:
15541 };
15542 
StyleString_Span(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)15543 StyleString_Span::StyleString_Span(::PROTOBUF_NAMESPACE_ID::Arena* arena,
15544                          bool is_message_owned)
15545   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
15546   SharedCtor(arena, is_message_owned);
15547   // @@protoc_insertion_point(arena_constructor:aapt.pb.StyleString.Span)
15548 }
StyleString_Span(const StyleString_Span & from)15549 StyleString_Span::StyleString_Span(const StyleString_Span& from)
15550   : ::PROTOBUF_NAMESPACE_ID::Message() {
15551   StyleString_Span* const _this = this; (void)_this;
15552   new (&_impl_) Impl_{
15553       decltype(_impl_.name_){}
15554     , decltype(_impl_.start_index_){}
15555     , decltype(_impl_.end_index_){}
15556     , /*decltype(_impl_._cached_size_)*/{}};
15557 
15558   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15559   _impl_.name_.InitDefault();
15560   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15561     _impl_.name_.Set("", GetArenaForAllocation());
15562   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15563   if (!from._internal_name().empty()) {
15564     _this->_impl_.name_.Set(from._internal_name(),
15565       _this->GetArenaForAllocation());
15566   }
15567   ::memcpy(&_impl_.start_index_, &from._impl_.start_index_,
15568     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.end_index_) -
15569     reinterpret_cast<char*>(&_impl_.start_index_)) + sizeof(_impl_.end_index_));
15570   // @@protoc_insertion_point(copy_constructor:aapt.pb.StyleString.Span)
15571 }
15572 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)15573 inline void StyleString_Span::SharedCtor(
15574     ::_pb::Arena* arena, bool is_message_owned) {
15575   (void)arena;
15576   (void)is_message_owned;
15577   new (&_impl_) Impl_{
15578       decltype(_impl_.name_){}
15579     , decltype(_impl_.start_index_){0u}
15580     , decltype(_impl_.end_index_){0u}
15581     , /*decltype(_impl_._cached_size_)*/{}
15582   };
15583   _impl_.name_.InitDefault();
15584   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15585     _impl_.name_.Set("", GetArenaForAllocation());
15586   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15587 }
15588 
~StyleString_Span()15589 StyleString_Span::~StyleString_Span() {
15590   // @@protoc_insertion_point(destructor:aapt.pb.StyleString.Span)
15591   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
15592   (void)arena;
15593     return;
15594   }
15595   SharedDtor();
15596 }
15597 
SharedDtor()15598 inline void StyleString_Span::SharedDtor() {
15599   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
15600   _impl_.name_.Destroy();
15601 }
15602 
SetCachedSize(int size) const15603 void StyleString_Span::SetCachedSize(int size) const {
15604   _impl_._cached_size_.Set(size);
15605 }
15606 
Clear()15607 void StyleString_Span::Clear() {
15608 // @@protoc_insertion_point(message_clear_start:aapt.pb.StyleString.Span)
15609   ::uint32_t cached_has_bits = 0;
15610   // Prevent compiler warnings about cached_has_bits being unused
15611   (void) cached_has_bits;
15612 
15613   _impl_.name_.ClearToEmpty();
15614   ::memset(&_impl_.start_index_, 0, static_cast<size_t>(
15615       reinterpret_cast<char*>(&_impl_.end_index_) -
15616       reinterpret_cast<char*>(&_impl_.start_index_)) + sizeof(_impl_.end_index_));
15617   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
15618 }
15619 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)15620 const char* StyleString_Span::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
15621 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15622   while (!ctx->Done(&ptr)) {
15623     ::uint32_t tag;
15624     ptr = ::_pbi::ReadTag(ptr, &tag);
15625     switch (tag >> 3) {
15626       // string name = 1;
15627       case 1:
15628         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
15629           auto str = _internal_mutable_name();
15630           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
15631           CHK_(ptr);
15632           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.StyleString.Span.name"));
15633         } else {
15634           goto handle_unusual;
15635         }
15636         continue;
15637       // uint32 start_index = 2;
15638       case 2:
15639         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
15640           _impl_.start_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
15641           CHK_(ptr);
15642         } else {
15643           goto handle_unusual;
15644         }
15645         continue;
15646       // uint32 end_index = 3;
15647       case 3:
15648         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
15649           _impl_.end_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
15650           CHK_(ptr);
15651         } else {
15652           goto handle_unusual;
15653         }
15654         continue;
15655       default:
15656         goto handle_unusual;
15657     }  // switch
15658   handle_unusual:
15659     if ((tag == 0) || ((tag & 7) == 4)) {
15660       CHK_(ptr);
15661       ctx->SetLastTag(tag);
15662       goto message_done;
15663     }
15664     ptr = UnknownFieldParse(
15665         tag,
15666         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
15667         ptr, ctx);
15668     CHK_(ptr != nullptr);
15669   }  // while
15670 message_done:
15671   return ptr;
15672 failure:
15673   ptr = nullptr;
15674   goto message_done;
15675 #undef CHK_
15676 }
15677 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const15678 ::uint8_t* StyleString_Span::_InternalSerialize(
15679     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
15680   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StyleString.Span)
15681   ::uint32_t cached_has_bits = 0;
15682   (void) cached_has_bits;
15683 
15684   // string name = 1;
15685   if (!this->_internal_name().empty()) {
15686     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
15687       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
15688       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
15689       "aapt.pb.StyleString.Span.name");
15690     target = stream->WriteStringMaybeAliased(
15691         1, this->_internal_name(), target);
15692   }
15693 
15694   // uint32 start_index = 2;
15695   if (this->_internal_start_index() != 0) {
15696     target = stream->EnsureSpace(target);
15697     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_start_index(), target);
15698   }
15699 
15700   // uint32 end_index = 3;
15701   if (this->_internal_end_index() != 0) {
15702     target = stream->EnsureSpace(target);
15703     target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_end_index(), target);
15704   }
15705 
15706   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
15707     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
15708         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
15709   }
15710   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StyleString.Span)
15711   return target;
15712 }
15713 
ByteSizeLong() const15714 size_t StyleString_Span::ByteSizeLong() const {
15715 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StyleString.Span)
15716   size_t total_size = 0;
15717 
15718   ::uint32_t cached_has_bits = 0;
15719   // Prevent compiler warnings about cached_has_bits being unused
15720   (void) cached_has_bits;
15721 
15722   // string name = 1;
15723   if (!this->_internal_name().empty()) {
15724     total_size += 1 +
15725       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
15726         this->_internal_name());
15727   }
15728 
15729   // uint32 start_index = 2;
15730   if (this->_internal_start_index() != 0) {
15731     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_start_index());
15732   }
15733 
15734   // uint32 end_index = 3;
15735   if (this->_internal_end_index() != 0) {
15736     total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_end_index());
15737   }
15738 
15739   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
15740 }
15741 
15742 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StyleString_Span::_class_data_ = {
15743     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
15744     StyleString_Span::MergeImpl
15745 };
GetClassData() const15746 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StyleString_Span::GetClassData() const { return &_class_data_; }
15747 
15748 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)15749 void StyleString_Span::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
15750   auto* const _this = static_cast<StyleString_Span*>(&to_msg);
15751   auto& from = static_cast<const StyleString_Span&>(from_msg);
15752   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StyleString.Span)
15753   GOOGLE_DCHECK_NE(&from, _this);
15754   ::uint32_t cached_has_bits = 0;
15755   (void) cached_has_bits;
15756 
15757   if (!from._internal_name().empty()) {
15758     _this->_internal_set_name(from._internal_name());
15759   }
15760   if (from._internal_start_index() != 0) {
15761     _this->_internal_set_start_index(from._internal_start_index());
15762   }
15763   if (from._internal_end_index() != 0) {
15764     _this->_internal_set_end_index(from._internal_end_index());
15765   }
15766   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15767 }
15768 
CopyFrom(const StyleString_Span & from)15769 void StyleString_Span::CopyFrom(const StyleString_Span& from) {
15770 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StyleString.Span)
15771   if (&from == this) return;
15772   Clear();
15773   MergeFrom(from);
15774 }
15775 
IsInitialized() const15776 bool StyleString_Span::IsInitialized() const {
15777   return true;
15778 }
15779 
InternalSwap(StyleString_Span * other)15780 void StyleString_Span::InternalSwap(StyleString_Span* other) {
15781   using std::swap;
15782   auto* lhs_arena = GetArenaForAllocation();
15783   auto* rhs_arena = other->GetArenaForAllocation();
15784   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
15785   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
15786       &_impl_.name_, lhs_arena,
15787       &other->_impl_.name_, rhs_arena
15788   );
15789   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
15790       PROTOBUF_FIELD_OFFSET(StyleString_Span, _impl_.end_index_)
15791       + sizeof(StyleString_Span::_impl_.end_index_)  // NOLINT
15792       - PROTOBUF_FIELD_OFFSET(StyleString_Span, _impl_.start_index_)>(
15793           reinterpret_cast<char*>(&_impl_.start_index_),
15794           reinterpret_cast<char*>(&other->_impl_.start_index_));
15795 }
15796 
GetMetadata() const15797 ::PROTOBUF_NAMESPACE_ID::Metadata StyleString_Span::GetMetadata() const {
15798   return ::_pbi::AssignDescriptors(
15799       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
15800       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[48]);
15801 }
15802 
15803 // ===================================================================
15804 
15805 class StyleString::_Internal {
15806  public:
15807 };
15808 
StyleString(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)15809 StyleString::StyleString(::PROTOBUF_NAMESPACE_ID::Arena* arena,
15810                          bool is_message_owned)
15811   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
15812   SharedCtor(arena, is_message_owned);
15813   // @@protoc_insertion_point(arena_constructor:aapt.pb.StyleString)
15814 }
StyleString(const StyleString & from)15815 StyleString::StyleString(const StyleString& from)
15816   : ::PROTOBUF_NAMESPACE_ID::Message() {
15817   StyleString* const _this = this; (void)_this;
15818   new (&_impl_) Impl_{
15819       decltype(_impl_.spans_){from._impl_.spans_}
15820     , decltype(_impl_.str_){}
15821     , /*decltype(_impl_._cached_size_)*/{}};
15822 
15823   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
15824   _impl_.str_.InitDefault();
15825   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15826     _impl_.str_.Set("", GetArenaForAllocation());
15827   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15828   if (!from._internal_str().empty()) {
15829     _this->_impl_.str_.Set(from._internal_str(),
15830       _this->GetArenaForAllocation());
15831   }
15832   // @@protoc_insertion_point(copy_constructor:aapt.pb.StyleString)
15833 }
15834 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)15835 inline void StyleString::SharedCtor(
15836     ::_pb::Arena* arena, bool is_message_owned) {
15837   (void)arena;
15838   (void)is_message_owned;
15839   new (&_impl_) Impl_{
15840       decltype(_impl_.spans_){arena}
15841     , decltype(_impl_.str_){}
15842     , /*decltype(_impl_._cached_size_)*/{}
15843   };
15844   _impl_.str_.InitDefault();
15845   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
15846     _impl_.str_.Set("", GetArenaForAllocation());
15847   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
15848 }
15849 
~StyleString()15850 StyleString::~StyleString() {
15851   // @@protoc_insertion_point(destructor:aapt.pb.StyleString)
15852   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
15853   (void)arena;
15854     return;
15855   }
15856   SharedDtor();
15857 }
15858 
SharedDtor()15859 inline void StyleString::SharedDtor() {
15860   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
15861   _impl_.spans_.~RepeatedPtrField();
15862   _impl_.str_.Destroy();
15863 }
15864 
SetCachedSize(int size) const15865 void StyleString::SetCachedSize(int size) const {
15866   _impl_._cached_size_.Set(size);
15867 }
15868 
Clear()15869 void StyleString::Clear() {
15870 // @@protoc_insertion_point(message_clear_start:aapt.pb.StyleString)
15871   ::uint32_t cached_has_bits = 0;
15872   // Prevent compiler warnings about cached_has_bits being unused
15873   (void) cached_has_bits;
15874 
15875   _impl_.spans_.Clear();
15876   _impl_.str_.ClearToEmpty();
15877   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
15878 }
15879 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)15880 const char* StyleString::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
15881 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
15882   while (!ctx->Done(&ptr)) {
15883     ::uint32_t tag;
15884     ptr = ::_pbi::ReadTag(ptr, &tag);
15885     switch (tag >> 3) {
15886       // string str = 1;
15887       case 1:
15888         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
15889           auto str = _internal_mutable_str();
15890           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
15891           CHK_(ptr);
15892           CHK_(::_pbi::VerifyUTF8(str, "aapt.pb.StyleString.str"));
15893         } else {
15894           goto handle_unusual;
15895         }
15896         continue;
15897       // repeated .aapt.pb.StyleString.Span spans = 2;
15898       case 2:
15899         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
15900           ptr -= 1;
15901           do {
15902             ptr += 1;
15903             ptr = ctx->ParseMessage(_internal_add_spans(), ptr);
15904             CHK_(ptr);
15905             if (!ctx->DataAvailable(ptr)) break;
15906           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
15907         } else {
15908           goto handle_unusual;
15909         }
15910         continue;
15911       default:
15912         goto handle_unusual;
15913     }  // switch
15914   handle_unusual:
15915     if ((tag == 0) || ((tag & 7) == 4)) {
15916       CHK_(ptr);
15917       ctx->SetLastTag(tag);
15918       goto message_done;
15919     }
15920     ptr = UnknownFieldParse(
15921         tag,
15922         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
15923         ptr, ctx);
15924     CHK_(ptr != nullptr);
15925   }  // while
15926 message_done:
15927   return ptr;
15928 failure:
15929   ptr = nullptr;
15930   goto message_done;
15931 #undef CHK_
15932 }
15933 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const15934 ::uint8_t* StyleString::_InternalSerialize(
15935     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
15936   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.StyleString)
15937   ::uint32_t cached_has_bits = 0;
15938   (void) cached_has_bits;
15939 
15940   // string str = 1;
15941   if (!this->_internal_str().empty()) {
15942     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
15943       this->_internal_str().data(), static_cast<int>(this->_internal_str().length()),
15944       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
15945       "aapt.pb.StyleString.str");
15946     target = stream->WriteStringMaybeAliased(
15947         1, this->_internal_str(), target);
15948   }
15949 
15950   // repeated .aapt.pb.StyleString.Span spans = 2;
15951   for (unsigned i = 0,
15952       n = static_cast<unsigned>(this->_internal_spans_size()); i < n; i++) {
15953     const auto& repfield = this->_internal_spans(i);
15954     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
15955         InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
15956   }
15957 
15958   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
15959     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
15960         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
15961   }
15962   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.StyleString)
15963   return target;
15964 }
15965 
ByteSizeLong() const15966 size_t StyleString::ByteSizeLong() const {
15967 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.StyleString)
15968   size_t total_size = 0;
15969 
15970   ::uint32_t cached_has_bits = 0;
15971   // Prevent compiler warnings about cached_has_bits being unused
15972   (void) cached_has_bits;
15973 
15974   // repeated .aapt.pb.StyleString.Span spans = 2;
15975   total_size += 1UL * this->_internal_spans_size();
15976   for (const auto& msg : this->_impl_.spans_) {
15977     total_size +=
15978       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
15979   }
15980 
15981   // string str = 1;
15982   if (!this->_internal_str().empty()) {
15983     total_size += 1 +
15984       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
15985         this->_internal_str());
15986   }
15987 
15988   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
15989 }
15990 
15991 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StyleString::_class_data_ = {
15992     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
15993     StyleString::MergeImpl
15994 };
GetClassData() const15995 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StyleString::GetClassData() const { return &_class_data_; }
15996 
15997 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)15998 void StyleString::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
15999   auto* const _this = static_cast<StyleString*>(&to_msg);
16000   auto& from = static_cast<const StyleString&>(from_msg);
16001   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.StyleString)
16002   GOOGLE_DCHECK_NE(&from, _this);
16003   ::uint32_t cached_has_bits = 0;
16004   (void) cached_has_bits;
16005 
16006   _this->_impl_.spans_.MergeFrom(from._impl_.spans_);
16007   if (!from._internal_str().empty()) {
16008     _this->_internal_set_str(from._internal_str());
16009   }
16010   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
16011 }
16012 
CopyFrom(const StyleString & from)16013 void StyleString::CopyFrom(const StyleString& from) {
16014 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.StyleString)
16015   if (&from == this) return;
16016   Clear();
16017   MergeFrom(from);
16018 }
16019 
IsInitialized() const16020 bool StyleString::IsInitialized() const {
16021   return true;
16022 }
16023 
InternalSwap(StyleString * other)16024 void StyleString::InternalSwap(StyleString* other) {
16025   using std::swap;
16026   auto* lhs_arena = GetArenaForAllocation();
16027   auto* rhs_arena = other->GetArenaForAllocation();
16028   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
16029   _impl_.spans_.InternalSwap(&other->_impl_.spans_);
16030   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
16031       &_impl_.str_, lhs_arena,
16032       &other->_impl_.str_, rhs_arena
16033   );
16034 }
16035 
GetMetadata() const16036 ::PROTOBUF_NAMESPACE_ID::Metadata StyleString::GetMetadata() const {
16037   return ::_pbi::AssignDescriptors(
16038       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
16039       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[49]);
16040 }
16041 
16042 // ===================================================================
16043 
16044 class UntranslatableSection::_Internal {
16045  public:
16046 };
16047 
UntranslatableSection(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)16048 UntranslatableSection::UntranslatableSection(::PROTOBUF_NAMESPACE_ID::Arena* arena,
16049                          bool is_message_owned)
16050   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
16051   SharedCtor(arena, is_message_owned);
16052   // @@protoc_insertion_point(arena_constructor:aapt.pb.UntranslatableSection)
16053 }
UntranslatableSection(const UntranslatableSection & from)16054 UntranslatableSection::UntranslatableSection(const UntranslatableSection& from)
16055   : ::PROTOBUF_NAMESPACE_ID::Message() {
16056   UntranslatableSection* const _this = this; (void)_this;
16057   new (&_impl_) Impl_{
16058       decltype(_impl_.start_index_){}
16059     , decltype(_impl_.end_index_){}
16060     , /*decltype(_impl_._cached_size_)*/{}};
16061 
16062   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
16063   ::memcpy(&_impl_.start_index_, &from._impl_.start_index_,
16064     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.end_index_) -
16065     reinterpret_cast<char*>(&_impl_.start_index_)) + sizeof(_impl_.end_index_));
16066   // @@protoc_insertion_point(copy_constructor:aapt.pb.UntranslatableSection)
16067 }
16068 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)16069 inline void UntranslatableSection::SharedCtor(
16070     ::_pb::Arena* arena, bool is_message_owned) {
16071   (void)arena;
16072   (void)is_message_owned;
16073   new (&_impl_) Impl_{
16074       decltype(_impl_.start_index_){::uint64_t{0u}}
16075     , decltype(_impl_.end_index_){::uint64_t{0u}}
16076     , /*decltype(_impl_._cached_size_)*/{}
16077   };
16078 }
16079 
~UntranslatableSection()16080 UntranslatableSection::~UntranslatableSection() {
16081   // @@protoc_insertion_point(destructor:aapt.pb.UntranslatableSection)
16082   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
16083   (void)arena;
16084     return;
16085   }
16086   SharedDtor();
16087 }
16088 
SharedDtor()16089 inline void UntranslatableSection::SharedDtor() {
16090   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
16091 }
16092 
SetCachedSize(int size) const16093 void UntranslatableSection::SetCachedSize(int size) const {
16094   _impl_._cached_size_.Set(size);
16095 }
16096 
Clear()16097 void UntranslatableSection::Clear() {
16098 // @@protoc_insertion_point(message_clear_start:aapt.pb.UntranslatableSection)
16099   ::uint32_t cached_has_bits = 0;
16100   // Prevent compiler warnings about cached_has_bits being unused
16101   (void) cached_has_bits;
16102 
16103   ::memset(&_impl_.start_index_, 0, static_cast<size_t>(
16104       reinterpret_cast<char*>(&_impl_.end_index_) -
16105       reinterpret_cast<char*>(&_impl_.start_index_)) + sizeof(_impl_.end_index_));
16106   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
16107 }
16108 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)16109 const char* UntranslatableSection::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
16110 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
16111   while (!ctx->Done(&ptr)) {
16112     ::uint32_t tag;
16113     ptr = ::_pbi::ReadTag(ptr, &tag);
16114     switch (tag >> 3) {
16115       // uint64 start_index = 1;
16116       case 1:
16117         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
16118           _impl_.start_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
16119           CHK_(ptr);
16120         } else {
16121           goto handle_unusual;
16122         }
16123         continue;
16124       // uint64 end_index = 2;
16125       case 2:
16126         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
16127           _impl_.end_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
16128           CHK_(ptr);
16129         } else {
16130           goto handle_unusual;
16131         }
16132         continue;
16133       default:
16134         goto handle_unusual;
16135     }  // switch
16136   handle_unusual:
16137     if ((tag == 0) || ((tag & 7) == 4)) {
16138       CHK_(ptr);
16139       ctx->SetLastTag(tag);
16140       goto message_done;
16141     }
16142     ptr = UnknownFieldParse(
16143         tag,
16144         _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
16145         ptr, ctx);
16146     CHK_(ptr != nullptr);
16147   }  // while
16148 message_done:
16149   return ptr;
16150 failure:
16151   ptr = nullptr;
16152   goto message_done;
16153 #undef CHK_
16154 }
16155 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const16156 ::uint8_t* UntranslatableSection::_InternalSerialize(
16157     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
16158   // @@protoc_insertion_point(serialize_to_array_start:aapt.pb.UntranslatableSection)
16159   ::uint32_t cached_has_bits = 0;
16160   (void) cached_has_bits;
16161 
16162   // uint64 start_index = 1;
16163   if (this->_internal_start_index() != 0) {
16164     target = stream->EnsureSpace(target);
16165     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_start_index(), target);
16166   }
16167 
16168   // uint64 end_index = 2;
16169   if (this->_internal_end_index() != 0) {
16170     target = stream->EnsureSpace(target);
16171     target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_end_index(), target);
16172   }
16173 
16174   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
16175     target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
16176         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
16177   }
16178   // @@protoc_insertion_point(serialize_to_array_end:aapt.pb.UntranslatableSection)
16179   return target;
16180 }
16181 
ByteSizeLong() const16182 size_t UntranslatableSection::ByteSizeLong() const {
16183 // @@protoc_insertion_point(message_byte_size_start:aapt.pb.UntranslatableSection)
16184   size_t total_size = 0;
16185 
16186   ::uint32_t cached_has_bits = 0;
16187   // Prevent compiler warnings about cached_has_bits being unused
16188   (void) cached_has_bits;
16189 
16190   // uint64 start_index = 1;
16191   if (this->_internal_start_index() != 0) {
16192     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_start_index());
16193   }
16194 
16195   // uint64 end_index = 2;
16196   if (this->_internal_end_index() != 0) {
16197     total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_end_index());
16198   }
16199 
16200   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
16201 }
16202 
16203 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UntranslatableSection::_class_data_ = {
16204     ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
16205     UntranslatableSection::MergeImpl
16206 };
GetClassData() const16207 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UntranslatableSection::GetClassData() const { return &_class_data_; }
16208 
16209 
MergeImpl(::PROTOBUF_NAMESPACE_ID::Message & to_msg,const::PROTOBUF_NAMESPACE_ID::Message & from_msg)16210 void UntranslatableSection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
16211   auto* const _this = static_cast<UntranslatableSection*>(&to_msg);
16212   auto& from = static_cast<const UntranslatableSection&>(from_msg);
16213   // @@protoc_insertion_point(class_specific_merge_from_start:aapt.pb.UntranslatableSection)
16214   GOOGLE_DCHECK_NE(&from, _this);
16215   ::uint32_t cached_has_bits = 0;
16216   (void) cached_has_bits;
16217 
16218   if (from._internal_start_index() != 0) {
16219     _this->_internal_set_start_index(from._internal_start_index());
16220   }
16221   if (from._internal_end_index() != 0) {
16222     _this->_internal_set_end_index(from._internal_end_index());
16223   }
16224   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
16225 }
16226 
CopyFrom(const UntranslatableSection & from)16227 void UntranslatableSection::CopyFrom(const UntranslatableSection& from) {
16228 // @@protoc_insertion_point(class_specific_copy_from_start:aapt.pb.UntranslatableSection)
16229   if (&from == this) return;
16230   Clear();
16231   MergeFrom(from);
16232 }
16233 
IsInitialized() const16234 bool UntranslatableSection::IsInitialized() const {
16235   return true;
16236 }
16237 
InternalSwap(UntranslatableSection * other)16238 void UntranslatableSection::InternalSwap(UntranslatableSection* other) {
16239   using std::swap;
16240   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
16241   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
16242       PROTOBUF_FIELD_OFFSET(UntranslatableSection, _impl_.end_index_)
16243       + sizeof(UntranslatableSection::_impl_.end_index_)  // NOLINT
16244       - PROTOBUF_FIELD_OFFSET(UntranslatableSection, _impl_.start_index_)>(
16245           reinterpret_cast<char*>(&_impl_.start_index_),
16246           reinterpret_cast<char*>(&other->_impl_.start_index_));
16247 }
16248 
GetMetadata() const16249 ::PROTOBUF_NAMESPACE_ID::Metadata UntranslatableSection::GetMetadata() const {
16250   return ::_pbi::AssignDescriptors(
16251       &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_getter, &descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto_once,
16252       file_level_metadata_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto[50]);
16253 }
16254 
16255 // @@protoc_insertion_point(namespace_scope)
16256 }  // namespace pb
16257 }  // namespace aapt
16258 PROTOBUF_NAMESPACE_OPEN
16259 template<> PROTOBUF_NOINLINE ::aapt::pb::StringPool*
CreateMaybeMessage(Arena * arena)16260 Arena::CreateMaybeMessage< ::aapt::pb::StringPool >(Arena* arena) {
16261   return Arena::CreateMessageInternal< ::aapt::pb::StringPool >(arena);
16262 }
16263 template<> PROTOBUF_NOINLINE ::aapt::pb::SourcePosition*
CreateMaybeMessage(Arena * arena)16264 Arena::CreateMaybeMessage< ::aapt::pb::SourcePosition >(Arena* arena) {
16265   return Arena::CreateMessageInternal< ::aapt::pb::SourcePosition >(arena);
16266 }
16267 template<> PROTOBUF_NOINLINE ::aapt::pb::Source*
CreateMaybeMessage(Arena * arena)16268 Arena::CreateMaybeMessage< ::aapt::pb::Source >(Arena* arena) {
16269   return Arena::CreateMessageInternal< ::aapt::pb::Source >(arena);
16270 }
16271 template<> PROTOBUF_NOINLINE ::aapt::pb::ToolFingerprint*
CreateMaybeMessage(Arena * arena)16272 Arena::CreateMaybeMessage< ::aapt::pb::ToolFingerprint >(Arena* arena) {
16273   return Arena::CreateMessageInternal< ::aapt::pb::ToolFingerprint >(arena);
16274 }
16275 template<> PROTOBUF_NOINLINE ::aapt::pb::DynamicRefTable*
CreateMaybeMessage(Arena * arena)16276 Arena::CreateMaybeMessage< ::aapt::pb::DynamicRefTable >(Arena* arena) {
16277   return Arena::CreateMessageInternal< ::aapt::pb::DynamicRefTable >(arena);
16278 }
16279 template<> PROTOBUF_NOINLINE ::aapt::pb::ResourceTable*
CreateMaybeMessage(Arena * arena)16280 Arena::CreateMaybeMessage< ::aapt::pb::ResourceTable >(Arena* arena) {
16281   return Arena::CreateMessageInternal< ::aapt::pb::ResourceTable >(arena);
16282 }
16283 template<> PROTOBUF_NOINLINE ::aapt::pb::PackageId*
CreateMaybeMessage(Arena * arena)16284 Arena::CreateMaybeMessage< ::aapt::pb::PackageId >(Arena* arena) {
16285   return Arena::CreateMessageInternal< ::aapt::pb::PackageId >(arena);
16286 }
16287 template<> PROTOBUF_NOINLINE ::aapt::pb::Package*
CreateMaybeMessage(Arena * arena)16288 Arena::CreateMaybeMessage< ::aapt::pb::Package >(Arena* arena) {
16289   return Arena::CreateMessageInternal< ::aapt::pb::Package >(arena);
16290 }
16291 template<> PROTOBUF_NOINLINE ::aapt::pb::TypeId*
CreateMaybeMessage(Arena * arena)16292 Arena::CreateMaybeMessage< ::aapt::pb::TypeId >(Arena* arena) {
16293   return Arena::CreateMessageInternal< ::aapt::pb::TypeId >(arena);
16294 }
16295 template<> PROTOBUF_NOINLINE ::aapt::pb::Type*
CreateMaybeMessage(Arena * arena)16296 Arena::CreateMaybeMessage< ::aapt::pb::Type >(Arena* arena) {
16297   return Arena::CreateMessageInternal< ::aapt::pb::Type >(arena);
16298 }
16299 template<> PROTOBUF_NOINLINE ::aapt::pb::Visibility*
CreateMaybeMessage(Arena * arena)16300 Arena::CreateMaybeMessage< ::aapt::pb::Visibility >(Arena* arena) {
16301   return Arena::CreateMessageInternal< ::aapt::pb::Visibility >(arena);
16302 }
16303 template<> PROTOBUF_NOINLINE ::aapt::pb::AllowNew*
CreateMaybeMessage(Arena * arena)16304 Arena::CreateMaybeMessage< ::aapt::pb::AllowNew >(Arena* arena) {
16305   return Arena::CreateMessageInternal< ::aapt::pb::AllowNew >(arena);
16306 }
16307 template<> PROTOBUF_NOINLINE ::aapt::pb::Overlayable*
CreateMaybeMessage(Arena * arena)16308 Arena::CreateMaybeMessage< ::aapt::pb::Overlayable >(Arena* arena) {
16309   return Arena::CreateMessageInternal< ::aapt::pb::Overlayable >(arena);
16310 }
16311 template<> PROTOBUF_NOINLINE ::aapt::pb::OverlayableItem*
CreateMaybeMessage(Arena * arena)16312 Arena::CreateMaybeMessage< ::aapt::pb::OverlayableItem >(Arena* arena) {
16313   return Arena::CreateMessageInternal< ::aapt::pb::OverlayableItem >(arena);
16314 }
16315 template<> PROTOBUF_NOINLINE ::aapt::pb::StagedId*
CreateMaybeMessage(Arena * arena)16316 Arena::CreateMaybeMessage< ::aapt::pb::StagedId >(Arena* arena) {
16317   return Arena::CreateMessageInternal< ::aapt::pb::StagedId >(arena);
16318 }
16319 template<> PROTOBUF_NOINLINE ::aapt::pb::EntryId*
CreateMaybeMessage(Arena * arena)16320 Arena::CreateMaybeMessage< ::aapt::pb::EntryId >(Arena* arena) {
16321   return Arena::CreateMessageInternal< ::aapt::pb::EntryId >(arena);
16322 }
16323 template<> PROTOBUF_NOINLINE ::aapt::pb::Entry*
CreateMaybeMessage(Arena * arena)16324 Arena::CreateMaybeMessage< ::aapt::pb::Entry >(Arena* arena) {
16325   return Arena::CreateMessageInternal< ::aapt::pb::Entry >(arena);
16326 }
16327 template<> PROTOBUF_NOINLINE ::aapt::pb::ConfigValue*
CreateMaybeMessage(Arena * arena)16328 Arena::CreateMaybeMessage< ::aapt::pb::ConfigValue >(Arena* arena) {
16329   return Arena::CreateMessageInternal< ::aapt::pb::ConfigValue >(arena);
16330 }
16331 template<> PROTOBUF_NOINLINE ::aapt::pb::Value*
CreateMaybeMessage(Arena * arena)16332 Arena::CreateMaybeMessage< ::aapt::pb::Value >(Arena* arena) {
16333   return Arena::CreateMessageInternal< ::aapt::pb::Value >(arena);
16334 }
16335 template<> PROTOBUF_NOINLINE ::aapt::pb::Item*
CreateMaybeMessage(Arena * arena)16336 Arena::CreateMaybeMessage< ::aapt::pb::Item >(Arena* arena) {
16337   return Arena::CreateMessageInternal< ::aapt::pb::Item >(arena);
16338 }
16339 template<> PROTOBUF_NOINLINE ::aapt::pb::CompoundValue*
CreateMaybeMessage(Arena * arena)16340 Arena::CreateMaybeMessage< ::aapt::pb::CompoundValue >(Arena* arena) {
16341   return Arena::CreateMessageInternal< ::aapt::pb::CompoundValue >(arena);
16342 }
16343 template<> PROTOBUF_NOINLINE ::aapt::pb::Boolean*
CreateMaybeMessage(Arena * arena)16344 Arena::CreateMaybeMessage< ::aapt::pb::Boolean >(Arena* arena) {
16345   return Arena::CreateMessageInternal< ::aapt::pb::Boolean >(arena);
16346 }
16347 template<> PROTOBUF_NOINLINE ::aapt::pb::Reference*
CreateMaybeMessage(Arena * arena)16348 Arena::CreateMaybeMessage< ::aapt::pb::Reference >(Arena* arena) {
16349   return Arena::CreateMessageInternal< ::aapt::pb::Reference >(arena);
16350 }
16351 template<> PROTOBUF_NOINLINE ::aapt::pb::Id*
CreateMaybeMessage(Arena * arena)16352 Arena::CreateMaybeMessage< ::aapt::pb::Id >(Arena* arena) {
16353   return Arena::CreateMessageInternal< ::aapt::pb::Id >(arena);
16354 }
16355 template<> PROTOBUF_NOINLINE ::aapt::pb::String*
CreateMaybeMessage(Arena * arena)16356 Arena::CreateMaybeMessage< ::aapt::pb::String >(Arena* arena) {
16357   return Arena::CreateMessageInternal< ::aapt::pb::String >(arena);
16358 }
16359 template<> PROTOBUF_NOINLINE ::aapt::pb::RawString*
CreateMaybeMessage(Arena * arena)16360 Arena::CreateMaybeMessage< ::aapt::pb::RawString >(Arena* arena) {
16361   return Arena::CreateMessageInternal< ::aapt::pb::RawString >(arena);
16362 }
16363 template<> PROTOBUF_NOINLINE ::aapt::pb::StyledString_Span*
CreateMaybeMessage(Arena * arena)16364 Arena::CreateMaybeMessage< ::aapt::pb::StyledString_Span >(Arena* arena) {
16365   return Arena::CreateMessageInternal< ::aapt::pb::StyledString_Span >(arena);
16366 }
16367 template<> PROTOBUF_NOINLINE ::aapt::pb::StyledString*
CreateMaybeMessage(Arena * arena)16368 Arena::CreateMaybeMessage< ::aapt::pb::StyledString >(Arena* arena) {
16369   return Arena::CreateMessageInternal< ::aapt::pb::StyledString >(arena);
16370 }
16371 template<> PROTOBUF_NOINLINE ::aapt::pb::FileReference*
CreateMaybeMessage(Arena * arena)16372 Arena::CreateMaybeMessage< ::aapt::pb::FileReference >(Arena* arena) {
16373   return Arena::CreateMessageInternal< ::aapt::pb::FileReference >(arena);
16374 }
16375 template<> PROTOBUF_NOINLINE ::aapt::pb::Primitive_NullType*
CreateMaybeMessage(Arena * arena)16376 Arena::CreateMaybeMessage< ::aapt::pb::Primitive_NullType >(Arena* arena) {
16377   return Arena::CreateMessageInternal< ::aapt::pb::Primitive_NullType >(arena);
16378 }
16379 template<> PROTOBUF_NOINLINE ::aapt::pb::Primitive_EmptyType*
CreateMaybeMessage(Arena * arena)16380 Arena::CreateMaybeMessage< ::aapt::pb::Primitive_EmptyType >(Arena* arena) {
16381   return Arena::CreateMessageInternal< ::aapt::pb::Primitive_EmptyType >(arena);
16382 }
16383 template<> PROTOBUF_NOINLINE ::aapt::pb::Primitive*
CreateMaybeMessage(Arena * arena)16384 Arena::CreateMaybeMessage< ::aapt::pb::Primitive >(Arena* arena) {
16385   return Arena::CreateMessageInternal< ::aapt::pb::Primitive >(arena);
16386 }
16387 template<> PROTOBUF_NOINLINE ::aapt::pb::Attribute_Symbol*
CreateMaybeMessage(Arena * arena)16388 Arena::CreateMaybeMessage< ::aapt::pb::Attribute_Symbol >(Arena* arena) {
16389   return Arena::CreateMessageInternal< ::aapt::pb::Attribute_Symbol >(arena);
16390 }
16391 template<> PROTOBUF_NOINLINE ::aapt::pb::Attribute*
CreateMaybeMessage(Arena * arena)16392 Arena::CreateMaybeMessage< ::aapt::pb::Attribute >(Arena* arena) {
16393   return Arena::CreateMessageInternal< ::aapt::pb::Attribute >(arena);
16394 }
16395 template<> PROTOBUF_NOINLINE ::aapt::pb::Style_Entry*
CreateMaybeMessage(Arena * arena)16396 Arena::CreateMaybeMessage< ::aapt::pb::Style_Entry >(Arena* arena) {
16397   return Arena::CreateMessageInternal< ::aapt::pb::Style_Entry >(arena);
16398 }
16399 template<> PROTOBUF_NOINLINE ::aapt::pb::Style*
CreateMaybeMessage(Arena * arena)16400 Arena::CreateMaybeMessage< ::aapt::pb::Style >(Arena* arena) {
16401   return Arena::CreateMessageInternal< ::aapt::pb::Style >(arena);
16402 }
16403 template<> PROTOBUF_NOINLINE ::aapt::pb::Styleable_Entry*
CreateMaybeMessage(Arena * arena)16404 Arena::CreateMaybeMessage< ::aapt::pb::Styleable_Entry >(Arena* arena) {
16405   return Arena::CreateMessageInternal< ::aapt::pb::Styleable_Entry >(arena);
16406 }
16407 template<> PROTOBUF_NOINLINE ::aapt::pb::Styleable*
CreateMaybeMessage(Arena * arena)16408 Arena::CreateMaybeMessage< ::aapt::pb::Styleable >(Arena* arena) {
16409   return Arena::CreateMessageInternal< ::aapt::pb::Styleable >(arena);
16410 }
16411 template<> PROTOBUF_NOINLINE ::aapt::pb::Array_Element*
CreateMaybeMessage(Arena * arena)16412 Arena::CreateMaybeMessage< ::aapt::pb::Array_Element >(Arena* arena) {
16413   return Arena::CreateMessageInternal< ::aapt::pb::Array_Element >(arena);
16414 }
16415 template<> PROTOBUF_NOINLINE ::aapt::pb::Array*
CreateMaybeMessage(Arena * arena)16416 Arena::CreateMaybeMessage< ::aapt::pb::Array >(Arena* arena) {
16417   return Arena::CreateMessageInternal< ::aapt::pb::Array >(arena);
16418 }
16419 template<> PROTOBUF_NOINLINE ::aapt::pb::Plural_Entry*
CreateMaybeMessage(Arena * arena)16420 Arena::CreateMaybeMessage< ::aapt::pb::Plural_Entry >(Arena* arena) {
16421   return Arena::CreateMessageInternal< ::aapt::pb::Plural_Entry >(arena);
16422 }
16423 template<> PROTOBUF_NOINLINE ::aapt::pb::Plural*
CreateMaybeMessage(Arena * arena)16424 Arena::CreateMaybeMessage< ::aapt::pb::Plural >(Arena* arena) {
16425   return Arena::CreateMessageInternal< ::aapt::pb::Plural >(arena);
16426 }
16427 template<> PROTOBUF_NOINLINE ::aapt::pb::XmlNode*
CreateMaybeMessage(Arena * arena)16428 Arena::CreateMaybeMessage< ::aapt::pb::XmlNode >(Arena* arena) {
16429   return Arena::CreateMessageInternal< ::aapt::pb::XmlNode >(arena);
16430 }
16431 template<> PROTOBUF_NOINLINE ::aapt::pb::XmlElement*
CreateMaybeMessage(Arena * arena)16432 Arena::CreateMaybeMessage< ::aapt::pb::XmlElement >(Arena* arena) {
16433   return Arena::CreateMessageInternal< ::aapt::pb::XmlElement >(arena);
16434 }
16435 template<> PROTOBUF_NOINLINE ::aapt::pb::XmlNamespace*
CreateMaybeMessage(Arena * arena)16436 Arena::CreateMaybeMessage< ::aapt::pb::XmlNamespace >(Arena* arena) {
16437   return Arena::CreateMessageInternal< ::aapt::pb::XmlNamespace >(arena);
16438 }
16439 template<> PROTOBUF_NOINLINE ::aapt::pb::XmlAttribute*
CreateMaybeMessage(Arena * arena)16440 Arena::CreateMaybeMessage< ::aapt::pb::XmlAttribute >(Arena* arena) {
16441   return Arena::CreateMessageInternal< ::aapt::pb::XmlAttribute >(arena);
16442 }
16443 template<> PROTOBUF_NOINLINE ::aapt::pb::MacroBody*
CreateMaybeMessage(Arena * arena)16444 Arena::CreateMaybeMessage< ::aapt::pb::MacroBody >(Arena* arena) {
16445   return Arena::CreateMessageInternal< ::aapt::pb::MacroBody >(arena);
16446 }
16447 template<> PROTOBUF_NOINLINE ::aapt::pb::NamespaceAlias*
CreateMaybeMessage(Arena * arena)16448 Arena::CreateMaybeMessage< ::aapt::pb::NamespaceAlias >(Arena* arena) {
16449   return Arena::CreateMessageInternal< ::aapt::pb::NamespaceAlias >(arena);
16450 }
16451 template<> PROTOBUF_NOINLINE ::aapt::pb::StyleString_Span*
CreateMaybeMessage(Arena * arena)16452 Arena::CreateMaybeMessage< ::aapt::pb::StyleString_Span >(Arena* arena) {
16453   return Arena::CreateMessageInternal< ::aapt::pb::StyleString_Span >(arena);
16454 }
16455 template<> PROTOBUF_NOINLINE ::aapt::pb::StyleString*
CreateMaybeMessage(Arena * arena)16456 Arena::CreateMaybeMessage< ::aapt::pb::StyleString >(Arena* arena) {
16457   return Arena::CreateMessageInternal< ::aapt::pb::StyleString >(arena);
16458 }
16459 template<> PROTOBUF_NOINLINE ::aapt::pb::UntranslatableSection*
CreateMaybeMessage(Arena * arena)16460 Arena::CreateMaybeMessage< ::aapt::pb::UntranslatableSection >(Arena* arena) {
16461   return Arena::CreateMessageInternal< ::aapt::pb::UntranslatableSection >(arena);
16462 }
16463 PROTOBUF_NAMESPACE_CLOSE
16464 
16465 // @@protoc_insertion_point(global_scope)
16466 #include <google/protobuf/port_undef.inc>
16467