1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: frameworks/base/tools/aapt2/Resources.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_bases.h>
28 #include <google/protobuf/generated_message_util.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "frameworks/base/tools/aapt2/Configuration.pb.h"
37 // @@protoc_insertion_point(includes)
38 #include <google/protobuf/port_def.inc>
39 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto
40 PROTOBUF_NAMESPACE_OPEN
41 namespace internal {
42 class AnyMetadata;
43 } // namespace internal
44 PROTOBUF_NAMESPACE_CLOSE
45
46 // Internal implementation detail -- do not use these members.
47 struct TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto {
48 static const ::uint32_t offsets[];
49 };
50 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
51 namespace aapt {
52 namespace pb {
53 class AllowNew;
54 struct AllowNewDefaultTypeInternal;
55 extern AllowNewDefaultTypeInternal _AllowNew_default_instance_;
56 class Array;
57 struct ArrayDefaultTypeInternal;
58 extern ArrayDefaultTypeInternal _Array_default_instance_;
59 class Array_Element;
60 struct Array_ElementDefaultTypeInternal;
61 extern Array_ElementDefaultTypeInternal _Array_Element_default_instance_;
62 class Attribute;
63 struct AttributeDefaultTypeInternal;
64 extern AttributeDefaultTypeInternal _Attribute_default_instance_;
65 class Attribute_Symbol;
66 struct Attribute_SymbolDefaultTypeInternal;
67 extern Attribute_SymbolDefaultTypeInternal _Attribute_Symbol_default_instance_;
68 class Boolean;
69 struct BooleanDefaultTypeInternal;
70 extern BooleanDefaultTypeInternal _Boolean_default_instance_;
71 class CompoundValue;
72 struct CompoundValueDefaultTypeInternal;
73 extern CompoundValueDefaultTypeInternal _CompoundValue_default_instance_;
74 class ConfigValue;
75 struct ConfigValueDefaultTypeInternal;
76 extern ConfigValueDefaultTypeInternal _ConfigValue_default_instance_;
77 class DynamicRefTable;
78 struct DynamicRefTableDefaultTypeInternal;
79 extern DynamicRefTableDefaultTypeInternal _DynamicRefTable_default_instance_;
80 class Entry;
81 struct EntryDefaultTypeInternal;
82 extern EntryDefaultTypeInternal _Entry_default_instance_;
83 class EntryId;
84 struct EntryIdDefaultTypeInternal;
85 extern EntryIdDefaultTypeInternal _EntryId_default_instance_;
86 class FileReference;
87 struct FileReferenceDefaultTypeInternal;
88 extern FileReferenceDefaultTypeInternal _FileReference_default_instance_;
89 class Id;
90 struct IdDefaultTypeInternal;
91 extern IdDefaultTypeInternal _Id_default_instance_;
92 class Item;
93 struct ItemDefaultTypeInternal;
94 extern ItemDefaultTypeInternal _Item_default_instance_;
95 class MacroBody;
96 struct MacroBodyDefaultTypeInternal;
97 extern MacroBodyDefaultTypeInternal _MacroBody_default_instance_;
98 class NamespaceAlias;
99 struct NamespaceAliasDefaultTypeInternal;
100 extern NamespaceAliasDefaultTypeInternal _NamespaceAlias_default_instance_;
101 class Overlayable;
102 struct OverlayableDefaultTypeInternal;
103 extern OverlayableDefaultTypeInternal _Overlayable_default_instance_;
104 class OverlayableItem;
105 struct OverlayableItemDefaultTypeInternal;
106 extern OverlayableItemDefaultTypeInternal _OverlayableItem_default_instance_;
107 class Package;
108 struct PackageDefaultTypeInternal;
109 extern PackageDefaultTypeInternal _Package_default_instance_;
110 class PackageId;
111 struct PackageIdDefaultTypeInternal;
112 extern PackageIdDefaultTypeInternal _PackageId_default_instance_;
113 class Plural;
114 struct PluralDefaultTypeInternal;
115 extern PluralDefaultTypeInternal _Plural_default_instance_;
116 class Plural_Entry;
117 struct Plural_EntryDefaultTypeInternal;
118 extern Plural_EntryDefaultTypeInternal _Plural_Entry_default_instance_;
119 class Primitive;
120 struct PrimitiveDefaultTypeInternal;
121 extern PrimitiveDefaultTypeInternal _Primitive_default_instance_;
122 class Primitive_EmptyType;
123 struct Primitive_EmptyTypeDefaultTypeInternal;
124 extern Primitive_EmptyTypeDefaultTypeInternal _Primitive_EmptyType_default_instance_;
125 class Primitive_NullType;
126 struct Primitive_NullTypeDefaultTypeInternal;
127 extern Primitive_NullTypeDefaultTypeInternal _Primitive_NullType_default_instance_;
128 class RawString;
129 struct RawStringDefaultTypeInternal;
130 extern RawStringDefaultTypeInternal _RawString_default_instance_;
131 class Reference;
132 struct ReferenceDefaultTypeInternal;
133 extern ReferenceDefaultTypeInternal _Reference_default_instance_;
134 class ResourceTable;
135 struct ResourceTableDefaultTypeInternal;
136 extern ResourceTableDefaultTypeInternal _ResourceTable_default_instance_;
137 class Source;
138 struct SourceDefaultTypeInternal;
139 extern SourceDefaultTypeInternal _Source_default_instance_;
140 class SourcePosition;
141 struct SourcePositionDefaultTypeInternal;
142 extern SourcePositionDefaultTypeInternal _SourcePosition_default_instance_;
143 class StagedId;
144 struct StagedIdDefaultTypeInternal;
145 extern StagedIdDefaultTypeInternal _StagedId_default_instance_;
146 class String;
147 struct StringDefaultTypeInternal;
148 extern StringDefaultTypeInternal _String_default_instance_;
149 class StringPool;
150 struct StringPoolDefaultTypeInternal;
151 extern StringPoolDefaultTypeInternal _StringPool_default_instance_;
152 class Style;
153 struct StyleDefaultTypeInternal;
154 extern StyleDefaultTypeInternal _Style_default_instance_;
155 class StyleString;
156 struct StyleStringDefaultTypeInternal;
157 extern StyleStringDefaultTypeInternal _StyleString_default_instance_;
158 class StyleString_Span;
159 struct StyleString_SpanDefaultTypeInternal;
160 extern StyleString_SpanDefaultTypeInternal _StyleString_Span_default_instance_;
161 class Style_Entry;
162 struct Style_EntryDefaultTypeInternal;
163 extern Style_EntryDefaultTypeInternal _Style_Entry_default_instance_;
164 class Styleable;
165 struct StyleableDefaultTypeInternal;
166 extern StyleableDefaultTypeInternal _Styleable_default_instance_;
167 class Styleable_Entry;
168 struct Styleable_EntryDefaultTypeInternal;
169 extern Styleable_EntryDefaultTypeInternal _Styleable_Entry_default_instance_;
170 class StyledString;
171 struct StyledStringDefaultTypeInternal;
172 extern StyledStringDefaultTypeInternal _StyledString_default_instance_;
173 class StyledString_Span;
174 struct StyledString_SpanDefaultTypeInternal;
175 extern StyledString_SpanDefaultTypeInternal _StyledString_Span_default_instance_;
176 class ToolFingerprint;
177 struct ToolFingerprintDefaultTypeInternal;
178 extern ToolFingerprintDefaultTypeInternal _ToolFingerprint_default_instance_;
179 class Type;
180 struct TypeDefaultTypeInternal;
181 extern TypeDefaultTypeInternal _Type_default_instance_;
182 class TypeId;
183 struct TypeIdDefaultTypeInternal;
184 extern TypeIdDefaultTypeInternal _TypeId_default_instance_;
185 class UntranslatableSection;
186 struct UntranslatableSectionDefaultTypeInternal;
187 extern UntranslatableSectionDefaultTypeInternal _UntranslatableSection_default_instance_;
188 class Value;
189 struct ValueDefaultTypeInternal;
190 extern ValueDefaultTypeInternal _Value_default_instance_;
191 class Visibility;
192 struct VisibilityDefaultTypeInternal;
193 extern VisibilityDefaultTypeInternal _Visibility_default_instance_;
194 class XmlAttribute;
195 struct XmlAttributeDefaultTypeInternal;
196 extern XmlAttributeDefaultTypeInternal _XmlAttribute_default_instance_;
197 class XmlElement;
198 struct XmlElementDefaultTypeInternal;
199 extern XmlElementDefaultTypeInternal _XmlElement_default_instance_;
200 class XmlNamespace;
201 struct XmlNamespaceDefaultTypeInternal;
202 extern XmlNamespaceDefaultTypeInternal _XmlNamespace_default_instance_;
203 class XmlNode;
204 struct XmlNodeDefaultTypeInternal;
205 extern XmlNodeDefaultTypeInternal _XmlNode_default_instance_;
206 } // namespace pb
207 } // namespace aapt
208 PROTOBUF_NAMESPACE_OPEN
209 template<> ::aapt::pb::AllowNew* Arena::CreateMaybeMessage<::aapt::pb::AllowNew>(Arena*);
210 template<> ::aapt::pb::Array* Arena::CreateMaybeMessage<::aapt::pb::Array>(Arena*);
211 template<> ::aapt::pb::Array_Element* Arena::CreateMaybeMessage<::aapt::pb::Array_Element>(Arena*);
212 template<> ::aapt::pb::Attribute* Arena::CreateMaybeMessage<::aapt::pb::Attribute>(Arena*);
213 template<> ::aapt::pb::Attribute_Symbol* Arena::CreateMaybeMessage<::aapt::pb::Attribute_Symbol>(Arena*);
214 template<> ::aapt::pb::Boolean* Arena::CreateMaybeMessage<::aapt::pb::Boolean>(Arena*);
215 template<> ::aapt::pb::CompoundValue* Arena::CreateMaybeMessage<::aapt::pb::CompoundValue>(Arena*);
216 template<> ::aapt::pb::ConfigValue* Arena::CreateMaybeMessage<::aapt::pb::ConfigValue>(Arena*);
217 template<> ::aapt::pb::DynamicRefTable* Arena::CreateMaybeMessage<::aapt::pb::DynamicRefTable>(Arena*);
218 template<> ::aapt::pb::Entry* Arena::CreateMaybeMessage<::aapt::pb::Entry>(Arena*);
219 template<> ::aapt::pb::EntryId* Arena::CreateMaybeMessage<::aapt::pb::EntryId>(Arena*);
220 template<> ::aapt::pb::FileReference* Arena::CreateMaybeMessage<::aapt::pb::FileReference>(Arena*);
221 template<> ::aapt::pb::Id* Arena::CreateMaybeMessage<::aapt::pb::Id>(Arena*);
222 template<> ::aapt::pb::Item* Arena::CreateMaybeMessage<::aapt::pb::Item>(Arena*);
223 template<> ::aapt::pb::MacroBody* Arena::CreateMaybeMessage<::aapt::pb::MacroBody>(Arena*);
224 template<> ::aapt::pb::NamespaceAlias* Arena::CreateMaybeMessage<::aapt::pb::NamespaceAlias>(Arena*);
225 template<> ::aapt::pb::Overlayable* Arena::CreateMaybeMessage<::aapt::pb::Overlayable>(Arena*);
226 template<> ::aapt::pb::OverlayableItem* Arena::CreateMaybeMessage<::aapt::pb::OverlayableItem>(Arena*);
227 template<> ::aapt::pb::Package* Arena::CreateMaybeMessage<::aapt::pb::Package>(Arena*);
228 template<> ::aapt::pb::PackageId* Arena::CreateMaybeMessage<::aapt::pb::PackageId>(Arena*);
229 template<> ::aapt::pb::Plural* Arena::CreateMaybeMessage<::aapt::pb::Plural>(Arena*);
230 template<> ::aapt::pb::Plural_Entry* Arena::CreateMaybeMessage<::aapt::pb::Plural_Entry>(Arena*);
231 template<> ::aapt::pb::Primitive* Arena::CreateMaybeMessage<::aapt::pb::Primitive>(Arena*);
232 template<> ::aapt::pb::Primitive_EmptyType* Arena::CreateMaybeMessage<::aapt::pb::Primitive_EmptyType>(Arena*);
233 template<> ::aapt::pb::Primitive_NullType* Arena::CreateMaybeMessage<::aapt::pb::Primitive_NullType>(Arena*);
234 template<> ::aapt::pb::RawString* Arena::CreateMaybeMessage<::aapt::pb::RawString>(Arena*);
235 template<> ::aapt::pb::Reference* Arena::CreateMaybeMessage<::aapt::pb::Reference>(Arena*);
236 template<> ::aapt::pb::ResourceTable* Arena::CreateMaybeMessage<::aapt::pb::ResourceTable>(Arena*);
237 template<> ::aapt::pb::Source* Arena::CreateMaybeMessage<::aapt::pb::Source>(Arena*);
238 template<> ::aapt::pb::SourcePosition* Arena::CreateMaybeMessage<::aapt::pb::SourcePosition>(Arena*);
239 template<> ::aapt::pb::StagedId* Arena::CreateMaybeMessage<::aapt::pb::StagedId>(Arena*);
240 template<> ::aapt::pb::String* Arena::CreateMaybeMessage<::aapt::pb::String>(Arena*);
241 template<> ::aapt::pb::StringPool* Arena::CreateMaybeMessage<::aapt::pb::StringPool>(Arena*);
242 template<> ::aapt::pb::Style* Arena::CreateMaybeMessage<::aapt::pb::Style>(Arena*);
243 template<> ::aapt::pb::StyleString* Arena::CreateMaybeMessage<::aapt::pb::StyleString>(Arena*);
244 template<> ::aapt::pb::StyleString_Span* Arena::CreateMaybeMessage<::aapt::pb::StyleString_Span>(Arena*);
245 template<> ::aapt::pb::Style_Entry* Arena::CreateMaybeMessage<::aapt::pb::Style_Entry>(Arena*);
246 template<> ::aapt::pb::Styleable* Arena::CreateMaybeMessage<::aapt::pb::Styleable>(Arena*);
247 template<> ::aapt::pb::Styleable_Entry* Arena::CreateMaybeMessage<::aapt::pb::Styleable_Entry>(Arena*);
248 template<> ::aapt::pb::StyledString* Arena::CreateMaybeMessage<::aapt::pb::StyledString>(Arena*);
249 template<> ::aapt::pb::StyledString_Span* Arena::CreateMaybeMessage<::aapt::pb::StyledString_Span>(Arena*);
250 template<> ::aapt::pb::ToolFingerprint* Arena::CreateMaybeMessage<::aapt::pb::ToolFingerprint>(Arena*);
251 template<> ::aapt::pb::Type* Arena::CreateMaybeMessage<::aapt::pb::Type>(Arena*);
252 template<> ::aapt::pb::TypeId* Arena::CreateMaybeMessage<::aapt::pb::TypeId>(Arena*);
253 template<> ::aapt::pb::UntranslatableSection* Arena::CreateMaybeMessage<::aapt::pb::UntranslatableSection>(Arena*);
254 template<> ::aapt::pb::Value* Arena::CreateMaybeMessage<::aapt::pb::Value>(Arena*);
255 template<> ::aapt::pb::Visibility* Arena::CreateMaybeMessage<::aapt::pb::Visibility>(Arena*);
256 template<> ::aapt::pb::XmlAttribute* Arena::CreateMaybeMessage<::aapt::pb::XmlAttribute>(Arena*);
257 template<> ::aapt::pb::XmlElement* Arena::CreateMaybeMessage<::aapt::pb::XmlElement>(Arena*);
258 template<> ::aapt::pb::XmlNamespace* Arena::CreateMaybeMessage<::aapt::pb::XmlNamespace>(Arena*);
259 template<> ::aapt::pb::XmlNode* Arena::CreateMaybeMessage<::aapt::pb::XmlNode>(Arena*);
260 PROTOBUF_NAMESPACE_CLOSE
261 namespace aapt {
262 namespace pb {
263
264 enum Visibility_Level : int {
265 Visibility_Level_UNKNOWN = 0,
266 Visibility_Level_PRIVATE = 1,
267 Visibility_Level_PUBLIC = 2,
268 Visibility_Level_Visibility_Level_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
269 Visibility_Level_Visibility_Level_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
270 };
271 bool Visibility_Level_IsValid(int value);
272 constexpr Visibility_Level Visibility_Level_Level_MIN = Visibility_Level_UNKNOWN;
273 constexpr Visibility_Level Visibility_Level_Level_MAX = Visibility_Level_PUBLIC;
274 constexpr int Visibility_Level_Level_ARRAYSIZE = Visibility_Level_Level_MAX + 1;
275
276 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Visibility_Level_descriptor();
277 template<typename T>
Visibility_Level_Name(T enum_t_value)278 inline const std::string& Visibility_Level_Name(T enum_t_value) {
279 static_assert(::std::is_same<T, Visibility_Level>::value ||
280 ::std::is_integral<T>::value,
281 "Incorrect type passed to function Visibility_Level_Name.");
282 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
283 Visibility_Level_descriptor(), enum_t_value);
284 }
Visibility_Level_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Visibility_Level * value)285 inline bool Visibility_Level_Parse(
286 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Visibility_Level* value) {
287 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Visibility_Level>(
288 Visibility_Level_descriptor(), name, value);
289 }
290 enum OverlayableItem_Policy : int {
291 OverlayableItem_Policy_NONE = 0,
292 OverlayableItem_Policy_PUBLIC = 1,
293 OverlayableItem_Policy_SYSTEM = 2,
294 OverlayableItem_Policy_VENDOR = 3,
295 OverlayableItem_Policy_PRODUCT = 4,
296 OverlayableItem_Policy_SIGNATURE = 5,
297 OverlayableItem_Policy_ODM = 6,
298 OverlayableItem_Policy_OEM = 7,
299 OverlayableItem_Policy_ACTOR = 8,
300 OverlayableItem_Policy_CONFIG_SIGNATURE = 9,
301 OverlayableItem_Policy_OverlayableItem_Policy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
302 OverlayableItem_Policy_OverlayableItem_Policy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
303 };
304 bool OverlayableItem_Policy_IsValid(int value);
305 constexpr OverlayableItem_Policy OverlayableItem_Policy_Policy_MIN = OverlayableItem_Policy_NONE;
306 constexpr OverlayableItem_Policy OverlayableItem_Policy_Policy_MAX = OverlayableItem_Policy_CONFIG_SIGNATURE;
307 constexpr int OverlayableItem_Policy_Policy_ARRAYSIZE = OverlayableItem_Policy_Policy_MAX + 1;
308
309 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* OverlayableItem_Policy_descriptor();
310 template<typename T>
OverlayableItem_Policy_Name(T enum_t_value)311 inline const std::string& OverlayableItem_Policy_Name(T enum_t_value) {
312 static_assert(::std::is_same<T, OverlayableItem_Policy>::value ||
313 ::std::is_integral<T>::value,
314 "Incorrect type passed to function OverlayableItem_Policy_Name.");
315 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
316 OverlayableItem_Policy_descriptor(), enum_t_value);
317 }
OverlayableItem_Policy_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,OverlayableItem_Policy * value)318 inline bool OverlayableItem_Policy_Parse(
319 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OverlayableItem_Policy* value) {
320 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<OverlayableItem_Policy>(
321 OverlayableItem_Policy_descriptor(), name, value);
322 }
323 enum Reference_Type : int {
324 Reference_Type_REFERENCE = 0,
325 Reference_Type_ATTRIBUTE = 1,
326 Reference_Type_Reference_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
327 Reference_Type_Reference_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
328 };
329 bool Reference_Type_IsValid(int value);
330 constexpr Reference_Type Reference_Type_Type_MIN = Reference_Type_REFERENCE;
331 constexpr Reference_Type Reference_Type_Type_MAX = Reference_Type_ATTRIBUTE;
332 constexpr int Reference_Type_Type_ARRAYSIZE = Reference_Type_Type_MAX + 1;
333
334 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Reference_Type_descriptor();
335 template<typename T>
Reference_Type_Name(T enum_t_value)336 inline const std::string& Reference_Type_Name(T enum_t_value) {
337 static_assert(::std::is_same<T, Reference_Type>::value ||
338 ::std::is_integral<T>::value,
339 "Incorrect type passed to function Reference_Type_Name.");
340 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
341 Reference_Type_descriptor(), enum_t_value);
342 }
Reference_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Reference_Type * value)343 inline bool Reference_Type_Parse(
344 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Reference_Type* value) {
345 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Reference_Type>(
346 Reference_Type_descriptor(), name, value);
347 }
348 enum FileReference_Type : int {
349 FileReference_Type_UNKNOWN = 0,
350 FileReference_Type_PNG = 1,
351 FileReference_Type_BINARY_XML = 2,
352 FileReference_Type_PROTO_XML = 3,
353 FileReference_Type_FileReference_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
354 FileReference_Type_FileReference_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
355 };
356 bool FileReference_Type_IsValid(int value);
357 constexpr FileReference_Type FileReference_Type_Type_MIN = FileReference_Type_UNKNOWN;
358 constexpr FileReference_Type FileReference_Type_Type_MAX = FileReference_Type_PROTO_XML;
359 constexpr int FileReference_Type_Type_ARRAYSIZE = FileReference_Type_Type_MAX + 1;
360
361 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileReference_Type_descriptor();
362 template<typename T>
FileReference_Type_Name(T enum_t_value)363 inline const std::string& FileReference_Type_Name(T enum_t_value) {
364 static_assert(::std::is_same<T, FileReference_Type>::value ||
365 ::std::is_integral<T>::value,
366 "Incorrect type passed to function FileReference_Type_Name.");
367 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
368 FileReference_Type_descriptor(), enum_t_value);
369 }
FileReference_Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,FileReference_Type * value)370 inline bool FileReference_Type_Parse(
371 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileReference_Type* value) {
372 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileReference_Type>(
373 FileReference_Type_descriptor(), name, value);
374 }
375 enum Attribute_FormatFlags : int {
376 Attribute_FormatFlags_NONE = 0,
377 Attribute_FormatFlags_ANY = 65535,
378 Attribute_FormatFlags_REFERENCE = 1,
379 Attribute_FormatFlags_STRING = 2,
380 Attribute_FormatFlags_INTEGER = 4,
381 Attribute_FormatFlags_BOOLEAN = 8,
382 Attribute_FormatFlags_COLOR = 16,
383 Attribute_FormatFlags_FLOAT = 32,
384 Attribute_FormatFlags_DIMENSION = 64,
385 Attribute_FormatFlags_FRACTION = 128,
386 Attribute_FormatFlags_ENUM = 65536,
387 Attribute_FormatFlags_FLAGS = 131072,
388 Attribute_FormatFlags_Attribute_FormatFlags_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
389 Attribute_FormatFlags_Attribute_FormatFlags_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
390 };
391 bool Attribute_FormatFlags_IsValid(int value);
392 constexpr Attribute_FormatFlags Attribute_FormatFlags_FormatFlags_MIN = Attribute_FormatFlags_NONE;
393 constexpr Attribute_FormatFlags Attribute_FormatFlags_FormatFlags_MAX = Attribute_FormatFlags_FLAGS;
394 constexpr int Attribute_FormatFlags_FormatFlags_ARRAYSIZE = Attribute_FormatFlags_FormatFlags_MAX + 1;
395
396 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Attribute_FormatFlags_descriptor();
397 template<typename T>
Attribute_FormatFlags_Name(T enum_t_value)398 inline const std::string& Attribute_FormatFlags_Name(T enum_t_value) {
399 static_assert(::std::is_same<T, Attribute_FormatFlags>::value ||
400 ::std::is_integral<T>::value,
401 "Incorrect type passed to function Attribute_FormatFlags_Name.");
402 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
403 Attribute_FormatFlags_descriptor(), enum_t_value);
404 }
Attribute_FormatFlags_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Attribute_FormatFlags * value)405 inline bool Attribute_FormatFlags_Parse(
406 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Attribute_FormatFlags* value) {
407 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Attribute_FormatFlags>(
408 Attribute_FormatFlags_descriptor(), name, value);
409 }
410 enum Plural_Arity : int {
411 Plural_Arity_ZERO = 0,
412 Plural_Arity_ONE = 1,
413 Plural_Arity_TWO = 2,
414 Plural_Arity_FEW = 3,
415 Plural_Arity_MANY = 4,
416 Plural_Arity_OTHER = 5,
417 Plural_Arity_Plural_Arity_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
418 Plural_Arity_Plural_Arity_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
419 };
420 bool Plural_Arity_IsValid(int value);
421 constexpr Plural_Arity Plural_Arity_Arity_MIN = Plural_Arity_ZERO;
422 constexpr Plural_Arity Plural_Arity_Arity_MAX = Plural_Arity_OTHER;
423 constexpr int Plural_Arity_Arity_ARRAYSIZE = Plural_Arity_Arity_MAX + 1;
424
425 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Plural_Arity_descriptor();
426 template<typename T>
Plural_Arity_Name(T enum_t_value)427 inline const std::string& Plural_Arity_Name(T enum_t_value) {
428 static_assert(::std::is_same<T, Plural_Arity>::value ||
429 ::std::is_integral<T>::value,
430 "Incorrect type passed to function Plural_Arity_Name.");
431 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
432 Plural_Arity_descriptor(), enum_t_value);
433 }
Plural_Arity_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Plural_Arity * value)434 inline bool Plural_Arity_Parse(
435 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Plural_Arity* value) {
436 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Plural_Arity>(
437 Plural_Arity_descriptor(), name, value);
438 }
439 // ===================================================================
440
441 class StringPool final :
442 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StringPool) */ {
443 public:
StringPool()444 inline StringPool() : StringPool(nullptr) {}
445 ~StringPool() override;
446 explicit PROTOBUF_CONSTEXPR StringPool(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
447
448 StringPool(const StringPool& from);
StringPool(StringPool && from)449 StringPool(StringPool&& from) noexcept
450 : StringPool() {
451 *this = ::std::move(from);
452 }
453
454 inline StringPool& operator=(const StringPool& from) {
455 if (this == &from) return *this;
456 CopyFrom(from);
457 return *this;
458 }
459 inline StringPool& operator=(StringPool&& from) noexcept {
460 if (this == &from) return *this;
461 if (GetOwningArena() == from.GetOwningArena()
462 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
463 && GetOwningArena() != nullptr
464 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
465 ) {
466 InternalSwap(&from);
467 } else {
468 CopyFrom(from);
469 }
470 return *this;
471 }
472
descriptor()473 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
474 return GetDescriptor();
475 }
GetDescriptor()476 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
477 return default_instance().GetMetadata().descriptor;
478 }
GetReflection()479 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
480 return default_instance().GetMetadata().reflection;
481 }
default_instance()482 static const StringPool& default_instance() {
483 return *internal_default_instance();
484 }
internal_default_instance()485 static inline const StringPool* internal_default_instance() {
486 return reinterpret_cast<const StringPool*>(
487 &_StringPool_default_instance_);
488 }
489 static constexpr int kIndexInFileMessages =
490 0;
491
swap(StringPool & a,StringPool & b)492 friend void swap(StringPool& a, StringPool& b) {
493 a.Swap(&b);
494 }
Swap(StringPool * other)495 inline void Swap(StringPool* other) {
496 if (other == this) return;
497 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
498 if (GetOwningArena() != nullptr &&
499 GetOwningArena() == other->GetOwningArena()) {
500 #else // PROTOBUF_FORCE_COPY_IN_SWAP
501 if (GetOwningArena() == other->GetOwningArena()) {
502 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
503 InternalSwap(other);
504 } else {
505 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
506 }
507 }
508 void UnsafeArenaSwap(StringPool* other) {
509 if (other == this) return;
510 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
511 InternalSwap(other);
512 }
513
514 // implements Message ----------------------------------------------
515
516 StringPool* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
517 return CreateMaybeMessage<StringPool>(arena);
518 }
519 StringPool* New() const {
520 return New(nullptr);
521 }
522 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
523 void CopyFrom(const StringPool& from);
524 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
525 void MergeFrom( const StringPool& from) {
526 StringPool::MergeImpl(*this, from);
527 }
528 private:
529 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
530 public:
531 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
532 bool IsInitialized() const final;
533
534 size_t ByteSizeLong() const final;
535 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
536 ::uint8_t* _InternalSerialize(
537 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
538 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
539
540 private:
541 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
542 void SharedDtor();
543 void SetCachedSize(int size) const final;
544 void InternalSwap(StringPool* other);
545
546 private:
547 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
548 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
549 return "aapt.pb.StringPool";
550 }
551 protected:
552 explicit StringPool(::PROTOBUF_NAMESPACE_ID::Arena* arena,
553 bool is_message_owned = false);
554 public:
555
556 static const ClassData _class_data_;
557 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
558
559 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
560
561 // nested types ----------------------------------------------------
562
563 // accessors -------------------------------------------------------
564
565 enum : int {
566 kDataFieldNumber = 1,
567 };
568 // bytes data = 1;
569 void clear_data();
570 const std::string& data() const;
571 template <typename ArgT0 = const std::string&, typename... ArgT>
572 void set_data(ArgT0&& arg0, ArgT... args);
573 std::string* mutable_data();
574 PROTOBUF_NODISCARD std::string* release_data();
575 void set_allocated_data(std::string* data);
576 private:
577 const std::string& _internal_data() const;
578 inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value);
579 std::string* _internal_mutable_data();
580 public:
581
582 // @@protoc_insertion_point(class_scope:aapt.pb.StringPool)
583 private:
584 class _Internal;
585
586 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
587 typedef void InternalArenaConstructable_;
588 typedef void DestructorSkippable_;
589 struct Impl_ {
590 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
591 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
592 };
593 union { Impl_ _impl_; };
594 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
595 };
596 // -------------------------------------------------------------------
597
598 class SourcePosition final :
599 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.SourcePosition) */ {
600 public:
SourcePosition()601 inline SourcePosition() : SourcePosition(nullptr) {}
602 ~SourcePosition() override;
603 explicit PROTOBUF_CONSTEXPR SourcePosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
604
605 SourcePosition(const SourcePosition& from);
SourcePosition(SourcePosition && from)606 SourcePosition(SourcePosition&& from) noexcept
607 : SourcePosition() {
608 *this = ::std::move(from);
609 }
610
611 inline SourcePosition& operator=(const SourcePosition& from) {
612 if (this == &from) return *this;
613 CopyFrom(from);
614 return *this;
615 }
616 inline SourcePosition& operator=(SourcePosition&& from) noexcept {
617 if (this == &from) return *this;
618 if (GetOwningArena() == from.GetOwningArena()
619 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
620 && GetOwningArena() != nullptr
621 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
622 ) {
623 InternalSwap(&from);
624 } else {
625 CopyFrom(from);
626 }
627 return *this;
628 }
629
descriptor()630 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
631 return GetDescriptor();
632 }
GetDescriptor()633 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
634 return default_instance().GetMetadata().descriptor;
635 }
GetReflection()636 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
637 return default_instance().GetMetadata().reflection;
638 }
default_instance()639 static const SourcePosition& default_instance() {
640 return *internal_default_instance();
641 }
internal_default_instance()642 static inline const SourcePosition* internal_default_instance() {
643 return reinterpret_cast<const SourcePosition*>(
644 &_SourcePosition_default_instance_);
645 }
646 static constexpr int kIndexInFileMessages =
647 1;
648
swap(SourcePosition & a,SourcePosition & b)649 friend void swap(SourcePosition& a, SourcePosition& b) {
650 a.Swap(&b);
651 }
Swap(SourcePosition * other)652 inline void Swap(SourcePosition* other) {
653 if (other == this) return;
654 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
655 if (GetOwningArena() != nullptr &&
656 GetOwningArena() == other->GetOwningArena()) {
657 #else // PROTOBUF_FORCE_COPY_IN_SWAP
658 if (GetOwningArena() == other->GetOwningArena()) {
659 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
660 InternalSwap(other);
661 } else {
662 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
663 }
664 }
665 void UnsafeArenaSwap(SourcePosition* other) {
666 if (other == this) return;
667 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
668 InternalSwap(other);
669 }
670
671 // implements Message ----------------------------------------------
672
673 SourcePosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
674 return CreateMaybeMessage<SourcePosition>(arena);
675 }
676 SourcePosition* New() const {
677 return New(nullptr);
678 }
679 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
680 void CopyFrom(const SourcePosition& from);
681 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
682 void MergeFrom( const SourcePosition& from) {
683 SourcePosition::MergeImpl(*this, from);
684 }
685 private:
686 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
687 public:
688 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
689 bool IsInitialized() const final;
690
691 size_t ByteSizeLong() const final;
692 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
693 ::uint8_t* _InternalSerialize(
694 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
695 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
696
697 private:
698 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
699 void SharedDtor();
700 void SetCachedSize(int size) const final;
701 void InternalSwap(SourcePosition* other);
702
703 private:
704 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
705 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
706 return "aapt.pb.SourcePosition";
707 }
708 protected:
709 explicit SourcePosition(::PROTOBUF_NAMESPACE_ID::Arena* arena,
710 bool is_message_owned = false);
711 public:
712
713 static const ClassData _class_data_;
714 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
715
716 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
717
718 // nested types ----------------------------------------------------
719
720 // accessors -------------------------------------------------------
721
722 enum : int {
723 kLineNumberFieldNumber = 1,
724 kColumnNumberFieldNumber = 2,
725 };
726 // uint32 line_number = 1;
727 void clear_line_number();
728 ::uint32_t line_number() const;
729 void set_line_number(::uint32_t value);
730 private:
731 ::uint32_t _internal_line_number() const;
732 void _internal_set_line_number(::uint32_t value);
733 public:
734
735 // uint32 column_number = 2;
736 void clear_column_number();
737 ::uint32_t column_number() const;
738 void set_column_number(::uint32_t value);
739 private:
740 ::uint32_t _internal_column_number() const;
741 void _internal_set_column_number(::uint32_t value);
742 public:
743
744 // @@protoc_insertion_point(class_scope:aapt.pb.SourcePosition)
745 private:
746 class _Internal;
747
748 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
749 typedef void InternalArenaConstructable_;
750 typedef void DestructorSkippable_;
751 struct Impl_ {
752 ::uint32_t line_number_;
753 ::uint32_t column_number_;
754 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
755 };
756 union { Impl_ _impl_; };
757 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
758 };
759 // -------------------------------------------------------------------
760
761 class Source final :
762 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Source) */ {
763 public:
Source()764 inline Source() : Source(nullptr) {}
765 ~Source() override;
766 explicit PROTOBUF_CONSTEXPR Source(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
767
768 Source(const Source& from);
Source(Source && from)769 Source(Source&& from) noexcept
770 : Source() {
771 *this = ::std::move(from);
772 }
773
774 inline Source& operator=(const Source& from) {
775 if (this == &from) return *this;
776 CopyFrom(from);
777 return *this;
778 }
779 inline Source& operator=(Source&& from) noexcept {
780 if (this == &from) return *this;
781 if (GetOwningArena() == from.GetOwningArena()
782 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
783 && GetOwningArena() != nullptr
784 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
785 ) {
786 InternalSwap(&from);
787 } else {
788 CopyFrom(from);
789 }
790 return *this;
791 }
792
descriptor()793 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
794 return GetDescriptor();
795 }
GetDescriptor()796 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
797 return default_instance().GetMetadata().descriptor;
798 }
GetReflection()799 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
800 return default_instance().GetMetadata().reflection;
801 }
default_instance()802 static const Source& default_instance() {
803 return *internal_default_instance();
804 }
internal_default_instance()805 static inline const Source* internal_default_instance() {
806 return reinterpret_cast<const Source*>(
807 &_Source_default_instance_);
808 }
809 static constexpr int kIndexInFileMessages =
810 2;
811
swap(Source & a,Source & b)812 friend void swap(Source& a, Source& b) {
813 a.Swap(&b);
814 }
Swap(Source * other)815 inline void Swap(Source* other) {
816 if (other == this) return;
817 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
818 if (GetOwningArena() != nullptr &&
819 GetOwningArena() == other->GetOwningArena()) {
820 #else // PROTOBUF_FORCE_COPY_IN_SWAP
821 if (GetOwningArena() == other->GetOwningArena()) {
822 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
823 InternalSwap(other);
824 } else {
825 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
826 }
827 }
828 void UnsafeArenaSwap(Source* other) {
829 if (other == this) return;
830 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
831 InternalSwap(other);
832 }
833
834 // implements Message ----------------------------------------------
835
836 Source* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
837 return CreateMaybeMessage<Source>(arena);
838 }
839 Source* New() const {
840 return New(nullptr);
841 }
842 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
843 void CopyFrom(const Source& from);
844 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
845 void MergeFrom( const Source& from) {
846 Source::MergeImpl(*this, from);
847 }
848 private:
849 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
850 public:
851 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
852 bool IsInitialized() const final;
853
854 size_t ByteSizeLong() const final;
855 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
856 ::uint8_t* _InternalSerialize(
857 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
858 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
859
860 private:
861 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
862 void SharedDtor();
863 void SetCachedSize(int size) const final;
864 void InternalSwap(Source* other);
865
866 private:
867 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
868 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
869 return "aapt.pb.Source";
870 }
871 protected:
872 explicit Source(::PROTOBUF_NAMESPACE_ID::Arena* arena,
873 bool is_message_owned = false);
874 public:
875
876 static const ClassData _class_data_;
877 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
878
879 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
880
881 // nested types ----------------------------------------------------
882
883 // accessors -------------------------------------------------------
884
885 enum : int {
886 kPositionFieldNumber = 2,
887 kPathIdxFieldNumber = 1,
888 };
889 // .aapt.pb.SourcePosition position = 2;
890 bool has_position() const;
891 private:
892 bool _internal_has_position() const;
893 public:
894 void clear_position();
895 const ::aapt::pb::SourcePosition& position() const;
896 PROTOBUF_NODISCARD ::aapt::pb::SourcePosition* release_position();
897 ::aapt::pb::SourcePosition* mutable_position();
898 void set_allocated_position(::aapt::pb::SourcePosition* position);
899 private:
900 const ::aapt::pb::SourcePosition& _internal_position() const;
901 ::aapt::pb::SourcePosition* _internal_mutable_position();
902 public:
903 void unsafe_arena_set_allocated_position(
904 ::aapt::pb::SourcePosition* position);
905 ::aapt::pb::SourcePosition* unsafe_arena_release_position();
906
907 // uint32 path_idx = 1;
908 void clear_path_idx();
909 ::uint32_t path_idx() const;
910 void set_path_idx(::uint32_t value);
911 private:
912 ::uint32_t _internal_path_idx() const;
913 void _internal_set_path_idx(::uint32_t value);
914 public:
915
916 // @@protoc_insertion_point(class_scope:aapt.pb.Source)
917 private:
918 class _Internal;
919
920 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
921 typedef void InternalArenaConstructable_;
922 typedef void DestructorSkippable_;
923 struct Impl_ {
924 ::aapt::pb::SourcePosition* position_;
925 ::uint32_t path_idx_;
926 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
927 };
928 union { Impl_ _impl_; };
929 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
930 };
931 // -------------------------------------------------------------------
932
933 class ToolFingerprint final :
934 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.ToolFingerprint) */ {
935 public:
ToolFingerprint()936 inline ToolFingerprint() : ToolFingerprint(nullptr) {}
937 ~ToolFingerprint() override;
938 explicit PROTOBUF_CONSTEXPR ToolFingerprint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
939
940 ToolFingerprint(const ToolFingerprint& from);
ToolFingerprint(ToolFingerprint && from)941 ToolFingerprint(ToolFingerprint&& from) noexcept
942 : ToolFingerprint() {
943 *this = ::std::move(from);
944 }
945
946 inline ToolFingerprint& operator=(const ToolFingerprint& from) {
947 if (this == &from) return *this;
948 CopyFrom(from);
949 return *this;
950 }
951 inline ToolFingerprint& operator=(ToolFingerprint&& from) noexcept {
952 if (this == &from) return *this;
953 if (GetOwningArena() == from.GetOwningArena()
954 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
955 && GetOwningArena() != nullptr
956 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
957 ) {
958 InternalSwap(&from);
959 } else {
960 CopyFrom(from);
961 }
962 return *this;
963 }
964
descriptor()965 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
966 return GetDescriptor();
967 }
GetDescriptor()968 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
969 return default_instance().GetMetadata().descriptor;
970 }
GetReflection()971 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
972 return default_instance().GetMetadata().reflection;
973 }
default_instance()974 static const ToolFingerprint& default_instance() {
975 return *internal_default_instance();
976 }
internal_default_instance()977 static inline const ToolFingerprint* internal_default_instance() {
978 return reinterpret_cast<const ToolFingerprint*>(
979 &_ToolFingerprint_default_instance_);
980 }
981 static constexpr int kIndexInFileMessages =
982 3;
983
swap(ToolFingerprint & a,ToolFingerprint & b)984 friend void swap(ToolFingerprint& a, ToolFingerprint& b) {
985 a.Swap(&b);
986 }
Swap(ToolFingerprint * other)987 inline void Swap(ToolFingerprint* other) {
988 if (other == this) return;
989 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
990 if (GetOwningArena() != nullptr &&
991 GetOwningArena() == other->GetOwningArena()) {
992 #else // PROTOBUF_FORCE_COPY_IN_SWAP
993 if (GetOwningArena() == other->GetOwningArena()) {
994 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
995 InternalSwap(other);
996 } else {
997 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
998 }
999 }
1000 void UnsafeArenaSwap(ToolFingerprint* other) {
1001 if (other == this) return;
1002 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1003 InternalSwap(other);
1004 }
1005
1006 // implements Message ----------------------------------------------
1007
1008 ToolFingerprint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1009 return CreateMaybeMessage<ToolFingerprint>(arena);
1010 }
1011 ToolFingerprint* New() const {
1012 return New(nullptr);
1013 }
1014 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1015 void CopyFrom(const ToolFingerprint& from);
1016 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1017 void MergeFrom( const ToolFingerprint& from) {
1018 ToolFingerprint::MergeImpl(*this, from);
1019 }
1020 private:
1021 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1022 public:
1023 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1024 bool IsInitialized() const final;
1025
1026 size_t ByteSizeLong() const final;
1027 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1028 ::uint8_t* _InternalSerialize(
1029 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1030 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1031
1032 private:
1033 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1034 void SharedDtor();
1035 void SetCachedSize(int size) const final;
1036 void InternalSwap(ToolFingerprint* other);
1037
1038 private:
1039 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1040 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1041 return "aapt.pb.ToolFingerprint";
1042 }
1043 protected:
1044 explicit ToolFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1045 bool is_message_owned = false);
1046 public:
1047
1048 static const ClassData _class_data_;
1049 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1050
1051 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1052
1053 // nested types ----------------------------------------------------
1054
1055 // accessors -------------------------------------------------------
1056
1057 enum : int {
1058 kToolFieldNumber = 1,
1059 kVersionFieldNumber = 2,
1060 };
1061 // string tool = 1;
1062 void clear_tool();
1063 const std::string& tool() const;
1064 template <typename ArgT0 = const std::string&, typename... ArgT>
1065 void set_tool(ArgT0&& arg0, ArgT... args);
1066 std::string* mutable_tool();
1067 PROTOBUF_NODISCARD std::string* release_tool();
1068 void set_allocated_tool(std::string* tool);
1069 private:
1070 const std::string& _internal_tool() const;
1071 inline PROTOBUF_ALWAYS_INLINE void _internal_set_tool(const std::string& value);
1072 std::string* _internal_mutable_tool();
1073 public:
1074
1075 // string version = 2;
1076 void clear_version();
1077 const std::string& version() const;
1078 template <typename ArgT0 = const std::string&, typename... ArgT>
1079 void set_version(ArgT0&& arg0, ArgT... args);
1080 std::string* mutable_version();
1081 PROTOBUF_NODISCARD std::string* release_version();
1082 void set_allocated_version(std::string* version);
1083 private:
1084 const std::string& _internal_version() const;
1085 inline PROTOBUF_ALWAYS_INLINE void _internal_set_version(const std::string& value);
1086 std::string* _internal_mutable_version();
1087 public:
1088
1089 // @@protoc_insertion_point(class_scope:aapt.pb.ToolFingerprint)
1090 private:
1091 class _Internal;
1092
1093 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1094 typedef void InternalArenaConstructable_;
1095 typedef void DestructorSkippable_;
1096 struct Impl_ {
1097 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tool_;
1098 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_;
1099 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1100 };
1101 union { Impl_ _impl_; };
1102 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1103 };
1104 // -------------------------------------------------------------------
1105
1106 class DynamicRefTable final :
1107 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.DynamicRefTable) */ {
1108 public:
DynamicRefTable()1109 inline DynamicRefTable() : DynamicRefTable(nullptr) {}
1110 ~DynamicRefTable() override;
1111 explicit PROTOBUF_CONSTEXPR DynamicRefTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1112
1113 DynamicRefTable(const DynamicRefTable& from);
DynamicRefTable(DynamicRefTable && from)1114 DynamicRefTable(DynamicRefTable&& from) noexcept
1115 : DynamicRefTable() {
1116 *this = ::std::move(from);
1117 }
1118
1119 inline DynamicRefTable& operator=(const DynamicRefTable& from) {
1120 if (this == &from) return *this;
1121 CopyFrom(from);
1122 return *this;
1123 }
1124 inline DynamicRefTable& operator=(DynamicRefTable&& from) noexcept {
1125 if (this == &from) return *this;
1126 if (GetOwningArena() == from.GetOwningArena()
1127 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1128 && GetOwningArena() != nullptr
1129 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1130 ) {
1131 InternalSwap(&from);
1132 } else {
1133 CopyFrom(from);
1134 }
1135 return *this;
1136 }
1137
descriptor()1138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1139 return GetDescriptor();
1140 }
GetDescriptor()1141 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1142 return default_instance().GetMetadata().descriptor;
1143 }
GetReflection()1144 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1145 return default_instance().GetMetadata().reflection;
1146 }
default_instance()1147 static const DynamicRefTable& default_instance() {
1148 return *internal_default_instance();
1149 }
internal_default_instance()1150 static inline const DynamicRefTable* internal_default_instance() {
1151 return reinterpret_cast<const DynamicRefTable*>(
1152 &_DynamicRefTable_default_instance_);
1153 }
1154 static constexpr int kIndexInFileMessages =
1155 4;
1156
swap(DynamicRefTable & a,DynamicRefTable & b)1157 friend void swap(DynamicRefTable& a, DynamicRefTable& b) {
1158 a.Swap(&b);
1159 }
Swap(DynamicRefTable * other)1160 inline void Swap(DynamicRefTable* other) {
1161 if (other == this) return;
1162 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1163 if (GetOwningArena() != nullptr &&
1164 GetOwningArena() == other->GetOwningArena()) {
1165 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1166 if (GetOwningArena() == other->GetOwningArena()) {
1167 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1168 InternalSwap(other);
1169 } else {
1170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1171 }
1172 }
1173 void UnsafeArenaSwap(DynamicRefTable* other) {
1174 if (other == this) return;
1175 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1176 InternalSwap(other);
1177 }
1178
1179 // implements Message ----------------------------------------------
1180
1181 DynamicRefTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1182 return CreateMaybeMessage<DynamicRefTable>(arena);
1183 }
1184 DynamicRefTable* New() const {
1185 return New(nullptr);
1186 }
1187 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1188 void CopyFrom(const DynamicRefTable& from);
1189 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1190 void MergeFrom( const DynamicRefTable& from) {
1191 DynamicRefTable::MergeImpl(*this, from);
1192 }
1193 private:
1194 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1195 public:
1196 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1197 bool IsInitialized() const final;
1198
1199 size_t ByteSizeLong() const final;
1200 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1201 ::uint8_t* _InternalSerialize(
1202 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1203 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1204
1205 private:
1206 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1207 void SharedDtor();
1208 void SetCachedSize(int size) const final;
1209 void InternalSwap(DynamicRefTable* other);
1210
1211 private:
1212 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1213 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1214 return "aapt.pb.DynamicRefTable";
1215 }
1216 protected:
1217 explicit DynamicRefTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1218 bool is_message_owned = false);
1219 public:
1220
1221 static const ClassData _class_data_;
1222 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1223
1224 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1225
1226 // nested types ----------------------------------------------------
1227
1228 // accessors -------------------------------------------------------
1229
1230 enum : int {
1231 kPackageNameFieldNumber = 2,
1232 kPackageIdFieldNumber = 1,
1233 };
1234 // string package_name = 2;
1235 void clear_package_name();
1236 const std::string& package_name() const;
1237 template <typename ArgT0 = const std::string&, typename... ArgT>
1238 void set_package_name(ArgT0&& arg0, ArgT... args);
1239 std::string* mutable_package_name();
1240 PROTOBUF_NODISCARD std::string* release_package_name();
1241 void set_allocated_package_name(std::string* package_name);
1242 private:
1243 const std::string& _internal_package_name() const;
1244 inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value);
1245 std::string* _internal_mutable_package_name();
1246 public:
1247
1248 // .aapt.pb.PackageId package_id = 1;
1249 bool has_package_id() const;
1250 private:
1251 bool _internal_has_package_id() const;
1252 public:
1253 void clear_package_id();
1254 const ::aapt::pb::PackageId& package_id() const;
1255 PROTOBUF_NODISCARD ::aapt::pb::PackageId* release_package_id();
1256 ::aapt::pb::PackageId* mutable_package_id();
1257 void set_allocated_package_id(::aapt::pb::PackageId* package_id);
1258 private:
1259 const ::aapt::pb::PackageId& _internal_package_id() const;
1260 ::aapt::pb::PackageId* _internal_mutable_package_id();
1261 public:
1262 void unsafe_arena_set_allocated_package_id(
1263 ::aapt::pb::PackageId* package_id);
1264 ::aapt::pb::PackageId* unsafe_arena_release_package_id();
1265
1266 // @@protoc_insertion_point(class_scope:aapt.pb.DynamicRefTable)
1267 private:
1268 class _Internal;
1269
1270 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1271 typedef void InternalArenaConstructable_;
1272 typedef void DestructorSkippable_;
1273 struct Impl_ {
1274 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_;
1275 ::aapt::pb::PackageId* package_id_;
1276 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1277 };
1278 union { Impl_ _impl_; };
1279 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1280 };
1281 // -------------------------------------------------------------------
1282
1283 class ResourceTable final :
1284 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.ResourceTable) */ {
1285 public:
ResourceTable()1286 inline ResourceTable() : ResourceTable(nullptr) {}
1287 ~ResourceTable() override;
1288 explicit PROTOBUF_CONSTEXPR ResourceTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1289
1290 ResourceTable(const ResourceTable& from);
ResourceTable(ResourceTable && from)1291 ResourceTable(ResourceTable&& from) noexcept
1292 : ResourceTable() {
1293 *this = ::std::move(from);
1294 }
1295
1296 inline ResourceTable& operator=(const ResourceTable& from) {
1297 if (this == &from) return *this;
1298 CopyFrom(from);
1299 return *this;
1300 }
1301 inline ResourceTable& operator=(ResourceTable&& from) noexcept {
1302 if (this == &from) return *this;
1303 if (GetOwningArena() == from.GetOwningArena()
1304 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1305 && GetOwningArena() != nullptr
1306 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1307 ) {
1308 InternalSwap(&from);
1309 } else {
1310 CopyFrom(from);
1311 }
1312 return *this;
1313 }
1314
descriptor()1315 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1316 return GetDescriptor();
1317 }
GetDescriptor()1318 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1319 return default_instance().GetMetadata().descriptor;
1320 }
GetReflection()1321 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1322 return default_instance().GetMetadata().reflection;
1323 }
default_instance()1324 static const ResourceTable& default_instance() {
1325 return *internal_default_instance();
1326 }
internal_default_instance()1327 static inline const ResourceTable* internal_default_instance() {
1328 return reinterpret_cast<const ResourceTable*>(
1329 &_ResourceTable_default_instance_);
1330 }
1331 static constexpr int kIndexInFileMessages =
1332 5;
1333
swap(ResourceTable & a,ResourceTable & b)1334 friend void swap(ResourceTable& a, ResourceTable& b) {
1335 a.Swap(&b);
1336 }
Swap(ResourceTable * other)1337 inline void Swap(ResourceTable* other) {
1338 if (other == this) return;
1339 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1340 if (GetOwningArena() != nullptr &&
1341 GetOwningArena() == other->GetOwningArena()) {
1342 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1343 if (GetOwningArena() == other->GetOwningArena()) {
1344 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1345 InternalSwap(other);
1346 } else {
1347 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1348 }
1349 }
1350 void UnsafeArenaSwap(ResourceTable* other) {
1351 if (other == this) return;
1352 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1353 InternalSwap(other);
1354 }
1355
1356 // implements Message ----------------------------------------------
1357
1358 ResourceTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1359 return CreateMaybeMessage<ResourceTable>(arena);
1360 }
1361 ResourceTable* New() const {
1362 return New(nullptr);
1363 }
1364 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1365 void CopyFrom(const ResourceTable& from);
1366 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1367 void MergeFrom( const ResourceTable& from) {
1368 ResourceTable::MergeImpl(*this, from);
1369 }
1370 private:
1371 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1372 public:
1373 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1374 bool IsInitialized() const final;
1375
1376 size_t ByteSizeLong() const final;
1377 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1378 ::uint8_t* _InternalSerialize(
1379 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1380 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1381
1382 private:
1383 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1384 void SharedDtor();
1385 void SetCachedSize(int size) const final;
1386 void InternalSwap(ResourceTable* other);
1387
1388 private:
1389 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1390 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1391 return "aapt.pb.ResourceTable";
1392 }
1393 protected:
1394 explicit ResourceTable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1395 bool is_message_owned = false);
1396 public:
1397
1398 static const ClassData _class_data_;
1399 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1400
1401 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1402
1403 // nested types ----------------------------------------------------
1404
1405 // accessors -------------------------------------------------------
1406
1407 enum : int {
1408 kPackageFieldNumber = 2,
1409 kOverlayableFieldNumber = 3,
1410 kToolFingerprintFieldNumber = 4,
1411 kDynamicRefTableFieldNumber = 5,
1412 kSourcePoolFieldNumber = 1,
1413 };
1414 // repeated .aapt.pb.Package package = 2;
1415 int package_size() const;
1416 private:
1417 int _internal_package_size() const;
1418 public:
1419 void clear_package();
1420 ::aapt::pb::Package* mutable_package(int index);
1421 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Package >*
1422 mutable_package();
1423 private:
1424 const ::aapt::pb::Package& _internal_package(int index) const;
1425 ::aapt::pb::Package* _internal_add_package();
1426 public:
1427 const ::aapt::pb::Package& package(int index) const;
1428 ::aapt::pb::Package* add_package();
1429 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Package >&
1430 package() const;
1431
1432 // repeated .aapt.pb.Overlayable overlayable = 3;
1433 int overlayable_size() const;
1434 private:
1435 int _internal_overlayable_size() const;
1436 public:
1437 void clear_overlayable();
1438 ::aapt::pb::Overlayable* mutable_overlayable(int index);
1439 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Overlayable >*
1440 mutable_overlayable();
1441 private:
1442 const ::aapt::pb::Overlayable& _internal_overlayable(int index) const;
1443 ::aapt::pb::Overlayable* _internal_add_overlayable();
1444 public:
1445 const ::aapt::pb::Overlayable& overlayable(int index) const;
1446 ::aapt::pb::Overlayable* add_overlayable();
1447 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Overlayable >&
1448 overlayable() const;
1449
1450 // repeated .aapt.pb.ToolFingerprint tool_fingerprint = 4;
1451 int tool_fingerprint_size() const;
1452 private:
1453 int _internal_tool_fingerprint_size() const;
1454 public:
1455 void clear_tool_fingerprint();
1456 ::aapt::pb::ToolFingerprint* mutable_tool_fingerprint(int index);
1457 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ToolFingerprint >*
1458 mutable_tool_fingerprint();
1459 private:
1460 const ::aapt::pb::ToolFingerprint& _internal_tool_fingerprint(int index) const;
1461 ::aapt::pb::ToolFingerprint* _internal_add_tool_fingerprint();
1462 public:
1463 const ::aapt::pb::ToolFingerprint& tool_fingerprint(int index) const;
1464 ::aapt::pb::ToolFingerprint* add_tool_fingerprint();
1465 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ToolFingerprint >&
1466 tool_fingerprint() const;
1467
1468 // repeated .aapt.pb.DynamicRefTable dynamic_ref_table = 5;
1469 int dynamic_ref_table_size() const;
1470 private:
1471 int _internal_dynamic_ref_table_size() const;
1472 public:
1473 void clear_dynamic_ref_table();
1474 ::aapt::pb::DynamicRefTable* mutable_dynamic_ref_table(int index);
1475 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::DynamicRefTable >*
1476 mutable_dynamic_ref_table();
1477 private:
1478 const ::aapt::pb::DynamicRefTable& _internal_dynamic_ref_table(int index) const;
1479 ::aapt::pb::DynamicRefTable* _internal_add_dynamic_ref_table();
1480 public:
1481 const ::aapt::pb::DynamicRefTable& dynamic_ref_table(int index) const;
1482 ::aapt::pb::DynamicRefTable* add_dynamic_ref_table();
1483 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::DynamicRefTable >&
1484 dynamic_ref_table() const;
1485
1486 // .aapt.pb.StringPool source_pool = 1;
1487 bool has_source_pool() const;
1488 private:
1489 bool _internal_has_source_pool() const;
1490 public:
1491 void clear_source_pool();
1492 const ::aapt::pb::StringPool& source_pool() const;
1493 PROTOBUF_NODISCARD ::aapt::pb::StringPool* release_source_pool();
1494 ::aapt::pb::StringPool* mutable_source_pool();
1495 void set_allocated_source_pool(::aapt::pb::StringPool* source_pool);
1496 private:
1497 const ::aapt::pb::StringPool& _internal_source_pool() const;
1498 ::aapt::pb::StringPool* _internal_mutable_source_pool();
1499 public:
1500 void unsafe_arena_set_allocated_source_pool(
1501 ::aapt::pb::StringPool* source_pool);
1502 ::aapt::pb::StringPool* unsafe_arena_release_source_pool();
1503
1504 // @@protoc_insertion_point(class_scope:aapt.pb.ResourceTable)
1505 private:
1506 class _Internal;
1507
1508 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1509 typedef void InternalArenaConstructable_;
1510 typedef void DestructorSkippable_;
1511 struct Impl_ {
1512 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Package > package_;
1513 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Overlayable > overlayable_;
1514 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ToolFingerprint > tool_fingerprint_;
1515 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::DynamicRefTable > dynamic_ref_table_;
1516 ::aapt::pb::StringPool* source_pool_;
1517 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1518 };
1519 union { Impl_ _impl_; };
1520 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1521 };
1522 // -------------------------------------------------------------------
1523
1524 class PackageId final :
1525 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.PackageId) */ {
1526 public:
PackageId()1527 inline PackageId() : PackageId(nullptr) {}
1528 ~PackageId() override;
1529 explicit PROTOBUF_CONSTEXPR PackageId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1530
1531 PackageId(const PackageId& from);
PackageId(PackageId && from)1532 PackageId(PackageId&& from) noexcept
1533 : PackageId() {
1534 *this = ::std::move(from);
1535 }
1536
1537 inline PackageId& operator=(const PackageId& from) {
1538 if (this == &from) return *this;
1539 CopyFrom(from);
1540 return *this;
1541 }
1542 inline PackageId& operator=(PackageId&& from) noexcept {
1543 if (this == &from) return *this;
1544 if (GetOwningArena() == from.GetOwningArena()
1545 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1546 && GetOwningArena() != nullptr
1547 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1548 ) {
1549 InternalSwap(&from);
1550 } else {
1551 CopyFrom(from);
1552 }
1553 return *this;
1554 }
1555
descriptor()1556 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1557 return GetDescriptor();
1558 }
GetDescriptor()1559 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1560 return default_instance().GetMetadata().descriptor;
1561 }
GetReflection()1562 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1563 return default_instance().GetMetadata().reflection;
1564 }
default_instance()1565 static const PackageId& default_instance() {
1566 return *internal_default_instance();
1567 }
internal_default_instance()1568 static inline const PackageId* internal_default_instance() {
1569 return reinterpret_cast<const PackageId*>(
1570 &_PackageId_default_instance_);
1571 }
1572 static constexpr int kIndexInFileMessages =
1573 6;
1574
swap(PackageId & a,PackageId & b)1575 friend void swap(PackageId& a, PackageId& b) {
1576 a.Swap(&b);
1577 }
Swap(PackageId * other)1578 inline void Swap(PackageId* other) {
1579 if (other == this) return;
1580 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1581 if (GetOwningArena() != nullptr &&
1582 GetOwningArena() == other->GetOwningArena()) {
1583 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1584 if (GetOwningArena() == other->GetOwningArena()) {
1585 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1586 InternalSwap(other);
1587 } else {
1588 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1589 }
1590 }
1591 void UnsafeArenaSwap(PackageId* other) {
1592 if (other == this) return;
1593 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1594 InternalSwap(other);
1595 }
1596
1597 // implements Message ----------------------------------------------
1598
1599 PackageId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1600 return CreateMaybeMessage<PackageId>(arena);
1601 }
1602 PackageId* New() const {
1603 return New(nullptr);
1604 }
1605 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1606 void CopyFrom(const PackageId& from);
1607 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1608 void MergeFrom( const PackageId& from) {
1609 PackageId::MergeImpl(*this, from);
1610 }
1611 private:
1612 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1613 public:
1614 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1615 bool IsInitialized() const final;
1616
1617 size_t ByteSizeLong() const final;
1618 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1619 ::uint8_t* _InternalSerialize(
1620 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1621 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1622
1623 private:
1624 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1625 void SharedDtor();
1626 void SetCachedSize(int size) const final;
1627 void InternalSwap(PackageId* other);
1628
1629 private:
1630 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1631 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1632 return "aapt.pb.PackageId";
1633 }
1634 protected:
1635 explicit PackageId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1636 bool is_message_owned = false);
1637 public:
1638
1639 static const ClassData _class_data_;
1640 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1641
1642 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1643
1644 // nested types ----------------------------------------------------
1645
1646 // accessors -------------------------------------------------------
1647
1648 enum : int {
1649 kIdFieldNumber = 1,
1650 };
1651 // uint32 id = 1;
1652 void clear_id();
1653 ::uint32_t id() const;
1654 void set_id(::uint32_t value);
1655 private:
1656 ::uint32_t _internal_id() const;
1657 void _internal_set_id(::uint32_t value);
1658 public:
1659
1660 // @@protoc_insertion_point(class_scope:aapt.pb.PackageId)
1661 private:
1662 class _Internal;
1663
1664 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1665 typedef void InternalArenaConstructable_;
1666 typedef void DestructorSkippable_;
1667 struct Impl_ {
1668 ::uint32_t id_;
1669 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1670 };
1671 union { Impl_ _impl_; };
1672 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1673 };
1674 // -------------------------------------------------------------------
1675
1676 class Package final :
1677 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Package) */ {
1678 public:
Package()1679 inline Package() : Package(nullptr) {}
1680 ~Package() override;
1681 explicit PROTOBUF_CONSTEXPR Package(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1682
1683 Package(const Package& from);
Package(Package && from)1684 Package(Package&& from) noexcept
1685 : Package() {
1686 *this = ::std::move(from);
1687 }
1688
1689 inline Package& operator=(const Package& from) {
1690 if (this == &from) return *this;
1691 CopyFrom(from);
1692 return *this;
1693 }
1694 inline Package& operator=(Package&& from) noexcept {
1695 if (this == &from) return *this;
1696 if (GetOwningArena() == from.GetOwningArena()
1697 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1698 && GetOwningArena() != nullptr
1699 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1700 ) {
1701 InternalSwap(&from);
1702 } else {
1703 CopyFrom(from);
1704 }
1705 return *this;
1706 }
1707
descriptor()1708 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1709 return GetDescriptor();
1710 }
GetDescriptor()1711 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1712 return default_instance().GetMetadata().descriptor;
1713 }
GetReflection()1714 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1715 return default_instance().GetMetadata().reflection;
1716 }
default_instance()1717 static const Package& default_instance() {
1718 return *internal_default_instance();
1719 }
internal_default_instance()1720 static inline const Package* internal_default_instance() {
1721 return reinterpret_cast<const Package*>(
1722 &_Package_default_instance_);
1723 }
1724 static constexpr int kIndexInFileMessages =
1725 7;
1726
swap(Package & a,Package & b)1727 friend void swap(Package& a, Package& b) {
1728 a.Swap(&b);
1729 }
Swap(Package * other)1730 inline void Swap(Package* other) {
1731 if (other == this) return;
1732 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1733 if (GetOwningArena() != nullptr &&
1734 GetOwningArena() == other->GetOwningArena()) {
1735 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1736 if (GetOwningArena() == other->GetOwningArena()) {
1737 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1738 InternalSwap(other);
1739 } else {
1740 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1741 }
1742 }
1743 void UnsafeArenaSwap(Package* other) {
1744 if (other == this) return;
1745 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1746 InternalSwap(other);
1747 }
1748
1749 // implements Message ----------------------------------------------
1750
1751 Package* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1752 return CreateMaybeMessage<Package>(arena);
1753 }
1754 Package* New() const {
1755 return New(nullptr);
1756 }
1757 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1758 void CopyFrom(const Package& from);
1759 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1760 void MergeFrom( const Package& from) {
1761 Package::MergeImpl(*this, from);
1762 }
1763 private:
1764 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1765 public:
1766 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1767 bool IsInitialized() const final;
1768
1769 size_t ByteSizeLong() const final;
1770 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1771 ::uint8_t* _InternalSerialize(
1772 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1773 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1774
1775 private:
1776 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1777 void SharedDtor();
1778 void SetCachedSize(int size) const final;
1779 void InternalSwap(Package* other);
1780
1781 private:
1782 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1783 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1784 return "aapt.pb.Package";
1785 }
1786 protected:
1787 explicit Package(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1788 bool is_message_owned = false);
1789 public:
1790
1791 static const ClassData _class_data_;
1792 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1793
1794 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1795
1796 // nested types ----------------------------------------------------
1797
1798 // accessors -------------------------------------------------------
1799
1800 enum : int {
1801 kTypeFieldNumber = 3,
1802 kPackageNameFieldNumber = 2,
1803 kPackageIdFieldNumber = 1,
1804 };
1805 // repeated .aapt.pb.Type type = 3;
1806 int type_size() const;
1807 private:
1808 int _internal_type_size() const;
1809 public:
1810 void clear_type();
1811 ::aapt::pb::Type* mutable_type(int index);
1812 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Type >*
1813 mutable_type();
1814 private:
1815 const ::aapt::pb::Type& _internal_type(int index) const;
1816 ::aapt::pb::Type* _internal_add_type();
1817 public:
1818 const ::aapt::pb::Type& type(int index) const;
1819 ::aapt::pb::Type* add_type();
1820 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Type >&
1821 type() const;
1822
1823 // string package_name = 2;
1824 void clear_package_name();
1825 const std::string& package_name() const;
1826 template <typename ArgT0 = const std::string&, typename... ArgT>
1827 void set_package_name(ArgT0&& arg0, ArgT... args);
1828 std::string* mutable_package_name();
1829 PROTOBUF_NODISCARD std::string* release_package_name();
1830 void set_allocated_package_name(std::string* package_name);
1831 private:
1832 const std::string& _internal_package_name() const;
1833 inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value);
1834 std::string* _internal_mutable_package_name();
1835 public:
1836
1837 // .aapt.pb.PackageId package_id = 1;
1838 bool has_package_id() const;
1839 private:
1840 bool _internal_has_package_id() const;
1841 public:
1842 void clear_package_id();
1843 const ::aapt::pb::PackageId& package_id() const;
1844 PROTOBUF_NODISCARD ::aapt::pb::PackageId* release_package_id();
1845 ::aapt::pb::PackageId* mutable_package_id();
1846 void set_allocated_package_id(::aapt::pb::PackageId* package_id);
1847 private:
1848 const ::aapt::pb::PackageId& _internal_package_id() const;
1849 ::aapt::pb::PackageId* _internal_mutable_package_id();
1850 public:
1851 void unsafe_arena_set_allocated_package_id(
1852 ::aapt::pb::PackageId* package_id);
1853 ::aapt::pb::PackageId* unsafe_arena_release_package_id();
1854
1855 // @@protoc_insertion_point(class_scope:aapt.pb.Package)
1856 private:
1857 class _Internal;
1858
1859 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1860 typedef void InternalArenaConstructable_;
1861 typedef void DestructorSkippable_;
1862 struct Impl_ {
1863 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Type > type_;
1864 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_;
1865 ::aapt::pb::PackageId* package_id_;
1866 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1867 };
1868 union { Impl_ _impl_; };
1869 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
1870 };
1871 // -------------------------------------------------------------------
1872
1873 class TypeId final :
1874 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.TypeId) */ {
1875 public:
TypeId()1876 inline TypeId() : TypeId(nullptr) {}
1877 ~TypeId() override;
1878 explicit PROTOBUF_CONSTEXPR TypeId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1879
1880 TypeId(const TypeId& from);
TypeId(TypeId && from)1881 TypeId(TypeId&& from) noexcept
1882 : TypeId() {
1883 *this = ::std::move(from);
1884 }
1885
1886 inline TypeId& operator=(const TypeId& from) {
1887 if (this == &from) return *this;
1888 CopyFrom(from);
1889 return *this;
1890 }
1891 inline TypeId& operator=(TypeId&& from) noexcept {
1892 if (this == &from) return *this;
1893 if (GetOwningArena() == from.GetOwningArena()
1894 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1895 && GetOwningArena() != nullptr
1896 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
1897 ) {
1898 InternalSwap(&from);
1899 } else {
1900 CopyFrom(from);
1901 }
1902 return *this;
1903 }
1904
descriptor()1905 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1906 return GetDescriptor();
1907 }
GetDescriptor()1908 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1909 return default_instance().GetMetadata().descriptor;
1910 }
GetReflection()1911 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1912 return default_instance().GetMetadata().reflection;
1913 }
default_instance()1914 static const TypeId& default_instance() {
1915 return *internal_default_instance();
1916 }
internal_default_instance()1917 static inline const TypeId* internal_default_instance() {
1918 return reinterpret_cast<const TypeId*>(
1919 &_TypeId_default_instance_);
1920 }
1921 static constexpr int kIndexInFileMessages =
1922 8;
1923
swap(TypeId & a,TypeId & b)1924 friend void swap(TypeId& a, TypeId& b) {
1925 a.Swap(&b);
1926 }
Swap(TypeId * other)1927 inline void Swap(TypeId* other) {
1928 if (other == this) return;
1929 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1930 if (GetOwningArena() != nullptr &&
1931 GetOwningArena() == other->GetOwningArena()) {
1932 #else // PROTOBUF_FORCE_COPY_IN_SWAP
1933 if (GetOwningArena() == other->GetOwningArena()) {
1934 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
1935 InternalSwap(other);
1936 } else {
1937 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1938 }
1939 }
1940 void UnsafeArenaSwap(TypeId* other) {
1941 if (other == this) return;
1942 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1943 InternalSwap(other);
1944 }
1945
1946 // implements Message ----------------------------------------------
1947
1948 TypeId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1949 return CreateMaybeMessage<TypeId>(arena);
1950 }
1951 TypeId* New() const {
1952 return New(nullptr);
1953 }
1954 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
1955 void CopyFrom(const TypeId& from);
1956 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
1957 void MergeFrom( const TypeId& from) {
1958 TypeId::MergeImpl(*this, from);
1959 }
1960 private:
1961 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
1962 public:
1963 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1964 bool IsInitialized() const final;
1965
1966 size_t ByteSizeLong() const final;
1967 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1968 ::uint8_t* _InternalSerialize(
1969 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1970 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1971
1972 private:
1973 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1974 void SharedDtor();
1975 void SetCachedSize(int size) const final;
1976 void InternalSwap(TypeId* other);
1977
1978 private:
1979 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1980 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1981 return "aapt.pb.TypeId";
1982 }
1983 protected:
1984 explicit TypeId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1985 bool is_message_owned = false);
1986 public:
1987
1988 static const ClassData _class_data_;
1989 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
1990
1991 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1992
1993 // nested types ----------------------------------------------------
1994
1995 // accessors -------------------------------------------------------
1996
1997 enum : int {
1998 kIdFieldNumber = 1,
1999 };
2000 // uint32 id = 1;
2001 void clear_id();
2002 ::uint32_t id() const;
2003 void set_id(::uint32_t value);
2004 private:
2005 ::uint32_t _internal_id() const;
2006 void _internal_set_id(::uint32_t value);
2007 public:
2008
2009 // @@protoc_insertion_point(class_scope:aapt.pb.TypeId)
2010 private:
2011 class _Internal;
2012
2013 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2014 typedef void InternalArenaConstructable_;
2015 typedef void DestructorSkippable_;
2016 struct Impl_ {
2017 ::uint32_t id_;
2018 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2019 };
2020 union { Impl_ _impl_; };
2021 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
2022 };
2023 // -------------------------------------------------------------------
2024
2025 class Type final :
2026 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Type) */ {
2027 public:
Type()2028 inline Type() : Type(nullptr) {}
2029 ~Type() override;
2030 explicit PROTOBUF_CONSTEXPR Type(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2031
2032 Type(const Type& from);
Type(Type && from)2033 Type(Type&& from) noexcept
2034 : Type() {
2035 *this = ::std::move(from);
2036 }
2037
2038 inline Type& operator=(const Type& from) {
2039 if (this == &from) return *this;
2040 CopyFrom(from);
2041 return *this;
2042 }
2043 inline Type& operator=(Type&& from) noexcept {
2044 if (this == &from) return *this;
2045 if (GetOwningArena() == from.GetOwningArena()
2046 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2047 && GetOwningArena() != nullptr
2048 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2049 ) {
2050 InternalSwap(&from);
2051 } else {
2052 CopyFrom(from);
2053 }
2054 return *this;
2055 }
2056
descriptor()2057 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2058 return GetDescriptor();
2059 }
GetDescriptor()2060 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2061 return default_instance().GetMetadata().descriptor;
2062 }
GetReflection()2063 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2064 return default_instance().GetMetadata().reflection;
2065 }
default_instance()2066 static const Type& default_instance() {
2067 return *internal_default_instance();
2068 }
internal_default_instance()2069 static inline const Type* internal_default_instance() {
2070 return reinterpret_cast<const Type*>(
2071 &_Type_default_instance_);
2072 }
2073 static constexpr int kIndexInFileMessages =
2074 9;
2075
swap(Type & a,Type & b)2076 friend void swap(Type& a, Type& b) {
2077 a.Swap(&b);
2078 }
Swap(Type * other)2079 inline void Swap(Type* other) {
2080 if (other == this) return;
2081 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2082 if (GetOwningArena() != nullptr &&
2083 GetOwningArena() == other->GetOwningArena()) {
2084 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2085 if (GetOwningArena() == other->GetOwningArena()) {
2086 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2087 InternalSwap(other);
2088 } else {
2089 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2090 }
2091 }
2092 void UnsafeArenaSwap(Type* other) {
2093 if (other == this) return;
2094 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2095 InternalSwap(other);
2096 }
2097
2098 // implements Message ----------------------------------------------
2099
2100 Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2101 return CreateMaybeMessage<Type>(arena);
2102 }
2103 Type* New() const {
2104 return New(nullptr);
2105 }
2106 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2107 void CopyFrom(const Type& from);
2108 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2109 void MergeFrom( const Type& from) {
2110 Type::MergeImpl(*this, from);
2111 }
2112 private:
2113 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2114 public:
2115 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2116 bool IsInitialized() const final;
2117
2118 size_t ByteSizeLong() const final;
2119 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2120 ::uint8_t* _InternalSerialize(
2121 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2122 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2123
2124 private:
2125 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2126 void SharedDtor();
2127 void SetCachedSize(int size) const final;
2128 void InternalSwap(Type* other);
2129
2130 private:
2131 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2132 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2133 return "aapt.pb.Type";
2134 }
2135 protected:
2136 explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2137 bool is_message_owned = false);
2138 public:
2139
2140 static const ClassData _class_data_;
2141 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2142
2143 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2144
2145 // nested types ----------------------------------------------------
2146
2147 // accessors -------------------------------------------------------
2148
2149 enum : int {
2150 kEntryFieldNumber = 3,
2151 kNameFieldNumber = 2,
2152 kTypeIdFieldNumber = 1,
2153 };
2154 // repeated .aapt.pb.Entry entry = 3;
2155 int entry_size() const;
2156 private:
2157 int _internal_entry_size() const;
2158 public:
2159 void clear_entry();
2160 ::aapt::pb::Entry* mutable_entry(int index);
2161 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Entry >*
2162 mutable_entry();
2163 private:
2164 const ::aapt::pb::Entry& _internal_entry(int index) const;
2165 ::aapt::pb::Entry* _internal_add_entry();
2166 public:
2167 const ::aapt::pb::Entry& entry(int index) const;
2168 ::aapt::pb::Entry* add_entry();
2169 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Entry >&
2170 entry() const;
2171
2172 // string name = 2;
2173 void clear_name();
2174 const std::string& name() const;
2175 template <typename ArgT0 = const std::string&, typename... ArgT>
2176 void set_name(ArgT0&& arg0, ArgT... args);
2177 std::string* mutable_name();
2178 PROTOBUF_NODISCARD std::string* release_name();
2179 void set_allocated_name(std::string* name);
2180 private:
2181 const std::string& _internal_name() const;
2182 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
2183 std::string* _internal_mutable_name();
2184 public:
2185
2186 // .aapt.pb.TypeId type_id = 1;
2187 bool has_type_id() const;
2188 private:
2189 bool _internal_has_type_id() const;
2190 public:
2191 void clear_type_id();
2192 const ::aapt::pb::TypeId& type_id() const;
2193 PROTOBUF_NODISCARD ::aapt::pb::TypeId* release_type_id();
2194 ::aapt::pb::TypeId* mutable_type_id();
2195 void set_allocated_type_id(::aapt::pb::TypeId* type_id);
2196 private:
2197 const ::aapt::pb::TypeId& _internal_type_id() const;
2198 ::aapt::pb::TypeId* _internal_mutable_type_id();
2199 public:
2200 void unsafe_arena_set_allocated_type_id(
2201 ::aapt::pb::TypeId* type_id);
2202 ::aapt::pb::TypeId* unsafe_arena_release_type_id();
2203
2204 // @@protoc_insertion_point(class_scope:aapt.pb.Type)
2205 private:
2206 class _Internal;
2207
2208 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2209 typedef void InternalArenaConstructable_;
2210 typedef void DestructorSkippable_;
2211 struct Impl_ {
2212 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Entry > entry_;
2213 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
2214 ::aapt::pb::TypeId* type_id_;
2215 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2216 };
2217 union { Impl_ _impl_; };
2218 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
2219 };
2220 // -------------------------------------------------------------------
2221
2222 class Visibility final :
2223 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Visibility) */ {
2224 public:
Visibility()2225 inline Visibility() : Visibility(nullptr) {}
2226 ~Visibility() override;
2227 explicit PROTOBUF_CONSTEXPR Visibility(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2228
2229 Visibility(const Visibility& from);
Visibility(Visibility && from)2230 Visibility(Visibility&& from) noexcept
2231 : Visibility() {
2232 *this = ::std::move(from);
2233 }
2234
2235 inline Visibility& operator=(const Visibility& from) {
2236 if (this == &from) return *this;
2237 CopyFrom(from);
2238 return *this;
2239 }
2240 inline Visibility& operator=(Visibility&& from) noexcept {
2241 if (this == &from) return *this;
2242 if (GetOwningArena() == from.GetOwningArena()
2243 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2244 && GetOwningArena() != nullptr
2245 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2246 ) {
2247 InternalSwap(&from);
2248 } else {
2249 CopyFrom(from);
2250 }
2251 return *this;
2252 }
2253
descriptor()2254 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2255 return GetDescriptor();
2256 }
GetDescriptor()2257 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2258 return default_instance().GetMetadata().descriptor;
2259 }
GetReflection()2260 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2261 return default_instance().GetMetadata().reflection;
2262 }
default_instance()2263 static const Visibility& default_instance() {
2264 return *internal_default_instance();
2265 }
internal_default_instance()2266 static inline const Visibility* internal_default_instance() {
2267 return reinterpret_cast<const Visibility*>(
2268 &_Visibility_default_instance_);
2269 }
2270 static constexpr int kIndexInFileMessages =
2271 10;
2272
swap(Visibility & a,Visibility & b)2273 friend void swap(Visibility& a, Visibility& b) {
2274 a.Swap(&b);
2275 }
Swap(Visibility * other)2276 inline void Swap(Visibility* other) {
2277 if (other == this) return;
2278 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2279 if (GetOwningArena() != nullptr &&
2280 GetOwningArena() == other->GetOwningArena()) {
2281 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2282 if (GetOwningArena() == other->GetOwningArena()) {
2283 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2284 InternalSwap(other);
2285 } else {
2286 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2287 }
2288 }
2289 void UnsafeArenaSwap(Visibility* other) {
2290 if (other == this) return;
2291 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2292 InternalSwap(other);
2293 }
2294
2295 // implements Message ----------------------------------------------
2296
2297 Visibility* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2298 return CreateMaybeMessage<Visibility>(arena);
2299 }
2300 Visibility* New() const {
2301 return New(nullptr);
2302 }
2303 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2304 void CopyFrom(const Visibility& from);
2305 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2306 void MergeFrom( const Visibility& from) {
2307 Visibility::MergeImpl(*this, from);
2308 }
2309 private:
2310 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2311 public:
2312 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2313 bool IsInitialized() const final;
2314
2315 size_t ByteSizeLong() const final;
2316 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2317 ::uint8_t* _InternalSerialize(
2318 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2319 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2320
2321 private:
2322 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2323 void SharedDtor();
2324 void SetCachedSize(int size) const final;
2325 void InternalSwap(Visibility* other);
2326
2327 private:
2328 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2329 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2330 return "aapt.pb.Visibility";
2331 }
2332 protected:
2333 explicit Visibility(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2334 bool is_message_owned = false);
2335 public:
2336
2337 static const ClassData _class_data_;
2338 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2339
2340 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2341
2342 // nested types ----------------------------------------------------
2343
2344 typedef Visibility_Level Level;
2345 static constexpr Level UNKNOWN =
2346 Visibility_Level_UNKNOWN;
2347 static constexpr Level PRIVATE =
2348 Visibility_Level_PRIVATE;
2349 static constexpr Level PUBLIC =
2350 Visibility_Level_PUBLIC;
2351 static inline bool Level_IsValid(int value) {
2352 return Visibility_Level_IsValid(value);
2353 }
2354 static constexpr Level Level_MIN =
2355 Visibility_Level_Level_MIN;
2356 static constexpr Level Level_MAX =
2357 Visibility_Level_Level_MAX;
2358 static constexpr int Level_ARRAYSIZE =
2359 Visibility_Level_Level_ARRAYSIZE;
2360 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2361 Level_descriptor() {
2362 return Visibility_Level_descriptor();
2363 }
2364 template<typename T>
2365 static inline const std::string& Level_Name(T enum_t_value) {
2366 static_assert(::std::is_same<T, Level>::value ||
2367 ::std::is_integral<T>::value,
2368 "Incorrect type passed to function Level_Name.");
2369 return Visibility_Level_Name(enum_t_value);
2370 }
2371 static inline bool Level_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2372 Level* value) {
2373 return Visibility_Level_Parse(name, value);
2374 }
2375
2376 // accessors -------------------------------------------------------
2377
2378 enum : int {
2379 kCommentFieldNumber = 3,
2380 kSourceFieldNumber = 2,
2381 kLevelFieldNumber = 1,
2382 kStagedApiFieldNumber = 4,
2383 };
2384 // string comment = 3;
2385 void clear_comment();
2386 const std::string& comment() const;
2387 template <typename ArgT0 = const std::string&, typename... ArgT>
2388 void set_comment(ArgT0&& arg0, ArgT... args);
2389 std::string* mutable_comment();
2390 PROTOBUF_NODISCARD std::string* release_comment();
2391 void set_allocated_comment(std::string* comment);
2392 private:
2393 const std::string& _internal_comment() const;
2394 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
2395 std::string* _internal_mutable_comment();
2396 public:
2397
2398 // .aapt.pb.Source source = 2;
2399 bool has_source() const;
2400 private:
2401 bool _internal_has_source() const;
2402 public:
2403 void clear_source();
2404 const ::aapt::pb::Source& source() const;
2405 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
2406 ::aapt::pb::Source* mutable_source();
2407 void set_allocated_source(::aapt::pb::Source* source);
2408 private:
2409 const ::aapt::pb::Source& _internal_source() const;
2410 ::aapt::pb::Source* _internal_mutable_source();
2411 public:
2412 void unsafe_arena_set_allocated_source(
2413 ::aapt::pb::Source* source);
2414 ::aapt::pb::Source* unsafe_arena_release_source();
2415
2416 // .aapt.pb.Visibility.Level level = 1;
2417 void clear_level();
2418 ::aapt::pb::Visibility_Level level() const;
2419 void set_level(::aapt::pb::Visibility_Level value);
2420 private:
2421 ::aapt::pb::Visibility_Level _internal_level() const;
2422 void _internal_set_level(::aapt::pb::Visibility_Level value);
2423 public:
2424
2425 // bool staged_api = 4;
2426 void clear_staged_api();
2427 bool staged_api() const;
2428 void set_staged_api(bool value);
2429 private:
2430 bool _internal_staged_api() const;
2431 void _internal_set_staged_api(bool value);
2432 public:
2433
2434 // @@protoc_insertion_point(class_scope:aapt.pb.Visibility)
2435 private:
2436 class _Internal;
2437
2438 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2439 typedef void InternalArenaConstructable_;
2440 typedef void DestructorSkippable_;
2441 struct Impl_ {
2442 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
2443 ::aapt::pb::Source* source_;
2444 int level_;
2445 bool staged_api_;
2446 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2447 };
2448 union { Impl_ _impl_; };
2449 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
2450 };
2451 // -------------------------------------------------------------------
2452
2453 class AllowNew final :
2454 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.AllowNew) */ {
2455 public:
AllowNew()2456 inline AllowNew() : AllowNew(nullptr) {}
2457 ~AllowNew() override;
2458 explicit PROTOBUF_CONSTEXPR AllowNew(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2459
2460 AllowNew(const AllowNew& from);
AllowNew(AllowNew && from)2461 AllowNew(AllowNew&& from) noexcept
2462 : AllowNew() {
2463 *this = ::std::move(from);
2464 }
2465
2466 inline AllowNew& operator=(const AllowNew& from) {
2467 if (this == &from) return *this;
2468 CopyFrom(from);
2469 return *this;
2470 }
2471 inline AllowNew& operator=(AllowNew&& from) noexcept {
2472 if (this == &from) return *this;
2473 if (GetOwningArena() == from.GetOwningArena()
2474 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2475 && GetOwningArena() != nullptr
2476 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2477 ) {
2478 InternalSwap(&from);
2479 } else {
2480 CopyFrom(from);
2481 }
2482 return *this;
2483 }
2484
descriptor()2485 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2486 return GetDescriptor();
2487 }
GetDescriptor()2488 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2489 return default_instance().GetMetadata().descriptor;
2490 }
GetReflection()2491 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2492 return default_instance().GetMetadata().reflection;
2493 }
default_instance()2494 static const AllowNew& default_instance() {
2495 return *internal_default_instance();
2496 }
internal_default_instance()2497 static inline const AllowNew* internal_default_instance() {
2498 return reinterpret_cast<const AllowNew*>(
2499 &_AllowNew_default_instance_);
2500 }
2501 static constexpr int kIndexInFileMessages =
2502 11;
2503
swap(AllowNew & a,AllowNew & b)2504 friend void swap(AllowNew& a, AllowNew& b) {
2505 a.Swap(&b);
2506 }
Swap(AllowNew * other)2507 inline void Swap(AllowNew* other) {
2508 if (other == this) return;
2509 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2510 if (GetOwningArena() != nullptr &&
2511 GetOwningArena() == other->GetOwningArena()) {
2512 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2513 if (GetOwningArena() == other->GetOwningArena()) {
2514 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2515 InternalSwap(other);
2516 } else {
2517 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2518 }
2519 }
2520 void UnsafeArenaSwap(AllowNew* other) {
2521 if (other == this) return;
2522 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2523 InternalSwap(other);
2524 }
2525
2526 // implements Message ----------------------------------------------
2527
2528 AllowNew* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2529 return CreateMaybeMessage<AllowNew>(arena);
2530 }
2531 AllowNew* New() const {
2532 return New(nullptr);
2533 }
2534 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2535 void CopyFrom(const AllowNew& from);
2536 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2537 void MergeFrom( const AllowNew& from) {
2538 AllowNew::MergeImpl(*this, from);
2539 }
2540 private:
2541 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2542 public:
2543 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2544 bool IsInitialized() const final;
2545
2546 size_t ByteSizeLong() const final;
2547 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2548 ::uint8_t* _InternalSerialize(
2549 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2550 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2551
2552 private:
2553 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2554 void SharedDtor();
2555 void SetCachedSize(int size) const final;
2556 void InternalSwap(AllowNew* other);
2557
2558 private:
2559 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2560 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2561 return "aapt.pb.AllowNew";
2562 }
2563 protected:
2564 explicit AllowNew(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2565 bool is_message_owned = false);
2566 public:
2567
2568 static const ClassData _class_data_;
2569 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2570
2571 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2572
2573 // nested types ----------------------------------------------------
2574
2575 // accessors -------------------------------------------------------
2576
2577 enum : int {
2578 kCommentFieldNumber = 2,
2579 kSourceFieldNumber = 1,
2580 };
2581 // string comment = 2;
2582 void clear_comment();
2583 const std::string& comment() const;
2584 template <typename ArgT0 = const std::string&, typename... ArgT>
2585 void set_comment(ArgT0&& arg0, ArgT... args);
2586 std::string* mutable_comment();
2587 PROTOBUF_NODISCARD std::string* release_comment();
2588 void set_allocated_comment(std::string* comment);
2589 private:
2590 const std::string& _internal_comment() const;
2591 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
2592 std::string* _internal_mutable_comment();
2593 public:
2594
2595 // .aapt.pb.Source source = 1;
2596 bool has_source() const;
2597 private:
2598 bool _internal_has_source() const;
2599 public:
2600 void clear_source();
2601 const ::aapt::pb::Source& source() const;
2602 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
2603 ::aapt::pb::Source* mutable_source();
2604 void set_allocated_source(::aapt::pb::Source* source);
2605 private:
2606 const ::aapt::pb::Source& _internal_source() const;
2607 ::aapt::pb::Source* _internal_mutable_source();
2608 public:
2609 void unsafe_arena_set_allocated_source(
2610 ::aapt::pb::Source* source);
2611 ::aapt::pb::Source* unsafe_arena_release_source();
2612
2613 // @@protoc_insertion_point(class_scope:aapt.pb.AllowNew)
2614 private:
2615 class _Internal;
2616
2617 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2618 typedef void InternalArenaConstructable_;
2619 typedef void DestructorSkippable_;
2620 struct Impl_ {
2621 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
2622 ::aapt::pb::Source* source_;
2623 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2624 };
2625 union { Impl_ _impl_; };
2626 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
2627 };
2628 // -------------------------------------------------------------------
2629
2630 class Overlayable final :
2631 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Overlayable) */ {
2632 public:
Overlayable()2633 inline Overlayable() : Overlayable(nullptr) {}
2634 ~Overlayable() override;
2635 explicit PROTOBUF_CONSTEXPR Overlayable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2636
2637 Overlayable(const Overlayable& from);
Overlayable(Overlayable && from)2638 Overlayable(Overlayable&& from) noexcept
2639 : Overlayable() {
2640 *this = ::std::move(from);
2641 }
2642
2643 inline Overlayable& operator=(const Overlayable& from) {
2644 if (this == &from) return *this;
2645 CopyFrom(from);
2646 return *this;
2647 }
2648 inline Overlayable& operator=(Overlayable&& from) noexcept {
2649 if (this == &from) return *this;
2650 if (GetOwningArena() == from.GetOwningArena()
2651 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2652 && GetOwningArena() != nullptr
2653 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2654 ) {
2655 InternalSwap(&from);
2656 } else {
2657 CopyFrom(from);
2658 }
2659 return *this;
2660 }
2661
descriptor()2662 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2663 return GetDescriptor();
2664 }
GetDescriptor()2665 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2666 return default_instance().GetMetadata().descriptor;
2667 }
GetReflection()2668 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2669 return default_instance().GetMetadata().reflection;
2670 }
default_instance()2671 static const Overlayable& default_instance() {
2672 return *internal_default_instance();
2673 }
internal_default_instance()2674 static inline const Overlayable* internal_default_instance() {
2675 return reinterpret_cast<const Overlayable*>(
2676 &_Overlayable_default_instance_);
2677 }
2678 static constexpr int kIndexInFileMessages =
2679 12;
2680
swap(Overlayable & a,Overlayable & b)2681 friend void swap(Overlayable& a, Overlayable& b) {
2682 a.Swap(&b);
2683 }
Swap(Overlayable * other)2684 inline void Swap(Overlayable* other) {
2685 if (other == this) return;
2686 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2687 if (GetOwningArena() != nullptr &&
2688 GetOwningArena() == other->GetOwningArena()) {
2689 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2690 if (GetOwningArena() == other->GetOwningArena()) {
2691 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2692 InternalSwap(other);
2693 } else {
2694 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2695 }
2696 }
2697 void UnsafeArenaSwap(Overlayable* other) {
2698 if (other == this) return;
2699 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2700 InternalSwap(other);
2701 }
2702
2703 // implements Message ----------------------------------------------
2704
2705 Overlayable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2706 return CreateMaybeMessage<Overlayable>(arena);
2707 }
2708 Overlayable* New() const {
2709 return New(nullptr);
2710 }
2711 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2712 void CopyFrom(const Overlayable& from);
2713 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2714 void MergeFrom( const Overlayable& from) {
2715 Overlayable::MergeImpl(*this, from);
2716 }
2717 private:
2718 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2719 public:
2720 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2721 bool IsInitialized() const final;
2722
2723 size_t ByteSizeLong() const final;
2724 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2725 ::uint8_t* _InternalSerialize(
2726 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2727 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2728
2729 private:
2730 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2731 void SharedDtor();
2732 void SetCachedSize(int size) const final;
2733 void InternalSwap(Overlayable* other);
2734
2735 private:
2736 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2737 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2738 return "aapt.pb.Overlayable";
2739 }
2740 protected:
2741 explicit Overlayable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2742 bool is_message_owned = false);
2743 public:
2744
2745 static const ClassData _class_data_;
2746 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2747
2748 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2749
2750 // nested types ----------------------------------------------------
2751
2752 // accessors -------------------------------------------------------
2753
2754 enum : int {
2755 kNameFieldNumber = 1,
2756 kActorFieldNumber = 3,
2757 kSourceFieldNumber = 2,
2758 };
2759 // string name = 1;
2760 void clear_name();
2761 const std::string& name() const;
2762 template <typename ArgT0 = const std::string&, typename... ArgT>
2763 void set_name(ArgT0&& arg0, ArgT... args);
2764 std::string* mutable_name();
2765 PROTOBUF_NODISCARD std::string* release_name();
2766 void set_allocated_name(std::string* name);
2767 private:
2768 const std::string& _internal_name() const;
2769 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
2770 std::string* _internal_mutable_name();
2771 public:
2772
2773 // string actor = 3;
2774 void clear_actor();
2775 const std::string& actor() const;
2776 template <typename ArgT0 = const std::string&, typename... ArgT>
2777 void set_actor(ArgT0&& arg0, ArgT... args);
2778 std::string* mutable_actor();
2779 PROTOBUF_NODISCARD std::string* release_actor();
2780 void set_allocated_actor(std::string* actor);
2781 private:
2782 const std::string& _internal_actor() const;
2783 inline PROTOBUF_ALWAYS_INLINE void _internal_set_actor(const std::string& value);
2784 std::string* _internal_mutable_actor();
2785 public:
2786
2787 // .aapt.pb.Source source = 2;
2788 bool has_source() const;
2789 private:
2790 bool _internal_has_source() const;
2791 public:
2792 void clear_source();
2793 const ::aapt::pb::Source& source() const;
2794 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
2795 ::aapt::pb::Source* mutable_source();
2796 void set_allocated_source(::aapt::pb::Source* source);
2797 private:
2798 const ::aapt::pb::Source& _internal_source() const;
2799 ::aapt::pb::Source* _internal_mutable_source();
2800 public:
2801 void unsafe_arena_set_allocated_source(
2802 ::aapt::pb::Source* source);
2803 ::aapt::pb::Source* unsafe_arena_release_source();
2804
2805 // @@protoc_insertion_point(class_scope:aapt.pb.Overlayable)
2806 private:
2807 class _Internal;
2808
2809 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
2810 typedef void InternalArenaConstructable_;
2811 typedef void DestructorSkippable_;
2812 struct Impl_ {
2813 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
2814 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr actor_;
2815 ::aapt::pb::Source* source_;
2816 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
2817 };
2818 union { Impl_ _impl_; };
2819 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
2820 };
2821 // -------------------------------------------------------------------
2822
2823 class OverlayableItem final :
2824 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.OverlayableItem) */ {
2825 public:
OverlayableItem()2826 inline OverlayableItem() : OverlayableItem(nullptr) {}
2827 ~OverlayableItem() override;
2828 explicit PROTOBUF_CONSTEXPR OverlayableItem(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
2829
2830 OverlayableItem(const OverlayableItem& from);
OverlayableItem(OverlayableItem && from)2831 OverlayableItem(OverlayableItem&& from) noexcept
2832 : OverlayableItem() {
2833 *this = ::std::move(from);
2834 }
2835
2836 inline OverlayableItem& operator=(const OverlayableItem& from) {
2837 if (this == &from) return *this;
2838 CopyFrom(from);
2839 return *this;
2840 }
2841 inline OverlayableItem& operator=(OverlayableItem&& from) noexcept {
2842 if (this == &from) return *this;
2843 if (GetOwningArena() == from.GetOwningArena()
2844 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
2845 && GetOwningArena() != nullptr
2846 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
2847 ) {
2848 InternalSwap(&from);
2849 } else {
2850 CopyFrom(from);
2851 }
2852 return *this;
2853 }
2854
descriptor()2855 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
2856 return GetDescriptor();
2857 }
GetDescriptor()2858 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
2859 return default_instance().GetMetadata().descriptor;
2860 }
GetReflection()2861 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
2862 return default_instance().GetMetadata().reflection;
2863 }
default_instance()2864 static const OverlayableItem& default_instance() {
2865 return *internal_default_instance();
2866 }
internal_default_instance()2867 static inline const OverlayableItem* internal_default_instance() {
2868 return reinterpret_cast<const OverlayableItem*>(
2869 &_OverlayableItem_default_instance_);
2870 }
2871 static constexpr int kIndexInFileMessages =
2872 13;
2873
swap(OverlayableItem & a,OverlayableItem & b)2874 friend void swap(OverlayableItem& a, OverlayableItem& b) {
2875 a.Swap(&b);
2876 }
Swap(OverlayableItem * other)2877 inline void Swap(OverlayableItem* other) {
2878 if (other == this) return;
2879 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
2880 if (GetOwningArena() != nullptr &&
2881 GetOwningArena() == other->GetOwningArena()) {
2882 #else // PROTOBUF_FORCE_COPY_IN_SWAP
2883 if (GetOwningArena() == other->GetOwningArena()) {
2884 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
2885 InternalSwap(other);
2886 } else {
2887 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
2888 }
2889 }
2890 void UnsafeArenaSwap(OverlayableItem* other) {
2891 if (other == this) return;
2892 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
2893 InternalSwap(other);
2894 }
2895
2896 // implements Message ----------------------------------------------
2897
2898 OverlayableItem* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
2899 return CreateMaybeMessage<OverlayableItem>(arena);
2900 }
2901 OverlayableItem* New() const {
2902 return New(nullptr);
2903 }
2904 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
2905 void CopyFrom(const OverlayableItem& from);
2906 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
2907 void MergeFrom( const OverlayableItem& from) {
2908 OverlayableItem::MergeImpl(*this, from);
2909 }
2910 private:
2911 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
2912 public:
2913 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2914 bool IsInitialized() const final;
2915
2916 size_t ByteSizeLong() const final;
2917 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
2918 ::uint8_t* _InternalSerialize(
2919 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
2920 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
2921
2922 private:
2923 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
2924 void SharedDtor();
2925 void SetCachedSize(int size) const final;
2926 void InternalSwap(OverlayableItem* other);
2927
2928 private:
2929 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
2930 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
2931 return "aapt.pb.OverlayableItem";
2932 }
2933 protected:
2934 explicit OverlayableItem(::PROTOBUF_NAMESPACE_ID::Arena* arena,
2935 bool is_message_owned = false);
2936 public:
2937
2938 static const ClassData _class_data_;
2939 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
2940
2941 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
2942
2943 // nested types ----------------------------------------------------
2944
2945 typedef OverlayableItem_Policy Policy;
2946 static constexpr Policy NONE =
2947 OverlayableItem_Policy_NONE;
2948 static constexpr Policy PUBLIC =
2949 OverlayableItem_Policy_PUBLIC;
2950 static constexpr Policy SYSTEM =
2951 OverlayableItem_Policy_SYSTEM;
2952 static constexpr Policy VENDOR =
2953 OverlayableItem_Policy_VENDOR;
2954 static constexpr Policy PRODUCT =
2955 OverlayableItem_Policy_PRODUCT;
2956 static constexpr Policy SIGNATURE =
2957 OverlayableItem_Policy_SIGNATURE;
2958 static constexpr Policy ODM =
2959 OverlayableItem_Policy_ODM;
2960 static constexpr Policy OEM =
2961 OverlayableItem_Policy_OEM;
2962 static constexpr Policy ACTOR =
2963 OverlayableItem_Policy_ACTOR;
2964 static constexpr Policy CONFIG_SIGNATURE =
2965 OverlayableItem_Policy_CONFIG_SIGNATURE;
2966 static inline bool Policy_IsValid(int value) {
2967 return OverlayableItem_Policy_IsValid(value);
2968 }
2969 static constexpr Policy Policy_MIN =
2970 OverlayableItem_Policy_Policy_MIN;
2971 static constexpr Policy Policy_MAX =
2972 OverlayableItem_Policy_Policy_MAX;
2973 static constexpr int Policy_ARRAYSIZE =
2974 OverlayableItem_Policy_Policy_ARRAYSIZE;
2975 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
2976 Policy_descriptor() {
2977 return OverlayableItem_Policy_descriptor();
2978 }
2979 template<typename T>
2980 static inline const std::string& Policy_Name(T enum_t_value) {
2981 static_assert(::std::is_same<T, Policy>::value ||
2982 ::std::is_integral<T>::value,
2983 "Incorrect type passed to function Policy_Name.");
2984 return OverlayableItem_Policy_Name(enum_t_value);
2985 }
2986 static inline bool Policy_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
2987 Policy* value) {
2988 return OverlayableItem_Policy_Parse(name, value);
2989 }
2990
2991 // accessors -------------------------------------------------------
2992
2993 enum : int {
2994 kPolicyFieldNumber = 3,
2995 kCommentFieldNumber = 2,
2996 kSourceFieldNumber = 1,
2997 kOverlayableIdxFieldNumber = 4,
2998 };
2999 // repeated .aapt.pb.OverlayableItem.Policy policy = 3;
3000 int policy_size() const;
3001 private:
3002 int _internal_policy_size() const;
3003 public:
3004 void clear_policy();
3005 private:
3006 ::aapt::pb::OverlayableItem_Policy _internal_policy(int index) const;
3007 void _internal_add_policy(::aapt::pb::OverlayableItem_Policy value);
3008 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_policy();
3009 public:
3010 ::aapt::pb::OverlayableItem_Policy policy(int index) const;
3011 void set_policy(int index, ::aapt::pb::OverlayableItem_Policy value);
3012 void add_policy(::aapt::pb::OverlayableItem_Policy value);
3013 const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& policy() const;
3014 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_policy();
3015
3016 // string comment = 2;
3017 void clear_comment();
3018 const std::string& comment() const;
3019 template <typename ArgT0 = const std::string&, typename... ArgT>
3020 void set_comment(ArgT0&& arg0, ArgT... args);
3021 std::string* mutable_comment();
3022 PROTOBUF_NODISCARD std::string* release_comment();
3023 void set_allocated_comment(std::string* comment);
3024 private:
3025 const std::string& _internal_comment() const;
3026 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
3027 std::string* _internal_mutable_comment();
3028 public:
3029
3030 // .aapt.pb.Source source = 1;
3031 bool has_source() const;
3032 private:
3033 bool _internal_has_source() const;
3034 public:
3035 void clear_source();
3036 const ::aapt::pb::Source& source() const;
3037 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
3038 ::aapt::pb::Source* mutable_source();
3039 void set_allocated_source(::aapt::pb::Source* source);
3040 private:
3041 const ::aapt::pb::Source& _internal_source() const;
3042 ::aapt::pb::Source* _internal_mutable_source();
3043 public:
3044 void unsafe_arena_set_allocated_source(
3045 ::aapt::pb::Source* source);
3046 ::aapt::pb::Source* unsafe_arena_release_source();
3047
3048 // uint32 overlayable_idx = 4;
3049 void clear_overlayable_idx();
3050 ::uint32_t overlayable_idx() const;
3051 void set_overlayable_idx(::uint32_t value);
3052 private:
3053 ::uint32_t _internal_overlayable_idx() const;
3054 void _internal_set_overlayable_idx(::uint32_t value);
3055 public:
3056
3057 // @@protoc_insertion_point(class_scope:aapt.pb.OverlayableItem)
3058 private:
3059 class _Internal;
3060
3061 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3062 typedef void InternalArenaConstructable_;
3063 typedef void DestructorSkippable_;
3064 struct Impl_ {
3065 ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> policy_;
3066 mutable std::atomic<int> _policy_cached_byte_size_;
3067 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
3068 ::aapt::pb::Source* source_;
3069 ::uint32_t overlayable_idx_;
3070 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3071 };
3072 union { Impl_ _impl_; };
3073 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
3074 };
3075 // -------------------------------------------------------------------
3076
3077 class StagedId final :
3078 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StagedId) */ {
3079 public:
StagedId()3080 inline StagedId() : StagedId(nullptr) {}
3081 ~StagedId() override;
3082 explicit PROTOBUF_CONSTEXPR StagedId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3083
3084 StagedId(const StagedId& from);
StagedId(StagedId && from)3085 StagedId(StagedId&& from) noexcept
3086 : StagedId() {
3087 *this = ::std::move(from);
3088 }
3089
3090 inline StagedId& operator=(const StagedId& from) {
3091 if (this == &from) return *this;
3092 CopyFrom(from);
3093 return *this;
3094 }
3095 inline StagedId& operator=(StagedId&& from) noexcept {
3096 if (this == &from) return *this;
3097 if (GetOwningArena() == from.GetOwningArena()
3098 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3099 && GetOwningArena() != nullptr
3100 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3101 ) {
3102 InternalSwap(&from);
3103 } else {
3104 CopyFrom(from);
3105 }
3106 return *this;
3107 }
3108
descriptor()3109 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3110 return GetDescriptor();
3111 }
GetDescriptor()3112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3113 return default_instance().GetMetadata().descriptor;
3114 }
GetReflection()3115 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3116 return default_instance().GetMetadata().reflection;
3117 }
default_instance()3118 static const StagedId& default_instance() {
3119 return *internal_default_instance();
3120 }
internal_default_instance()3121 static inline const StagedId* internal_default_instance() {
3122 return reinterpret_cast<const StagedId*>(
3123 &_StagedId_default_instance_);
3124 }
3125 static constexpr int kIndexInFileMessages =
3126 14;
3127
swap(StagedId & a,StagedId & b)3128 friend void swap(StagedId& a, StagedId& b) {
3129 a.Swap(&b);
3130 }
Swap(StagedId * other)3131 inline void Swap(StagedId* other) {
3132 if (other == this) return;
3133 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3134 if (GetOwningArena() != nullptr &&
3135 GetOwningArena() == other->GetOwningArena()) {
3136 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3137 if (GetOwningArena() == other->GetOwningArena()) {
3138 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3139 InternalSwap(other);
3140 } else {
3141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3142 }
3143 }
3144 void UnsafeArenaSwap(StagedId* other) {
3145 if (other == this) return;
3146 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3147 InternalSwap(other);
3148 }
3149
3150 // implements Message ----------------------------------------------
3151
3152 StagedId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3153 return CreateMaybeMessage<StagedId>(arena);
3154 }
3155 StagedId* New() const {
3156 return New(nullptr);
3157 }
3158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3159 void CopyFrom(const StagedId& from);
3160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3161 void MergeFrom( const StagedId& from) {
3162 StagedId::MergeImpl(*this, from);
3163 }
3164 private:
3165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3166 public:
3167 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3168 bool IsInitialized() const final;
3169
3170 size_t ByteSizeLong() const final;
3171 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3172 ::uint8_t* _InternalSerialize(
3173 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3174 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3175
3176 private:
3177 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3178 void SharedDtor();
3179 void SetCachedSize(int size) const final;
3180 void InternalSwap(StagedId* other);
3181
3182 private:
3183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3185 return "aapt.pb.StagedId";
3186 }
3187 protected:
3188 explicit StagedId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3189 bool is_message_owned = false);
3190 public:
3191
3192 static const ClassData _class_data_;
3193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3194
3195 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3196
3197 // nested types ----------------------------------------------------
3198
3199 // accessors -------------------------------------------------------
3200
3201 enum : int {
3202 kSourceFieldNumber = 1,
3203 kStagedIdFieldNumber = 2,
3204 };
3205 // .aapt.pb.Source source = 1;
3206 bool has_source() const;
3207 private:
3208 bool _internal_has_source() const;
3209 public:
3210 void clear_source();
3211 const ::aapt::pb::Source& source() const;
3212 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
3213 ::aapt::pb::Source* mutable_source();
3214 void set_allocated_source(::aapt::pb::Source* source);
3215 private:
3216 const ::aapt::pb::Source& _internal_source() const;
3217 ::aapt::pb::Source* _internal_mutable_source();
3218 public:
3219 void unsafe_arena_set_allocated_source(
3220 ::aapt::pb::Source* source);
3221 ::aapt::pb::Source* unsafe_arena_release_source();
3222
3223 // uint32 staged_id = 2;
3224 void clear_staged_id();
3225 ::uint32_t staged_id() const;
3226 void set_staged_id(::uint32_t value);
3227 private:
3228 ::uint32_t _internal_staged_id() const;
3229 void _internal_set_staged_id(::uint32_t value);
3230 public:
3231
3232 // @@protoc_insertion_point(class_scope:aapt.pb.StagedId)
3233 private:
3234 class _Internal;
3235
3236 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3237 typedef void InternalArenaConstructable_;
3238 typedef void DestructorSkippable_;
3239 struct Impl_ {
3240 ::aapt::pb::Source* source_;
3241 ::uint32_t staged_id_;
3242 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3243 };
3244 union { Impl_ _impl_; };
3245 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
3246 };
3247 // -------------------------------------------------------------------
3248
3249 class EntryId final :
3250 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.EntryId) */ {
3251 public:
EntryId()3252 inline EntryId() : EntryId(nullptr) {}
3253 ~EntryId() override;
3254 explicit PROTOBUF_CONSTEXPR EntryId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3255
3256 EntryId(const EntryId& from);
EntryId(EntryId && from)3257 EntryId(EntryId&& from) noexcept
3258 : EntryId() {
3259 *this = ::std::move(from);
3260 }
3261
3262 inline EntryId& operator=(const EntryId& from) {
3263 if (this == &from) return *this;
3264 CopyFrom(from);
3265 return *this;
3266 }
3267 inline EntryId& operator=(EntryId&& from) noexcept {
3268 if (this == &from) return *this;
3269 if (GetOwningArena() == from.GetOwningArena()
3270 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3271 && GetOwningArena() != nullptr
3272 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3273 ) {
3274 InternalSwap(&from);
3275 } else {
3276 CopyFrom(from);
3277 }
3278 return *this;
3279 }
3280
descriptor()3281 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3282 return GetDescriptor();
3283 }
GetDescriptor()3284 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3285 return default_instance().GetMetadata().descriptor;
3286 }
GetReflection()3287 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3288 return default_instance().GetMetadata().reflection;
3289 }
default_instance()3290 static const EntryId& default_instance() {
3291 return *internal_default_instance();
3292 }
internal_default_instance()3293 static inline const EntryId* internal_default_instance() {
3294 return reinterpret_cast<const EntryId*>(
3295 &_EntryId_default_instance_);
3296 }
3297 static constexpr int kIndexInFileMessages =
3298 15;
3299
swap(EntryId & a,EntryId & b)3300 friend void swap(EntryId& a, EntryId& b) {
3301 a.Swap(&b);
3302 }
Swap(EntryId * other)3303 inline void Swap(EntryId* other) {
3304 if (other == this) return;
3305 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3306 if (GetOwningArena() != nullptr &&
3307 GetOwningArena() == other->GetOwningArena()) {
3308 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3309 if (GetOwningArena() == other->GetOwningArena()) {
3310 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3311 InternalSwap(other);
3312 } else {
3313 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3314 }
3315 }
3316 void UnsafeArenaSwap(EntryId* other) {
3317 if (other == this) return;
3318 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3319 InternalSwap(other);
3320 }
3321
3322 // implements Message ----------------------------------------------
3323
3324 EntryId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3325 return CreateMaybeMessage<EntryId>(arena);
3326 }
3327 EntryId* New() const {
3328 return New(nullptr);
3329 }
3330 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3331 void CopyFrom(const EntryId& from);
3332 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3333 void MergeFrom( const EntryId& from) {
3334 EntryId::MergeImpl(*this, from);
3335 }
3336 private:
3337 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3338 public:
3339 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3340 bool IsInitialized() const final;
3341
3342 size_t ByteSizeLong() const final;
3343 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3344 ::uint8_t* _InternalSerialize(
3345 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3346 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3347
3348 private:
3349 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3350 void SharedDtor();
3351 void SetCachedSize(int size) const final;
3352 void InternalSwap(EntryId* other);
3353
3354 private:
3355 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3356 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3357 return "aapt.pb.EntryId";
3358 }
3359 protected:
3360 explicit EntryId(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3361 bool is_message_owned = false);
3362 public:
3363
3364 static const ClassData _class_data_;
3365 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3366
3367 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3368
3369 // nested types ----------------------------------------------------
3370
3371 // accessors -------------------------------------------------------
3372
3373 enum : int {
3374 kIdFieldNumber = 1,
3375 };
3376 // uint32 id = 1;
3377 void clear_id();
3378 ::uint32_t id() const;
3379 void set_id(::uint32_t value);
3380 private:
3381 ::uint32_t _internal_id() const;
3382 void _internal_set_id(::uint32_t value);
3383 public:
3384
3385 // @@protoc_insertion_point(class_scope:aapt.pb.EntryId)
3386 private:
3387 class _Internal;
3388
3389 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3390 typedef void InternalArenaConstructable_;
3391 typedef void DestructorSkippable_;
3392 struct Impl_ {
3393 ::uint32_t id_;
3394 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3395 };
3396 union { Impl_ _impl_; };
3397 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
3398 };
3399 // -------------------------------------------------------------------
3400
3401 class Entry final :
3402 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Entry) */ {
3403 public:
Entry()3404 inline Entry() : Entry(nullptr) {}
3405 ~Entry() override;
3406 explicit PROTOBUF_CONSTEXPR Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3407
3408 Entry(const Entry& from);
Entry(Entry && from)3409 Entry(Entry&& from) noexcept
3410 : Entry() {
3411 *this = ::std::move(from);
3412 }
3413
3414 inline Entry& operator=(const Entry& from) {
3415 if (this == &from) return *this;
3416 CopyFrom(from);
3417 return *this;
3418 }
3419 inline Entry& operator=(Entry&& from) noexcept {
3420 if (this == &from) return *this;
3421 if (GetOwningArena() == from.GetOwningArena()
3422 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3423 && GetOwningArena() != nullptr
3424 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3425 ) {
3426 InternalSwap(&from);
3427 } else {
3428 CopyFrom(from);
3429 }
3430 return *this;
3431 }
3432
descriptor()3433 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3434 return GetDescriptor();
3435 }
GetDescriptor()3436 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3437 return default_instance().GetMetadata().descriptor;
3438 }
GetReflection()3439 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3440 return default_instance().GetMetadata().reflection;
3441 }
default_instance()3442 static const Entry& default_instance() {
3443 return *internal_default_instance();
3444 }
internal_default_instance()3445 static inline const Entry* internal_default_instance() {
3446 return reinterpret_cast<const Entry*>(
3447 &_Entry_default_instance_);
3448 }
3449 static constexpr int kIndexInFileMessages =
3450 16;
3451
swap(Entry & a,Entry & b)3452 friend void swap(Entry& a, Entry& b) {
3453 a.Swap(&b);
3454 }
Swap(Entry * other)3455 inline void Swap(Entry* other) {
3456 if (other == this) return;
3457 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3458 if (GetOwningArena() != nullptr &&
3459 GetOwningArena() == other->GetOwningArena()) {
3460 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3461 if (GetOwningArena() == other->GetOwningArena()) {
3462 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3463 InternalSwap(other);
3464 } else {
3465 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3466 }
3467 }
3468 void UnsafeArenaSwap(Entry* other) {
3469 if (other == this) return;
3470 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3471 InternalSwap(other);
3472 }
3473
3474 // implements Message ----------------------------------------------
3475
3476 Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3477 return CreateMaybeMessage<Entry>(arena);
3478 }
3479 Entry* New() const {
3480 return New(nullptr);
3481 }
3482 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3483 void CopyFrom(const Entry& from);
3484 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3485 void MergeFrom( const Entry& from) {
3486 Entry::MergeImpl(*this, from);
3487 }
3488 private:
3489 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3490 public:
3491 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3492 bool IsInitialized() const final;
3493
3494 size_t ByteSizeLong() const final;
3495 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3496 ::uint8_t* _InternalSerialize(
3497 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3498 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3499
3500 private:
3501 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3502 void SharedDtor();
3503 void SetCachedSize(int size) const final;
3504 void InternalSwap(Entry* other);
3505
3506 private:
3507 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3508 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3509 return "aapt.pb.Entry";
3510 }
3511 protected:
3512 explicit Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3513 bool is_message_owned = false);
3514 public:
3515
3516 static const ClassData _class_data_;
3517 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3518
3519 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3520
3521 // nested types ----------------------------------------------------
3522
3523 // accessors -------------------------------------------------------
3524
3525 enum : int {
3526 kConfigValueFieldNumber = 6,
3527 kFlagDisabledConfigValueFieldNumber = 8,
3528 kNameFieldNumber = 2,
3529 kEntryIdFieldNumber = 1,
3530 kVisibilityFieldNumber = 3,
3531 kAllowNewFieldNumber = 4,
3532 kOverlayableItemFieldNumber = 5,
3533 kStagedIdFieldNumber = 7,
3534 };
3535 // repeated .aapt.pb.ConfigValue config_value = 6;
3536 int config_value_size() const;
3537 private:
3538 int _internal_config_value_size() const;
3539 public:
3540 void clear_config_value();
3541 ::aapt::pb::ConfigValue* mutable_config_value(int index);
3542 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue >*
3543 mutable_config_value();
3544 private:
3545 const ::aapt::pb::ConfigValue& _internal_config_value(int index) const;
3546 ::aapt::pb::ConfigValue* _internal_add_config_value();
3547 public:
3548 const ::aapt::pb::ConfigValue& config_value(int index) const;
3549 ::aapt::pb::ConfigValue* add_config_value();
3550 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue >&
3551 config_value() const;
3552
3553 // repeated .aapt.pb.ConfigValue flag_disabled_config_value = 8;
3554 int flag_disabled_config_value_size() const;
3555 private:
3556 int _internal_flag_disabled_config_value_size() const;
3557 public:
3558 void clear_flag_disabled_config_value();
3559 ::aapt::pb::ConfigValue* mutable_flag_disabled_config_value(int index);
3560 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue >*
3561 mutable_flag_disabled_config_value();
3562 private:
3563 const ::aapt::pb::ConfigValue& _internal_flag_disabled_config_value(int index) const;
3564 ::aapt::pb::ConfigValue* _internal_add_flag_disabled_config_value();
3565 public:
3566 const ::aapt::pb::ConfigValue& flag_disabled_config_value(int index) const;
3567 ::aapt::pb::ConfigValue* add_flag_disabled_config_value();
3568 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue >&
3569 flag_disabled_config_value() const;
3570
3571 // string name = 2;
3572 void clear_name();
3573 const std::string& name() const;
3574 template <typename ArgT0 = const std::string&, typename... ArgT>
3575 void set_name(ArgT0&& arg0, ArgT... args);
3576 std::string* mutable_name();
3577 PROTOBUF_NODISCARD std::string* release_name();
3578 void set_allocated_name(std::string* name);
3579 private:
3580 const std::string& _internal_name() const;
3581 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
3582 std::string* _internal_mutable_name();
3583 public:
3584
3585 // .aapt.pb.EntryId entry_id = 1;
3586 bool has_entry_id() const;
3587 private:
3588 bool _internal_has_entry_id() const;
3589 public:
3590 void clear_entry_id();
3591 const ::aapt::pb::EntryId& entry_id() const;
3592 PROTOBUF_NODISCARD ::aapt::pb::EntryId* release_entry_id();
3593 ::aapt::pb::EntryId* mutable_entry_id();
3594 void set_allocated_entry_id(::aapt::pb::EntryId* entry_id);
3595 private:
3596 const ::aapt::pb::EntryId& _internal_entry_id() const;
3597 ::aapt::pb::EntryId* _internal_mutable_entry_id();
3598 public:
3599 void unsafe_arena_set_allocated_entry_id(
3600 ::aapt::pb::EntryId* entry_id);
3601 ::aapt::pb::EntryId* unsafe_arena_release_entry_id();
3602
3603 // .aapt.pb.Visibility visibility = 3;
3604 bool has_visibility() const;
3605 private:
3606 bool _internal_has_visibility() const;
3607 public:
3608 void clear_visibility();
3609 const ::aapt::pb::Visibility& visibility() const;
3610 PROTOBUF_NODISCARD ::aapt::pb::Visibility* release_visibility();
3611 ::aapt::pb::Visibility* mutable_visibility();
3612 void set_allocated_visibility(::aapt::pb::Visibility* visibility);
3613 private:
3614 const ::aapt::pb::Visibility& _internal_visibility() const;
3615 ::aapt::pb::Visibility* _internal_mutable_visibility();
3616 public:
3617 void unsafe_arena_set_allocated_visibility(
3618 ::aapt::pb::Visibility* visibility);
3619 ::aapt::pb::Visibility* unsafe_arena_release_visibility();
3620
3621 // .aapt.pb.AllowNew allow_new = 4;
3622 bool has_allow_new() const;
3623 private:
3624 bool _internal_has_allow_new() const;
3625 public:
3626 void clear_allow_new();
3627 const ::aapt::pb::AllowNew& allow_new() const;
3628 PROTOBUF_NODISCARD ::aapt::pb::AllowNew* release_allow_new();
3629 ::aapt::pb::AllowNew* mutable_allow_new();
3630 void set_allocated_allow_new(::aapt::pb::AllowNew* allow_new);
3631 private:
3632 const ::aapt::pb::AllowNew& _internal_allow_new() const;
3633 ::aapt::pb::AllowNew* _internal_mutable_allow_new();
3634 public:
3635 void unsafe_arena_set_allocated_allow_new(
3636 ::aapt::pb::AllowNew* allow_new);
3637 ::aapt::pb::AllowNew* unsafe_arena_release_allow_new();
3638
3639 // .aapt.pb.OverlayableItem overlayable_item = 5;
3640 bool has_overlayable_item() const;
3641 private:
3642 bool _internal_has_overlayable_item() const;
3643 public:
3644 void clear_overlayable_item();
3645 const ::aapt::pb::OverlayableItem& overlayable_item() const;
3646 PROTOBUF_NODISCARD ::aapt::pb::OverlayableItem* release_overlayable_item();
3647 ::aapt::pb::OverlayableItem* mutable_overlayable_item();
3648 void set_allocated_overlayable_item(::aapt::pb::OverlayableItem* overlayable_item);
3649 private:
3650 const ::aapt::pb::OverlayableItem& _internal_overlayable_item() const;
3651 ::aapt::pb::OverlayableItem* _internal_mutable_overlayable_item();
3652 public:
3653 void unsafe_arena_set_allocated_overlayable_item(
3654 ::aapt::pb::OverlayableItem* overlayable_item);
3655 ::aapt::pb::OverlayableItem* unsafe_arena_release_overlayable_item();
3656
3657 // .aapt.pb.StagedId staged_id = 7;
3658 bool has_staged_id() const;
3659 private:
3660 bool _internal_has_staged_id() const;
3661 public:
3662 void clear_staged_id();
3663 const ::aapt::pb::StagedId& staged_id() const;
3664 PROTOBUF_NODISCARD ::aapt::pb::StagedId* release_staged_id();
3665 ::aapt::pb::StagedId* mutable_staged_id();
3666 void set_allocated_staged_id(::aapt::pb::StagedId* staged_id);
3667 private:
3668 const ::aapt::pb::StagedId& _internal_staged_id() const;
3669 ::aapt::pb::StagedId* _internal_mutable_staged_id();
3670 public:
3671 void unsafe_arena_set_allocated_staged_id(
3672 ::aapt::pb::StagedId* staged_id);
3673 ::aapt::pb::StagedId* unsafe_arena_release_staged_id();
3674
3675 // @@protoc_insertion_point(class_scope:aapt.pb.Entry)
3676 private:
3677 class _Internal;
3678
3679 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3680 typedef void InternalArenaConstructable_;
3681 typedef void DestructorSkippable_;
3682 struct Impl_ {
3683 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue > config_value_;
3684 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::ConfigValue > flag_disabled_config_value_;
3685 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
3686 ::aapt::pb::EntryId* entry_id_;
3687 ::aapt::pb::Visibility* visibility_;
3688 ::aapt::pb::AllowNew* allow_new_;
3689 ::aapt::pb::OverlayableItem* overlayable_item_;
3690 ::aapt::pb::StagedId* staged_id_;
3691 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3692 };
3693 union { Impl_ _impl_; };
3694 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
3695 };
3696 // -------------------------------------------------------------------
3697
3698 class ConfigValue final :
3699 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.ConfigValue) */ {
3700 public:
ConfigValue()3701 inline ConfigValue() : ConfigValue(nullptr) {}
3702 ~ConfigValue() override;
3703 explicit PROTOBUF_CONSTEXPR ConfigValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3704
3705 ConfigValue(const ConfigValue& from);
ConfigValue(ConfigValue && from)3706 ConfigValue(ConfigValue&& from) noexcept
3707 : ConfigValue() {
3708 *this = ::std::move(from);
3709 }
3710
3711 inline ConfigValue& operator=(const ConfigValue& from) {
3712 if (this == &from) return *this;
3713 CopyFrom(from);
3714 return *this;
3715 }
3716 inline ConfigValue& operator=(ConfigValue&& from) noexcept {
3717 if (this == &from) return *this;
3718 if (GetOwningArena() == from.GetOwningArena()
3719 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3720 && GetOwningArena() != nullptr
3721 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3722 ) {
3723 InternalSwap(&from);
3724 } else {
3725 CopyFrom(from);
3726 }
3727 return *this;
3728 }
3729
descriptor()3730 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3731 return GetDescriptor();
3732 }
GetDescriptor()3733 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3734 return default_instance().GetMetadata().descriptor;
3735 }
GetReflection()3736 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3737 return default_instance().GetMetadata().reflection;
3738 }
default_instance()3739 static const ConfigValue& default_instance() {
3740 return *internal_default_instance();
3741 }
internal_default_instance()3742 static inline const ConfigValue* internal_default_instance() {
3743 return reinterpret_cast<const ConfigValue*>(
3744 &_ConfigValue_default_instance_);
3745 }
3746 static constexpr int kIndexInFileMessages =
3747 17;
3748
swap(ConfigValue & a,ConfigValue & b)3749 friend void swap(ConfigValue& a, ConfigValue& b) {
3750 a.Swap(&b);
3751 }
Swap(ConfigValue * other)3752 inline void Swap(ConfigValue* other) {
3753 if (other == this) return;
3754 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3755 if (GetOwningArena() != nullptr &&
3756 GetOwningArena() == other->GetOwningArena()) {
3757 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3758 if (GetOwningArena() == other->GetOwningArena()) {
3759 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3760 InternalSwap(other);
3761 } else {
3762 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3763 }
3764 }
3765 void UnsafeArenaSwap(ConfigValue* other) {
3766 if (other == this) return;
3767 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3768 InternalSwap(other);
3769 }
3770
3771 // implements Message ----------------------------------------------
3772
3773 ConfigValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3774 return CreateMaybeMessage<ConfigValue>(arena);
3775 }
3776 ConfigValue* New() const {
3777 return New(nullptr);
3778 }
3779 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3780 void CopyFrom(const ConfigValue& from);
3781 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3782 void MergeFrom( const ConfigValue& from) {
3783 ConfigValue::MergeImpl(*this, from);
3784 }
3785 private:
3786 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3787 public:
3788 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3789 bool IsInitialized() const final;
3790
3791 size_t ByteSizeLong() const final;
3792 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3793 ::uint8_t* _InternalSerialize(
3794 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3795 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3796
3797 private:
3798 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3799 void SharedDtor();
3800 void SetCachedSize(int size) const final;
3801 void InternalSwap(ConfigValue* other);
3802
3803 private:
3804 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3805 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3806 return "aapt.pb.ConfigValue";
3807 }
3808 protected:
3809 explicit ConfigValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3810 bool is_message_owned = false);
3811 public:
3812
3813 static const ClassData _class_data_;
3814 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
3815
3816 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
3817
3818 // nested types ----------------------------------------------------
3819
3820 // accessors -------------------------------------------------------
3821
3822 enum : int {
3823 kConfigFieldNumber = 1,
3824 kValueFieldNumber = 2,
3825 };
3826 // .aapt.pb.Configuration config = 1;
3827 bool has_config() const;
3828 private:
3829 bool _internal_has_config() const;
3830 public:
3831 void clear_config();
3832 const ::aapt::pb::Configuration& config() const;
3833 PROTOBUF_NODISCARD ::aapt::pb::Configuration* release_config();
3834 ::aapt::pb::Configuration* mutable_config();
3835 void set_allocated_config(::aapt::pb::Configuration* config);
3836 private:
3837 const ::aapt::pb::Configuration& _internal_config() const;
3838 ::aapt::pb::Configuration* _internal_mutable_config();
3839 public:
3840 void unsafe_arena_set_allocated_config(
3841 ::aapt::pb::Configuration* config);
3842 ::aapt::pb::Configuration* unsafe_arena_release_config();
3843
3844 // .aapt.pb.Value value = 2;
3845 bool has_value() const;
3846 private:
3847 bool _internal_has_value() const;
3848 public:
3849 void clear_value();
3850 const ::aapt::pb::Value& value() const;
3851 PROTOBUF_NODISCARD ::aapt::pb::Value* release_value();
3852 ::aapt::pb::Value* mutable_value();
3853 void set_allocated_value(::aapt::pb::Value* value);
3854 private:
3855 const ::aapt::pb::Value& _internal_value() const;
3856 ::aapt::pb::Value* _internal_mutable_value();
3857 public:
3858 void unsafe_arena_set_allocated_value(
3859 ::aapt::pb::Value* value);
3860 ::aapt::pb::Value* unsafe_arena_release_value();
3861
3862 // @@protoc_insertion_point(class_scope:aapt.pb.ConfigValue)
3863 private:
3864 class _Internal;
3865
3866 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
3867 typedef void InternalArenaConstructable_;
3868 typedef void DestructorSkippable_;
3869 struct Impl_ {
3870 ::aapt::pb::Configuration* config_;
3871 ::aapt::pb::Value* value_;
3872 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
3873 };
3874 union { Impl_ _impl_; };
3875 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
3876 };
3877 // -------------------------------------------------------------------
3878
3879 class Value final :
3880 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Value) */ {
3881 public:
Value()3882 inline Value() : Value(nullptr) {}
3883 ~Value() override;
3884 explicit PROTOBUF_CONSTEXPR Value(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
3885
3886 Value(const Value& from);
Value(Value && from)3887 Value(Value&& from) noexcept
3888 : Value() {
3889 *this = ::std::move(from);
3890 }
3891
3892 inline Value& operator=(const Value& from) {
3893 if (this == &from) return *this;
3894 CopyFrom(from);
3895 return *this;
3896 }
3897 inline Value& operator=(Value&& from) noexcept {
3898 if (this == &from) return *this;
3899 if (GetOwningArena() == from.GetOwningArena()
3900 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
3901 && GetOwningArena() != nullptr
3902 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
3903 ) {
3904 InternalSwap(&from);
3905 } else {
3906 CopyFrom(from);
3907 }
3908 return *this;
3909 }
3910
descriptor()3911 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
3912 return GetDescriptor();
3913 }
GetDescriptor()3914 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
3915 return default_instance().GetMetadata().descriptor;
3916 }
GetReflection()3917 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
3918 return default_instance().GetMetadata().reflection;
3919 }
default_instance()3920 static const Value& default_instance() {
3921 return *internal_default_instance();
3922 }
3923 enum ValueCase {
3924 kItem = 4,
3925 kCompoundValue = 5,
3926 VALUE_NOT_SET = 0,
3927 };
3928
internal_default_instance()3929 static inline const Value* internal_default_instance() {
3930 return reinterpret_cast<const Value*>(
3931 &_Value_default_instance_);
3932 }
3933 static constexpr int kIndexInFileMessages =
3934 18;
3935
swap(Value & a,Value & b)3936 friend void swap(Value& a, Value& b) {
3937 a.Swap(&b);
3938 }
Swap(Value * other)3939 inline void Swap(Value* other) {
3940 if (other == this) return;
3941 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
3942 if (GetOwningArena() != nullptr &&
3943 GetOwningArena() == other->GetOwningArena()) {
3944 #else // PROTOBUF_FORCE_COPY_IN_SWAP
3945 if (GetOwningArena() == other->GetOwningArena()) {
3946 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
3947 InternalSwap(other);
3948 } else {
3949 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
3950 }
3951 }
3952 void UnsafeArenaSwap(Value* other) {
3953 if (other == this) return;
3954 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
3955 InternalSwap(other);
3956 }
3957
3958 // implements Message ----------------------------------------------
3959
3960 Value* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
3961 return CreateMaybeMessage<Value>(arena);
3962 }
3963 Value* New() const {
3964 return New(nullptr);
3965 }
3966 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
3967 void CopyFrom(const Value& from);
3968 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
3969 void MergeFrom( const Value& from) {
3970 Value::MergeImpl(*this, from);
3971 }
3972 private:
3973 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
3974 public:
3975 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3976 bool IsInitialized() const final;
3977
3978 size_t ByteSizeLong() const final;
3979 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
3980 ::uint8_t* _InternalSerialize(
3981 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
3982 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
3983
3984 private:
3985 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
3986 void SharedDtor();
3987 void SetCachedSize(int size) const final;
3988 void InternalSwap(Value* other);
3989
3990 private:
3991 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
3992 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
3993 return "aapt.pb.Value";
3994 }
3995 protected:
3996 explicit Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
3997 bool is_message_owned = false);
3998 public:
3999
4000 static const ClassData _class_data_;
4001 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4002
4003 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4004
4005 // nested types ----------------------------------------------------
4006
4007 // accessors -------------------------------------------------------
4008
4009 enum : int {
4010 kCommentFieldNumber = 2,
4011 kSourceFieldNumber = 1,
4012 kWeakFieldNumber = 3,
4013 kItemFieldNumber = 4,
4014 kCompoundValueFieldNumber = 5,
4015 };
4016 // string comment = 2;
4017 void clear_comment();
4018 const std::string& comment() const;
4019 template <typename ArgT0 = const std::string&, typename... ArgT>
4020 void set_comment(ArgT0&& arg0, ArgT... args);
4021 std::string* mutable_comment();
4022 PROTOBUF_NODISCARD std::string* release_comment();
4023 void set_allocated_comment(std::string* comment);
4024 private:
4025 const std::string& _internal_comment() const;
4026 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
4027 std::string* _internal_mutable_comment();
4028 public:
4029
4030 // .aapt.pb.Source source = 1;
4031 bool has_source() const;
4032 private:
4033 bool _internal_has_source() const;
4034 public:
4035 void clear_source();
4036 const ::aapt::pb::Source& source() const;
4037 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
4038 ::aapt::pb::Source* mutable_source();
4039 void set_allocated_source(::aapt::pb::Source* source);
4040 private:
4041 const ::aapt::pb::Source& _internal_source() const;
4042 ::aapt::pb::Source* _internal_mutable_source();
4043 public:
4044 void unsafe_arena_set_allocated_source(
4045 ::aapt::pb::Source* source);
4046 ::aapt::pb::Source* unsafe_arena_release_source();
4047
4048 // bool weak = 3;
4049 void clear_weak();
4050 bool weak() const;
4051 void set_weak(bool value);
4052 private:
4053 bool _internal_weak() const;
4054 void _internal_set_weak(bool value);
4055 public:
4056
4057 // .aapt.pb.Item item = 4;
4058 bool has_item() const;
4059 private:
4060 bool _internal_has_item() const;
4061 public:
4062 void clear_item();
4063 const ::aapt::pb::Item& item() const;
4064 PROTOBUF_NODISCARD ::aapt::pb::Item* release_item();
4065 ::aapt::pb::Item* mutable_item();
4066 void set_allocated_item(::aapt::pb::Item* item);
4067 private:
4068 const ::aapt::pb::Item& _internal_item() const;
4069 ::aapt::pb::Item* _internal_mutable_item();
4070 public:
4071 void unsafe_arena_set_allocated_item(
4072 ::aapt::pb::Item* item);
4073 ::aapt::pb::Item* unsafe_arena_release_item();
4074
4075 // .aapt.pb.CompoundValue compound_value = 5;
4076 bool has_compound_value() const;
4077 private:
4078 bool _internal_has_compound_value() const;
4079 public:
4080 void clear_compound_value();
4081 const ::aapt::pb::CompoundValue& compound_value() const;
4082 PROTOBUF_NODISCARD ::aapt::pb::CompoundValue* release_compound_value();
4083 ::aapt::pb::CompoundValue* mutable_compound_value();
4084 void set_allocated_compound_value(::aapt::pb::CompoundValue* compound_value);
4085 private:
4086 const ::aapt::pb::CompoundValue& _internal_compound_value() const;
4087 ::aapt::pb::CompoundValue* _internal_mutable_compound_value();
4088 public:
4089 void unsafe_arena_set_allocated_compound_value(
4090 ::aapt::pb::CompoundValue* compound_value);
4091 ::aapt::pb::CompoundValue* unsafe_arena_release_compound_value();
4092
4093 void clear_value();
4094 ValueCase value_case() const;
4095 // @@protoc_insertion_point(class_scope:aapt.pb.Value)
4096 private:
4097 class _Internal;
4098 void set_has_item();
4099 void set_has_compound_value();
4100
4101 inline bool has_value() const;
4102 inline void clear_has_value();
4103
4104 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4105 typedef void InternalArenaConstructable_;
4106 typedef void DestructorSkippable_;
4107 struct Impl_ {
4108 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
4109 ::aapt::pb::Source* source_;
4110 bool weak_;
4111 union ValueUnion {
4112 constexpr ValueUnion() : _constinit_{} {}
4113 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
4114 ::aapt::pb::Item* item_;
4115 ::aapt::pb::CompoundValue* compound_value_;
4116 } value_;
4117 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4118 ::uint32_t _oneof_case_[1];
4119
4120 };
4121 union { Impl_ _impl_; };
4122 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
4123 };
4124 // -------------------------------------------------------------------
4125
4126 class Item final :
4127 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Item) */ {
4128 public:
Item()4129 inline Item() : Item(nullptr) {}
4130 ~Item() override;
4131 explicit PROTOBUF_CONSTEXPR Item(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4132
4133 Item(const Item& from);
Item(Item && from)4134 Item(Item&& from) noexcept
4135 : Item() {
4136 *this = ::std::move(from);
4137 }
4138
4139 inline Item& operator=(const Item& from) {
4140 if (this == &from) return *this;
4141 CopyFrom(from);
4142 return *this;
4143 }
4144 inline Item& operator=(Item&& from) noexcept {
4145 if (this == &from) return *this;
4146 if (GetOwningArena() == from.GetOwningArena()
4147 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4148 && GetOwningArena() != nullptr
4149 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4150 ) {
4151 InternalSwap(&from);
4152 } else {
4153 CopyFrom(from);
4154 }
4155 return *this;
4156 }
4157
descriptor()4158 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4159 return GetDescriptor();
4160 }
GetDescriptor()4161 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4162 return default_instance().GetMetadata().descriptor;
4163 }
GetReflection()4164 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4165 return default_instance().GetMetadata().reflection;
4166 }
default_instance()4167 static const Item& default_instance() {
4168 return *internal_default_instance();
4169 }
4170 enum ValueCase {
4171 kRef = 1,
4172 kStr = 2,
4173 kRawStr = 3,
4174 kStyledStr = 4,
4175 kFile = 5,
4176 kId = 6,
4177 kPrim = 7,
4178 VALUE_NOT_SET = 0,
4179 };
4180
internal_default_instance()4181 static inline const Item* internal_default_instance() {
4182 return reinterpret_cast<const Item*>(
4183 &_Item_default_instance_);
4184 }
4185 static constexpr int kIndexInFileMessages =
4186 19;
4187
swap(Item & a,Item & b)4188 friend void swap(Item& a, Item& b) {
4189 a.Swap(&b);
4190 }
Swap(Item * other)4191 inline void Swap(Item* other) {
4192 if (other == this) return;
4193 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4194 if (GetOwningArena() != nullptr &&
4195 GetOwningArena() == other->GetOwningArena()) {
4196 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4197 if (GetOwningArena() == other->GetOwningArena()) {
4198 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4199 InternalSwap(other);
4200 } else {
4201 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4202 }
4203 }
4204 void UnsafeArenaSwap(Item* other) {
4205 if (other == this) return;
4206 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4207 InternalSwap(other);
4208 }
4209
4210 // implements Message ----------------------------------------------
4211
4212 Item* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4213 return CreateMaybeMessage<Item>(arena);
4214 }
4215 Item* New() const {
4216 return New(nullptr);
4217 }
4218 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4219 void CopyFrom(const Item& from);
4220 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4221 void MergeFrom( const Item& from) {
4222 Item::MergeImpl(*this, from);
4223 }
4224 private:
4225 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4226 public:
4227 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4228 bool IsInitialized() const final;
4229
4230 size_t ByteSizeLong() const final;
4231 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4232 ::uint8_t* _InternalSerialize(
4233 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4234 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4235
4236 private:
4237 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4238 void SharedDtor();
4239 void SetCachedSize(int size) const final;
4240 void InternalSwap(Item* other);
4241
4242 private:
4243 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4244 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4245 return "aapt.pb.Item";
4246 }
4247 protected:
4248 explicit Item(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4249 bool is_message_owned = false);
4250 public:
4251
4252 static const ClassData _class_data_;
4253 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4254
4255 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4256
4257 // nested types ----------------------------------------------------
4258
4259 // accessors -------------------------------------------------------
4260
4261 enum : int {
4262 kFlagNameFieldNumber = 10,
4263 kFlagStatusFieldNumber = 8,
4264 kFlagNegatedFieldNumber = 9,
4265 kRefFieldNumber = 1,
4266 kStrFieldNumber = 2,
4267 kRawStrFieldNumber = 3,
4268 kStyledStrFieldNumber = 4,
4269 kFileFieldNumber = 5,
4270 kIdFieldNumber = 6,
4271 kPrimFieldNumber = 7,
4272 };
4273 // string flag_name = 10;
4274 void clear_flag_name();
4275 const std::string& flag_name() const;
4276 template <typename ArgT0 = const std::string&, typename... ArgT>
4277 void set_flag_name(ArgT0&& arg0, ArgT... args);
4278 std::string* mutable_flag_name();
4279 PROTOBUF_NODISCARD std::string* release_flag_name();
4280 void set_allocated_flag_name(std::string* flag_name);
4281 private:
4282 const std::string& _internal_flag_name() const;
4283 inline PROTOBUF_ALWAYS_INLINE void _internal_set_flag_name(const std::string& value);
4284 std::string* _internal_mutable_flag_name();
4285 public:
4286
4287 // uint32 flag_status = 8;
4288 void clear_flag_status();
4289 ::uint32_t flag_status() const;
4290 void set_flag_status(::uint32_t value);
4291 private:
4292 ::uint32_t _internal_flag_status() const;
4293 void _internal_set_flag_status(::uint32_t value);
4294 public:
4295
4296 // bool flag_negated = 9;
4297 void clear_flag_negated();
4298 bool flag_negated() const;
4299 void set_flag_negated(bool value);
4300 private:
4301 bool _internal_flag_negated() const;
4302 void _internal_set_flag_negated(bool value);
4303 public:
4304
4305 // .aapt.pb.Reference ref = 1;
4306 bool has_ref() const;
4307 private:
4308 bool _internal_has_ref() const;
4309 public:
4310 void clear_ref();
4311 const ::aapt::pb::Reference& ref() const;
4312 PROTOBUF_NODISCARD ::aapt::pb::Reference* release_ref();
4313 ::aapt::pb::Reference* mutable_ref();
4314 void set_allocated_ref(::aapt::pb::Reference* ref);
4315 private:
4316 const ::aapt::pb::Reference& _internal_ref() const;
4317 ::aapt::pb::Reference* _internal_mutable_ref();
4318 public:
4319 void unsafe_arena_set_allocated_ref(
4320 ::aapt::pb::Reference* ref);
4321 ::aapt::pb::Reference* unsafe_arena_release_ref();
4322
4323 // .aapt.pb.String str = 2;
4324 bool has_str() const;
4325 private:
4326 bool _internal_has_str() const;
4327 public:
4328 void clear_str();
4329 const ::aapt::pb::String& str() const;
4330 PROTOBUF_NODISCARD ::aapt::pb::String* release_str();
4331 ::aapt::pb::String* mutable_str();
4332 void set_allocated_str(::aapt::pb::String* str);
4333 private:
4334 const ::aapt::pb::String& _internal_str() const;
4335 ::aapt::pb::String* _internal_mutable_str();
4336 public:
4337 void unsafe_arena_set_allocated_str(
4338 ::aapt::pb::String* str);
4339 ::aapt::pb::String* unsafe_arena_release_str();
4340
4341 // .aapt.pb.RawString raw_str = 3;
4342 bool has_raw_str() const;
4343 private:
4344 bool _internal_has_raw_str() const;
4345 public:
4346 void clear_raw_str();
4347 const ::aapt::pb::RawString& raw_str() const;
4348 PROTOBUF_NODISCARD ::aapt::pb::RawString* release_raw_str();
4349 ::aapt::pb::RawString* mutable_raw_str();
4350 void set_allocated_raw_str(::aapt::pb::RawString* raw_str);
4351 private:
4352 const ::aapt::pb::RawString& _internal_raw_str() const;
4353 ::aapt::pb::RawString* _internal_mutable_raw_str();
4354 public:
4355 void unsafe_arena_set_allocated_raw_str(
4356 ::aapt::pb::RawString* raw_str);
4357 ::aapt::pb::RawString* unsafe_arena_release_raw_str();
4358
4359 // .aapt.pb.StyledString styled_str = 4;
4360 bool has_styled_str() const;
4361 private:
4362 bool _internal_has_styled_str() const;
4363 public:
4364 void clear_styled_str();
4365 const ::aapt::pb::StyledString& styled_str() const;
4366 PROTOBUF_NODISCARD ::aapt::pb::StyledString* release_styled_str();
4367 ::aapt::pb::StyledString* mutable_styled_str();
4368 void set_allocated_styled_str(::aapt::pb::StyledString* styled_str);
4369 private:
4370 const ::aapt::pb::StyledString& _internal_styled_str() const;
4371 ::aapt::pb::StyledString* _internal_mutable_styled_str();
4372 public:
4373 void unsafe_arena_set_allocated_styled_str(
4374 ::aapt::pb::StyledString* styled_str);
4375 ::aapt::pb::StyledString* unsafe_arena_release_styled_str();
4376
4377 // .aapt.pb.FileReference file = 5;
4378 bool has_file() const;
4379 private:
4380 bool _internal_has_file() const;
4381 public:
4382 void clear_file();
4383 const ::aapt::pb::FileReference& file() const;
4384 PROTOBUF_NODISCARD ::aapt::pb::FileReference* release_file();
4385 ::aapt::pb::FileReference* mutable_file();
4386 void set_allocated_file(::aapt::pb::FileReference* file);
4387 private:
4388 const ::aapt::pb::FileReference& _internal_file() const;
4389 ::aapt::pb::FileReference* _internal_mutable_file();
4390 public:
4391 void unsafe_arena_set_allocated_file(
4392 ::aapt::pb::FileReference* file);
4393 ::aapt::pb::FileReference* unsafe_arena_release_file();
4394
4395 // .aapt.pb.Id id = 6;
4396 bool has_id() const;
4397 private:
4398 bool _internal_has_id() const;
4399 public:
4400 void clear_id();
4401 const ::aapt::pb::Id& id() const;
4402 PROTOBUF_NODISCARD ::aapt::pb::Id* release_id();
4403 ::aapt::pb::Id* mutable_id();
4404 void set_allocated_id(::aapt::pb::Id* id);
4405 private:
4406 const ::aapt::pb::Id& _internal_id() const;
4407 ::aapt::pb::Id* _internal_mutable_id();
4408 public:
4409 void unsafe_arena_set_allocated_id(
4410 ::aapt::pb::Id* id);
4411 ::aapt::pb::Id* unsafe_arena_release_id();
4412
4413 // .aapt.pb.Primitive prim = 7;
4414 bool has_prim() const;
4415 private:
4416 bool _internal_has_prim() const;
4417 public:
4418 void clear_prim();
4419 const ::aapt::pb::Primitive& prim() const;
4420 PROTOBUF_NODISCARD ::aapt::pb::Primitive* release_prim();
4421 ::aapt::pb::Primitive* mutable_prim();
4422 void set_allocated_prim(::aapt::pb::Primitive* prim);
4423 private:
4424 const ::aapt::pb::Primitive& _internal_prim() const;
4425 ::aapt::pb::Primitive* _internal_mutable_prim();
4426 public:
4427 void unsafe_arena_set_allocated_prim(
4428 ::aapt::pb::Primitive* prim);
4429 ::aapt::pb::Primitive* unsafe_arena_release_prim();
4430
4431 void clear_value();
4432 ValueCase value_case() const;
4433 // @@protoc_insertion_point(class_scope:aapt.pb.Item)
4434 private:
4435 class _Internal;
4436 void set_has_ref();
4437 void set_has_str();
4438 void set_has_raw_str();
4439 void set_has_styled_str();
4440 void set_has_file();
4441 void set_has_id();
4442 void set_has_prim();
4443
4444 inline bool has_value() const;
4445 inline void clear_has_value();
4446
4447 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4448 typedef void InternalArenaConstructable_;
4449 typedef void DestructorSkippable_;
4450 struct Impl_ {
4451 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr flag_name_;
4452 ::uint32_t flag_status_;
4453 bool flag_negated_;
4454 union ValueUnion {
4455 constexpr ValueUnion() : _constinit_{} {}
4456 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
4457 ::aapt::pb::Reference* ref_;
4458 ::aapt::pb::String* str_;
4459 ::aapt::pb::RawString* raw_str_;
4460 ::aapt::pb::StyledString* styled_str_;
4461 ::aapt::pb::FileReference* file_;
4462 ::aapt::pb::Id* id_;
4463 ::aapt::pb::Primitive* prim_;
4464 } value_;
4465 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4466 ::uint32_t _oneof_case_[1];
4467
4468 };
4469 union { Impl_ _impl_; };
4470 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
4471 };
4472 // -------------------------------------------------------------------
4473
4474 class CompoundValue final :
4475 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.CompoundValue) */ {
4476 public:
CompoundValue()4477 inline CompoundValue() : CompoundValue(nullptr) {}
4478 ~CompoundValue() override;
4479 explicit PROTOBUF_CONSTEXPR CompoundValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4480
4481 CompoundValue(const CompoundValue& from);
CompoundValue(CompoundValue && from)4482 CompoundValue(CompoundValue&& from) noexcept
4483 : CompoundValue() {
4484 *this = ::std::move(from);
4485 }
4486
4487 inline CompoundValue& operator=(const CompoundValue& from) {
4488 if (this == &from) return *this;
4489 CopyFrom(from);
4490 return *this;
4491 }
4492 inline CompoundValue& operator=(CompoundValue&& from) noexcept {
4493 if (this == &from) return *this;
4494 if (GetOwningArena() == from.GetOwningArena()
4495 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4496 && GetOwningArena() != nullptr
4497 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4498 ) {
4499 InternalSwap(&from);
4500 } else {
4501 CopyFrom(from);
4502 }
4503 return *this;
4504 }
4505
descriptor()4506 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4507 return GetDescriptor();
4508 }
GetDescriptor()4509 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4510 return default_instance().GetMetadata().descriptor;
4511 }
GetReflection()4512 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4513 return default_instance().GetMetadata().reflection;
4514 }
default_instance()4515 static const CompoundValue& default_instance() {
4516 return *internal_default_instance();
4517 }
4518 enum ValueCase {
4519 kAttr = 1,
4520 kStyle = 2,
4521 kStyleable = 3,
4522 kArray = 4,
4523 kPlural = 5,
4524 kMacro = 6,
4525 VALUE_NOT_SET = 0,
4526 };
4527
internal_default_instance()4528 static inline const CompoundValue* internal_default_instance() {
4529 return reinterpret_cast<const CompoundValue*>(
4530 &_CompoundValue_default_instance_);
4531 }
4532 static constexpr int kIndexInFileMessages =
4533 20;
4534
swap(CompoundValue & a,CompoundValue & b)4535 friend void swap(CompoundValue& a, CompoundValue& b) {
4536 a.Swap(&b);
4537 }
Swap(CompoundValue * other)4538 inline void Swap(CompoundValue* other) {
4539 if (other == this) return;
4540 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4541 if (GetOwningArena() != nullptr &&
4542 GetOwningArena() == other->GetOwningArena()) {
4543 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4544 if (GetOwningArena() == other->GetOwningArena()) {
4545 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4546 InternalSwap(other);
4547 } else {
4548 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4549 }
4550 }
4551 void UnsafeArenaSwap(CompoundValue* other) {
4552 if (other == this) return;
4553 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4554 InternalSwap(other);
4555 }
4556
4557 // implements Message ----------------------------------------------
4558
4559 CompoundValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4560 return CreateMaybeMessage<CompoundValue>(arena);
4561 }
4562 CompoundValue* New() const {
4563 return New(nullptr);
4564 }
4565 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4566 void CopyFrom(const CompoundValue& from);
4567 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4568 void MergeFrom( const CompoundValue& from) {
4569 CompoundValue::MergeImpl(*this, from);
4570 }
4571 private:
4572 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4573 public:
4574 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4575 bool IsInitialized() const final;
4576
4577 size_t ByteSizeLong() const final;
4578 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4579 ::uint8_t* _InternalSerialize(
4580 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4581 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4582
4583 private:
4584 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4585 void SharedDtor();
4586 void SetCachedSize(int size) const final;
4587 void InternalSwap(CompoundValue* other);
4588
4589 private:
4590 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4591 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4592 return "aapt.pb.CompoundValue";
4593 }
4594 protected:
4595 explicit CompoundValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4596 bool is_message_owned = false);
4597 public:
4598
4599 static const ClassData _class_data_;
4600 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4601
4602 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4603
4604 // nested types ----------------------------------------------------
4605
4606 // accessors -------------------------------------------------------
4607
4608 enum : int {
4609 kFlagNameFieldNumber = 9,
4610 kFlagStatusFieldNumber = 7,
4611 kFlagNegatedFieldNumber = 8,
4612 kAttrFieldNumber = 1,
4613 kStyleFieldNumber = 2,
4614 kStyleableFieldNumber = 3,
4615 kArrayFieldNumber = 4,
4616 kPluralFieldNumber = 5,
4617 kMacroFieldNumber = 6,
4618 };
4619 // string flag_name = 9;
4620 void clear_flag_name();
4621 const std::string& flag_name() const;
4622 template <typename ArgT0 = const std::string&, typename... ArgT>
4623 void set_flag_name(ArgT0&& arg0, ArgT... args);
4624 std::string* mutable_flag_name();
4625 PROTOBUF_NODISCARD std::string* release_flag_name();
4626 void set_allocated_flag_name(std::string* flag_name);
4627 private:
4628 const std::string& _internal_flag_name() const;
4629 inline PROTOBUF_ALWAYS_INLINE void _internal_set_flag_name(const std::string& value);
4630 std::string* _internal_mutable_flag_name();
4631 public:
4632
4633 // uint32 flag_status = 7;
4634 void clear_flag_status();
4635 ::uint32_t flag_status() const;
4636 void set_flag_status(::uint32_t value);
4637 private:
4638 ::uint32_t _internal_flag_status() const;
4639 void _internal_set_flag_status(::uint32_t value);
4640 public:
4641
4642 // bool flag_negated = 8;
4643 void clear_flag_negated();
4644 bool flag_negated() const;
4645 void set_flag_negated(bool value);
4646 private:
4647 bool _internal_flag_negated() const;
4648 void _internal_set_flag_negated(bool value);
4649 public:
4650
4651 // .aapt.pb.Attribute attr = 1;
4652 bool has_attr() const;
4653 private:
4654 bool _internal_has_attr() const;
4655 public:
4656 void clear_attr();
4657 const ::aapt::pb::Attribute& attr() const;
4658 PROTOBUF_NODISCARD ::aapt::pb::Attribute* release_attr();
4659 ::aapt::pb::Attribute* mutable_attr();
4660 void set_allocated_attr(::aapt::pb::Attribute* attr);
4661 private:
4662 const ::aapt::pb::Attribute& _internal_attr() const;
4663 ::aapt::pb::Attribute* _internal_mutable_attr();
4664 public:
4665 void unsafe_arena_set_allocated_attr(
4666 ::aapt::pb::Attribute* attr);
4667 ::aapt::pb::Attribute* unsafe_arena_release_attr();
4668
4669 // .aapt.pb.Style style = 2;
4670 bool has_style() const;
4671 private:
4672 bool _internal_has_style() const;
4673 public:
4674 void clear_style();
4675 const ::aapt::pb::Style& style() const;
4676 PROTOBUF_NODISCARD ::aapt::pb::Style* release_style();
4677 ::aapt::pb::Style* mutable_style();
4678 void set_allocated_style(::aapt::pb::Style* style);
4679 private:
4680 const ::aapt::pb::Style& _internal_style() const;
4681 ::aapt::pb::Style* _internal_mutable_style();
4682 public:
4683 void unsafe_arena_set_allocated_style(
4684 ::aapt::pb::Style* style);
4685 ::aapt::pb::Style* unsafe_arena_release_style();
4686
4687 // .aapt.pb.Styleable styleable = 3;
4688 bool has_styleable() const;
4689 private:
4690 bool _internal_has_styleable() const;
4691 public:
4692 void clear_styleable();
4693 const ::aapt::pb::Styleable& styleable() const;
4694 PROTOBUF_NODISCARD ::aapt::pb::Styleable* release_styleable();
4695 ::aapt::pb::Styleable* mutable_styleable();
4696 void set_allocated_styleable(::aapt::pb::Styleable* styleable);
4697 private:
4698 const ::aapt::pb::Styleable& _internal_styleable() const;
4699 ::aapt::pb::Styleable* _internal_mutable_styleable();
4700 public:
4701 void unsafe_arena_set_allocated_styleable(
4702 ::aapt::pb::Styleable* styleable);
4703 ::aapt::pb::Styleable* unsafe_arena_release_styleable();
4704
4705 // .aapt.pb.Array array = 4;
4706 bool has_array() const;
4707 private:
4708 bool _internal_has_array() const;
4709 public:
4710 void clear_array();
4711 const ::aapt::pb::Array& array() const;
4712 PROTOBUF_NODISCARD ::aapt::pb::Array* release_array();
4713 ::aapt::pb::Array* mutable_array();
4714 void set_allocated_array(::aapt::pb::Array* array);
4715 private:
4716 const ::aapt::pb::Array& _internal_array() const;
4717 ::aapt::pb::Array* _internal_mutable_array();
4718 public:
4719 void unsafe_arena_set_allocated_array(
4720 ::aapt::pb::Array* array);
4721 ::aapt::pb::Array* unsafe_arena_release_array();
4722
4723 // .aapt.pb.Plural plural = 5;
4724 bool has_plural() const;
4725 private:
4726 bool _internal_has_plural() const;
4727 public:
4728 void clear_plural();
4729 const ::aapt::pb::Plural& plural() const;
4730 PROTOBUF_NODISCARD ::aapt::pb::Plural* release_plural();
4731 ::aapt::pb::Plural* mutable_plural();
4732 void set_allocated_plural(::aapt::pb::Plural* plural);
4733 private:
4734 const ::aapt::pb::Plural& _internal_plural() const;
4735 ::aapt::pb::Plural* _internal_mutable_plural();
4736 public:
4737 void unsafe_arena_set_allocated_plural(
4738 ::aapt::pb::Plural* plural);
4739 ::aapt::pb::Plural* unsafe_arena_release_plural();
4740
4741 // .aapt.pb.MacroBody macro = 6;
4742 bool has_macro() const;
4743 private:
4744 bool _internal_has_macro() const;
4745 public:
4746 void clear_macro();
4747 const ::aapt::pb::MacroBody& macro() const;
4748 PROTOBUF_NODISCARD ::aapt::pb::MacroBody* release_macro();
4749 ::aapt::pb::MacroBody* mutable_macro();
4750 void set_allocated_macro(::aapt::pb::MacroBody* macro);
4751 private:
4752 const ::aapt::pb::MacroBody& _internal_macro() const;
4753 ::aapt::pb::MacroBody* _internal_mutable_macro();
4754 public:
4755 void unsafe_arena_set_allocated_macro(
4756 ::aapt::pb::MacroBody* macro);
4757 ::aapt::pb::MacroBody* unsafe_arena_release_macro();
4758
4759 void clear_value();
4760 ValueCase value_case() const;
4761 // @@protoc_insertion_point(class_scope:aapt.pb.CompoundValue)
4762 private:
4763 class _Internal;
4764 void set_has_attr();
4765 void set_has_style();
4766 void set_has_styleable();
4767 void set_has_array();
4768 void set_has_plural();
4769 void set_has_macro();
4770
4771 inline bool has_value() const;
4772 inline void clear_has_value();
4773
4774 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4775 typedef void InternalArenaConstructable_;
4776 typedef void DestructorSkippable_;
4777 struct Impl_ {
4778 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr flag_name_;
4779 ::uint32_t flag_status_;
4780 bool flag_negated_;
4781 union ValueUnion {
4782 constexpr ValueUnion() : _constinit_{} {}
4783 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
4784 ::aapt::pb::Attribute* attr_;
4785 ::aapt::pb::Style* style_;
4786 ::aapt::pb::Styleable* styleable_;
4787 ::aapt::pb::Array* array_;
4788 ::aapt::pb::Plural* plural_;
4789 ::aapt::pb::MacroBody* macro_;
4790 } value_;
4791 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4792 ::uint32_t _oneof_case_[1];
4793
4794 };
4795 union { Impl_ _impl_; };
4796 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
4797 };
4798 // -------------------------------------------------------------------
4799
4800 class Boolean final :
4801 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Boolean) */ {
4802 public:
Boolean()4803 inline Boolean() : Boolean(nullptr) {}
4804 ~Boolean() override;
4805 explicit PROTOBUF_CONSTEXPR Boolean(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4806
4807 Boolean(const Boolean& from);
Boolean(Boolean && from)4808 Boolean(Boolean&& from) noexcept
4809 : Boolean() {
4810 *this = ::std::move(from);
4811 }
4812
4813 inline Boolean& operator=(const Boolean& from) {
4814 if (this == &from) return *this;
4815 CopyFrom(from);
4816 return *this;
4817 }
4818 inline Boolean& operator=(Boolean&& from) noexcept {
4819 if (this == &from) return *this;
4820 if (GetOwningArena() == from.GetOwningArena()
4821 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4822 && GetOwningArena() != nullptr
4823 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4824 ) {
4825 InternalSwap(&from);
4826 } else {
4827 CopyFrom(from);
4828 }
4829 return *this;
4830 }
4831
descriptor()4832 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4833 return GetDescriptor();
4834 }
GetDescriptor()4835 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4836 return default_instance().GetMetadata().descriptor;
4837 }
GetReflection()4838 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4839 return default_instance().GetMetadata().reflection;
4840 }
default_instance()4841 static const Boolean& default_instance() {
4842 return *internal_default_instance();
4843 }
internal_default_instance()4844 static inline const Boolean* internal_default_instance() {
4845 return reinterpret_cast<const Boolean*>(
4846 &_Boolean_default_instance_);
4847 }
4848 static constexpr int kIndexInFileMessages =
4849 21;
4850
swap(Boolean & a,Boolean & b)4851 friend void swap(Boolean& a, Boolean& b) {
4852 a.Swap(&b);
4853 }
Swap(Boolean * other)4854 inline void Swap(Boolean* other) {
4855 if (other == this) return;
4856 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
4857 if (GetOwningArena() != nullptr &&
4858 GetOwningArena() == other->GetOwningArena()) {
4859 #else // PROTOBUF_FORCE_COPY_IN_SWAP
4860 if (GetOwningArena() == other->GetOwningArena()) {
4861 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
4862 InternalSwap(other);
4863 } else {
4864 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
4865 }
4866 }
4867 void UnsafeArenaSwap(Boolean* other) {
4868 if (other == this) return;
4869 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
4870 InternalSwap(other);
4871 }
4872
4873 // implements Message ----------------------------------------------
4874
4875 Boolean* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
4876 return CreateMaybeMessage<Boolean>(arena);
4877 }
4878 Boolean* New() const {
4879 return New(nullptr);
4880 }
4881 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
4882 void CopyFrom(const Boolean& from);
4883 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
4884 void MergeFrom( const Boolean& from) {
4885 Boolean::MergeImpl(*this, from);
4886 }
4887 private:
4888 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
4889 public:
4890 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
4891 bool IsInitialized() const final;
4892
4893 size_t ByteSizeLong() const final;
4894 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
4895 ::uint8_t* _InternalSerialize(
4896 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
4897 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
4898
4899 private:
4900 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
4901 void SharedDtor();
4902 void SetCachedSize(int size) const final;
4903 void InternalSwap(Boolean* other);
4904
4905 private:
4906 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
4907 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
4908 return "aapt.pb.Boolean";
4909 }
4910 protected:
4911 explicit Boolean(::PROTOBUF_NAMESPACE_ID::Arena* arena,
4912 bool is_message_owned = false);
4913 public:
4914
4915 static const ClassData _class_data_;
4916 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
4917
4918 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
4919
4920 // nested types ----------------------------------------------------
4921
4922 // accessors -------------------------------------------------------
4923
4924 enum : int {
4925 kValueFieldNumber = 1,
4926 };
4927 // bool value = 1;
4928 void clear_value();
4929 bool value() const;
4930 void set_value(bool value);
4931 private:
4932 bool _internal_value() const;
4933 void _internal_set_value(bool value);
4934 public:
4935
4936 // @@protoc_insertion_point(class_scope:aapt.pb.Boolean)
4937 private:
4938 class _Internal;
4939
4940 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
4941 typedef void InternalArenaConstructable_;
4942 typedef void DestructorSkippable_;
4943 struct Impl_ {
4944 bool value_;
4945 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
4946 };
4947 union { Impl_ _impl_; };
4948 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
4949 };
4950 // -------------------------------------------------------------------
4951
4952 class Reference final :
4953 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Reference) */ {
4954 public:
Reference()4955 inline Reference() : Reference(nullptr) {}
4956 ~Reference() override;
4957 explicit PROTOBUF_CONSTEXPR Reference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
4958
4959 Reference(const Reference& from);
Reference(Reference && from)4960 Reference(Reference&& from) noexcept
4961 : Reference() {
4962 *this = ::std::move(from);
4963 }
4964
4965 inline Reference& operator=(const Reference& from) {
4966 if (this == &from) return *this;
4967 CopyFrom(from);
4968 return *this;
4969 }
4970 inline Reference& operator=(Reference&& from) noexcept {
4971 if (this == &from) return *this;
4972 if (GetOwningArena() == from.GetOwningArena()
4973 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
4974 && GetOwningArena() != nullptr
4975 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
4976 ) {
4977 InternalSwap(&from);
4978 } else {
4979 CopyFrom(from);
4980 }
4981 return *this;
4982 }
4983
descriptor()4984 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
4985 return GetDescriptor();
4986 }
GetDescriptor()4987 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
4988 return default_instance().GetMetadata().descriptor;
4989 }
GetReflection()4990 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
4991 return default_instance().GetMetadata().reflection;
4992 }
default_instance()4993 static const Reference& default_instance() {
4994 return *internal_default_instance();
4995 }
internal_default_instance()4996 static inline const Reference* internal_default_instance() {
4997 return reinterpret_cast<const Reference*>(
4998 &_Reference_default_instance_);
4999 }
5000 static constexpr int kIndexInFileMessages =
5001 22;
5002
swap(Reference & a,Reference & b)5003 friend void swap(Reference& a, Reference& b) {
5004 a.Swap(&b);
5005 }
Swap(Reference * other)5006 inline void Swap(Reference* other) {
5007 if (other == this) return;
5008 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5009 if (GetOwningArena() != nullptr &&
5010 GetOwningArena() == other->GetOwningArena()) {
5011 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5012 if (GetOwningArena() == other->GetOwningArena()) {
5013 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5014 InternalSwap(other);
5015 } else {
5016 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5017 }
5018 }
5019 void UnsafeArenaSwap(Reference* other) {
5020 if (other == this) return;
5021 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5022 InternalSwap(other);
5023 }
5024
5025 // implements Message ----------------------------------------------
5026
5027 Reference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5028 return CreateMaybeMessage<Reference>(arena);
5029 }
5030 Reference* New() const {
5031 return New(nullptr);
5032 }
5033 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5034 void CopyFrom(const Reference& from);
5035 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5036 void MergeFrom( const Reference& from) {
5037 Reference::MergeImpl(*this, from);
5038 }
5039 private:
5040 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5041 public:
5042 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5043 bool IsInitialized() const final;
5044
5045 size_t ByteSizeLong() const final;
5046 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5047 ::uint8_t* _InternalSerialize(
5048 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5049 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5050
5051 private:
5052 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5053 void SharedDtor();
5054 void SetCachedSize(int size) const final;
5055 void InternalSwap(Reference* other);
5056
5057 private:
5058 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5059 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5060 return "aapt.pb.Reference";
5061 }
5062 protected:
5063 explicit Reference(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5064 bool is_message_owned = false);
5065 public:
5066
5067 static const ClassData _class_data_;
5068 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5069
5070 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5071
5072 // nested types ----------------------------------------------------
5073
5074 typedef Reference_Type Type;
5075 static constexpr Type REFERENCE =
5076 Reference_Type_REFERENCE;
5077 static constexpr Type ATTRIBUTE =
5078 Reference_Type_ATTRIBUTE;
5079 static inline bool Type_IsValid(int value) {
5080 return Reference_Type_IsValid(value);
5081 }
5082 static constexpr Type Type_MIN =
5083 Reference_Type_Type_MIN;
5084 static constexpr Type Type_MAX =
5085 Reference_Type_Type_MAX;
5086 static constexpr int Type_ARRAYSIZE =
5087 Reference_Type_Type_ARRAYSIZE;
5088 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
5089 Type_descriptor() {
5090 return Reference_Type_descriptor();
5091 }
5092 template<typename T>
5093 static inline const std::string& Type_Name(T enum_t_value) {
5094 static_assert(::std::is_same<T, Type>::value ||
5095 ::std::is_integral<T>::value,
5096 "Incorrect type passed to function Type_Name.");
5097 return Reference_Type_Name(enum_t_value);
5098 }
5099 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
5100 Type* value) {
5101 return Reference_Type_Parse(name, value);
5102 }
5103
5104 // accessors -------------------------------------------------------
5105
5106 enum : int {
5107 kNameFieldNumber = 3,
5108 kIsDynamicFieldNumber = 5,
5109 kTypeFieldNumber = 1,
5110 kIdFieldNumber = 2,
5111 kPrivateFieldNumber = 4,
5112 kAllowRawFieldNumber = 7,
5113 kTypeFlagsFieldNumber = 6,
5114 };
5115 // string name = 3;
5116 void clear_name();
5117 const std::string& name() const;
5118 template <typename ArgT0 = const std::string&, typename... ArgT>
5119 void set_name(ArgT0&& arg0, ArgT... args);
5120 std::string* mutable_name();
5121 PROTOBUF_NODISCARD std::string* release_name();
5122 void set_allocated_name(std::string* name);
5123 private:
5124 const std::string& _internal_name() const;
5125 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
5126 std::string* _internal_mutable_name();
5127 public:
5128
5129 // .aapt.pb.Boolean is_dynamic = 5;
5130 bool has_is_dynamic() const;
5131 private:
5132 bool _internal_has_is_dynamic() const;
5133 public:
5134 void clear_is_dynamic();
5135 const ::aapt::pb::Boolean& is_dynamic() const;
5136 PROTOBUF_NODISCARD ::aapt::pb::Boolean* release_is_dynamic();
5137 ::aapt::pb::Boolean* mutable_is_dynamic();
5138 void set_allocated_is_dynamic(::aapt::pb::Boolean* is_dynamic);
5139 private:
5140 const ::aapt::pb::Boolean& _internal_is_dynamic() const;
5141 ::aapt::pb::Boolean* _internal_mutable_is_dynamic();
5142 public:
5143 void unsafe_arena_set_allocated_is_dynamic(
5144 ::aapt::pb::Boolean* is_dynamic);
5145 ::aapt::pb::Boolean* unsafe_arena_release_is_dynamic();
5146
5147 // .aapt.pb.Reference.Type type = 1;
5148 void clear_type();
5149 ::aapt::pb::Reference_Type type() const;
5150 void set_type(::aapt::pb::Reference_Type value);
5151 private:
5152 ::aapt::pb::Reference_Type _internal_type() const;
5153 void _internal_set_type(::aapt::pb::Reference_Type value);
5154 public:
5155
5156 // uint32 id = 2;
5157 void clear_id();
5158 ::uint32_t id() const;
5159 void set_id(::uint32_t value);
5160 private:
5161 ::uint32_t _internal_id() const;
5162 void _internal_set_id(::uint32_t value);
5163 public:
5164
5165 // bool private = 4;
5166 void clear_private_();
5167 bool private_() const;
5168 void set_private_(bool value);
5169 private:
5170 bool _internal_private_() const;
5171 void _internal_set_private_(bool value);
5172 public:
5173
5174 // bool allow_raw = 7;
5175 void clear_allow_raw();
5176 bool allow_raw() const;
5177 void set_allow_raw(bool value);
5178 private:
5179 bool _internal_allow_raw() const;
5180 void _internal_set_allow_raw(bool value);
5181 public:
5182
5183 // uint32 type_flags = 6;
5184 void clear_type_flags();
5185 ::uint32_t type_flags() const;
5186 void set_type_flags(::uint32_t value);
5187 private:
5188 ::uint32_t _internal_type_flags() const;
5189 void _internal_set_type_flags(::uint32_t value);
5190 public:
5191
5192 // @@protoc_insertion_point(class_scope:aapt.pb.Reference)
5193 private:
5194 class _Internal;
5195
5196 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5197 typedef void InternalArenaConstructable_;
5198 typedef void DestructorSkippable_;
5199 struct Impl_ {
5200 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
5201 ::aapt::pb::Boolean* is_dynamic_;
5202 int type_;
5203 ::uint32_t id_;
5204 bool private__;
5205 bool allow_raw_;
5206 ::uint32_t type_flags_;
5207 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5208 };
5209 union { Impl_ _impl_; };
5210 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
5211 };
5212 // -------------------------------------------------------------------
5213
5214 class Id final :
5215 public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:aapt.pb.Id) */ {
5216 public:
Id()5217 inline Id() : Id(nullptr) {}
5218 explicit PROTOBUF_CONSTEXPR Id(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5219
5220 Id(const Id& from);
Id(Id && from)5221 Id(Id&& from) noexcept
5222 : Id() {
5223 *this = ::std::move(from);
5224 }
5225
5226 inline Id& operator=(const Id& from) {
5227 if (this == &from) return *this;
5228 CopyFrom(from);
5229 return *this;
5230 }
5231 inline Id& operator=(Id&& from) noexcept {
5232 if (this == &from) return *this;
5233 if (GetOwningArena() == from.GetOwningArena()
5234 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5235 && GetOwningArena() != nullptr
5236 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5237 ) {
5238 InternalSwap(&from);
5239 } else {
5240 CopyFrom(from);
5241 }
5242 return *this;
5243 }
5244
descriptor()5245 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5246 return GetDescriptor();
5247 }
GetDescriptor()5248 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5249 return default_instance().GetMetadata().descriptor;
5250 }
GetReflection()5251 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5252 return default_instance().GetMetadata().reflection;
5253 }
default_instance()5254 static const Id& default_instance() {
5255 return *internal_default_instance();
5256 }
internal_default_instance()5257 static inline const Id* internal_default_instance() {
5258 return reinterpret_cast<const Id*>(
5259 &_Id_default_instance_);
5260 }
5261 static constexpr int kIndexInFileMessages =
5262 23;
5263
swap(Id & a,Id & b)5264 friend void swap(Id& a, Id& b) {
5265 a.Swap(&b);
5266 }
Swap(Id * other)5267 inline void Swap(Id* other) {
5268 if (other == this) return;
5269 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5270 if (GetOwningArena() != nullptr &&
5271 GetOwningArena() == other->GetOwningArena()) {
5272 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5273 if (GetOwningArena() == other->GetOwningArena()) {
5274 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5275 InternalSwap(other);
5276 } else {
5277 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5278 }
5279 }
5280 void UnsafeArenaSwap(Id* other) {
5281 if (other == this) return;
5282 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5283 InternalSwap(other);
5284 }
5285
5286 // implements Message ----------------------------------------------
5287
5288 Id* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5289 return CreateMaybeMessage<Id>(arena);
5290 }
5291 Id* New() const {
5292 return New(nullptr);
5293 }
5294 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
5295 inline void CopyFrom(const Id& from) {
5296 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from);
5297 }
5298 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
5299 void MergeFrom(const Id& from) {
5300 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from);
5301 }
5302 public:
5303
5304 private:
5305 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5306 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5307 return "aapt.pb.Id";
5308 }
5309 protected:
5310 explicit Id(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5311 bool is_message_owned = false);
5312 public:
5313
5314 static const ClassData _class_data_;
5315 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5316
5317 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5318
5319 // nested types ----------------------------------------------------
5320
5321 // accessors -------------------------------------------------------
5322
5323 // @@protoc_insertion_point(class_scope:aapt.pb.Id)
5324 private:
5325 class _Internal;
5326
5327 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5328 typedef void InternalArenaConstructable_;
5329 typedef void DestructorSkippable_;
5330 struct Impl_ {
5331 };
5332 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
5333 };
5334 // -------------------------------------------------------------------
5335
5336 class String final :
5337 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.String) */ {
5338 public:
String()5339 inline String() : String(nullptr) {}
5340 ~String() override;
5341 explicit PROTOBUF_CONSTEXPR String(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5342
5343 String(const String& from);
String(String && from)5344 String(String&& from) noexcept
5345 : String() {
5346 *this = ::std::move(from);
5347 }
5348
5349 inline String& operator=(const String& from) {
5350 if (this == &from) return *this;
5351 CopyFrom(from);
5352 return *this;
5353 }
5354 inline String& operator=(String&& from) noexcept {
5355 if (this == &from) return *this;
5356 if (GetOwningArena() == from.GetOwningArena()
5357 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5358 && GetOwningArena() != nullptr
5359 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5360 ) {
5361 InternalSwap(&from);
5362 } else {
5363 CopyFrom(from);
5364 }
5365 return *this;
5366 }
5367
descriptor()5368 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5369 return GetDescriptor();
5370 }
GetDescriptor()5371 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5372 return default_instance().GetMetadata().descriptor;
5373 }
GetReflection()5374 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5375 return default_instance().GetMetadata().reflection;
5376 }
default_instance()5377 static const String& default_instance() {
5378 return *internal_default_instance();
5379 }
internal_default_instance()5380 static inline const String* internal_default_instance() {
5381 return reinterpret_cast<const String*>(
5382 &_String_default_instance_);
5383 }
5384 static constexpr int kIndexInFileMessages =
5385 24;
5386
swap(String & a,String & b)5387 friend void swap(String& a, String& b) {
5388 a.Swap(&b);
5389 }
Swap(String * other)5390 inline void Swap(String* other) {
5391 if (other == this) return;
5392 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5393 if (GetOwningArena() != nullptr &&
5394 GetOwningArena() == other->GetOwningArena()) {
5395 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5396 if (GetOwningArena() == other->GetOwningArena()) {
5397 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5398 InternalSwap(other);
5399 } else {
5400 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5401 }
5402 }
5403 void UnsafeArenaSwap(String* other) {
5404 if (other == this) return;
5405 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5406 InternalSwap(other);
5407 }
5408
5409 // implements Message ----------------------------------------------
5410
5411 String* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5412 return CreateMaybeMessage<String>(arena);
5413 }
5414 String* New() const {
5415 return New(nullptr);
5416 }
5417 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5418 void CopyFrom(const String& from);
5419 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5420 void MergeFrom( const String& from) {
5421 String::MergeImpl(*this, from);
5422 }
5423 private:
5424 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5425 public:
5426 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5427 bool IsInitialized() const final;
5428
5429 size_t ByteSizeLong() const final;
5430 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5431 ::uint8_t* _InternalSerialize(
5432 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5433 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5434
5435 private:
5436 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5437 void SharedDtor();
5438 void SetCachedSize(int size) const final;
5439 void InternalSwap(String* other);
5440
5441 private:
5442 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5443 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5444 return "aapt.pb.String";
5445 }
5446 protected:
5447 explicit String(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5448 bool is_message_owned = false);
5449 public:
5450
5451 static const ClassData _class_data_;
5452 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5453
5454 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5455
5456 // nested types ----------------------------------------------------
5457
5458 // accessors -------------------------------------------------------
5459
5460 enum : int {
5461 kValueFieldNumber = 1,
5462 };
5463 // string value = 1;
5464 void clear_value();
5465 const std::string& value() const;
5466 template <typename ArgT0 = const std::string&, typename... ArgT>
5467 void set_value(ArgT0&& arg0, ArgT... args);
5468 std::string* mutable_value();
5469 PROTOBUF_NODISCARD std::string* release_value();
5470 void set_allocated_value(std::string* value);
5471 private:
5472 const std::string& _internal_value() const;
5473 inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
5474 std::string* _internal_mutable_value();
5475 public:
5476
5477 // @@protoc_insertion_point(class_scope:aapt.pb.String)
5478 private:
5479 class _Internal;
5480
5481 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5482 typedef void InternalArenaConstructable_;
5483 typedef void DestructorSkippable_;
5484 struct Impl_ {
5485 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
5486 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5487 };
5488 union { Impl_ _impl_; };
5489 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
5490 };
5491 // -------------------------------------------------------------------
5492
5493 class RawString final :
5494 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.RawString) */ {
5495 public:
RawString()5496 inline RawString() : RawString(nullptr) {}
5497 ~RawString() override;
5498 explicit PROTOBUF_CONSTEXPR RawString(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5499
5500 RawString(const RawString& from);
RawString(RawString && from)5501 RawString(RawString&& from) noexcept
5502 : RawString() {
5503 *this = ::std::move(from);
5504 }
5505
5506 inline RawString& operator=(const RawString& from) {
5507 if (this == &from) return *this;
5508 CopyFrom(from);
5509 return *this;
5510 }
5511 inline RawString& operator=(RawString&& from) noexcept {
5512 if (this == &from) return *this;
5513 if (GetOwningArena() == from.GetOwningArena()
5514 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5515 && GetOwningArena() != nullptr
5516 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5517 ) {
5518 InternalSwap(&from);
5519 } else {
5520 CopyFrom(from);
5521 }
5522 return *this;
5523 }
5524
descriptor()5525 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5526 return GetDescriptor();
5527 }
GetDescriptor()5528 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5529 return default_instance().GetMetadata().descriptor;
5530 }
GetReflection()5531 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5532 return default_instance().GetMetadata().reflection;
5533 }
default_instance()5534 static const RawString& default_instance() {
5535 return *internal_default_instance();
5536 }
internal_default_instance()5537 static inline const RawString* internal_default_instance() {
5538 return reinterpret_cast<const RawString*>(
5539 &_RawString_default_instance_);
5540 }
5541 static constexpr int kIndexInFileMessages =
5542 25;
5543
swap(RawString & a,RawString & b)5544 friend void swap(RawString& a, RawString& b) {
5545 a.Swap(&b);
5546 }
Swap(RawString * other)5547 inline void Swap(RawString* other) {
5548 if (other == this) return;
5549 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5550 if (GetOwningArena() != nullptr &&
5551 GetOwningArena() == other->GetOwningArena()) {
5552 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5553 if (GetOwningArena() == other->GetOwningArena()) {
5554 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5555 InternalSwap(other);
5556 } else {
5557 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5558 }
5559 }
5560 void UnsafeArenaSwap(RawString* other) {
5561 if (other == this) return;
5562 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5563 InternalSwap(other);
5564 }
5565
5566 // implements Message ----------------------------------------------
5567
5568 RawString* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5569 return CreateMaybeMessage<RawString>(arena);
5570 }
5571 RawString* New() const {
5572 return New(nullptr);
5573 }
5574 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5575 void CopyFrom(const RawString& from);
5576 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5577 void MergeFrom( const RawString& from) {
5578 RawString::MergeImpl(*this, from);
5579 }
5580 private:
5581 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5582 public:
5583 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5584 bool IsInitialized() const final;
5585
5586 size_t ByteSizeLong() const final;
5587 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5588 ::uint8_t* _InternalSerialize(
5589 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5590 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5591
5592 private:
5593 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5594 void SharedDtor();
5595 void SetCachedSize(int size) const final;
5596 void InternalSwap(RawString* other);
5597
5598 private:
5599 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5600 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5601 return "aapt.pb.RawString";
5602 }
5603 protected:
5604 explicit RawString(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5605 bool is_message_owned = false);
5606 public:
5607
5608 static const ClassData _class_data_;
5609 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5610
5611 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5612
5613 // nested types ----------------------------------------------------
5614
5615 // accessors -------------------------------------------------------
5616
5617 enum : int {
5618 kValueFieldNumber = 1,
5619 };
5620 // string value = 1;
5621 void clear_value();
5622 const std::string& value() const;
5623 template <typename ArgT0 = const std::string&, typename... ArgT>
5624 void set_value(ArgT0&& arg0, ArgT... args);
5625 std::string* mutable_value();
5626 PROTOBUF_NODISCARD std::string* release_value();
5627 void set_allocated_value(std::string* value);
5628 private:
5629 const std::string& _internal_value() const;
5630 inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
5631 std::string* _internal_mutable_value();
5632 public:
5633
5634 // @@protoc_insertion_point(class_scope:aapt.pb.RawString)
5635 private:
5636 class _Internal;
5637
5638 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5639 typedef void InternalArenaConstructable_;
5640 typedef void DestructorSkippable_;
5641 struct Impl_ {
5642 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
5643 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5644 };
5645 union { Impl_ _impl_; };
5646 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
5647 };
5648 // -------------------------------------------------------------------
5649
5650 class StyledString_Span final :
5651 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StyledString.Span) */ {
5652 public:
StyledString_Span()5653 inline StyledString_Span() : StyledString_Span(nullptr) {}
5654 ~StyledString_Span() override;
5655 explicit PROTOBUF_CONSTEXPR StyledString_Span(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5656
5657 StyledString_Span(const StyledString_Span& from);
StyledString_Span(StyledString_Span && from)5658 StyledString_Span(StyledString_Span&& from) noexcept
5659 : StyledString_Span() {
5660 *this = ::std::move(from);
5661 }
5662
5663 inline StyledString_Span& operator=(const StyledString_Span& from) {
5664 if (this == &from) return *this;
5665 CopyFrom(from);
5666 return *this;
5667 }
5668 inline StyledString_Span& operator=(StyledString_Span&& from) noexcept {
5669 if (this == &from) return *this;
5670 if (GetOwningArena() == from.GetOwningArena()
5671 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5672 && GetOwningArena() != nullptr
5673 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5674 ) {
5675 InternalSwap(&from);
5676 } else {
5677 CopyFrom(from);
5678 }
5679 return *this;
5680 }
5681
descriptor()5682 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5683 return GetDescriptor();
5684 }
GetDescriptor()5685 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5686 return default_instance().GetMetadata().descriptor;
5687 }
GetReflection()5688 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5689 return default_instance().GetMetadata().reflection;
5690 }
default_instance()5691 static const StyledString_Span& default_instance() {
5692 return *internal_default_instance();
5693 }
internal_default_instance()5694 static inline const StyledString_Span* internal_default_instance() {
5695 return reinterpret_cast<const StyledString_Span*>(
5696 &_StyledString_Span_default_instance_);
5697 }
5698 static constexpr int kIndexInFileMessages =
5699 26;
5700
swap(StyledString_Span & a,StyledString_Span & b)5701 friend void swap(StyledString_Span& a, StyledString_Span& b) {
5702 a.Swap(&b);
5703 }
Swap(StyledString_Span * other)5704 inline void Swap(StyledString_Span* other) {
5705 if (other == this) return;
5706 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5707 if (GetOwningArena() != nullptr &&
5708 GetOwningArena() == other->GetOwningArena()) {
5709 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5710 if (GetOwningArena() == other->GetOwningArena()) {
5711 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5712 InternalSwap(other);
5713 } else {
5714 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5715 }
5716 }
5717 void UnsafeArenaSwap(StyledString_Span* other) {
5718 if (other == this) return;
5719 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5720 InternalSwap(other);
5721 }
5722
5723 // implements Message ----------------------------------------------
5724
5725 StyledString_Span* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5726 return CreateMaybeMessage<StyledString_Span>(arena);
5727 }
5728 StyledString_Span* New() const {
5729 return New(nullptr);
5730 }
5731 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5732 void CopyFrom(const StyledString_Span& from);
5733 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5734 void MergeFrom( const StyledString_Span& from) {
5735 StyledString_Span::MergeImpl(*this, from);
5736 }
5737 private:
5738 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5739 public:
5740 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5741 bool IsInitialized() const final;
5742
5743 size_t ByteSizeLong() const final;
5744 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5745 ::uint8_t* _InternalSerialize(
5746 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5747 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5748
5749 private:
5750 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5751 void SharedDtor();
5752 void SetCachedSize(int size) const final;
5753 void InternalSwap(StyledString_Span* other);
5754
5755 private:
5756 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5757 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5758 return "aapt.pb.StyledString.Span";
5759 }
5760 protected:
5761 explicit StyledString_Span(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5762 bool is_message_owned = false);
5763 public:
5764
5765 static const ClassData _class_data_;
5766 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5767
5768 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5769
5770 // nested types ----------------------------------------------------
5771
5772 // accessors -------------------------------------------------------
5773
5774 enum : int {
5775 kTagFieldNumber = 1,
5776 kFirstCharFieldNumber = 2,
5777 kLastCharFieldNumber = 3,
5778 };
5779 // string tag = 1;
5780 void clear_tag();
5781 const std::string& tag() const;
5782 template <typename ArgT0 = const std::string&, typename... ArgT>
5783 void set_tag(ArgT0&& arg0, ArgT... args);
5784 std::string* mutable_tag();
5785 PROTOBUF_NODISCARD std::string* release_tag();
5786 void set_allocated_tag(std::string* tag);
5787 private:
5788 const std::string& _internal_tag() const;
5789 inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value);
5790 std::string* _internal_mutable_tag();
5791 public:
5792
5793 // uint32 first_char = 2;
5794 void clear_first_char();
5795 ::uint32_t first_char() const;
5796 void set_first_char(::uint32_t value);
5797 private:
5798 ::uint32_t _internal_first_char() const;
5799 void _internal_set_first_char(::uint32_t value);
5800 public:
5801
5802 // uint32 last_char = 3;
5803 void clear_last_char();
5804 ::uint32_t last_char() const;
5805 void set_last_char(::uint32_t value);
5806 private:
5807 ::uint32_t _internal_last_char() const;
5808 void _internal_set_last_char(::uint32_t value);
5809 public:
5810
5811 // @@protoc_insertion_point(class_scope:aapt.pb.StyledString.Span)
5812 private:
5813 class _Internal;
5814
5815 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5816 typedef void InternalArenaConstructable_;
5817 typedef void DestructorSkippable_;
5818 struct Impl_ {
5819 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tag_;
5820 ::uint32_t first_char_;
5821 ::uint32_t last_char_;
5822 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
5823 };
5824 union { Impl_ _impl_; };
5825 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
5826 };
5827 // -------------------------------------------------------------------
5828
5829 class StyledString final :
5830 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StyledString) */ {
5831 public:
StyledString()5832 inline StyledString() : StyledString(nullptr) {}
5833 ~StyledString() override;
5834 explicit PROTOBUF_CONSTEXPR StyledString(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
5835
5836 StyledString(const StyledString& from);
StyledString(StyledString && from)5837 StyledString(StyledString&& from) noexcept
5838 : StyledString() {
5839 *this = ::std::move(from);
5840 }
5841
5842 inline StyledString& operator=(const StyledString& from) {
5843 if (this == &from) return *this;
5844 CopyFrom(from);
5845 return *this;
5846 }
5847 inline StyledString& operator=(StyledString&& from) noexcept {
5848 if (this == &from) return *this;
5849 if (GetOwningArena() == from.GetOwningArena()
5850 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
5851 && GetOwningArena() != nullptr
5852 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
5853 ) {
5854 InternalSwap(&from);
5855 } else {
5856 CopyFrom(from);
5857 }
5858 return *this;
5859 }
5860
descriptor()5861 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
5862 return GetDescriptor();
5863 }
GetDescriptor()5864 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
5865 return default_instance().GetMetadata().descriptor;
5866 }
GetReflection()5867 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
5868 return default_instance().GetMetadata().reflection;
5869 }
default_instance()5870 static const StyledString& default_instance() {
5871 return *internal_default_instance();
5872 }
internal_default_instance()5873 static inline const StyledString* internal_default_instance() {
5874 return reinterpret_cast<const StyledString*>(
5875 &_StyledString_default_instance_);
5876 }
5877 static constexpr int kIndexInFileMessages =
5878 27;
5879
swap(StyledString & a,StyledString & b)5880 friend void swap(StyledString& a, StyledString& b) {
5881 a.Swap(&b);
5882 }
Swap(StyledString * other)5883 inline void Swap(StyledString* other) {
5884 if (other == this) return;
5885 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
5886 if (GetOwningArena() != nullptr &&
5887 GetOwningArena() == other->GetOwningArena()) {
5888 #else // PROTOBUF_FORCE_COPY_IN_SWAP
5889 if (GetOwningArena() == other->GetOwningArena()) {
5890 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
5891 InternalSwap(other);
5892 } else {
5893 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
5894 }
5895 }
5896 void UnsafeArenaSwap(StyledString* other) {
5897 if (other == this) return;
5898 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
5899 InternalSwap(other);
5900 }
5901
5902 // implements Message ----------------------------------------------
5903
5904 StyledString* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
5905 return CreateMaybeMessage<StyledString>(arena);
5906 }
5907 StyledString* New() const {
5908 return New(nullptr);
5909 }
5910 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
5911 void CopyFrom(const StyledString& from);
5912 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
5913 void MergeFrom( const StyledString& from) {
5914 StyledString::MergeImpl(*this, from);
5915 }
5916 private:
5917 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
5918 public:
5919 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
5920 bool IsInitialized() const final;
5921
5922 size_t ByteSizeLong() const final;
5923 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
5924 ::uint8_t* _InternalSerialize(
5925 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
5926 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
5927
5928 private:
5929 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
5930 void SharedDtor();
5931 void SetCachedSize(int size) const final;
5932 void InternalSwap(StyledString* other);
5933
5934 private:
5935 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
5936 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
5937 return "aapt.pb.StyledString";
5938 }
5939 protected:
5940 explicit StyledString(::PROTOBUF_NAMESPACE_ID::Arena* arena,
5941 bool is_message_owned = false);
5942 public:
5943
5944 static const ClassData _class_data_;
5945 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
5946
5947 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
5948
5949 // nested types ----------------------------------------------------
5950
5951 typedef StyledString_Span Span;
5952
5953 // accessors -------------------------------------------------------
5954
5955 enum : int {
5956 kSpanFieldNumber = 2,
5957 kValueFieldNumber = 1,
5958 };
5959 // repeated .aapt.pb.StyledString.Span span = 2;
5960 int span_size() const;
5961 private:
5962 int _internal_span_size() const;
5963 public:
5964 void clear_span();
5965 ::aapt::pb::StyledString_Span* mutable_span(int index);
5966 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::StyledString_Span >*
5967 mutable_span();
5968 private:
5969 const ::aapt::pb::StyledString_Span& _internal_span(int index) const;
5970 ::aapt::pb::StyledString_Span* _internal_add_span();
5971 public:
5972 const ::aapt::pb::StyledString_Span& span(int index) const;
5973 ::aapt::pb::StyledString_Span* add_span();
5974 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::StyledString_Span >&
5975 span() const;
5976
5977 // string value = 1;
5978 void clear_value();
5979 const std::string& value() const;
5980 template <typename ArgT0 = const std::string&, typename... ArgT>
5981 void set_value(ArgT0&& arg0, ArgT... args);
5982 std::string* mutable_value();
5983 PROTOBUF_NODISCARD std::string* release_value();
5984 void set_allocated_value(std::string* value);
5985 private:
5986 const std::string& _internal_value() const;
5987 inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
5988 std::string* _internal_mutable_value();
5989 public:
5990
5991 // @@protoc_insertion_point(class_scope:aapt.pb.StyledString)
5992 private:
5993 class _Internal;
5994
5995 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
5996 typedef void InternalArenaConstructable_;
5997 typedef void DestructorSkippable_;
5998 struct Impl_ {
5999 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::StyledString_Span > span_;
6000 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
6001 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6002 };
6003 union { Impl_ _impl_; };
6004 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
6005 };
6006 // -------------------------------------------------------------------
6007
6008 class FileReference final :
6009 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.FileReference) */ {
6010 public:
FileReference()6011 inline FileReference() : FileReference(nullptr) {}
6012 ~FileReference() override;
6013 explicit PROTOBUF_CONSTEXPR FileReference(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6014
6015 FileReference(const FileReference& from);
FileReference(FileReference && from)6016 FileReference(FileReference&& from) noexcept
6017 : FileReference() {
6018 *this = ::std::move(from);
6019 }
6020
6021 inline FileReference& operator=(const FileReference& from) {
6022 if (this == &from) return *this;
6023 CopyFrom(from);
6024 return *this;
6025 }
6026 inline FileReference& operator=(FileReference&& from) noexcept {
6027 if (this == &from) return *this;
6028 if (GetOwningArena() == from.GetOwningArena()
6029 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6030 && GetOwningArena() != nullptr
6031 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6032 ) {
6033 InternalSwap(&from);
6034 } else {
6035 CopyFrom(from);
6036 }
6037 return *this;
6038 }
6039
descriptor()6040 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6041 return GetDescriptor();
6042 }
GetDescriptor()6043 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6044 return default_instance().GetMetadata().descriptor;
6045 }
GetReflection()6046 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6047 return default_instance().GetMetadata().reflection;
6048 }
default_instance()6049 static const FileReference& default_instance() {
6050 return *internal_default_instance();
6051 }
internal_default_instance()6052 static inline const FileReference* internal_default_instance() {
6053 return reinterpret_cast<const FileReference*>(
6054 &_FileReference_default_instance_);
6055 }
6056 static constexpr int kIndexInFileMessages =
6057 28;
6058
swap(FileReference & a,FileReference & b)6059 friend void swap(FileReference& a, FileReference& b) {
6060 a.Swap(&b);
6061 }
Swap(FileReference * other)6062 inline void Swap(FileReference* other) {
6063 if (other == this) return;
6064 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6065 if (GetOwningArena() != nullptr &&
6066 GetOwningArena() == other->GetOwningArena()) {
6067 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6068 if (GetOwningArena() == other->GetOwningArena()) {
6069 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6070 InternalSwap(other);
6071 } else {
6072 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6073 }
6074 }
6075 void UnsafeArenaSwap(FileReference* other) {
6076 if (other == this) return;
6077 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6078 InternalSwap(other);
6079 }
6080
6081 // implements Message ----------------------------------------------
6082
6083 FileReference* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6084 return CreateMaybeMessage<FileReference>(arena);
6085 }
6086 FileReference* New() const {
6087 return New(nullptr);
6088 }
6089 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6090 void CopyFrom(const FileReference& from);
6091 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6092 void MergeFrom( const FileReference& from) {
6093 FileReference::MergeImpl(*this, from);
6094 }
6095 private:
6096 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6097 public:
6098 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6099 bool IsInitialized() const final;
6100
6101 size_t ByteSizeLong() const final;
6102 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6103 ::uint8_t* _InternalSerialize(
6104 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6105 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6106
6107 private:
6108 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6109 void SharedDtor();
6110 void SetCachedSize(int size) const final;
6111 void InternalSwap(FileReference* other);
6112
6113 private:
6114 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6115 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6116 return "aapt.pb.FileReference";
6117 }
6118 protected:
6119 explicit FileReference(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6120 bool is_message_owned = false);
6121 public:
6122
6123 static const ClassData _class_data_;
6124 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6125
6126 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6127
6128 // nested types ----------------------------------------------------
6129
6130 typedef FileReference_Type Type;
6131 static constexpr Type UNKNOWN =
6132 FileReference_Type_UNKNOWN;
6133 static constexpr Type PNG =
6134 FileReference_Type_PNG;
6135 static constexpr Type BINARY_XML =
6136 FileReference_Type_BINARY_XML;
6137 static constexpr Type PROTO_XML =
6138 FileReference_Type_PROTO_XML;
6139 static inline bool Type_IsValid(int value) {
6140 return FileReference_Type_IsValid(value);
6141 }
6142 static constexpr Type Type_MIN =
6143 FileReference_Type_Type_MIN;
6144 static constexpr Type Type_MAX =
6145 FileReference_Type_Type_MAX;
6146 static constexpr int Type_ARRAYSIZE =
6147 FileReference_Type_Type_ARRAYSIZE;
6148 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
6149 Type_descriptor() {
6150 return FileReference_Type_descriptor();
6151 }
6152 template<typename T>
6153 static inline const std::string& Type_Name(T enum_t_value) {
6154 static_assert(::std::is_same<T, Type>::value ||
6155 ::std::is_integral<T>::value,
6156 "Incorrect type passed to function Type_Name.");
6157 return FileReference_Type_Name(enum_t_value);
6158 }
6159 static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
6160 Type* value) {
6161 return FileReference_Type_Parse(name, value);
6162 }
6163
6164 // accessors -------------------------------------------------------
6165
6166 enum : int {
6167 kPathFieldNumber = 1,
6168 kTypeFieldNumber = 2,
6169 };
6170 // string path = 1;
6171 void clear_path();
6172 const std::string& path() const;
6173 template <typename ArgT0 = const std::string&, typename... ArgT>
6174 void set_path(ArgT0&& arg0, ArgT... args);
6175 std::string* mutable_path();
6176 PROTOBUF_NODISCARD std::string* release_path();
6177 void set_allocated_path(std::string* path);
6178 private:
6179 const std::string& _internal_path() const;
6180 inline PROTOBUF_ALWAYS_INLINE void _internal_set_path(const std::string& value);
6181 std::string* _internal_mutable_path();
6182 public:
6183
6184 // .aapt.pb.FileReference.Type type = 2;
6185 void clear_type();
6186 ::aapt::pb::FileReference_Type type() const;
6187 void set_type(::aapt::pb::FileReference_Type value);
6188 private:
6189 ::aapt::pb::FileReference_Type _internal_type() const;
6190 void _internal_set_type(::aapt::pb::FileReference_Type value);
6191 public:
6192
6193 // @@protoc_insertion_point(class_scope:aapt.pb.FileReference)
6194 private:
6195 class _Internal;
6196
6197 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6198 typedef void InternalArenaConstructable_;
6199 typedef void DestructorSkippable_;
6200 struct Impl_ {
6201 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_;
6202 int type_;
6203 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6204 };
6205 union { Impl_ _impl_; };
6206 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
6207 };
6208 // -------------------------------------------------------------------
6209
6210 class Primitive_NullType final :
6211 public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:aapt.pb.Primitive.NullType) */ {
6212 public:
Primitive_NullType()6213 inline Primitive_NullType() : Primitive_NullType(nullptr) {}
6214 explicit PROTOBUF_CONSTEXPR Primitive_NullType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6215
6216 Primitive_NullType(const Primitive_NullType& from);
Primitive_NullType(Primitive_NullType && from)6217 Primitive_NullType(Primitive_NullType&& from) noexcept
6218 : Primitive_NullType() {
6219 *this = ::std::move(from);
6220 }
6221
6222 inline Primitive_NullType& operator=(const Primitive_NullType& from) {
6223 if (this == &from) return *this;
6224 CopyFrom(from);
6225 return *this;
6226 }
6227 inline Primitive_NullType& operator=(Primitive_NullType&& from) noexcept {
6228 if (this == &from) return *this;
6229 if (GetOwningArena() == from.GetOwningArena()
6230 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6231 && GetOwningArena() != nullptr
6232 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6233 ) {
6234 InternalSwap(&from);
6235 } else {
6236 CopyFrom(from);
6237 }
6238 return *this;
6239 }
6240
descriptor()6241 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6242 return GetDescriptor();
6243 }
GetDescriptor()6244 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6245 return default_instance().GetMetadata().descriptor;
6246 }
GetReflection()6247 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6248 return default_instance().GetMetadata().reflection;
6249 }
default_instance()6250 static const Primitive_NullType& default_instance() {
6251 return *internal_default_instance();
6252 }
internal_default_instance()6253 static inline const Primitive_NullType* internal_default_instance() {
6254 return reinterpret_cast<const Primitive_NullType*>(
6255 &_Primitive_NullType_default_instance_);
6256 }
6257 static constexpr int kIndexInFileMessages =
6258 29;
6259
swap(Primitive_NullType & a,Primitive_NullType & b)6260 friend void swap(Primitive_NullType& a, Primitive_NullType& b) {
6261 a.Swap(&b);
6262 }
Swap(Primitive_NullType * other)6263 inline void Swap(Primitive_NullType* other) {
6264 if (other == this) return;
6265 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6266 if (GetOwningArena() != nullptr &&
6267 GetOwningArena() == other->GetOwningArena()) {
6268 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6269 if (GetOwningArena() == other->GetOwningArena()) {
6270 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6271 InternalSwap(other);
6272 } else {
6273 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6274 }
6275 }
6276 void UnsafeArenaSwap(Primitive_NullType* other) {
6277 if (other == this) return;
6278 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6279 InternalSwap(other);
6280 }
6281
6282 // implements Message ----------------------------------------------
6283
6284 Primitive_NullType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6285 return CreateMaybeMessage<Primitive_NullType>(arena);
6286 }
6287 Primitive_NullType* New() const {
6288 return New(nullptr);
6289 }
6290 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
6291 inline void CopyFrom(const Primitive_NullType& from) {
6292 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from);
6293 }
6294 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
6295 void MergeFrom(const Primitive_NullType& from) {
6296 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from);
6297 }
6298 public:
6299
6300 private:
6301 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6302 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6303 return "aapt.pb.Primitive.NullType";
6304 }
6305 protected:
6306 explicit Primitive_NullType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6307 bool is_message_owned = false);
6308 public:
6309
6310 static const ClassData _class_data_;
6311 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6312
6313 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6314
6315 // nested types ----------------------------------------------------
6316
6317 // accessors -------------------------------------------------------
6318
6319 // @@protoc_insertion_point(class_scope:aapt.pb.Primitive.NullType)
6320 private:
6321 class _Internal;
6322
6323 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6324 typedef void InternalArenaConstructable_;
6325 typedef void DestructorSkippable_;
6326 struct Impl_ {
6327 };
6328 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
6329 };
6330 // -------------------------------------------------------------------
6331
6332 class Primitive_EmptyType final :
6333 public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:aapt.pb.Primitive.EmptyType) */ {
6334 public:
Primitive_EmptyType()6335 inline Primitive_EmptyType() : Primitive_EmptyType(nullptr) {}
6336 explicit PROTOBUF_CONSTEXPR Primitive_EmptyType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6337
6338 Primitive_EmptyType(const Primitive_EmptyType& from);
Primitive_EmptyType(Primitive_EmptyType && from)6339 Primitive_EmptyType(Primitive_EmptyType&& from) noexcept
6340 : Primitive_EmptyType() {
6341 *this = ::std::move(from);
6342 }
6343
6344 inline Primitive_EmptyType& operator=(const Primitive_EmptyType& from) {
6345 if (this == &from) return *this;
6346 CopyFrom(from);
6347 return *this;
6348 }
6349 inline Primitive_EmptyType& operator=(Primitive_EmptyType&& from) noexcept {
6350 if (this == &from) return *this;
6351 if (GetOwningArena() == from.GetOwningArena()
6352 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6353 && GetOwningArena() != nullptr
6354 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6355 ) {
6356 InternalSwap(&from);
6357 } else {
6358 CopyFrom(from);
6359 }
6360 return *this;
6361 }
6362
descriptor()6363 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6364 return GetDescriptor();
6365 }
GetDescriptor()6366 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6367 return default_instance().GetMetadata().descriptor;
6368 }
GetReflection()6369 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6370 return default_instance().GetMetadata().reflection;
6371 }
default_instance()6372 static const Primitive_EmptyType& default_instance() {
6373 return *internal_default_instance();
6374 }
internal_default_instance()6375 static inline const Primitive_EmptyType* internal_default_instance() {
6376 return reinterpret_cast<const Primitive_EmptyType*>(
6377 &_Primitive_EmptyType_default_instance_);
6378 }
6379 static constexpr int kIndexInFileMessages =
6380 30;
6381
swap(Primitive_EmptyType & a,Primitive_EmptyType & b)6382 friend void swap(Primitive_EmptyType& a, Primitive_EmptyType& b) {
6383 a.Swap(&b);
6384 }
Swap(Primitive_EmptyType * other)6385 inline void Swap(Primitive_EmptyType* other) {
6386 if (other == this) return;
6387 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6388 if (GetOwningArena() != nullptr &&
6389 GetOwningArena() == other->GetOwningArena()) {
6390 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6391 if (GetOwningArena() == other->GetOwningArena()) {
6392 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6393 InternalSwap(other);
6394 } else {
6395 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6396 }
6397 }
6398 void UnsafeArenaSwap(Primitive_EmptyType* other) {
6399 if (other == this) return;
6400 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6401 InternalSwap(other);
6402 }
6403
6404 // implements Message ----------------------------------------------
6405
6406 Primitive_EmptyType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6407 return CreateMaybeMessage<Primitive_EmptyType>(arena);
6408 }
6409 Primitive_EmptyType* New() const {
6410 return New(nullptr);
6411 }
6412 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
6413 inline void CopyFrom(const Primitive_EmptyType& from) {
6414 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from);
6415 }
6416 using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
6417 void MergeFrom(const Primitive_EmptyType& from) {
6418 ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from);
6419 }
6420 public:
6421
6422 private:
6423 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6424 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6425 return "aapt.pb.Primitive.EmptyType";
6426 }
6427 protected:
6428 explicit Primitive_EmptyType(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6429 bool is_message_owned = false);
6430 public:
6431
6432 static const ClassData _class_data_;
6433 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6434
6435 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6436
6437 // nested types ----------------------------------------------------
6438
6439 // accessors -------------------------------------------------------
6440
6441 // @@protoc_insertion_point(class_scope:aapt.pb.Primitive.EmptyType)
6442 private:
6443 class _Internal;
6444
6445 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6446 typedef void InternalArenaConstructable_;
6447 typedef void DestructorSkippable_;
6448 struct Impl_ {
6449 };
6450 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
6451 };
6452 // -------------------------------------------------------------------
6453
6454 class Primitive final :
6455 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Primitive) */ {
6456 public:
Primitive()6457 inline Primitive() : Primitive(nullptr) {}
6458 ~Primitive() override;
6459 explicit PROTOBUF_CONSTEXPR Primitive(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6460
6461 Primitive(const Primitive& from);
Primitive(Primitive && from)6462 Primitive(Primitive&& from) noexcept
6463 : Primitive() {
6464 *this = ::std::move(from);
6465 }
6466
6467 inline Primitive& operator=(const Primitive& from) {
6468 if (this == &from) return *this;
6469 CopyFrom(from);
6470 return *this;
6471 }
6472 inline Primitive& operator=(Primitive&& from) noexcept {
6473 if (this == &from) return *this;
6474 if (GetOwningArena() == from.GetOwningArena()
6475 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6476 && GetOwningArena() != nullptr
6477 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6478 ) {
6479 InternalSwap(&from);
6480 } else {
6481 CopyFrom(from);
6482 }
6483 return *this;
6484 }
6485
descriptor()6486 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6487 return GetDescriptor();
6488 }
GetDescriptor()6489 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6490 return default_instance().GetMetadata().descriptor;
6491 }
GetReflection()6492 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6493 return default_instance().GetMetadata().reflection;
6494 }
default_instance()6495 static const Primitive& default_instance() {
6496 return *internal_default_instance();
6497 }
6498 enum OneofValueCase {
6499 kNullValue = 1,
6500 kEmptyValue = 2,
6501 kFloatValue = 3,
6502 kDimensionValue = 13,
6503 kFractionValue = 14,
6504 kIntDecimalValue = 6,
6505 kIntHexadecimalValue = 7,
6506 kBooleanValue = 8,
6507 kColorArgb8Value = 9,
6508 kColorRgb8Value = 10,
6509 kColorArgb4Value = 11,
6510 kColorRgb4Value = 12,
6511 kDimensionValueDeprecated = 4,
6512 kFractionValueDeprecated = 5,
6513 ONEOF_VALUE_NOT_SET = 0,
6514 };
6515
internal_default_instance()6516 static inline const Primitive* internal_default_instance() {
6517 return reinterpret_cast<const Primitive*>(
6518 &_Primitive_default_instance_);
6519 }
6520 static constexpr int kIndexInFileMessages =
6521 31;
6522
swap(Primitive & a,Primitive & b)6523 friend void swap(Primitive& a, Primitive& b) {
6524 a.Swap(&b);
6525 }
Swap(Primitive * other)6526 inline void Swap(Primitive* other) {
6527 if (other == this) return;
6528 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6529 if (GetOwningArena() != nullptr &&
6530 GetOwningArena() == other->GetOwningArena()) {
6531 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6532 if (GetOwningArena() == other->GetOwningArena()) {
6533 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6534 InternalSwap(other);
6535 } else {
6536 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6537 }
6538 }
6539 void UnsafeArenaSwap(Primitive* other) {
6540 if (other == this) return;
6541 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6542 InternalSwap(other);
6543 }
6544
6545 // implements Message ----------------------------------------------
6546
6547 Primitive* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6548 return CreateMaybeMessage<Primitive>(arena);
6549 }
6550 Primitive* New() const {
6551 return New(nullptr);
6552 }
6553 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6554 void CopyFrom(const Primitive& from);
6555 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6556 void MergeFrom( const Primitive& from) {
6557 Primitive::MergeImpl(*this, from);
6558 }
6559 private:
6560 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6561 public:
6562 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6563 bool IsInitialized() const final;
6564
6565 size_t ByteSizeLong() const final;
6566 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6567 ::uint8_t* _InternalSerialize(
6568 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6569 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6570
6571 private:
6572 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6573 void SharedDtor();
6574 void SetCachedSize(int size) const final;
6575 void InternalSwap(Primitive* other);
6576
6577 private:
6578 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6579 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6580 return "aapt.pb.Primitive";
6581 }
6582 protected:
6583 explicit Primitive(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6584 bool is_message_owned = false);
6585 public:
6586
6587 static const ClassData _class_data_;
6588 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6589
6590 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6591
6592 // nested types ----------------------------------------------------
6593
6594 typedef Primitive_NullType NullType;
6595 typedef Primitive_EmptyType EmptyType;
6596
6597 // accessors -------------------------------------------------------
6598
6599 enum : int {
6600 kNullValueFieldNumber = 1,
6601 kEmptyValueFieldNumber = 2,
6602 kFloatValueFieldNumber = 3,
6603 kDimensionValueFieldNumber = 13,
6604 kFractionValueFieldNumber = 14,
6605 kIntDecimalValueFieldNumber = 6,
6606 kIntHexadecimalValueFieldNumber = 7,
6607 kBooleanValueFieldNumber = 8,
6608 kColorArgb8ValueFieldNumber = 9,
6609 kColorRgb8ValueFieldNumber = 10,
6610 kColorArgb4ValueFieldNumber = 11,
6611 kColorRgb4ValueFieldNumber = 12,
6612 kDimensionValueDeprecatedFieldNumber = 4,
6613 kFractionValueDeprecatedFieldNumber = 5,
6614 };
6615 // .aapt.pb.Primitive.NullType null_value = 1;
6616 bool has_null_value() const;
6617 private:
6618 bool _internal_has_null_value() const;
6619 public:
6620 void clear_null_value();
6621 const ::aapt::pb::Primitive_NullType& null_value() const;
6622 PROTOBUF_NODISCARD ::aapt::pb::Primitive_NullType* release_null_value();
6623 ::aapt::pb::Primitive_NullType* mutable_null_value();
6624 void set_allocated_null_value(::aapt::pb::Primitive_NullType* null_value);
6625 private:
6626 const ::aapt::pb::Primitive_NullType& _internal_null_value() const;
6627 ::aapt::pb::Primitive_NullType* _internal_mutable_null_value();
6628 public:
6629 void unsafe_arena_set_allocated_null_value(
6630 ::aapt::pb::Primitive_NullType* null_value);
6631 ::aapt::pb::Primitive_NullType* unsafe_arena_release_null_value();
6632
6633 // .aapt.pb.Primitive.EmptyType empty_value = 2;
6634 bool has_empty_value() const;
6635 private:
6636 bool _internal_has_empty_value() const;
6637 public:
6638 void clear_empty_value();
6639 const ::aapt::pb::Primitive_EmptyType& empty_value() const;
6640 PROTOBUF_NODISCARD ::aapt::pb::Primitive_EmptyType* release_empty_value();
6641 ::aapt::pb::Primitive_EmptyType* mutable_empty_value();
6642 void set_allocated_empty_value(::aapt::pb::Primitive_EmptyType* empty_value);
6643 private:
6644 const ::aapt::pb::Primitive_EmptyType& _internal_empty_value() const;
6645 ::aapt::pb::Primitive_EmptyType* _internal_mutable_empty_value();
6646 public:
6647 void unsafe_arena_set_allocated_empty_value(
6648 ::aapt::pb::Primitive_EmptyType* empty_value);
6649 ::aapt::pb::Primitive_EmptyType* unsafe_arena_release_empty_value();
6650
6651 // float float_value = 3;
6652 bool has_float_value() const;
6653 private:
6654 bool _internal_has_float_value() const;
6655 public:
6656 void clear_float_value();
6657 float float_value() const;
6658 void set_float_value(float value);
6659 private:
6660 float _internal_float_value() const;
6661 void _internal_set_float_value(float value);
6662 public:
6663
6664 // uint32 dimension_value = 13;
6665 bool has_dimension_value() const;
6666 private:
6667 bool _internal_has_dimension_value() const;
6668 public:
6669 void clear_dimension_value();
6670 ::uint32_t dimension_value() const;
6671 void set_dimension_value(::uint32_t value);
6672 private:
6673 ::uint32_t _internal_dimension_value() const;
6674 void _internal_set_dimension_value(::uint32_t value);
6675 public:
6676
6677 // uint32 fraction_value = 14;
6678 bool has_fraction_value() const;
6679 private:
6680 bool _internal_has_fraction_value() const;
6681 public:
6682 void clear_fraction_value();
6683 ::uint32_t fraction_value() const;
6684 void set_fraction_value(::uint32_t value);
6685 private:
6686 ::uint32_t _internal_fraction_value() const;
6687 void _internal_set_fraction_value(::uint32_t value);
6688 public:
6689
6690 // int32 int_decimal_value = 6;
6691 bool has_int_decimal_value() const;
6692 private:
6693 bool _internal_has_int_decimal_value() const;
6694 public:
6695 void clear_int_decimal_value();
6696 ::int32_t int_decimal_value() const;
6697 void set_int_decimal_value(::int32_t value);
6698 private:
6699 ::int32_t _internal_int_decimal_value() const;
6700 void _internal_set_int_decimal_value(::int32_t value);
6701 public:
6702
6703 // uint32 int_hexadecimal_value = 7;
6704 bool has_int_hexadecimal_value() const;
6705 private:
6706 bool _internal_has_int_hexadecimal_value() const;
6707 public:
6708 void clear_int_hexadecimal_value();
6709 ::uint32_t int_hexadecimal_value() const;
6710 void set_int_hexadecimal_value(::uint32_t value);
6711 private:
6712 ::uint32_t _internal_int_hexadecimal_value() const;
6713 void _internal_set_int_hexadecimal_value(::uint32_t value);
6714 public:
6715
6716 // bool boolean_value = 8;
6717 bool has_boolean_value() const;
6718 private:
6719 bool _internal_has_boolean_value() const;
6720 public:
6721 void clear_boolean_value();
6722 bool boolean_value() const;
6723 void set_boolean_value(bool value);
6724 private:
6725 bool _internal_boolean_value() const;
6726 void _internal_set_boolean_value(bool value);
6727 public:
6728
6729 // uint32 color_argb8_value = 9;
6730 bool has_color_argb8_value() const;
6731 private:
6732 bool _internal_has_color_argb8_value() const;
6733 public:
6734 void clear_color_argb8_value();
6735 ::uint32_t color_argb8_value() const;
6736 void set_color_argb8_value(::uint32_t value);
6737 private:
6738 ::uint32_t _internal_color_argb8_value() const;
6739 void _internal_set_color_argb8_value(::uint32_t value);
6740 public:
6741
6742 // uint32 color_rgb8_value = 10;
6743 bool has_color_rgb8_value() const;
6744 private:
6745 bool _internal_has_color_rgb8_value() const;
6746 public:
6747 void clear_color_rgb8_value();
6748 ::uint32_t color_rgb8_value() const;
6749 void set_color_rgb8_value(::uint32_t value);
6750 private:
6751 ::uint32_t _internal_color_rgb8_value() const;
6752 void _internal_set_color_rgb8_value(::uint32_t value);
6753 public:
6754
6755 // uint32 color_argb4_value = 11;
6756 bool has_color_argb4_value() const;
6757 private:
6758 bool _internal_has_color_argb4_value() const;
6759 public:
6760 void clear_color_argb4_value();
6761 ::uint32_t color_argb4_value() const;
6762 void set_color_argb4_value(::uint32_t value);
6763 private:
6764 ::uint32_t _internal_color_argb4_value() const;
6765 void _internal_set_color_argb4_value(::uint32_t value);
6766 public:
6767
6768 // uint32 color_rgb4_value = 12;
6769 bool has_color_rgb4_value() const;
6770 private:
6771 bool _internal_has_color_rgb4_value() const;
6772 public:
6773 void clear_color_rgb4_value();
6774 ::uint32_t color_rgb4_value() const;
6775 void set_color_rgb4_value(::uint32_t value);
6776 private:
6777 ::uint32_t _internal_color_rgb4_value() const;
6778 void _internal_set_color_rgb4_value(::uint32_t value);
6779 public:
6780
6781 // float dimension_value_deprecated = 4 [deprecated = true];
6782 PROTOBUF_DEPRECATED bool has_dimension_value_deprecated() const;
6783 private:
6784 bool _internal_has_dimension_value_deprecated() const;
6785 public:
6786 PROTOBUF_DEPRECATED void clear_dimension_value_deprecated();
6787 PROTOBUF_DEPRECATED float dimension_value_deprecated() const;
6788 PROTOBUF_DEPRECATED void set_dimension_value_deprecated(float value);
6789 private:
6790 float _internal_dimension_value_deprecated() const;
6791 void _internal_set_dimension_value_deprecated(float value);
6792 public:
6793
6794 // float fraction_value_deprecated = 5 [deprecated = true];
6795 PROTOBUF_DEPRECATED bool has_fraction_value_deprecated() const;
6796 private:
6797 bool _internal_has_fraction_value_deprecated() const;
6798 public:
6799 PROTOBUF_DEPRECATED void clear_fraction_value_deprecated();
6800 PROTOBUF_DEPRECATED float fraction_value_deprecated() const;
6801 PROTOBUF_DEPRECATED void set_fraction_value_deprecated(float value);
6802 private:
6803 float _internal_fraction_value_deprecated() const;
6804 void _internal_set_fraction_value_deprecated(float value);
6805 public:
6806
6807 void clear_oneof_value();
6808 OneofValueCase oneof_value_case() const;
6809 // @@protoc_insertion_point(class_scope:aapt.pb.Primitive)
6810 private:
6811 class _Internal;
6812 void set_has_null_value();
6813 void set_has_empty_value();
6814 void set_has_float_value();
6815 void set_has_dimension_value();
6816 void set_has_fraction_value();
6817 void set_has_int_decimal_value();
6818 void set_has_int_hexadecimal_value();
6819 void set_has_boolean_value();
6820 void set_has_color_argb8_value();
6821 void set_has_color_rgb8_value();
6822 void set_has_color_argb4_value();
6823 void set_has_color_rgb4_value();
6824 void set_has_dimension_value_deprecated();
6825 void set_has_fraction_value_deprecated();
6826
6827 inline bool has_oneof_value() const;
6828 inline void clear_has_oneof_value();
6829
6830 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
6831 typedef void InternalArenaConstructable_;
6832 typedef void DestructorSkippable_;
6833 struct Impl_ {
6834 union OneofValueUnion {
6835 constexpr OneofValueUnion() : _constinit_{} {}
6836 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
6837 ::aapt::pb::Primitive_NullType* null_value_;
6838 ::aapt::pb::Primitive_EmptyType* empty_value_;
6839 float float_value_;
6840 ::uint32_t dimension_value_;
6841 ::uint32_t fraction_value_;
6842 ::int32_t int_decimal_value_;
6843 ::uint32_t int_hexadecimal_value_;
6844 bool boolean_value_;
6845 ::uint32_t color_argb8_value_;
6846 ::uint32_t color_rgb8_value_;
6847 ::uint32_t color_argb4_value_;
6848 ::uint32_t color_rgb4_value_;
6849 float dimension_value_deprecated_;
6850 float fraction_value_deprecated_;
6851 } oneof_value_;
6852 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
6853 ::uint32_t _oneof_case_[1];
6854
6855 };
6856 union { Impl_ _impl_; };
6857 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
6858 };
6859 // -------------------------------------------------------------------
6860
6861 class Attribute_Symbol final :
6862 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Attribute.Symbol) */ {
6863 public:
Attribute_Symbol()6864 inline Attribute_Symbol() : Attribute_Symbol(nullptr) {}
6865 ~Attribute_Symbol() override;
6866 explicit PROTOBUF_CONSTEXPR Attribute_Symbol(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
6867
6868 Attribute_Symbol(const Attribute_Symbol& from);
Attribute_Symbol(Attribute_Symbol && from)6869 Attribute_Symbol(Attribute_Symbol&& from) noexcept
6870 : Attribute_Symbol() {
6871 *this = ::std::move(from);
6872 }
6873
6874 inline Attribute_Symbol& operator=(const Attribute_Symbol& from) {
6875 if (this == &from) return *this;
6876 CopyFrom(from);
6877 return *this;
6878 }
6879 inline Attribute_Symbol& operator=(Attribute_Symbol&& from) noexcept {
6880 if (this == &from) return *this;
6881 if (GetOwningArena() == from.GetOwningArena()
6882 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
6883 && GetOwningArena() != nullptr
6884 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
6885 ) {
6886 InternalSwap(&from);
6887 } else {
6888 CopyFrom(from);
6889 }
6890 return *this;
6891 }
6892
descriptor()6893 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
6894 return GetDescriptor();
6895 }
GetDescriptor()6896 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
6897 return default_instance().GetMetadata().descriptor;
6898 }
GetReflection()6899 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
6900 return default_instance().GetMetadata().reflection;
6901 }
default_instance()6902 static const Attribute_Symbol& default_instance() {
6903 return *internal_default_instance();
6904 }
internal_default_instance()6905 static inline const Attribute_Symbol* internal_default_instance() {
6906 return reinterpret_cast<const Attribute_Symbol*>(
6907 &_Attribute_Symbol_default_instance_);
6908 }
6909 static constexpr int kIndexInFileMessages =
6910 32;
6911
swap(Attribute_Symbol & a,Attribute_Symbol & b)6912 friend void swap(Attribute_Symbol& a, Attribute_Symbol& b) {
6913 a.Swap(&b);
6914 }
Swap(Attribute_Symbol * other)6915 inline void Swap(Attribute_Symbol* other) {
6916 if (other == this) return;
6917 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
6918 if (GetOwningArena() != nullptr &&
6919 GetOwningArena() == other->GetOwningArena()) {
6920 #else // PROTOBUF_FORCE_COPY_IN_SWAP
6921 if (GetOwningArena() == other->GetOwningArena()) {
6922 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
6923 InternalSwap(other);
6924 } else {
6925 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
6926 }
6927 }
6928 void UnsafeArenaSwap(Attribute_Symbol* other) {
6929 if (other == this) return;
6930 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
6931 InternalSwap(other);
6932 }
6933
6934 // implements Message ----------------------------------------------
6935
6936 Attribute_Symbol* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
6937 return CreateMaybeMessage<Attribute_Symbol>(arena);
6938 }
6939 Attribute_Symbol* New() const {
6940 return New(nullptr);
6941 }
6942 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
6943 void CopyFrom(const Attribute_Symbol& from);
6944 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
6945 void MergeFrom( const Attribute_Symbol& from) {
6946 Attribute_Symbol::MergeImpl(*this, from);
6947 }
6948 private:
6949 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
6950 public:
6951 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
6952 bool IsInitialized() const final;
6953
6954 size_t ByteSizeLong() const final;
6955 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
6956 ::uint8_t* _InternalSerialize(
6957 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
6958 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
6959
6960 private:
6961 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
6962 void SharedDtor();
6963 void SetCachedSize(int size) const final;
6964 void InternalSwap(Attribute_Symbol* other);
6965
6966 private:
6967 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
6968 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
6969 return "aapt.pb.Attribute.Symbol";
6970 }
6971 protected:
6972 explicit Attribute_Symbol(::PROTOBUF_NAMESPACE_ID::Arena* arena,
6973 bool is_message_owned = false);
6974 public:
6975
6976 static const ClassData _class_data_;
6977 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
6978
6979 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
6980
6981 // nested types ----------------------------------------------------
6982
6983 // accessors -------------------------------------------------------
6984
6985 enum : int {
6986 kCommentFieldNumber = 2,
6987 kSourceFieldNumber = 1,
6988 kNameFieldNumber = 3,
6989 kValueFieldNumber = 4,
6990 kTypeFieldNumber = 5,
6991 };
6992 // string comment = 2;
6993 void clear_comment();
6994 const std::string& comment() const;
6995 template <typename ArgT0 = const std::string&, typename... ArgT>
6996 void set_comment(ArgT0&& arg0, ArgT... args);
6997 std::string* mutable_comment();
6998 PROTOBUF_NODISCARD std::string* release_comment();
6999 void set_allocated_comment(std::string* comment);
7000 private:
7001 const std::string& _internal_comment() const;
7002 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
7003 std::string* _internal_mutable_comment();
7004 public:
7005
7006 // .aapt.pb.Source source = 1;
7007 bool has_source() const;
7008 private:
7009 bool _internal_has_source() const;
7010 public:
7011 void clear_source();
7012 const ::aapt::pb::Source& source() const;
7013 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
7014 ::aapt::pb::Source* mutable_source();
7015 void set_allocated_source(::aapt::pb::Source* source);
7016 private:
7017 const ::aapt::pb::Source& _internal_source() const;
7018 ::aapt::pb::Source* _internal_mutable_source();
7019 public:
7020 void unsafe_arena_set_allocated_source(
7021 ::aapt::pb::Source* source);
7022 ::aapt::pb::Source* unsafe_arena_release_source();
7023
7024 // .aapt.pb.Reference name = 3;
7025 bool has_name() const;
7026 private:
7027 bool _internal_has_name() const;
7028 public:
7029 void clear_name();
7030 const ::aapt::pb::Reference& name() const;
7031 PROTOBUF_NODISCARD ::aapt::pb::Reference* release_name();
7032 ::aapt::pb::Reference* mutable_name();
7033 void set_allocated_name(::aapt::pb::Reference* name);
7034 private:
7035 const ::aapt::pb::Reference& _internal_name() const;
7036 ::aapt::pb::Reference* _internal_mutable_name();
7037 public:
7038 void unsafe_arena_set_allocated_name(
7039 ::aapt::pb::Reference* name);
7040 ::aapt::pb::Reference* unsafe_arena_release_name();
7041
7042 // uint32 value = 4;
7043 void clear_value();
7044 ::uint32_t value() const;
7045 void set_value(::uint32_t value);
7046 private:
7047 ::uint32_t _internal_value() const;
7048 void _internal_set_value(::uint32_t value);
7049 public:
7050
7051 // uint32 type = 5;
7052 void clear_type();
7053 ::uint32_t type() const;
7054 void set_type(::uint32_t value);
7055 private:
7056 ::uint32_t _internal_type() const;
7057 void _internal_set_type(::uint32_t value);
7058 public:
7059
7060 // @@protoc_insertion_point(class_scope:aapt.pb.Attribute.Symbol)
7061 private:
7062 class _Internal;
7063
7064 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7065 typedef void InternalArenaConstructable_;
7066 typedef void DestructorSkippable_;
7067 struct Impl_ {
7068 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
7069 ::aapt::pb::Source* source_;
7070 ::aapt::pb::Reference* name_;
7071 ::uint32_t value_;
7072 ::uint32_t type_;
7073 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7074 };
7075 union { Impl_ _impl_; };
7076 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
7077 };
7078 // -------------------------------------------------------------------
7079
7080 class Attribute final :
7081 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Attribute) */ {
7082 public:
Attribute()7083 inline Attribute() : Attribute(nullptr) {}
7084 ~Attribute() override;
7085 explicit PROTOBUF_CONSTEXPR Attribute(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7086
7087 Attribute(const Attribute& from);
Attribute(Attribute && from)7088 Attribute(Attribute&& from) noexcept
7089 : Attribute() {
7090 *this = ::std::move(from);
7091 }
7092
7093 inline Attribute& operator=(const Attribute& from) {
7094 if (this == &from) return *this;
7095 CopyFrom(from);
7096 return *this;
7097 }
7098 inline Attribute& operator=(Attribute&& from) noexcept {
7099 if (this == &from) return *this;
7100 if (GetOwningArena() == from.GetOwningArena()
7101 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7102 && GetOwningArena() != nullptr
7103 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7104 ) {
7105 InternalSwap(&from);
7106 } else {
7107 CopyFrom(from);
7108 }
7109 return *this;
7110 }
7111
descriptor()7112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7113 return GetDescriptor();
7114 }
GetDescriptor()7115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7116 return default_instance().GetMetadata().descriptor;
7117 }
GetReflection()7118 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7119 return default_instance().GetMetadata().reflection;
7120 }
default_instance()7121 static const Attribute& default_instance() {
7122 return *internal_default_instance();
7123 }
internal_default_instance()7124 static inline const Attribute* internal_default_instance() {
7125 return reinterpret_cast<const Attribute*>(
7126 &_Attribute_default_instance_);
7127 }
7128 static constexpr int kIndexInFileMessages =
7129 33;
7130
swap(Attribute & a,Attribute & b)7131 friend void swap(Attribute& a, Attribute& b) {
7132 a.Swap(&b);
7133 }
Swap(Attribute * other)7134 inline void Swap(Attribute* other) {
7135 if (other == this) return;
7136 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7137 if (GetOwningArena() != nullptr &&
7138 GetOwningArena() == other->GetOwningArena()) {
7139 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7140 if (GetOwningArena() == other->GetOwningArena()) {
7141 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7142 InternalSwap(other);
7143 } else {
7144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7145 }
7146 }
7147 void UnsafeArenaSwap(Attribute* other) {
7148 if (other == this) return;
7149 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7150 InternalSwap(other);
7151 }
7152
7153 // implements Message ----------------------------------------------
7154
7155 Attribute* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7156 return CreateMaybeMessage<Attribute>(arena);
7157 }
7158 Attribute* New() const {
7159 return New(nullptr);
7160 }
7161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7162 void CopyFrom(const Attribute& from);
7163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7164 void MergeFrom( const Attribute& from) {
7165 Attribute::MergeImpl(*this, from);
7166 }
7167 private:
7168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7169 public:
7170 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7171 bool IsInitialized() const final;
7172
7173 size_t ByteSizeLong() const final;
7174 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7175 ::uint8_t* _InternalSerialize(
7176 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7177 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7178
7179 private:
7180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7181 void SharedDtor();
7182 void SetCachedSize(int size) const final;
7183 void InternalSwap(Attribute* other);
7184
7185 private:
7186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7188 return "aapt.pb.Attribute";
7189 }
7190 protected:
7191 explicit Attribute(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7192 bool is_message_owned = false);
7193 public:
7194
7195 static const ClassData _class_data_;
7196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7197
7198 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7199
7200 // nested types ----------------------------------------------------
7201
7202 typedef Attribute_Symbol Symbol;
7203
7204 typedef Attribute_FormatFlags FormatFlags;
7205 static constexpr FormatFlags NONE =
7206 Attribute_FormatFlags_NONE;
7207 static constexpr FormatFlags ANY =
7208 Attribute_FormatFlags_ANY;
7209 static constexpr FormatFlags REFERENCE =
7210 Attribute_FormatFlags_REFERENCE;
7211 static constexpr FormatFlags STRING =
7212 Attribute_FormatFlags_STRING;
7213 static constexpr FormatFlags INTEGER =
7214 Attribute_FormatFlags_INTEGER;
7215 static constexpr FormatFlags BOOLEAN =
7216 Attribute_FormatFlags_BOOLEAN;
7217 static constexpr FormatFlags COLOR =
7218 Attribute_FormatFlags_COLOR;
7219 static constexpr FormatFlags FLOAT =
7220 Attribute_FormatFlags_FLOAT;
7221 static constexpr FormatFlags DIMENSION =
7222 Attribute_FormatFlags_DIMENSION;
7223 static constexpr FormatFlags FRACTION =
7224 Attribute_FormatFlags_FRACTION;
7225 static constexpr FormatFlags ENUM =
7226 Attribute_FormatFlags_ENUM;
7227 static constexpr FormatFlags FLAGS =
7228 Attribute_FormatFlags_FLAGS;
7229 static inline bool FormatFlags_IsValid(int value) {
7230 return Attribute_FormatFlags_IsValid(value);
7231 }
7232 static constexpr FormatFlags FormatFlags_MIN =
7233 Attribute_FormatFlags_FormatFlags_MIN;
7234 static constexpr FormatFlags FormatFlags_MAX =
7235 Attribute_FormatFlags_FormatFlags_MAX;
7236 static constexpr int FormatFlags_ARRAYSIZE =
7237 Attribute_FormatFlags_FormatFlags_ARRAYSIZE;
7238 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
7239 FormatFlags_descriptor() {
7240 return Attribute_FormatFlags_descriptor();
7241 }
7242 template<typename T>
7243 static inline const std::string& FormatFlags_Name(T enum_t_value) {
7244 static_assert(::std::is_same<T, FormatFlags>::value ||
7245 ::std::is_integral<T>::value,
7246 "Incorrect type passed to function FormatFlags_Name.");
7247 return Attribute_FormatFlags_Name(enum_t_value);
7248 }
7249 static inline bool FormatFlags_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
7250 FormatFlags* value) {
7251 return Attribute_FormatFlags_Parse(name, value);
7252 }
7253
7254 // accessors -------------------------------------------------------
7255
7256 enum : int {
7257 kSymbolFieldNumber = 4,
7258 kFormatFlagsFieldNumber = 1,
7259 kMinIntFieldNumber = 2,
7260 kMaxIntFieldNumber = 3,
7261 };
7262 // repeated .aapt.pb.Attribute.Symbol symbol = 4;
7263 int symbol_size() const;
7264 private:
7265 int _internal_symbol_size() const;
7266 public:
7267 void clear_symbol();
7268 ::aapt::pb::Attribute_Symbol* mutable_symbol(int index);
7269 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Attribute_Symbol >*
7270 mutable_symbol();
7271 private:
7272 const ::aapt::pb::Attribute_Symbol& _internal_symbol(int index) const;
7273 ::aapt::pb::Attribute_Symbol* _internal_add_symbol();
7274 public:
7275 const ::aapt::pb::Attribute_Symbol& symbol(int index) const;
7276 ::aapt::pb::Attribute_Symbol* add_symbol();
7277 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Attribute_Symbol >&
7278 symbol() const;
7279
7280 // uint32 format_flags = 1;
7281 void clear_format_flags();
7282 ::uint32_t format_flags() const;
7283 void set_format_flags(::uint32_t value);
7284 private:
7285 ::uint32_t _internal_format_flags() const;
7286 void _internal_set_format_flags(::uint32_t value);
7287 public:
7288
7289 // int32 min_int = 2;
7290 void clear_min_int();
7291 ::int32_t min_int() const;
7292 void set_min_int(::int32_t value);
7293 private:
7294 ::int32_t _internal_min_int() const;
7295 void _internal_set_min_int(::int32_t value);
7296 public:
7297
7298 // int32 max_int = 3;
7299 void clear_max_int();
7300 ::int32_t max_int() const;
7301 void set_max_int(::int32_t value);
7302 private:
7303 ::int32_t _internal_max_int() const;
7304 void _internal_set_max_int(::int32_t value);
7305 public:
7306
7307 // @@protoc_insertion_point(class_scope:aapt.pb.Attribute)
7308 private:
7309 class _Internal;
7310
7311 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7312 typedef void InternalArenaConstructable_;
7313 typedef void DestructorSkippable_;
7314 struct Impl_ {
7315 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Attribute_Symbol > symbol_;
7316 ::uint32_t format_flags_;
7317 ::int32_t min_int_;
7318 ::int32_t max_int_;
7319 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7320 };
7321 union { Impl_ _impl_; };
7322 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
7323 };
7324 // -------------------------------------------------------------------
7325
7326 class Style_Entry final :
7327 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Style.Entry) */ {
7328 public:
Style_Entry()7329 inline Style_Entry() : Style_Entry(nullptr) {}
7330 ~Style_Entry() override;
7331 explicit PROTOBUF_CONSTEXPR Style_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7332
7333 Style_Entry(const Style_Entry& from);
Style_Entry(Style_Entry && from)7334 Style_Entry(Style_Entry&& from) noexcept
7335 : Style_Entry() {
7336 *this = ::std::move(from);
7337 }
7338
7339 inline Style_Entry& operator=(const Style_Entry& from) {
7340 if (this == &from) return *this;
7341 CopyFrom(from);
7342 return *this;
7343 }
7344 inline Style_Entry& operator=(Style_Entry&& from) noexcept {
7345 if (this == &from) return *this;
7346 if (GetOwningArena() == from.GetOwningArena()
7347 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7348 && GetOwningArena() != nullptr
7349 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7350 ) {
7351 InternalSwap(&from);
7352 } else {
7353 CopyFrom(from);
7354 }
7355 return *this;
7356 }
7357
descriptor()7358 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7359 return GetDescriptor();
7360 }
GetDescriptor()7361 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7362 return default_instance().GetMetadata().descriptor;
7363 }
GetReflection()7364 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7365 return default_instance().GetMetadata().reflection;
7366 }
default_instance()7367 static const Style_Entry& default_instance() {
7368 return *internal_default_instance();
7369 }
internal_default_instance()7370 static inline const Style_Entry* internal_default_instance() {
7371 return reinterpret_cast<const Style_Entry*>(
7372 &_Style_Entry_default_instance_);
7373 }
7374 static constexpr int kIndexInFileMessages =
7375 34;
7376
swap(Style_Entry & a,Style_Entry & b)7377 friend void swap(Style_Entry& a, Style_Entry& b) {
7378 a.Swap(&b);
7379 }
Swap(Style_Entry * other)7380 inline void Swap(Style_Entry* other) {
7381 if (other == this) return;
7382 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7383 if (GetOwningArena() != nullptr &&
7384 GetOwningArena() == other->GetOwningArena()) {
7385 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7386 if (GetOwningArena() == other->GetOwningArena()) {
7387 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7388 InternalSwap(other);
7389 } else {
7390 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7391 }
7392 }
7393 void UnsafeArenaSwap(Style_Entry* other) {
7394 if (other == this) return;
7395 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7396 InternalSwap(other);
7397 }
7398
7399 // implements Message ----------------------------------------------
7400
7401 Style_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7402 return CreateMaybeMessage<Style_Entry>(arena);
7403 }
7404 Style_Entry* New() const {
7405 return New(nullptr);
7406 }
7407 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7408 void CopyFrom(const Style_Entry& from);
7409 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7410 void MergeFrom( const Style_Entry& from) {
7411 Style_Entry::MergeImpl(*this, from);
7412 }
7413 private:
7414 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7415 public:
7416 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7417 bool IsInitialized() const final;
7418
7419 size_t ByteSizeLong() const final;
7420 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7421 ::uint8_t* _InternalSerialize(
7422 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7423 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7424
7425 private:
7426 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7427 void SharedDtor();
7428 void SetCachedSize(int size) const final;
7429 void InternalSwap(Style_Entry* other);
7430
7431 private:
7432 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7433 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7434 return "aapt.pb.Style.Entry";
7435 }
7436 protected:
7437 explicit Style_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7438 bool is_message_owned = false);
7439 public:
7440
7441 static const ClassData _class_data_;
7442 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7443
7444 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7445
7446 // nested types ----------------------------------------------------
7447
7448 // accessors -------------------------------------------------------
7449
7450 enum : int {
7451 kCommentFieldNumber = 2,
7452 kSourceFieldNumber = 1,
7453 kKeyFieldNumber = 3,
7454 kItemFieldNumber = 4,
7455 };
7456 // string comment = 2;
7457 void clear_comment();
7458 const std::string& comment() const;
7459 template <typename ArgT0 = const std::string&, typename... ArgT>
7460 void set_comment(ArgT0&& arg0, ArgT... args);
7461 std::string* mutable_comment();
7462 PROTOBUF_NODISCARD std::string* release_comment();
7463 void set_allocated_comment(std::string* comment);
7464 private:
7465 const std::string& _internal_comment() const;
7466 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
7467 std::string* _internal_mutable_comment();
7468 public:
7469
7470 // .aapt.pb.Source source = 1;
7471 bool has_source() const;
7472 private:
7473 bool _internal_has_source() const;
7474 public:
7475 void clear_source();
7476 const ::aapt::pb::Source& source() const;
7477 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
7478 ::aapt::pb::Source* mutable_source();
7479 void set_allocated_source(::aapt::pb::Source* source);
7480 private:
7481 const ::aapt::pb::Source& _internal_source() const;
7482 ::aapt::pb::Source* _internal_mutable_source();
7483 public:
7484 void unsafe_arena_set_allocated_source(
7485 ::aapt::pb::Source* source);
7486 ::aapt::pb::Source* unsafe_arena_release_source();
7487
7488 // .aapt.pb.Reference key = 3;
7489 bool has_key() const;
7490 private:
7491 bool _internal_has_key() const;
7492 public:
7493 void clear_key();
7494 const ::aapt::pb::Reference& key() const;
7495 PROTOBUF_NODISCARD ::aapt::pb::Reference* release_key();
7496 ::aapt::pb::Reference* mutable_key();
7497 void set_allocated_key(::aapt::pb::Reference* key);
7498 private:
7499 const ::aapt::pb::Reference& _internal_key() const;
7500 ::aapt::pb::Reference* _internal_mutable_key();
7501 public:
7502 void unsafe_arena_set_allocated_key(
7503 ::aapt::pb::Reference* key);
7504 ::aapt::pb::Reference* unsafe_arena_release_key();
7505
7506 // .aapt.pb.Item item = 4;
7507 bool has_item() const;
7508 private:
7509 bool _internal_has_item() const;
7510 public:
7511 void clear_item();
7512 const ::aapt::pb::Item& item() const;
7513 PROTOBUF_NODISCARD ::aapt::pb::Item* release_item();
7514 ::aapt::pb::Item* mutable_item();
7515 void set_allocated_item(::aapt::pb::Item* item);
7516 private:
7517 const ::aapt::pb::Item& _internal_item() const;
7518 ::aapt::pb::Item* _internal_mutable_item();
7519 public:
7520 void unsafe_arena_set_allocated_item(
7521 ::aapt::pb::Item* item);
7522 ::aapt::pb::Item* unsafe_arena_release_item();
7523
7524 // @@protoc_insertion_point(class_scope:aapt.pb.Style.Entry)
7525 private:
7526 class _Internal;
7527
7528 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7529 typedef void InternalArenaConstructable_;
7530 typedef void DestructorSkippable_;
7531 struct Impl_ {
7532 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
7533 ::aapt::pb::Source* source_;
7534 ::aapt::pb::Reference* key_;
7535 ::aapt::pb::Item* item_;
7536 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7537 };
7538 union { Impl_ _impl_; };
7539 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
7540 };
7541 // -------------------------------------------------------------------
7542
7543 class Style final :
7544 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Style) */ {
7545 public:
Style()7546 inline Style() : Style(nullptr) {}
7547 ~Style() override;
7548 explicit PROTOBUF_CONSTEXPR Style(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7549
7550 Style(const Style& from);
Style(Style && from)7551 Style(Style&& from) noexcept
7552 : Style() {
7553 *this = ::std::move(from);
7554 }
7555
7556 inline Style& operator=(const Style& from) {
7557 if (this == &from) return *this;
7558 CopyFrom(from);
7559 return *this;
7560 }
7561 inline Style& operator=(Style&& from) noexcept {
7562 if (this == &from) return *this;
7563 if (GetOwningArena() == from.GetOwningArena()
7564 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7565 && GetOwningArena() != nullptr
7566 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7567 ) {
7568 InternalSwap(&from);
7569 } else {
7570 CopyFrom(from);
7571 }
7572 return *this;
7573 }
7574
descriptor()7575 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7576 return GetDescriptor();
7577 }
GetDescriptor()7578 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7579 return default_instance().GetMetadata().descriptor;
7580 }
GetReflection()7581 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7582 return default_instance().GetMetadata().reflection;
7583 }
default_instance()7584 static const Style& default_instance() {
7585 return *internal_default_instance();
7586 }
internal_default_instance()7587 static inline const Style* internal_default_instance() {
7588 return reinterpret_cast<const Style*>(
7589 &_Style_default_instance_);
7590 }
7591 static constexpr int kIndexInFileMessages =
7592 35;
7593
swap(Style & a,Style & b)7594 friend void swap(Style& a, Style& b) {
7595 a.Swap(&b);
7596 }
Swap(Style * other)7597 inline void Swap(Style* other) {
7598 if (other == this) return;
7599 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7600 if (GetOwningArena() != nullptr &&
7601 GetOwningArena() == other->GetOwningArena()) {
7602 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7603 if (GetOwningArena() == other->GetOwningArena()) {
7604 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7605 InternalSwap(other);
7606 } else {
7607 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7608 }
7609 }
7610 void UnsafeArenaSwap(Style* other) {
7611 if (other == this) return;
7612 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7613 InternalSwap(other);
7614 }
7615
7616 // implements Message ----------------------------------------------
7617
7618 Style* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7619 return CreateMaybeMessage<Style>(arena);
7620 }
7621 Style* New() const {
7622 return New(nullptr);
7623 }
7624 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7625 void CopyFrom(const Style& from);
7626 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7627 void MergeFrom( const Style& from) {
7628 Style::MergeImpl(*this, from);
7629 }
7630 private:
7631 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7632 public:
7633 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7634 bool IsInitialized() const final;
7635
7636 size_t ByteSizeLong() const final;
7637 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7638 ::uint8_t* _InternalSerialize(
7639 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7640 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7641
7642 private:
7643 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7644 void SharedDtor();
7645 void SetCachedSize(int size) const final;
7646 void InternalSwap(Style* other);
7647
7648 private:
7649 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7650 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7651 return "aapt.pb.Style";
7652 }
7653 protected:
7654 explicit Style(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7655 bool is_message_owned = false);
7656 public:
7657
7658 static const ClassData _class_data_;
7659 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7660
7661 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7662
7663 // nested types ----------------------------------------------------
7664
7665 typedef Style_Entry Entry;
7666
7667 // accessors -------------------------------------------------------
7668
7669 enum : int {
7670 kEntryFieldNumber = 3,
7671 kParentFieldNumber = 1,
7672 kParentSourceFieldNumber = 2,
7673 };
7674 // repeated .aapt.pb.Style.Entry entry = 3;
7675 int entry_size() const;
7676 private:
7677 int _internal_entry_size() const;
7678 public:
7679 void clear_entry();
7680 ::aapt::pb::Style_Entry* mutable_entry(int index);
7681 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Style_Entry >*
7682 mutable_entry();
7683 private:
7684 const ::aapt::pb::Style_Entry& _internal_entry(int index) const;
7685 ::aapt::pb::Style_Entry* _internal_add_entry();
7686 public:
7687 const ::aapt::pb::Style_Entry& entry(int index) const;
7688 ::aapt::pb::Style_Entry* add_entry();
7689 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Style_Entry >&
7690 entry() const;
7691
7692 // .aapt.pb.Reference parent = 1;
7693 bool has_parent() const;
7694 private:
7695 bool _internal_has_parent() const;
7696 public:
7697 void clear_parent();
7698 const ::aapt::pb::Reference& parent() const;
7699 PROTOBUF_NODISCARD ::aapt::pb::Reference* release_parent();
7700 ::aapt::pb::Reference* mutable_parent();
7701 void set_allocated_parent(::aapt::pb::Reference* parent);
7702 private:
7703 const ::aapt::pb::Reference& _internal_parent() const;
7704 ::aapt::pb::Reference* _internal_mutable_parent();
7705 public:
7706 void unsafe_arena_set_allocated_parent(
7707 ::aapt::pb::Reference* parent);
7708 ::aapt::pb::Reference* unsafe_arena_release_parent();
7709
7710 // .aapt.pb.Source parent_source = 2;
7711 bool has_parent_source() const;
7712 private:
7713 bool _internal_has_parent_source() const;
7714 public:
7715 void clear_parent_source();
7716 const ::aapt::pb::Source& parent_source() const;
7717 PROTOBUF_NODISCARD ::aapt::pb::Source* release_parent_source();
7718 ::aapt::pb::Source* mutable_parent_source();
7719 void set_allocated_parent_source(::aapt::pb::Source* parent_source);
7720 private:
7721 const ::aapt::pb::Source& _internal_parent_source() const;
7722 ::aapt::pb::Source* _internal_mutable_parent_source();
7723 public:
7724 void unsafe_arena_set_allocated_parent_source(
7725 ::aapt::pb::Source* parent_source);
7726 ::aapt::pb::Source* unsafe_arena_release_parent_source();
7727
7728 // @@protoc_insertion_point(class_scope:aapt.pb.Style)
7729 private:
7730 class _Internal;
7731
7732 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7733 typedef void InternalArenaConstructable_;
7734 typedef void DestructorSkippable_;
7735 struct Impl_ {
7736 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Style_Entry > entry_;
7737 ::aapt::pb::Reference* parent_;
7738 ::aapt::pb::Source* parent_source_;
7739 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7740 };
7741 union { Impl_ _impl_; };
7742 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
7743 };
7744 // -------------------------------------------------------------------
7745
7746 class Styleable_Entry final :
7747 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Styleable.Entry) */ {
7748 public:
Styleable_Entry()7749 inline Styleable_Entry() : Styleable_Entry(nullptr) {}
7750 ~Styleable_Entry() override;
7751 explicit PROTOBUF_CONSTEXPR Styleable_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7752
7753 Styleable_Entry(const Styleable_Entry& from);
Styleable_Entry(Styleable_Entry && from)7754 Styleable_Entry(Styleable_Entry&& from) noexcept
7755 : Styleable_Entry() {
7756 *this = ::std::move(from);
7757 }
7758
7759 inline Styleable_Entry& operator=(const Styleable_Entry& from) {
7760 if (this == &from) return *this;
7761 CopyFrom(from);
7762 return *this;
7763 }
7764 inline Styleable_Entry& operator=(Styleable_Entry&& from) noexcept {
7765 if (this == &from) return *this;
7766 if (GetOwningArena() == from.GetOwningArena()
7767 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7768 && GetOwningArena() != nullptr
7769 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7770 ) {
7771 InternalSwap(&from);
7772 } else {
7773 CopyFrom(from);
7774 }
7775 return *this;
7776 }
7777
descriptor()7778 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7779 return GetDescriptor();
7780 }
GetDescriptor()7781 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7782 return default_instance().GetMetadata().descriptor;
7783 }
GetReflection()7784 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7785 return default_instance().GetMetadata().reflection;
7786 }
default_instance()7787 static const Styleable_Entry& default_instance() {
7788 return *internal_default_instance();
7789 }
internal_default_instance()7790 static inline const Styleable_Entry* internal_default_instance() {
7791 return reinterpret_cast<const Styleable_Entry*>(
7792 &_Styleable_Entry_default_instance_);
7793 }
7794 static constexpr int kIndexInFileMessages =
7795 36;
7796
swap(Styleable_Entry & a,Styleable_Entry & b)7797 friend void swap(Styleable_Entry& a, Styleable_Entry& b) {
7798 a.Swap(&b);
7799 }
Swap(Styleable_Entry * other)7800 inline void Swap(Styleable_Entry* other) {
7801 if (other == this) return;
7802 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
7803 if (GetOwningArena() != nullptr &&
7804 GetOwningArena() == other->GetOwningArena()) {
7805 #else // PROTOBUF_FORCE_COPY_IN_SWAP
7806 if (GetOwningArena() == other->GetOwningArena()) {
7807 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
7808 InternalSwap(other);
7809 } else {
7810 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
7811 }
7812 }
7813 void UnsafeArenaSwap(Styleable_Entry* other) {
7814 if (other == this) return;
7815 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
7816 InternalSwap(other);
7817 }
7818
7819 // implements Message ----------------------------------------------
7820
7821 Styleable_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
7822 return CreateMaybeMessage<Styleable_Entry>(arena);
7823 }
7824 Styleable_Entry* New() const {
7825 return New(nullptr);
7826 }
7827 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
7828 void CopyFrom(const Styleable_Entry& from);
7829 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
7830 void MergeFrom( const Styleable_Entry& from) {
7831 Styleable_Entry::MergeImpl(*this, from);
7832 }
7833 private:
7834 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
7835 public:
7836 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
7837 bool IsInitialized() const final;
7838
7839 size_t ByteSizeLong() const final;
7840 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
7841 ::uint8_t* _InternalSerialize(
7842 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
7843 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
7844
7845 private:
7846 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
7847 void SharedDtor();
7848 void SetCachedSize(int size) const final;
7849 void InternalSwap(Styleable_Entry* other);
7850
7851 private:
7852 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
7853 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
7854 return "aapt.pb.Styleable.Entry";
7855 }
7856 protected:
7857 explicit Styleable_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
7858 bool is_message_owned = false);
7859 public:
7860
7861 static const ClassData _class_data_;
7862 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
7863
7864 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
7865
7866 // nested types ----------------------------------------------------
7867
7868 // accessors -------------------------------------------------------
7869
7870 enum : int {
7871 kCommentFieldNumber = 2,
7872 kSourceFieldNumber = 1,
7873 kAttrFieldNumber = 3,
7874 };
7875 // string comment = 2;
7876 void clear_comment();
7877 const std::string& comment() const;
7878 template <typename ArgT0 = const std::string&, typename... ArgT>
7879 void set_comment(ArgT0&& arg0, ArgT... args);
7880 std::string* mutable_comment();
7881 PROTOBUF_NODISCARD std::string* release_comment();
7882 void set_allocated_comment(std::string* comment);
7883 private:
7884 const std::string& _internal_comment() const;
7885 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
7886 std::string* _internal_mutable_comment();
7887 public:
7888
7889 // .aapt.pb.Source source = 1;
7890 bool has_source() const;
7891 private:
7892 bool _internal_has_source() const;
7893 public:
7894 void clear_source();
7895 const ::aapt::pb::Source& source() const;
7896 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
7897 ::aapt::pb::Source* mutable_source();
7898 void set_allocated_source(::aapt::pb::Source* source);
7899 private:
7900 const ::aapt::pb::Source& _internal_source() const;
7901 ::aapt::pb::Source* _internal_mutable_source();
7902 public:
7903 void unsafe_arena_set_allocated_source(
7904 ::aapt::pb::Source* source);
7905 ::aapt::pb::Source* unsafe_arena_release_source();
7906
7907 // .aapt.pb.Reference attr = 3;
7908 bool has_attr() const;
7909 private:
7910 bool _internal_has_attr() const;
7911 public:
7912 void clear_attr();
7913 const ::aapt::pb::Reference& attr() const;
7914 PROTOBUF_NODISCARD ::aapt::pb::Reference* release_attr();
7915 ::aapt::pb::Reference* mutable_attr();
7916 void set_allocated_attr(::aapt::pb::Reference* attr);
7917 private:
7918 const ::aapt::pb::Reference& _internal_attr() const;
7919 ::aapt::pb::Reference* _internal_mutable_attr();
7920 public:
7921 void unsafe_arena_set_allocated_attr(
7922 ::aapt::pb::Reference* attr);
7923 ::aapt::pb::Reference* unsafe_arena_release_attr();
7924
7925 // @@protoc_insertion_point(class_scope:aapt.pb.Styleable.Entry)
7926 private:
7927 class _Internal;
7928
7929 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
7930 typedef void InternalArenaConstructable_;
7931 typedef void DestructorSkippable_;
7932 struct Impl_ {
7933 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
7934 ::aapt::pb::Source* source_;
7935 ::aapt::pb::Reference* attr_;
7936 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
7937 };
7938 union { Impl_ _impl_; };
7939 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
7940 };
7941 // -------------------------------------------------------------------
7942
7943 class Styleable final :
7944 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Styleable) */ {
7945 public:
Styleable()7946 inline Styleable() : Styleable(nullptr) {}
7947 ~Styleable() override;
7948 explicit PROTOBUF_CONSTEXPR Styleable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
7949
7950 Styleable(const Styleable& from);
Styleable(Styleable && from)7951 Styleable(Styleable&& from) noexcept
7952 : Styleable() {
7953 *this = ::std::move(from);
7954 }
7955
7956 inline Styleable& operator=(const Styleable& from) {
7957 if (this == &from) return *this;
7958 CopyFrom(from);
7959 return *this;
7960 }
7961 inline Styleable& operator=(Styleable&& from) noexcept {
7962 if (this == &from) return *this;
7963 if (GetOwningArena() == from.GetOwningArena()
7964 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
7965 && GetOwningArena() != nullptr
7966 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
7967 ) {
7968 InternalSwap(&from);
7969 } else {
7970 CopyFrom(from);
7971 }
7972 return *this;
7973 }
7974
descriptor()7975 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
7976 return GetDescriptor();
7977 }
GetDescriptor()7978 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
7979 return default_instance().GetMetadata().descriptor;
7980 }
GetReflection()7981 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
7982 return default_instance().GetMetadata().reflection;
7983 }
default_instance()7984 static const Styleable& default_instance() {
7985 return *internal_default_instance();
7986 }
internal_default_instance()7987 static inline const Styleable* internal_default_instance() {
7988 return reinterpret_cast<const Styleable*>(
7989 &_Styleable_default_instance_);
7990 }
7991 static constexpr int kIndexInFileMessages =
7992 37;
7993
swap(Styleable & a,Styleable & b)7994 friend void swap(Styleable& a, Styleable& b) {
7995 a.Swap(&b);
7996 }
Swap(Styleable * other)7997 inline void Swap(Styleable* other) {
7998 if (other == this) return;
7999 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8000 if (GetOwningArena() != nullptr &&
8001 GetOwningArena() == other->GetOwningArena()) {
8002 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8003 if (GetOwningArena() == other->GetOwningArena()) {
8004 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8005 InternalSwap(other);
8006 } else {
8007 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8008 }
8009 }
8010 void UnsafeArenaSwap(Styleable* other) {
8011 if (other == this) return;
8012 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8013 InternalSwap(other);
8014 }
8015
8016 // implements Message ----------------------------------------------
8017
8018 Styleable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8019 return CreateMaybeMessage<Styleable>(arena);
8020 }
8021 Styleable* New() const {
8022 return New(nullptr);
8023 }
8024 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8025 void CopyFrom(const Styleable& from);
8026 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8027 void MergeFrom( const Styleable& from) {
8028 Styleable::MergeImpl(*this, from);
8029 }
8030 private:
8031 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8032 public:
8033 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8034 bool IsInitialized() const final;
8035
8036 size_t ByteSizeLong() const final;
8037 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8038 ::uint8_t* _InternalSerialize(
8039 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8040 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8041
8042 private:
8043 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8044 void SharedDtor();
8045 void SetCachedSize(int size) const final;
8046 void InternalSwap(Styleable* other);
8047
8048 private:
8049 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8050 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8051 return "aapt.pb.Styleable";
8052 }
8053 protected:
8054 explicit Styleable(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8055 bool is_message_owned = false);
8056 public:
8057
8058 static const ClassData _class_data_;
8059 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8060
8061 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8062
8063 // nested types ----------------------------------------------------
8064
8065 typedef Styleable_Entry Entry;
8066
8067 // accessors -------------------------------------------------------
8068
8069 enum : int {
8070 kEntryFieldNumber = 1,
8071 };
8072 // repeated .aapt.pb.Styleable.Entry entry = 1;
8073 int entry_size() const;
8074 private:
8075 int _internal_entry_size() const;
8076 public:
8077 void clear_entry();
8078 ::aapt::pb::Styleable_Entry* mutable_entry(int index);
8079 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Styleable_Entry >*
8080 mutable_entry();
8081 private:
8082 const ::aapt::pb::Styleable_Entry& _internal_entry(int index) const;
8083 ::aapt::pb::Styleable_Entry* _internal_add_entry();
8084 public:
8085 const ::aapt::pb::Styleable_Entry& entry(int index) const;
8086 ::aapt::pb::Styleable_Entry* add_entry();
8087 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Styleable_Entry >&
8088 entry() const;
8089
8090 // @@protoc_insertion_point(class_scope:aapt.pb.Styleable)
8091 private:
8092 class _Internal;
8093
8094 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8095 typedef void InternalArenaConstructable_;
8096 typedef void DestructorSkippable_;
8097 struct Impl_ {
8098 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Styleable_Entry > entry_;
8099 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8100 };
8101 union { Impl_ _impl_; };
8102 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
8103 };
8104 // -------------------------------------------------------------------
8105
8106 class Array_Element final :
8107 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Array.Element) */ {
8108 public:
Array_Element()8109 inline Array_Element() : Array_Element(nullptr) {}
8110 ~Array_Element() override;
8111 explicit PROTOBUF_CONSTEXPR Array_Element(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8112
8113 Array_Element(const Array_Element& from);
Array_Element(Array_Element && from)8114 Array_Element(Array_Element&& from) noexcept
8115 : Array_Element() {
8116 *this = ::std::move(from);
8117 }
8118
8119 inline Array_Element& operator=(const Array_Element& from) {
8120 if (this == &from) return *this;
8121 CopyFrom(from);
8122 return *this;
8123 }
8124 inline Array_Element& operator=(Array_Element&& from) noexcept {
8125 if (this == &from) return *this;
8126 if (GetOwningArena() == from.GetOwningArena()
8127 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8128 && GetOwningArena() != nullptr
8129 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8130 ) {
8131 InternalSwap(&from);
8132 } else {
8133 CopyFrom(from);
8134 }
8135 return *this;
8136 }
8137
descriptor()8138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8139 return GetDescriptor();
8140 }
GetDescriptor()8141 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8142 return default_instance().GetMetadata().descriptor;
8143 }
GetReflection()8144 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8145 return default_instance().GetMetadata().reflection;
8146 }
default_instance()8147 static const Array_Element& default_instance() {
8148 return *internal_default_instance();
8149 }
internal_default_instance()8150 static inline const Array_Element* internal_default_instance() {
8151 return reinterpret_cast<const Array_Element*>(
8152 &_Array_Element_default_instance_);
8153 }
8154 static constexpr int kIndexInFileMessages =
8155 38;
8156
swap(Array_Element & a,Array_Element & b)8157 friend void swap(Array_Element& a, Array_Element& b) {
8158 a.Swap(&b);
8159 }
Swap(Array_Element * other)8160 inline void Swap(Array_Element* other) {
8161 if (other == this) return;
8162 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8163 if (GetOwningArena() != nullptr &&
8164 GetOwningArena() == other->GetOwningArena()) {
8165 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8166 if (GetOwningArena() == other->GetOwningArena()) {
8167 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8168 InternalSwap(other);
8169 } else {
8170 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8171 }
8172 }
8173 void UnsafeArenaSwap(Array_Element* other) {
8174 if (other == this) return;
8175 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8176 InternalSwap(other);
8177 }
8178
8179 // implements Message ----------------------------------------------
8180
8181 Array_Element* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8182 return CreateMaybeMessage<Array_Element>(arena);
8183 }
8184 Array_Element* New() const {
8185 return New(nullptr);
8186 }
8187 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8188 void CopyFrom(const Array_Element& from);
8189 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8190 void MergeFrom( const Array_Element& from) {
8191 Array_Element::MergeImpl(*this, from);
8192 }
8193 private:
8194 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8195 public:
8196 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8197 bool IsInitialized() const final;
8198
8199 size_t ByteSizeLong() const final;
8200 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8201 ::uint8_t* _InternalSerialize(
8202 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8203 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8204
8205 private:
8206 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8207 void SharedDtor();
8208 void SetCachedSize(int size) const final;
8209 void InternalSwap(Array_Element* other);
8210
8211 private:
8212 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8213 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8214 return "aapt.pb.Array.Element";
8215 }
8216 protected:
8217 explicit Array_Element(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8218 bool is_message_owned = false);
8219 public:
8220
8221 static const ClassData _class_data_;
8222 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8223
8224 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8225
8226 // nested types ----------------------------------------------------
8227
8228 // accessors -------------------------------------------------------
8229
8230 enum : int {
8231 kCommentFieldNumber = 2,
8232 kSourceFieldNumber = 1,
8233 kItemFieldNumber = 3,
8234 };
8235 // string comment = 2;
8236 void clear_comment();
8237 const std::string& comment() const;
8238 template <typename ArgT0 = const std::string&, typename... ArgT>
8239 void set_comment(ArgT0&& arg0, ArgT... args);
8240 std::string* mutable_comment();
8241 PROTOBUF_NODISCARD std::string* release_comment();
8242 void set_allocated_comment(std::string* comment);
8243 private:
8244 const std::string& _internal_comment() const;
8245 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
8246 std::string* _internal_mutable_comment();
8247 public:
8248
8249 // .aapt.pb.Source source = 1;
8250 bool has_source() const;
8251 private:
8252 bool _internal_has_source() const;
8253 public:
8254 void clear_source();
8255 const ::aapt::pb::Source& source() const;
8256 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
8257 ::aapt::pb::Source* mutable_source();
8258 void set_allocated_source(::aapt::pb::Source* source);
8259 private:
8260 const ::aapt::pb::Source& _internal_source() const;
8261 ::aapt::pb::Source* _internal_mutable_source();
8262 public:
8263 void unsafe_arena_set_allocated_source(
8264 ::aapt::pb::Source* source);
8265 ::aapt::pb::Source* unsafe_arena_release_source();
8266
8267 // .aapt.pb.Item item = 3;
8268 bool has_item() const;
8269 private:
8270 bool _internal_has_item() const;
8271 public:
8272 void clear_item();
8273 const ::aapt::pb::Item& item() const;
8274 PROTOBUF_NODISCARD ::aapt::pb::Item* release_item();
8275 ::aapt::pb::Item* mutable_item();
8276 void set_allocated_item(::aapt::pb::Item* item);
8277 private:
8278 const ::aapt::pb::Item& _internal_item() const;
8279 ::aapt::pb::Item* _internal_mutable_item();
8280 public:
8281 void unsafe_arena_set_allocated_item(
8282 ::aapt::pb::Item* item);
8283 ::aapt::pb::Item* unsafe_arena_release_item();
8284
8285 // @@protoc_insertion_point(class_scope:aapt.pb.Array.Element)
8286 private:
8287 class _Internal;
8288
8289 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8290 typedef void InternalArenaConstructable_;
8291 typedef void DestructorSkippable_;
8292 struct Impl_ {
8293 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
8294 ::aapt::pb::Source* source_;
8295 ::aapt::pb::Item* item_;
8296 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8297 };
8298 union { Impl_ _impl_; };
8299 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
8300 };
8301 // -------------------------------------------------------------------
8302
8303 class Array final :
8304 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Array) */ {
8305 public:
Array()8306 inline Array() : Array(nullptr) {}
8307 ~Array() override;
8308 explicit PROTOBUF_CONSTEXPR Array(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8309
8310 Array(const Array& from);
Array(Array && from)8311 Array(Array&& from) noexcept
8312 : Array() {
8313 *this = ::std::move(from);
8314 }
8315
8316 inline Array& operator=(const Array& from) {
8317 if (this == &from) return *this;
8318 CopyFrom(from);
8319 return *this;
8320 }
8321 inline Array& operator=(Array&& from) noexcept {
8322 if (this == &from) return *this;
8323 if (GetOwningArena() == from.GetOwningArena()
8324 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8325 && GetOwningArena() != nullptr
8326 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8327 ) {
8328 InternalSwap(&from);
8329 } else {
8330 CopyFrom(from);
8331 }
8332 return *this;
8333 }
8334
descriptor()8335 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8336 return GetDescriptor();
8337 }
GetDescriptor()8338 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8339 return default_instance().GetMetadata().descriptor;
8340 }
GetReflection()8341 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8342 return default_instance().GetMetadata().reflection;
8343 }
default_instance()8344 static const Array& default_instance() {
8345 return *internal_default_instance();
8346 }
internal_default_instance()8347 static inline const Array* internal_default_instance() {
8348 return reinterpret_cast<const Array*>(
8349 &_Array_default_instance_);
8350 }
8351 static constexpr int kIndexInFileMessages =
8352 39;
8353
swap(Array & a,Array & b)8354 friend void swap(Array& a, Array& b) {
8355 a.Swap(&b);
8356 }
Swap(Array * other)8357 inline void Swap(Array* other) {
8358 if (other == this) return;
8359 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8360 if (GetOwningArena() != nullptr &&
8361 GetOwningArena() == other->GetOwningArena()) {
8362 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8363 if (GetOwningArena() == other->GetOwningArena()) {
8364 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8365 InternalSwap(other);
8366 } else {
8367 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8368 }
8369 }
8370 void UnsafeArenaSwap(Array* other) {
8371 if (other == this) return;
8372 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8373 InternalSwap(other);
8374 }
8375
8376 // implements Message ----------------------------------------------
8377
8378 Array* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8379 return CreateMaybeMessage<Array>(arena);
8380 }
8381 Array* New() const {
8382 return New(nullptr);
8383 }
8384 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8385 void CopyFrom(const Array& from);
8386 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8387 void MergeFrom( const Array& from) {
8388 Array::MergeImpl(*this, from);
8389 }
8390 private:
8391 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8392 public:
8393 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8394 bool IsInitialized() const final;
8395
8396 size_t ByteSizeLong() const final;
8397 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8398 ::uint8_t* _InternalSerialize(
8399 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8400 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8401
8402 private:
8403 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8404 void SharedDtor();
8405 void SetCachedSize(int size) const final;
8406 void InternalSwap(Array* other);
8407
8408 private:
8409 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8410 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8411 return "aapt.pb.Array";
8412 }
8413 protected:
8414 explicit Array(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8415 bool is_message_owned = false);
8416 public:
8417
8418 static const ClassData _class_data_;
8419 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8420
8421 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8422
8423 // nested types ----------------------------------------------------
8424
8425 typedef Array_Element Element;
8426
8427 // accessors -------------------------------------------------------
8428
8429 enum : int {
8430 kElementFieldNumber = 1,
8431 };
8432 // repeated .aapt.pb.Array.Element element = 1;
8433 int element_size() const;
8434 private:
8435 int _internal_element_size() const;
8436 public:
8437 void clear_element();
8438 ::aapt::pb::Array_Element* mutable_element(int index);
8439 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Array_Element >*
8440 mutable_element();
8441 private:
8442 const ::aapt::pb::Array_Element& _internal_element(int index) const;
8443 ::aapt::pb::Array_Element* _internal_add_element();
8444 public:
8445 const ::aapt::pb::Array_Element& element(int index) const;
8446 ::aapt::pb::Array_Element* add_element();
8447 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Array_Element >&
8448 element() const;
8449
8450 // @@protoc_insertion_point(class_scope:aapt.pb.Array)
8451 private:
8452 class _Internal;
8453
8454 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8455 typedef void InternalArenaConstructable_;
8456 typedef void DestructorSkippable_;
8457 struct Impl_ {
8458 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Array_Element > element_;
8459 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8460 };
8461 union { Impl_ _impl_; };
8462 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
8463 };
8464 // -------------------------------------------------------------------
8465
8466 class Plural_Entry final :
8467 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Plural.Entry) */ {
8468 public:
Plural_Entry()8469 inline Plural_Entry() : Plural_Entry(nullptr) {}
8470 ~Plural_Entry() override;
8471 explicit PROTOBUF_CONSTEXPR Plural_Entry(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8472
8473 Plural_Entry(const Plural_Entry& from);
Plural_Entry(Plural_Entry && from)8474 Plural_Entry(Plural_Entry&& from) noexcept
8475 : Plural_Entry() {
8476 *this = ::std::move(from);
8477 }
8478
8479 inline Plural_Entry& operator=(const Plural_Entry& from) {
8480 if (this == &from) return *this;
8481 CopyFrom(from);
8482 return *this;
8483 }
8484 inline Plural_Entry& operator=(Plural_Entry&& from) noexcept {
8485 if (this == &from) return *this;
8486 if (GetOwningArena() == from.GetOwningArena()
8487 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8488 && GetOwningArena() != nullptr
8489 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8490 ) {
8491 InternalSwap(&from);
8492 } else {
8493 CopyFrom(from);
8494 }
8495 return *this;
8496 }
8497
descriptor()8498 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8499 return GetDescriptor();
8500 }
GetDescriptor()8501 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8502 return default_instance().GetMetadata().descriptor;
8503 }
GetReflection()8504 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8505 return default_instance().GetMetadata().reflection;
8506 }
default_instance()8507 static const Plural_Entry& default_instance() {
8508 return *internal_default_instance();
8509 }
internal_default_instance()8510 static inline const Plural_Entry* internal_default_instance() {
8511 return reinterpret_cast<const Plural_Entry*>(
8512 &_Plural_Entry_default_instance_);
8513 }
8514 static constexpr int kIndexInFileMessages =
8515 40;
8516
swap(Plural_Entry & a,Plural_Entry & b)8517 friend void swap(Plural_Entry& a, Plural_Entry& b) {
8518 a.Swap(&b);
8519 }
Swap(Plural_Entry * other)8520 inline void Swap(Plural_Entry* other) {
8521 if (other == this) return;
8522 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8523 if (GetOwningArena() != nullptr &&
8524 GetOwningArena() == other->GetOwningArena()) {
8525 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8526 if (GetOwningArena() == other->GetOwningArena()) {
8527 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8528 InternalSwap(other);
8529 } else {
8530 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8531 }
8532 }
8533 void UnsafeArenaSwap(Plural_Entry* other) {
8534 if (other == this) return;
8535 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8536 InternalSwap(other);
8537 }
8538
8539 // implements Message ----------------------------------------------
8540
8541 Plural_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8542 return CreateMaybeMessage<Plural_Entry>(arena);
8543 }
8544 Plural_Entry* New() const {
8545 return New(nullptr);
8546 }
8547 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8548 void CopyFrom(const Plural_Entry& from);
8549 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8550 void MergeFrom( const Plural_Entry& from) {
8551 Plural_Entry::MergeImpl(*this, from);
8552 }
8553 private:
8554 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8555 public:
8556 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8557 bool IsInitialized() const final;
8558
8559 size_t ByteSizeLong() const final;
8560 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8561 ::uint8_t* _InternalSerialize(
8562 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8563 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8564
8565 private:
8566 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8567 void SharedDtor();
8568 void SetCachedSize(int size) const final;
8569 void InternalSwap(Plural_Entry* other);
8570
8571 private:
8572 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8573 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8574 return "aapt.pb.Plural.Entry";
8575 }
8576 protected:
8577 explicit Plural_Entry(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8578 bool is_message_owned = false);
8579 public:
8580
8581 static const ClassData _class_data_;
8582 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8583
8584 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8585
8586 // nested types ----------------------------------------------------
8587
8588 // accessors -------------------------------------------------------
8589
8590 enum : int {
8591 kCommentFieldNumber = 2,
8592 kSourceFieldNumber = 1,
8593 kItemFieldNumber = 4,
8594 kArityFieldNumber = 3,
8595 };
8596 // string comment = 2;
8597 void clear_comment();
8598 const std::string& comment() const;
8599 template <typename ArgT0 = const std::string&, typename... ArgT>
8600 void set_comment(ArgT0&& arg0, ArgT... args);
8601 std::string* mutable_comment();
8602 PROTOBUF_NODISCARD std::string* release_comment();
8603 void set_allocated_comment(std::string* comment);
8604 private:
8605 const std::string& _internal_comment() const;
8606 inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value);
8607 std::string* _internal_mutable_comment();
8608 public:
8609
8610 // .aapt.pb.Source source = 1;
8611 bool has_source() const;
8612 private:
8613 bool _internal_has_source() const;
8614 public:
8615 void clear_source();
8616 const ::aapt::pb::Source& source() const;
8617 PROTOBUF_NODISCARD ::aapt::pb::Source* release_source();
8618 ::aapt::pb::Source* mutable_source();
8619 void set_allocated_source(::aapt::pb::Source* source);
8620 private:
8621 const ::aapt::pb::Source& _internal_source() const;
8622 ::aapt::pb::Source* _internal_mutable_source();
8623 public:
8624 void unsafe_arena_set_allocated_source(
8625 ::aapt::pb::Source* source);
8626 ::aapt::pb::Source* unsafe_arena_release_source();
8627
8628 // .aapt.pb.Item item = 4;
8629 bool has_item() const;
8630 private:
8631 bool _internal_has_item() const;
8632 public:
8633 void clear_item();
8634 const ::aapt::pb::Item& item() const;
8635 PROTOBUF_NODISCARD ::aapt::pb::Item* release_item();
8636 ::aapt::pb::Item* mutable_item();
8637 void set_allocated_item(::aapt::pb::Item* item);
8638 private:
8639 const ::aapt::pb::Item& _internal_item() const;
8640 ::aapt::pb::Item* _internal_mutable_item();
8641 public:
8642 void unsafe_arena_set_allocated_item(
8643 ::aapt::pb::Item* item);
8644 ::aapt::pb::Item* unsafe_arena_release_item();
8645
8646 // .aapt.pb.Plural.Arity arity = 3;
8647 void clear_arity();
8648 ::aapt::pb::Plural_Arity arity() const;
8649 void set_arity(::aapt::pb::Plural_Arity value);
8650 private:
8651 ::aapt::pb::Plural_Arity _internal_arity() const;
8652 void _internal_set_arity(::aapt::pb::Plural_Arity value);
8653 public:
8654
8655 // @@protoc_insertion_point(class_scope:aapt.pb.Plural.Entry)
8656 private:
8657 class _Internal;
8658
8659 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8660 typedef void InternalArenaConstructable_;
8661 typedef void DestructorSkippable_;
8662 struct Impl_ {
8663 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
8664 ::aapt::pb::Source* source_;
8665 ::aapt::pb::Item* item_;
8666 int arity_;
8667 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8668 };
8669 union { Impl_ _impl_; };
8670 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
8671 };
8672 // -------------------------------------------------------------------
8673
8674 class Plural final :
8675 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.Plural) */ {
8676 public:
Plural()8677 inline Plural() : Plural(nullptr) {}
8678 ~Plural() override;
8679 explicit PROTOBUF_CONSTEXPR Plural(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8680
8681 Plural(const Plural& from);
Plural(Plural && from)8682 Plural(Plural&& from) noexcept
8683 : Plural() {
8684 *this = ::std::move(from);
8685 }
8686
8687 inline Plural& operator=(const Plural& from) {
8688 if (this == &from) return *this;
8689 CopyFrom(from);
8690 return *this;
8691 }
8692 inline Plural& operator=(Plural&& from) noexcept {
8693 if (this == &from) return *this;
8694 if (GetOwningArena() == from.GetOwningArena()
8695 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8696 && GetOwningArena() != nullptr
8697 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8698 ) {
8699 InternalSwap(&from);
8700 } else {
8701 CopyFrom(from);
8702 }
8703 return *this;
8704 }
8705
descriptor()8706 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8707 return GetDescriptor();
8708 }
GetDescriptor()8709 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8710 return default_instance().GetMetadata().descriptor;
8711 }
GetReflection()8712 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8713 return default_instance().GetMetadata().reflection;
8714 }
default_instance()8715 static const Plural& default_instance() {
8716 return *internal_default_instance();
8717 }
internal_default_instance()8718 static inline const Plural* internal_default_instance() {
8719 return reinterpret_cast<const Plural*>(
8720 &_Plural_default_instance_);
8721 }
8722 static constexpr int kIndexInFileMessages =
8723 41;
8724
swap(Plural & a,Plural & b)8725 friend void swap(Plural& a, Plural& b) {
8726 a.Swap(&b);
8727 }
Swap(Plural * other)8728 inline void Swap(Plural* other) {
8729 if (other == this) return;
8730 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8731 if (GetOwningArena() != nullptr &&
8732 GetOwningArena() == other->GetOwningArena()) {
8733 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8734 if (GetOwningArena() == other->GetOwningArena()) {
8735 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8736 InternalSwap(other);
8737 } else {
8738 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8739 }
8740 }
8741 void UnsafeArenaSwap(Plural* other) {
8742 if (other == this) return;
8743 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8744 InternalSwap(other);
8745 }
8746
8747 // implements Message ----------------------------------------------
8748
8749 Plural* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8750 return CreateMaybeMessage<Plural>(arena);
8751 }
8752 Plural* New() const {
8753 return New(nullptr);
8754 }
8755 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8756 void CopyFrom(const Plural& from);
8757 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8758 void MergeFrom( const Plural& from) {
8759 Plural::MergeImpl(*this, from);
8760 }
8761 private:
8762 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8763 public:
8764 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8765 bool IsInitialized() const final;
8766
8767 size_t ByteSizeLong() const final;
8768 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8769 ::uint8_t* _InternalSerialize(
8770 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8771 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8772
8773 private:
8774 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8775 void SharedDtor();
8776 void SetCachedSize(int size) const final;
8777 void InternalSwap(Plural* other);
8778
8779 private:
8780 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8781 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8782 return "aapt.pb.Plural";
8783 }
8784 protected:
8785 explicit Plural(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8786 bool is_message_owned = false);
8787 public:
8788
8789 static const ClassData _class_data_;
8790 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8791
8792 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
8793
8794 // nested types ----------------------------------------------------
8795
8796 typedef Plural_Entry Entry;
8797
8798 typedef Plural_Arity Arity;
8799 static constexpr Arity ZERO =
8800 Plural_Arity_ZERO;
8801 static constexpr Arity ONE =
8802 Plural_Arity_ONE;
8803 static constexpr Arity TWO =
8804 Plural_Arity_TWO;
8805 static constexpr Arity FEW =
8806 Plural_Arity_FEW;
8807 static constexpr Arity MANY =
8808 Plural_Arity_MANY;
8809 static constexpr Arity OTHER =
8810 Plural_Arity_OTHER;
8811 static inline bool Arity_IsValid(int value) {
8812 return Plural_Arity_IsValid(value);
8813 }
8814 static constexpr Arity Arity_MIN =
8815 Plural_Arity_Arity_MIN;
8816 static constexpr Arity Arity_MAX =
8817 Plural_Arity_Arity_MAX;
8818 static constexpr int Arity_ARRAYSIZE =
8819 Plural_Arity_Arity_ARRAYSIZE;
8820 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
8821 Arity_descriptor() {
8822 return Plural_Arity_descriptor();
8823 }
8824 template<typename T>
8825 static inline const std::string& Arity_Name(T enum_t_value) {
8826 static_assert(::std::is_same<T, Arity>::value ||
8827 ::std::is_integral<T>::value,
8828 "Incorrect type passed to function Arity_Name.");
8829 return Plural_Arity_Name(enum_t_value);
8830 }
8831 static inline bool Arity_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
8832 Arity* value) {
8833 return Plural_Arity_Parse(name, value);
8834 }
8835
8836 // accessors -------------------------------------------------------
8837
8838 enum : int {
8839 kEntryFieldNumber = 1,
8840 };
8841 // repeated .aapt.pb.Plural.Entry entry = 1;
8842 int entry_size() const;
8843 private:
8844 int _internal_entry_size() const;
8845 public:
8846 void clear_entry();
8847 ::aapt::pb::Plural_Entry* mutable_entry(int index);
8848 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Plural_Entry >*
8849 mutable_entry();
8850 private:
8851 const ::aapt::pb::Plural_Entry& _internal_entry(int index) const;
8852 ::aapt::pb::Plural_Entry* _internal_add_entry();
8853 public:
8854 const ::aapt::pb::Plural_Entry& entry(int index) const;
8855 ::aapt::pb::Plural_Entry* add_entry();
8856 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Plural_Entry >&
8857 entry() const;
8858
8859 // @@protoc_insertion_point(class_scope:aapt.pb.Plural)
8860 private:
8861 class _Internal;
8862
8863 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
8864 typedef void InternalArenaConstructable_;
8865 typedef void DestructorSkippable_;
8866 struct Impl_ {
8867 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::Plural_Entry > entry_;
8868 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
8869 };
8870 union { Impl_ _impl_; };
8871 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
8872 };
8873 // -------------------------------------------------------------------
8874
8875 class XmlNode final :
8876 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.XmlNode) */ {
8877 public:
XmlNode()8878 inline XmlNode() : XmlNode(nullptr) {}
8879 ~XmlNode() override;
8880 explicit PROTOBUF_CONSTEXPR XmlNode(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
8881
8882 XmlNode(const XmlNode& from);
XmlNode(XmlNode && from)8883 XmlNode(XmlNode&& from) noexcept
8884 : XmlNode() {
8885 *this = ::std::move(from);
8886 }
8887
8888 inline XmlNode& operator=(const XmlNode& from) {
8889 if (this == &from) return *this;
8890 CopyFrom(from);
8891 return *this;
8892 }
8893 inline XmlNode& operator=(XmlNode&& from) noexcept {
8894 if (this == &from) return *this;
8895 if (GetOwningArena() == from.GetOwningArena()
8896 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
8897 && GetOwningArena() != nullptr
8898 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
8899 ) {
8900 InternalSwap(&from);
8901 } else {
8902 CopyFrom(from);
8903 }
8904 return *this;
8905 }
8906
descriptor()8907 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
8908 return GetDescriptor();
8909 }
GetDescriptor()8910 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
8911 return default_instance().GetMetadata().descriptor;
8912 }
GetReflection()8913 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
8914 return default_instance().GetMetadata().reflection;
8915 }
default_instance()8916 static const XmlNode& default_instance() {
8917 return *internal_default_instance();
8918 }
8919 enum NodeCase {
8920 kElement = 1,
8921 kText = 2,
8922 NODE_NOT_SET = 0,
8923 };
8924
internal_default_instance()8925 static inline const XmlNode* internal_default_instance() {
8926 return reinterpret_cast<const XmlNode*>(
8927 &_XmlNode_default_instance_);
8928 }
8929 static constexpr int kIndexInFileMessages =
8930 42;
8931
swap(XmlNode & a,XmlNode & b)8932 friend void swap(XmlNode& a, XmlNode& b) {
8933 a.Swap(&b);
8934 }
Swap(XmlNode * other)8935 inline void Swap(XmlNode* other) {
8936 if (other == this) return;
8937 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
8938 if (GetOwningArena() != nullptr &&
8939 GetOwningArena() == other->GetOwningArena()) {
8940 #else // PROTOBUF_FORCE_COPY_IN_SWAP
8941 if (GetOwningArena() == other->GetOwningArena()) {
8942 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
8943 InternalSwap(other);
8944 } else {
8945 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
8946 }
8947 }
8948 void UnsafeArenaSwap(XmlNode* other) {
8949 if (other == this) return;
8950 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
8951 InternalSwap(other);
8952 }
8953
8954 // implements Message ----------------------------------------------
8955
8956 XmlNode* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
8957 return CreateMaybeMessage<XmlNode>(arena);
8958 }
8959 XmlNode* New() const {
8960 return New(nullptr);
8961 }
8962 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
8963 void CopyFrom(const XmlNode& from);
8964 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
8965 void MergeFrom( const XmlNode& from) {
8966 XmlNode::MergeImpl(*this, from);
8967 }
8968 private:
8969 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
8970 public:
8971 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
8972 bool IsInitialized() const final;
8973
8974 size_t ByteSizeLong() const final;
8975 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
8976 ::uint8_t* _InternalSerialize(
8977 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
8978 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
8979
8980 private:
8981 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
8982 void SharedDtor();
8983 void SetCachedSize(int size) const final;
8984 void InternalSwap(XmlNode* other);
8985
8986 private:
8987 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
8988 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
8989 return "aapt.pb.XmlNode";
8990 }
8991 protected:
8992 explicit XmlNode(::PROTOBUF_NAMESPACE_ID::Arena* arena,
8993 bool is_message_owned = false);
8994 public:
8995
8996 static const ClassData _class_data_;
8997 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
8998
8999 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9000
9001 // nested types ----------------------------------------------------
9002
9003 // accessors -------------------------------------------------------
9004
9005 enum : int {
9006 kSourceFieldNumber = 3,
9007 kElementFieldNumber = 1,
9008 kTextFieldNumber = 2,
9009 };
9010 // .aapt.pb.SourcePosition source = 3;
9011 bool has_source() const;
9012 private:
9013 bool _internal_has_source() const;
9014 public:
9015 void clear_source();
9016 const ::aapt::pb::SourcePosition& source() const;
9017 PROTOBUF_NODISCARD ::aapt::pb::SourcePosition* release_source();
9018 ::aapt::pb::SourcePosition* mutable_source();
9019 void set_allocated_source(::aapt::pb::SourcePosition* source);
9020 private:
9021 const ::aapt::pb::SourcePosition& _internal_source() const;
9022 ::aapt::pb::SourcePosition* _internal_mutable_source();
9023 public:
9024 void unsafe_arena_set_allocated_source(
9025 ::aapt::pb::SourcePosition* source);
9026 ::aapt::pb::SourcePosition* unsafe_arena_release_source();
9027
9028 // .aapt.pb.XmlElement element = 1;
9029 bool has_element() const;
9030 private:
9031 bool _internal_has_element() const;
9032 public:
9033 void clear_element();
9034 const ::aapt::pb::XmlElement& element() const;
9035 PROTOBUF_NODISCARD ::aapt::pb::XmlElement* release_element();
9036 ::aapt::pb::XmlElement* mutable_element();
9037 void set_allocated_element(::aapt::pb::XmlElement* element);
9038 private:
9039 const ::aapt::pb::XmlElement& _internal_element() const;
9040 ::aapt::pb::XmlElement* _internal_mutable_element();
9041 public:
9042 void unsafe_arena_set_allocated_element(
9043 ::aapt::pb::XmlElement* element);
9044 ::aapt::pb::XmlElement* unsafe_arena_release_element();
9045
9046 // string text = 2;
9047 bool has_text() const;
9048 private:
9049 bool _internal_has_text() const;
9050 public:
9051 void clear_text();
9052 const std::string& text() const;
9053 template <typename ArgT0 = const std::string&, typename... ArgT>
9054 void set_text(ArgT0&& arg0, ArgT... args);
9055 std::string* mutable_text();
9056 PROTOBUF_NODISCARD std::string* release_text();
9057 void set_allocated_text(std::string* text);
9058 private:
9059 const std::string& _internal_text() const;
9060 inline PROTOBUF_ALWAYS_INLINE void _internal_set_text(const std::string& value);
9061 std::string* _internal_mutable_text();
9062 public:
9063
9064 void clear_node();
9065 NodeCase node_case() const;
9066 // @@protoc_insertion_point(class_scope:aapt.pb.XmlNode)
9067 private:
9068 class _Internal;
9069 void set_has_element();
9070 void set_has_text();
9071
9072 inline bool has_node() const;
9073 inline void clear_has_node();
9074
9075 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9076 typedef void InternalArenaConstructable_;
9077 typedef void DestructorSkippable_;
9078 struct Impl_ {
9079 ::aapt::pb::SourcePosition* source_;
9080 union NodeUnion {
9081 constexpr NodeUnion() : _constinit_{} {}
9082 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
9083 ::aapt::pb::XmlElement* element_;
9084 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr text_;
9085 } node_;
9086 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9087 ::uint32_t _oneof_case_[1];
9088
9089 };
9090 union { Impl_ _impl_; };
9091 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
9092 };
9093 // -------------------------------------------------------------------
9094
9095 class XmlElement final :
9096 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.XmlElement) */ {
9097 public:
XmlElement()9098 inline XmlElement() : XmlElement(nullptr) {}
9099 ~XmlElement() override;
9100 explicit PROTOBUF_CONSTEXPR XmlElement(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9101
9102 XmlElement(const XmlElement& from);
XmlElement(XmlElement && from)9103 XmlElement(XmlElement&& from) noexcept
9104 : XmlElement() {
9105 *this = ::std::move(from);
9106 }
9107
9108 inline XmlElement& operator=(const XmlElement& from) {
9109 if (this == &from) return *this;
9110 CopyFrom(from);
9111 return *this;
9112 }
9113 inline XmlElement& operator=(XmlElement&& from) noexcept {
9114 if (this == &from) return *this;
9115 if (GetOwningArena() == from.GetOwningArena()
9116 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9117 && GetOwningArena() != nullptr
9118 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9119 ) {
9120 InternalSwap(&from);
9121 } else {
9122 CopyFrom(from);
9123 }
9124 return *this;
9125 }
9126
descriptor()9127 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9128 return GetDescriptor();
9129 }
GetDescriptor()9130 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9131 return default_instance().GetMetadata().descriptor;
9132 }
GetReflection()9133 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9134 return default_instance().GetMetadata().reflection;
9135 }
default_instance()9136 static const XmlElement& default_instance() {
9137 return *internal_default_instance();
9138 }
internal_default_instance()9139 static inline const XmlElement* internal_default_instance() {
9140 return reinterpret_cast<const XmlElement*>(
9141 &_XmlElement_default_instance_);
9142 }
9143 static constexpr int kIndexInFileMessages =
9144 43;
9145
swap(XmlElement & a,XmlElement & b)9146 friend void swap(XmlElement& a, XmlElement& b) {
9147 a.Swap(&b);
9148 }
Swap(XmlElement * other)9149 inline void Swap(XmlElement* other) {
9150 if (other == this) return;
9151 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9152 if (GetOwningArena() != nullptr &&
9153 GetOwningArena() == other->GetOwningArena()) {
9154 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9155 if (GetOwningArena() == other->GetOwningArena()) {
9156 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9157 InternalSwap(other);
9158 } else {
9159 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9160 }
9161 }
9162 void UnsafeArenaSwap(XmlElement* other) {
9163 if (other == this) return;
9164 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9165 InternalSwap(other);
9166 }
9167
9168 // implements Message ----------------------------------------------
9169
9170 XmlElement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9171 return CreateMaybeMessage<XmlElement>(arena);
9172 }
9173 XmlElement* New() const {
9174 return New(nullptr);
9175 }
9176 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9177 void CopyFrom(const XmlElement& from);
9178 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9179 void MergeFrom( const XmlElement& from) {
9180 XmlElement::MergeImpl(*this, from);
9181 }
9182 private:
9183 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9184 public:
9185 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9186 bool IsInitialized() const final;
9187
9188 size_t ByteSizeLong() const final;
9189 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9190 ::uint8_t* _InternalSerialize(
9191 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9192 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9193
9194 private:
9195 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9196 void SharedDtor();
9197 void SetCachedSize(int size) const final;
9198 void InternalSwap(XmlElement* other);
9199
9200 private:
9201 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9202 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9203 return "aapt.pb.XmlElement";
9204 }
9205 protected:
9206 explicit XmlElement(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9207 bool is_message_owned = false);
9208 public:
9209
9210 static const ClassData _class_data_;
9211 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9212
9213 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9214
9215 // nested types ----------------------------------------------------
9216
9217 // accessors -------------------------------------------------------
9218
9219 enum : int {
9220 kNamespaceDeclarationFieldNumber = 1,
9221 kAttributeFieldNumber = 4,
9222 kChildFieldNumber = 5,
9223 kNamespaceUriFieldNumber = 2,
9224 kNameFieldNumber = 3,
9225 };
9226 // repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
9227 int namespace_declaration_size() const;
9228 private:
9229 int _internal_namespace_declaration_size() const;
9230 public:
9231 void clear_namespace_declaration();
9232 ::aapt::pb::XmlNamespace* mutable_namespace_declaration(int index);
9233 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNamespace >*
9234 mutable_namespace_declaration();
9235 private:
9236 const ::aapt::pb::XmlNamespace& _internal_namespace_declaration(int index) const;
9237 ::aapt::pb::XmlNamespace* _internal_add_namespace_declaration();
9238 public:
9239 const ::aapt::pb::XmlNamespace& namespace_declaration(int index) const;
9240 ::aapt::pb::XmlNamespace* add_namespace_declaration();
9241 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNamespace >&
9242 namespace_declaration() const;
9243
9244 // repeated .aapt.pb.XmlAttribute attribute = 4;
9245 int attribute_size() const;
9246 private:
9247 int _internal_attribute_size() const;
9248 public:
9249 void clear_attribute();
9250 ::aapt::pb::XmlAttribute* mutable_attribute(int index);
9251 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlAttribute >*
9252 mutable_attribute();
9253 private:
9254 const ::aapt::pb::XmlAttribute& _internal_attribute(int index) const;
9255 ::aapt::pb::XmlAttribute* _internal_add_attribute();
9256 public:
9257 const ::aapt::pb::XmlAttribute& attribute(int index) const;
9258 ::aapt::pb::XmlAttribute* add_attribute();
9259 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlAttribute >&
9260 attribute() const;
9261
9262 // repeated .aapt.pb.XmlNode child = 5;
9263 int child_size() const;
9264 private:
9265 int _internal_child_size() const;
9266 public:
9267 void clear_child();
9268 ::aapt::pb::XmlNode* mutable_child(int index);
9269 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNode >*
9270 mutable_child();
9271 private:
9272 const ::aapt::pb::XmlNode& _internal_child(int index) const;
9273 ::aapt::pb::XmlNode* _internal_add_child();
9274 public:
9275 const ::aapt::pb::XmlNode& child(int index) const;
9276 ::aapt::pb::XmlNode* add_child();
9277 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNode >&
9278 child() const;
9279
9280 // string namespace_uri = 2;
9281 void clear_namespace_uri();
9282 const std::string& namespace_uri() const;
9283 template <typename ArgT0 = const std::string&, typename... ArgT>
9284 void set_namespace_uri(ArgT0&& arg0, ArgT... args);
9285 std::string* mutable_namespace_uri();
9286 PROTOBUF_NODISCARD std::string* release_namespace_uri();
9287 void set_allocated_namespace_uri(std::string* namespace_uri);
9288 private:
9289 const std::string& _internal_namespace_uri() const;
9290 inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_uri(const std::string& value);
9291 std::string* _internal_mutable_namespace_uri();
9292 public:
9293
9294 // string name = 3;
9295 void clear_name();
9296 const std::string& name() const;
9297 template <typename ArgT0 = const std::string&, typename... ArgT>
9298 void set_name(ArgT0&& arg0, ArgT... args);
9299 std::string* mutable_name();
9300 PROTOBUF_NODISCARD std::string* release_name();
9301 void set_allocated_name(std::string* name);
9302 private:
9303 const std::string& _internal_name() const;
9304 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
9305 std::string* _internal_mutable_name();
9306 public:
9307
9308 // @@protoc_insertion_point(class_scope:aapt.pb.XmlElement)
9309 private:
9310 class _Internal;
9311
9312 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9313 typedef void InternalArenaConstructable_;
9314 typedef void DestructorSkippable_;
9315 struct Impl_ {
9316 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNamespace > namespace_declaration_;
9317 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlAttribute > attribute_;
9318 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::XmlNode > child_;
9319 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace_uri_;
9320 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
9321 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9322 };
9323 union { Impl_ _impl_; };
9324 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
9325 };
9326 // -------------------------------------------------------------------
9327
9328 class XmlNamespace final :
9329 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.XmlNamespace) */ {
9330 public:
XmlNamespace()9331 inline XmlNamespace() : XmlNamespace(nullptr) {}
9332 ~XmlNamespace() override;
9333 explicit PROTOBUF_CONSTEXPR XmlNamespace(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9334
9335 XmlNamespace(const XmlNamespace& from);
XmlNamespace(XmlNamespace && from)9336 XmlNamespace(XmlNamespace&& from) noexcept
9337 : XmlNamespace() {
9338 *this = ::std::move(from);
9339 }
9340
9341 inline XmlNamespace& operator=(const XmlNamespace& from) {
9342 if (this == &from) return *this;
9343 CopyFrom(from);
9344 return *this;
9345 }
9346 inline XmlNamespace& operator=(XmlNamespace&& from) noexcept {
9347 if (this == &from) return *this;
9348 if (GetOwningArena() == from.GetOwningArena()
9349 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9350 && GetOwningArena() != nullptr
9351 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9352 ) {
9353 InternalSwap(&from);
9354 } else {
9355 CopyFrom(from);
9356 }
9357 return *this;
9358 }
9359
descriptor()9360 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9361 return GetDescriptor();
9362 }
GetDescriptor()9363 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9364 return default_instance().GetMetadata().descriptor;
9365 }
GetReflection()9366 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9367 return default_instance().GetMetadata().reflection;
9368 }
default_instance()9369 static const XmlNamespace& default_instance() {
9370 return *internal_default_instance();
9371 }
internal_default_instance()9372 static inline const XmlNamespace* internal_default_instance() {
9373 return reinterpret_cast<const XmlNamespace*>(
9374 &_XmlNamespace_default_instance_);
9375 }
9376 static constexpr int kIndexInFileMessages =
9377 44;
9378
swap(XmlNamespace & a,XmlNamespace & b)9379 friend void swap(XmlNamespace& a, XmlNamespace& b) {
9380 a.Swap(&b);
9381 }
Swap(XmlNamespace * other)9382 inline void Swap(XmlNamespace* other) {
9383 if (other == this) return;
9384 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9385 if (GetOwningArena() != nullptr &&
9386 GetOwningArena() == other->GetOwningArena()) {
9387 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9388 if (GetOwningArena() == other->GetOwningArena()) {
9389 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9390 InternalSwap(other);
9391 } else {
9392 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9393 }
9394 }
9395 void UnsafeArenaSwap(XmlNamespace* other) {
9396 if (other == this) return;
9397 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9398 InternalSwap(other);
9399 }
9400
9401 // implements Message ----------------------------------------------
9402
9403 XmlNamespace* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9404 return CreateMaybeMessage<XmlNamespace>(arena);
9405 }
9406 XmlNamespace* New() const {
9407 return New(nullptr);
9408 }
9409 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9410 void CopyFrom(const XmlNamespace& from);
9411 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9412 void MergeFrom( const XmlNamespace& from) {
9413 XmlNamespace::MergeImpl(*this, from);
9414 }
9415 private:
9416 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9417 public:
9418 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9419 bool IsInitialized() const final;
9420
9421 size_t ByteSizeLong() const final;
9422 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9423 ::uint8_t* _InternalSerialize(
9424 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9425 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9426
9427 private:
9428 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9429 void SharedDtor();
9430 void SetCachedSize(int size) const final;
9431 void InternalSwap(XmlNamespace* other);
9432
9433 private:
9434 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9435 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9436 return "aapt.pb.XmlNamespace";
9437 }
9438 protected:
9439 explicit XmlNamespace(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9440 bool is_message_owned = false);
9441 public:
9442
9443 static const ClassData _class_data_;
9444 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9445
9446 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9447
9448 // nested types ----------------------------------------------------
9449
9450 // accessors -------------------------------------------------------
9451
9452 enum : int {
9453 kPrefixFieldNumber = 1,
9454 kUriFieldNumber = 2,
9455 kSourceFieldNumber = 3,
9456 };
9457 // string prefix = 1;
9458 void clear_prefix();
9459 const std::string& prefix() const;
9460 template <typename ArgT0 = const std::string&, typename... ArgT>
9461 void set_prefix(ArgT0&& arg0, ArgT... args);
9462 std::string* mutable_prefix();
9463 PROTOBUF_NODISCARD std::string* release_prefix();
9464 void set_allocated_prefix(std::string* prefix);
9465 private:
9466 const std::string& _internal_prefix() const;
9467 inline PROTOBUF_ALWAYS_INLINE void _internal_set_prefix(const std::string& value);
9468 std::string* _internal_mutable_prefix();
9469 public:
9470
9471 // string uri = 2;
9472 void clear_uri();
9473 const std::string& uri() const;
9474 template <typename ArgT0 = const std::string&, typename... ArgT>
9475 void set_uri(ArgT0&& arg0, ArgT... args);
9476 std::string* mutable_uri();
9477 PROTOBUF_NODISCARD std::string* release_uri();
9478 void set_allocated_uri(std::string* uri);
9479 private:
9480 const std::string& _internal_uri() const;
9481 inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value);
9482 std::string* _internal_mutable_uri();
9483 public:
9484
9485 // .aapt.pb.SourcePosition source = 3;
9486 bool has_source() const;
9487 private:
9488 bool _internal_has_source() const;
9489 public:
9490 void clear_source();
9491 const ::aapt::pb::SourcePosition& source() const;
9492 PROTOBUF_NODISCARD ::aapt::pb::SourcePosition* release_source();
9493 ::aapt::pb::SourcePosition* mutable_source();
9494 void set_allocated_source(::aapt::pb::SourcePosition* source);
9495 private:
9496 const ::aapt::pb::SourcePosition& _internal_source() const;
9497 ::aapt::pb::SourcePosition* _internal_mutable_source();
9498 public:
9499 void unsafe_arena_set_allocated_source(
9500 ::aapt::pb::SourcePosition* source);
9501 ::aapt::pb::SourcePosition* unsafe_arena_release_source();
9502
9503 // @@protoc_insertion_point(class_scope:aapt.pb.XmlNamespace)
9504 private:
9505 class _Internal;
9506
9507 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9508 typedef void InternalArenaConstructable_;
9509 typedef void DestructorSkippable_;
9510 struct Impl_ {
9511 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr prefix_;
9512 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_;
9513 ::aapt::pb::SourcePosition* source_;
9514 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9515 };
9516 union { Impl_ _impl_; };
9517 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
9518 };
9519 // -------------------------------------------------------------------
9520
9521 class XmlAttribute final :
9522 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.XmlAttribute) */ {
9523 public:
XmlAttribute()9524 inline XmlAttribute() : XmlAttribute(nullptr) {}
9525 ~XmlAttribute() override;
9526 explicit PROTOBUF_CONSTEXPR XmlAttribute(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9527
9528 XmlAttribute(const XmlAttribute& from);
XmlAttribute(XmlAttribute && from)9529 XmlAttribute(XmlAttribute&& from) noexcept
9530 : XmlAttribute() {
9531 *this = ::std::move(from);
9532 }
9533
9534 inline XmlAttribute& operator=(const XmlAttribute& from) {
9535 if (this == &from) return *this;
9536 CopyFrom(from);
9537 return *this;
9538 }
9539 inline XmlAttribute& operator=(XmlAttribute&& from) noexcept {
9540 if (this == &from) return *this;
9541 if (GetOwningArena() == from.GetOwningArena()
9542 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9543 && GetOwningArena() != nullptr
9544 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9545 ) {
9546 InternalSwap(&from);
9547 } else {
9548 CopyFrom(from);
9549 }
9550 return *this;
9551 }
9552
descriptor()9553 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9554 return GetDescriptor();
9555 }
GetDescriptor()9556 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9557 return default_instance().GetMetadata().descriptor;
9558 }
GetReflection()9559 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9560 return default_instance().GetMetadata().reflection;
9561 }
default_instance()9562 static const XmlAttribute& default_instance() {
9563 return *internal_default_instance();
9564 }
internal_default_instance()9565 static inline const XmlAttribute* internal_default_instance() {
9566 return reinterpret_cast<const XmlAttribute*>(
9567 &_XmlAttribute_default_instance_);
9568 }
9569 static constexpr int kIndexInFileMessages =
9570 45;
9571
swap(XmlAttribute & a,XmlAttribute & b)9572 friend void swap(XmlAttribute& a, XmlAttribute& b) {
9573 a.Swap(&b);
9574 }
Swap(XmlAttribute * other)9575 inline void Swap(XmlAttribute* other) {
9576 if (other == this) return;
9577 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9578 if (GetOwningArena() != nullptr &&
9579 GetOwningArena() == other->GetOwningArena()) {
9580 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9581 if (GetOwningArena() == other->GetOwningArena()) {
9582 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9583 InternalSwap(other);
9584 } else {
9585 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9586 }
9587 }
9588 void UnsafeArenaSwap(XmlAttribute* other) {
9589 if (other == this) return;
9590 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9591 InternalSwap(other);
9592 }
9593
9594 // implements Message ----------------------------------------------
9595
9596 XmlAttribute* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9597 return CreateMaybeMessage<XmlAttribute>(arena);
9598 }
9599 XmlAttribute* New() const {
9600 return New(nullptr);
9601 }
9602 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9603 void CopyFrom(const XmlAttribute& from);
9604 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9605 void MergeFrom( const XmlAttribute& from) {
9606 XmlAttribute::MergeImpl(*this, from);
9607 }
9608 private:
9609 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9610 public:
9611 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9612 bool IsInitialized() const final;
9613
9614 size_t ByteSizeLong() const final;
9615 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9616 ::uint8_t* _InternalSerialize(
9617 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9618 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9619
9620 private:
9621 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9622 void SharedDtor();
9623 void SetCachedSize(int size) const final;
9624 void InternalSwap(XmlAttribute* other);
9625
9626 private:
9627 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9628 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9629 return "aapt.pb.XmlAttribute";
9630 }
9631 protected:
9632 explicit XmlAttribute(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9633 bool is_message_owned = false);
9634 public:
9635
9636 static const ClassData _class_data_;
9637 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9638
9639 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9640
9641 // nested types ----------------------------------------------------
9642
9643 // accessors -------------------------------------------------------
9644
9645 enum : int {
9646 kNamespaceUriFieldNumber = 1,
9647 kNameFieldNumber = 2,
9648 kValueFieldNumber = 3,
9649 kSourceFieldNumber = 4,
9650 kCompiledItemFieldNumber = 6,
9651 kResourceIdFieldNumber = 5,
9652 };
9653 // string namespace_uri = 1;
9654 void clear_namespace_uri();
9655 const std::string& namespace_uri() const;
9656 template <typename ArgT0 = const std::string&, typename... ArgT>
9657 void set_namespace_uri(ArgT0&& arg0, ArgT... args);
9658 std::string* mutable_namespace_uri();
9659 PROTOBUF_NODISCARD std::string* release_namespace_uri();
9660 void set_allocated_namespace_uri(std::string* namespace_uri);
9661 private:
9662 const std::string& _internal_namespace_uri() const;
9663 inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_uri(const std::string& value);
9664 std::string* _internal_mutable_namespace_uri();
9665 public:
9666
9667 // string name = 2;
9668 void clear_name();
9669 const std::string& name() const;
9670 template <typename ArgT0 = const std::string&, typename... ArgT>
9671 void set_name(ArgT0&& arg0, ArgT... args);
9672 std::string* mutable_name();
9673 PROTOBUF_NODISCARD std::string* release_name();
9674 void set_allocated_name(std::string* name);
9675 private:
9676 const std::string& _internal_name() const;
9677 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
9678 std::string* _internal_mutable_name();
9679 public:
9680
9681 // string value = 3;
9682 void clear_value();
9683 const std::string& value() const;
9684 template <typename ArgT0 = const std::string&, typename... ArgT>
9685 void set_value(ArgT0&& arg0, ArgT... args);
9686 std::string* mutable_value();
9687 PROTOBUF_NODISCARD std::string* release_value();
9688 void set_allocated_value(std::string* value);
9689 private:
9690 const std::string& _internal_value() const;
9691 inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
9692 std::string* _internal_mutable_value();
9693 public:
9694
9695 // .aapt.pb.SourcePosition source = 4;
9696 bool has_source() const;
9697 private:
9698 bool _internal_has_source() const;
9699 public:
9700 void clear_source();
9701 const ::aapt::pb::SourcePosition& source() const;
9702 PROTOBUF_NODISCARD ::aapt::pb::SourcePosition* release_source();
9703 ::aapt::pb::SourcePosition* mutable_source();
9704 void set_allocated_source(::aapt::pb::SourcePosition* source);
9705 private:
9706 const ::aapt::pb::SourcePosition& _internal_source() const;
9707 ::aapt::pb::SourcePosition* _internal_mutable_source();
9708 public:
9709 void unsafe_arena_set_allocated_source(
9710 ::aapt::pb::SourcePosition* source);
9711 ::aapt::pb::SourcePosition* unsafe_arena_release_source();
9712
9713 // .aapt.pb.Item compiled_item = 6;
9714 bool has_compiled_item() const;
9715 private:
9716 bool _internal_has_compiled_item() const;
9717 public:
9718 void clear_compiled_item();
9719 const ::aapt::pb::Item& compiled_item() const;
9720 PROTOBUF_NODISCARD ::aapt::pb::Item* release_compiled_item();
9721 ::aapt::pb::Item* mutable_compiled_item();
9722 void set_allocated_compiled_item(::aapt::pb::Item* compiled_item);
9723 private:
9724 const ::aapt::pb::Item& _internal_compiled_item() const;
9725 ::aapt::pb::Item* _internal_mutable_compiled_item();
9726 public:
9727 void unsafe_arena_set_allocated_compiled_item(
9728 ::aapt::pb::Item* compiled_item);
9729 ::aapt::pb::Item* unsafe_arena_release_compiled_item();
9730
9731 // uint32 resource_id = 5;
9732 void clear_resource_id();
9733 ::uint32_t resource_id() const;
9734 void set_resource_id(::uint32_t value);
9735 private:
9736 ::uint32_t _internal_resource_id() const;
9737 void _internal_set_resource_id(::uint32_t value);
9738 public:
9739
9740 // @@protoc_insertion_point(class_scope:aapt.pb.XmlAttribute)
9741 private:
9742 class _Internal;
9743
9744 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9745 typedef void InternalArenaConstructable_;
9746 typedef void DestructorSkippable_;
9747 struct Impl_ {
9748 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr namespace_uri_;
9749 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
9750 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
9751 ::aapt::pb::SourcePosition* source_;
9752 ::aapt::pb::Item* compiled_item_;
9753 ::uint32_t resource_id_;
9754 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9755 };
9756 union { Impl_ _impl_; };
9757 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
9758 };
9759 // -------------------------------------------------------------------
9760
9761 class MacroBody final :
9762 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.MacroBody) */ {
9763 public:
MacroBody()9764 inline MacroBody() : MacroBody(nullptr) {}
9765 ~MacroBody() override;
9766 explicit PROTOBUF_CONSTEXPR MacroBody(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
9767
9768 MacroBody(const MacroBody& from);
MacroBody(MacroBody && from)9769 MacroBody(MacroBody&& from) noexcept
9770 : MacroBody() {
9771 *this = ::std::move(from);
9772 }
9773
9774 inline MacroBody& operator=(const MacroBody& from) {
9775 if (this == &from) return *this;
9776 CopyFrom(from);
9777 return *this;
9778 }
9779 inline MacroBody& operator=(MacroBody&& from) noexcept {
9780 if (this == &from) return *this;
9781 if (GetOwningArena() == from.GetOwningArena()
9782 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
9783 && GetOwningArena() != nullptr
9784 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
9785 ) {
9786 InternalSwap(&from);
9787 } else {
9788 CopyFrom(from);
9789 }
9790 return *this;
9791 }
9792
descriptor()9793 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
9794 return GetDescriptor();
9795 }
GetDescriptor()9796 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
9797 return default_instance().GetMetadata().descriptor;
9798 }
GetReflection()9799 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
9800 return default_instance().GetMetadata().reflection;
9801 }
default_instance()9802 static const MacroBody& default_instance() {
9803 return *internal_default_instance();
9804 }
internal_default_instance()9805 static inline const MacroBody* internal_default_instance() {
9806 return reinterpret_cast<const MacroBody*>(
9807 &_MacroBody_default_instance_);
9808 }
9809 static constexpr int kIndexInFileMessages =
9810 46;
9811
swap(MacroBody & a,MacroBody & b)9812 friend void swap(MacroBody& a, MacroBody& b) {
9813 a.Swap(&b);
9814 }
Swap(MacroBody * other)9815 inline void Swap(MacroBody* other) {
9816 if (other == this) return;
9817 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
9818 if (GetOwningArena() != nullptr &&
9819 GetOwningArena() == other->GetOwningArena()) {
9820 #else // PROTOBUF_FORCE_COPY_IN_SWAP
9821 if (GetOwningArena() == other->GetOwningArena()) {
9822 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
9823 InternalSwap(other);
9824 } else {
9825 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
9826 }
9827 }
9828 void UnsafeArenaSwap(MacroBody* other) {
9829 if (other == this) return;
9830 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
9831 InternalSwap(other);
9832 }
9833
9834 // implements Message ----------------------------------------------
9835
9836 MacroBody* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
9837 return CreateMaybeMessage<MacroBody>(arena);
9838 }
9839 MacroBody* New() const {
9840 return New(nullptr);
9841 }
9842 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
9843 void CopyFrom(const MacroBody& from);
9844 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
9845 void MergeFrom( const MacroBody& from) {
9846 MacroBody::MergeImpl(*this, from);
9847 }
9848 private:
9849 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
9850 public:
9851 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
9852 bool IsInitialized() const final;
9853
9854 size_t ByteSizeLong() const final;
9855 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
9856 ::uint8_t* _InternalSerialize(
9857 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
9858 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
9859
9860 private:
9861 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
9862 void SharedDtor();
9863 void SetCachedSize(int size) const final;
9864 void InternalSwap(MacroBody* other);
9865
9866 private:
9867 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
9868 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
9869 return "aapt.pb.MacroBody";
9870 }
9871 protected:
9872 explicit MacroBody(::PROTOBUF_NAMESPACE_ID::Arena* arena,
9873 bool is_message_owned = false);
9874 public:
9875
9876 static const ClassData _class_data_;
9877 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
9878
9879 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
9880
9881 // nested types ----------------------------------------------------
9882
9883 // accessors -------------------------------------------------------
9884
9885 enum : int {
9886 kUntranslatableSectionsFieldNumber = 3,
9887 kNamespaceStackFieldNumber = 4,
9888 kRawStringFieldNumber = 1,
9889 kStyleStringFieldNumber = 2,
9890 kSourceFieldNumber = 5,
9891 };
9892 // repeated .aapt.pb.UntranslatableSection untranslatable_sections = 3;
9893 int untranslatable_sections_size() const;
9894 private:
9895 int _internal_untranslatable_sections_size() const;
9896 public:
9897 void clear_untranslatable_sections();
9898 ::aapt::pb::UntranslatableSection* mutable_untranslatable_sections(int index);
9899 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::UntranslatableSection >*
9900 mutable_untranslatable_sections();
9901 private:
9902 const ::aapt::pb::UntranslatableSection& _internal_untranslatable_sections(int index) const;
9903 ::aapt::pb::UntranslatableSection* _internal_add_untranslatable_sections();
9904 public:
9905 const ::aapt::pb::UntranslatableSection& untranslatable_sections(int index) const;
9906 ::aapt::pb::UntranslatableSection* add_untranslatable_sections();
9907 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::UntranslatableSection >&
9908 untranslatable_sections() const;
9909
9910 // repeated .aapt.pb.NamespaceAlias namespace_stack = 4;
9911 int namespace_stack_size() const;
9912 private:
9913 int _internal_namespace_stack_size() const;
9914 public:
9915 void clear_namespace_stack();
9916 ::aapt::pb::NamespaceAlias* mutable_namespace_stack(int index);
9917 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::NamespaceAlias >*
9918 mutable_namespace_stack();
9919 private:
9920 const ::aapt::pb::NamespaceAlias& _internal_namespace_stack(int index) const;
9921 ::aapt::pb::NamespaceAlias* _internal_add_namespace_stack();
9922 public:
9923 const ::aapt::pb::NamespaceAlias& namespace_stack(int index) const;
9924 ::aapt::pb::NamespaceAlias* add_namespace_stack();
9925 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::NamespaceAlias >&
9926 namespace_stack() const;
9927
9928 // string raw_string = 1;
9929 void clear_raw_string();
9930 const std::string& raw_string() const;
9931 template <typename ArgT0 = const std::string&, typename... ArgT>
9932 void set_raw_string(ArgT0&& arg0, ArgT... args);
9933 std::string* mutable_raw_string();
9934 PROTOBUF_NODISCARD std::string* release_raw_string();
9935 void set_allocated_raw_string(std::string* raw_string);
9936 private:
9937 const std::string& _internal_raw_string() const;
9938 inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_string(const std::string& value);
9939 std::string* _internal_mutable_raw_string();
9940 public:
9941
9942 // .aapt.pb.StyleString style_string = 2;
9943 bool has_style_string() const;
9944 private:
9945 bool _internal_has_style_string() const;
9946 public:
9947 void clear_style_string();
9948 const ::aapt::pb::StyleString& style_string() const;
9949 PROTOBUF_NODISCARD ::aapt::pb::StyleString* release_style_string();
9950 ::aapt::pb::StyleString* mutable_style_string();
9951 void set_allocated_style_string(::aapt::pb::StyleString* style_string);
9952 private:
9953 const ::aapt::pb::StyleString& _internal_style_string() const;
9954 ::aapt::pb::StyleString* _internal_mutable_style_string();
9955 public:
9956 void unsafe_arena_set_allocated_style_string(
9957 ::aapt::pb::StyleString* style_string);
9958 ::aapt::pb::StyleString* unsafe_arena_release_style_string();
9959
9960 // .aapt.pb.SourcePosition source = 5;
9961 bool has_source() const;
9962 private:
9963 bool _internal_has_source() const;
9964 public:
9965 void clear_source();
9966 const ::aapt::pb::SourcePosition& source() const;
9967 PROTOBUF_NODISCARD ::aapt::pb::SourcePosition* release_source();
9968 ::aapt::pb::SourcePosition* mutable_source();
9969 void set_allocated_source(::aapt::pb::SourcePosition* source);
9970 private:
9971 const ::aapt::pb::SourcePosition& _internal_source() const;
9972 ::aapt::pb::SourcePosition* _internal_mutable_source();
9973 public:
9974 void unsafe_arena_set_allocated_source(
9975 ::aapt::pb::SourcePosition* source);
9976 ::aapt::pb::SourcePosition* unsafe_arena_release_source();
9977
9978 // @@protoc_insertion_point(class_scope:aapt.pb.MacroBody)
9979 private:
9980 class _Internal;
9981
9982 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
9983 typedef void InternalArenaConstructable_;
9984 typedef void DestructorSkippable_;
9985 struct Impl_ {
9986 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::UntranslatableSection > untranslatable_sections_;
9987 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::aapt::pb::NamespaceAlias > namespace_stack_;
9988 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_string_;
9989 ::aapt::pb::StyleString* style_string_;
9990 ::aapt::pb::SourcePosition* source_;
9991 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
9992 };
9993 union { Impl_ _impl_; };
9994 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
9995 };
9996 // -------------------------------------------------------------------
9997
9998 class NamespaceAlias final :
9999 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.NamespaceAlias) */ {
10000 public:
NamespaceAlias()10001 inline NamespaceAlias() : NamespaceAlias(nullptr) {}
10002 ~NamespaceAlias() override;
10003 explicit PROTOBUF_CONSTEXPR NamespaceAlias(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
10004
10005 NamespaceAlias(const NamespaceAlias& from);
NamespaceAlias(NamespaceAlias && from)10006 NamespaceAlias(NamespaceAlias&& from) noexcept
10007 : NamespaceAlias() {
10008 *this = ::std::move(from);
10009 }
10010
10011 inline NamespaceAlias& operator=(const NamespaceAlias& from) {
10012 if (this == &from) return *this;
10013 CopyFrom(from);
10014 return *this;
10015 }
10016 inline NamespaceAlias& operator=(NamespaceAlias&& from) noexcept {
10017 if (this == &from) return *this;
10018 if (GetOwningArena() == from.GetOwningArena()
10019 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
10020 && GetOwningArena() != nullptr
10021 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
10022 ) {
10023 InternalSwap(&from);
10024 } else {
10025 CopyFrom(from);
10026 }
10027 return *this;
10028 }
10029
descriptor()10030 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
10031 return GetDescriptor();
10032 }
GetDescriptor()10033 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
10034 return default_instance().GetMetadata().descriptor;
10035 }
GetReflection()10036 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
10037 return default_instance().GetMetadata().reflection;
10038 }
default_instance()10039 static const NamespaceAlias& default_instance() {
10040 return *internal_default_instance();
10041 }
internal_default_instance()10042 static inline const NamespaceAlias* internal_default_instance() {
10043 return reinterpret_cast<const NamespaceAlias*>(
10044 &_NamespaceAlias_default_instance_);
10045 }
10046 static constexpr int kIndexInFileMessages =
10047 47;
10048
swap(NamespaceAlias & a,NamespaceAlias & b)10049 friend void swap(NamespaceAlias& a, NamespaceAlias& b) {
10050 a.Swap(&b);
10051 }
Swap(NamespaceAlias * other)10052 inline void Swap(NamespaceAlias* other) {
10053 if (other == this) return;
10054 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
10055 if (GetOwningArena() != nullptr &&
10056 GetOwningArena() == other->GetOwningArena()) {
10057 #else // PROTOBUF_FORCE_COPY_IN_SWAP
10058 if (GetOwningArena() == other->GetOwningArena()) {
10059 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
10060 InternalSwap(other);
10061 } else {
10062 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
10063 }
10064 }
10065 void UnsafeArenaSwap(NamespaceAlias* other) {
10066 if (other == this) return;
10067 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
10068 InternalSwap(other);
10069 }
10070
10071 // implements Message ----------------------------------------------
10072
10073 NamespaceAlias* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
10074 return CreateMaybeMessage<NamespaceAlias>(arena);
10075 }
10076 NamespaceAlias* New() const {
10077 return New(nullptr);
10078 }
10079 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
10080 void CopyFrom(const NamespaceAlias& from);
10081 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
10082 void MergeFrom( const NamespaceAlias& from) {
10083 NamespaceAlias::MergeImpl(*this, from);
10084 }
10085 private:
10086 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
10087 public:
10088 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
10089 bool IsInitialized() const final;
10090
10091 size_t ByteSizeLong() const final;
10092 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
10093 ::uint8_t* _InternalSerialize(
10094 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
10095 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
10096
10097 private:
10098 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
10099 void SharedDtor();
10100 void SetCachedSize(int size) const final;
10101 void InternalSwap(NamespaceAlias* other);
10102
10103 private:
10104 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
10105 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
10106 return "aapt.pb.NamespaceAlias";
10107 }
10108 protected:
10109 explicit NamespaceAlias(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10110 bool is_message_owned = false);
10111 public:
10112
10113 static const ClassData _class_data_;
10114 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
10115
10116 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
10117
10118 // nested types ----------------------------------------------------
10119
10120 // accessors -------------------------------------------------------
10121
10122 enum : int {
10123 kPrefixFieldNumber = 1,
10124 kPackageNameFieldNumber = 2,
10125 kIsPrivateFieldNumber = 3,
10126 };
10127 // string prefix = 1;
10128 void clear_prefix();
10129 const std::string& prefix() const;
10130 template <typename ArgT0 = const std::string&, typename... ArgT>
10131 void set_prefix(ArgT0&& arg0, ArgT... args);
10132 std::string* mutable_prefix();
10133 PROTOBUF_NODISCARD std::string* release_prefix();
10134 void set_allocated_prefix(std::string* prefix);
10135 private:
10136 const std::string& _internal_prefix() const;
10137 inline PROTOBUF_ALWAYS_INLINE void _internal_set_prefix(const std::string& value);
10138 std::string* _internal_mutable_prefix();
10139 public:
10140
10141 // string package_name = 2;
10142 void clear_package_name();
10143 const std::string& package_name() const;
10144 template <typename ArgT0 = const std::string&, typename... ArgT>
10145 void set_package_name(ArgT0&& arg0, ArgT... args);
10146 std::string* mutable_package_name();
10147 PROTOBUF_NODISCARD std::string* release_package_name();
10148 void set_allocated_package_name(std::string* package_name);
10149 private:
10150 const std::string& _internal_package_name() const;
10151 inline PROTOBUF_ALWAYS_INLINE void _internal_set_package_name(const std::string& value);
10152 std::string* _internal_mutable_package_name();
10153 public:
10154
10155 // bool is_private = 3;
10156 void clear_is_private();
10157 bool is_private() const;
10158 void set_is_private(bool value);
10159 private:
10160 bool _internal_is_private() const;
10161 void _internal_set_is_private(bool value);
10162 public:
10163
10164 // @@protoc_insertion_point(class_scope:aapt.pb.NamespaceAlias)
10165 private:
10166 class _Internal;
10167
10168 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
10169 typedef void InternalArenaConstructable_;
10170 typedef void DestructorSkippable_;
10171 struct Impl_ {
10172 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr prefix_;
10173 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_name_;
10174 bool is_private_;
10175 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
10176 };
10177 union { Impl_ _impl_; };
10178 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
10179 };
10180 // -------------------------------------------------------------------
10181
10182 class StyleString_Span final :
10183 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StyleString.Span) */ {
10184 public:
StyleString_Span()10185 inline StyleString_Span() : StyleString_Span(nullptr) {}
10186 ~StyleString_Span() override;
10187 explicit PROTOBUF_CONSTEXPR StyleString_Span(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
10188
10189 StyleString_Span(const StyleString_Span& from);
StyleString_Span(StyleString_Span && from)10190 StyleString_Span(StyleString_Span&& from) noexcept
10191 : StyleString_Span() {
10192 *this = ::std::move(from);
10193 }
10194
10195 inline StyleString_Span& operator=(const StyleString_Span& from) {
10196 if (this == &from) return *this;
10197 CopyFrom(from);
10198 return *this;
10199 }
10200 inline StyleString_Span& operator=(StyleString_Span&& from) noexcept {
10201 if (this == &from) return *this;
10202 if (GetOwningArena() == from.GetOwningArena()
10203 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
10204 && GetOwningArena() != nullptr
10205 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
10206 ) {
10207 InternalSwap(&from);
10208 } else {
10209 CopyFrom(from);
10210 }
10211 return *this;
10212 }
10213
descriptor()10214 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
10215 return GetDescriptor();
10216 }
GetDescriptor()10217 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
10218 return default_instance().GetMetadata().descriptor;
10219 }
GetReflection()10220 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
10221 return default_instance().GetMetadata().reflection;
10222 }
default_instance()10223 static const StyleString_Span& default_instance() {
10224 return *internal_default_instance();
10225 }
internal_default_instance()10226 static inline const StyleString_Span* internal_default_instance() {
10227 return reinterpret_cast<const StyleString_Span*>(
10228 &_StyleString_Span_default_instance_);
10229 }
10230 static constexpr int kIndexInFileMessages =
10231 48;
10232
swap(StyleString_Span & a,StyleString_Span & b)10233 friend void swap(StyleString_Span& a, StyleString_Span& b) {
10234 a.Swap(&b);
10235 }
Swap(StyleString_Span * other)10236 inline void Swap(StyleString_Span* other) {
10237 if (other == this) return;
10238 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
10239 if (GetOwningArena() != nullptr &&
10240 GetOwningArena() == other->GetOwningArena()) {
10241 #else // PROTOBUF_FORCE_COPY_IN_SWAP
10242 if (GetOwningArena() == other->GetOwningArena()) {
10243 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
10244 InternalSwap(other);
10245 } else {
10246 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
10247 }
10248 }
10249 void UnsafeArenaSwap(StyleString_Span* other) {
10250 if (other == this) return;
10251 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
10252 InternalSwap(other);
10253 }
10254
10255 // implements Message ----------------------------------------------
10256
10257 StyleString_Span* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
10258 return CreateMaybeMessage<StyleString_Span>(arena);
10259 }
10260 StyleString_Span* New() const {
10261 return New(nullptr);
10262 }
10263 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
10264 void CopyFrom(const StyleString_Span& from);
10265 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
10266 void MergeFrom( const StyleString_Span& from) {
10267 StyleString_Span::MergeImpl(*this, from);
10268 }
10269 private:
10270 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
10271 public:
10272 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
10273 bool IsInitialized() const final;
10274
10275 size_t ByteSizeLong() const final;
10276 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
10277 ::uint8_t* _InternalSerialize(
10278 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
10279 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
10280
10281 private:
10282 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
10283 void SharedDtor();
10284 void SetCachedSize(int size) const final;
10285 void InternalSwap(StyleString_Span* other);
10286
10287 private:
10288 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
10289 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
10290 return "aapt.pb.StyleString.Span";
10291 }
10292 protected:
10293 explicit StyleString_Span(::PROTOBUF_NAMESPACE_ID::Arena* arena,
10294 bool is_message_owned = false);
10295 public:
10296
10297 static const ClassData _class_data_;
10298 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
10299
10300 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
10301
10302 // nested types ----------------------------------------------------
10303
10304 // accessors -------------------------------------------------------
10305
10306 enum : int {
10307 kNameFieldNumber = 1,
10308 kStartIndexFieldNumber = 2,
10309 kEndIndexFieldNumber = 3,
10310 };
10311 // string name = 1;
10312 void clear_name();
10313 const std::string& name() const;
10314 template <typename ArgT0 = const std::string&, typename... ArgT>
10315 void set_name(ArgT0&& arg0, ArgT... args);
10316 std::string* mutable_name();
10317 PROTOBUF_NODISCARD std::string* release_name();
10318 void set_allocated_name(std::string* name);
10319 private:
10320 const std::string& _internal_name() const;
10321 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
10322 std::string* _internal_mutable_name();
10323 public:
10324
10325 // uint32 start_index = 2;
10326 void clear_start_index();
10327 ::uint32_t start_index() const;
10328 void set_start_index(::uint32_t value);
10329 private:
10330 ::uint32_t _internal_start_index() const;
10331 void _internal_set_start_index(::uint32_t value);
10332 public:
10333
10334 // uint32 end_index = 3;
10335 void clear_end_index();
10336 ::uint32_t end_index() const;
10337 void set_end_index(::uint32_t value);
10338 private:
10339 ::uint32_t _internal_end_index() const;
10340 void _internal_set_end_index(::uint32_t value);
10341 public:
10342
10343 // @@protoc_insertion_point(class_scope:aapt.pb.StyleString.Span)
10344 private:
10345 class _Internal;
10346
10347 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
10348 typedef void InternalArenaConstructable_;
10349 typedef void DestructorSkippable_;
10350 struct Impl_ {
10351 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
10352 ::uint32_t start_index_;
10353 ::uint32_t end_index_;
10354 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
10355 };
10356 union { Impl_ _impl_; };
10357 friend struct ::TableStruct_frameworks_2fbase_2ftools_2faapt2_2fResources_2eproto;
10358 };
10359 // -------------------------------------------------------------------
10360
10361 class StyleString final :
10362 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:aapt.pb.StyleString) */ {
10363 public:
StyleString()10364 inline StyleString() : StyleString(nullptr) {}
10365 ~StyleString() override;
10366 explicit PROTOBUF_CONSTEXPR StyleString(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
10367
10368 StyleString(const StyleString& from);
StyleString(StyleString && from)10369 StyleString(StyleString&& from) noexcept
10370 : StyleString() {
10371 *this = ::std::move(from);
10372 }
10373
10374 inline StyleString& operator=(const StyleString& from) {
10375 if (this == &from) return *this;
10376 CopyFrom(from);
10377 return *this;
10378 }
10379 inline StyleString& operator=(StyleString&& from) noexcept {
10380 if (this == &from) return *this;
10381 if (GetOwningArena() == from.GetOwningArena()
10382 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
10383 && GetOwningArena() != nullptr
10384 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
10385 ) {
10386 InternalSwap(&from);
10387 } else {
10388 CopyFrom(from);
10389 }
10390 return *this;
10391 }
10392
descriptor()10393 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
10394 return GetDescriptor();
10395 }
GetDescriptor()10396 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
10397 return default_instance().GetMetadata().descriptor;
10398 }
GetReflection()10399 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
10400 return default_instance().GetMetadata().reflection;
10401 }
default_instance()10402