Package com.android.aapt
Interface Resources.ReferenceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Resources.Reference,Resources.Reference.Builder
- Enclosing class:
- Resources
public static interface Resources.ReferenceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether raw string values would have been accepted in place of this reference definition.intgetId()The resource ID (0xPPTTEEEE) of the resource being referred.Whether this reference is dynamic.Whether this reference is dynamic.getName()The name of the resource being referred.com.google.protobuf.ByteStringThe name of the resource being referred.booleanWhether this reference is referencing a private resource (@*package:type/entry).getType().aapt.pb.Reference.Type type = 1;intThe type flags used when compiling the reference.int.aapt.pb.Reference.Type type = 1;booleanWhether this reference is dynamic.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTypeValue
int getTypeValue().aapt.pb.Reference.Type type = 1;- Returns:
- The enum numeric value on the wire for type.
-
getType
Resources.Reference.Type getType().aapt.pb.Reference.Type type = 1;- Returns:
- The type.
-
getId
int getId()The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
uint32 id = 2;- Returns:
- The id.
-
getName
String getName()The name of the resource being referred. This is optional if the resource ID is set.
string name = 3;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the resource being referred. This is optional if the resource ID is set.
string name = 3;- Returns:
- The bytes for name.
-
getPrivate
boolean getPrivate()Whether this reference is referencing a private resource (@*package:type/entry).
bool private = 4;- Returns:
- The private.
-
hasIsDynamic
boolean hasIsDynamic()Whether this reference is dynamic.
.aapt.pb.Boolean is_dynamic = 5;- Returns:
- Whether the isDynamic field is set.
-
getIsDynamic
Resources.Boolean getIsDynamic()Whether this reference is dynamic.
.aapt.pb.Boolean is_dynamic = 5;- Returns:
- The isDynamic.
-
getIsDynamicOrBuilder
Resources.BooleanOrBuilder getIsDynamicOrBuilder()Whether this reference is dynamic.
.aapt.pb.Boolean is_dynamic = 5; -
getTypeFlags
int getTypeFlags()The type flags used when compiling the reference. Used for substituting the contents of macros.
uint32 type_flags = 6;- Returns:
- The typeFlags.
-
getAllowRaw
boolean getAllowRaw()Whether raw string values would have been accepted in place of this reference definition. Used for substituting the contents of macros.
bool allow_raw = 7;- Returns:
- The allowRaw.
-