Package com.android.aapt
Class Resources.Entry
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.android.aapt.Resources.Entry
-
- All Implemented Interfaces:
Resources.EntryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- Resources
public static final class Resources.Entry extends com.google.protobuf.GeneratedMessageV3 implements Resources.EntryOrBuilder
An entry declaration. An entry has a full resource ID that is the combination of package ID, type ID, and its own entry ID. An entry on its own has no value, but values are defined for various configurations/variants.
Protobuf typeaapt.pb.Entry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResources.Entry.BuilderAn entry declaration.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALLOW_NEW_FIELD_NUMBERstatic intCONFIG_VALUE_FIELD_NUMBERstatic intENTRY_ID_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intOVERLAYABLE_ITEM_FIELD_NUMBERstatic intSTAGED_ID_FIELD_NUMBERstatic intVISIBILITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Resources.AllowNewgetAllowNew()Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.Resources.AllowNewOrBuildergetAllowNewOrBuilder()Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.Resources.ConfigValuegetConfigValue(int index)The set of values defined for this entry, each corresponding to a different configuration/variant.intgetConfigValueCount()The set of values defined for this entry, each corresponding to a different configuration/variant.java.util.List<Resources.ConfigValue>getConfigValueList()The set of values defined for this entry, each corresponding to a different configuration/variant.Resources.ConfigValueOrBuildergetConfigValueOrBuilder(int index)The set of values defined for this entry, each corresponding to a different configuration/variant.java.util.List<? extends Resources.ConfigValueOrBuilder>getConfigValueOrBuilderList()The set of values defined for this entry, each corresponding to a different configuration/variant.static Resources.EntrygetDefaultInstance()Resources.EntrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Resources.EntryIdgetEntryId()The ID of this entry.Resources.EntryIdOrBuildergetEntryIdOrBuilder()The ID of this entry.java.lang.StringgetName()The name of this entry.com.google.protobuf.ByteStringgetNameBytes()The name of this entry.Resources.OverlayableItemgetOverlayableItem()Whether this resource can be overlaid by a runtime resource overlay (RRO).Resources.OverlayableItemOrBuildergetOverlayableItemOrBuilder()Whether this resource can be overlaid by a runtime resource overlay (RRO).com.google.protobuf.Parser<Resources.Entry>getParserForType()intgetSerializedSize()Resources.StagedIdgetStagedId()The staged resource ID of this finalized resource.Resources.StagedIdOrBuildergetStagedIdOrBuilder()The staged resource ID of this finalized resource.com.google.protobuf.UnknownFieldSetgetUnknownFields()Resources.VisibilitygetVisibility()The visibility of this entry (public, private, undefined).Resources.VisibilityOrBuildergetVisibilityOrBuilder()The visibility of this entry (public, private, undefined).booleanhasAllowNew()Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.booleanhasEntryId()The ID of this entry.inthashCode()booleanhasOverlayableItem()Whether this resource can be overlaid by a runtime resource overlay (RRO).booleanhasStagedId()The staged resource ID of this finalized resource.booleanhasVisibility()The visibility of this entry (public, private, undefined).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Resources.Entry.BuildernewBuilder()static Resources.Entry.BuildernewBuilder(Resources.Entry prototype)Resources.Entry.BuildernewBuilderForType()protected Resources.Entry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Resources.EntryparseDelimitedFrom(java.io.InputStream input)static Resources.EntryparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.EntryparseFrom(byte[] data)static Resources.EntryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.EntryparseFrom(com.google.protobuf.ByteString data)static Resources.EntryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.EntryparseFrom(com.google.protobuf.CodedInputStream input)static Resources.EntryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.EntryparseFrom(java.io.InputStream input)static Resources.EntryparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.EntryparseFrom(java.nio.ByteBuffer data)static Resources.EntryparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Resources.Entry>parser()Resources.Entry.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENTRY_ID_FIELD_NUMBER
public static final int ENTRY_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VISIBILITY_FIELD_NUMBER
public static final int VISIBILITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOW_NEW_FIELD_NUMBER
public static final int ALLOW_NEW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OVERLAYABLE_ITEM_FIELD_NUMBER
public static final int OVERLAYABLE_ITEM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIG_VALUE_FIELD_NUMBER
public static final int CONFIG_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STAGED_ID_FIELD_NUMBER
public static final int STAGED_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasEntryId
public boolean hasEntryId()
The ID of this entry. Together with the package ID and type ID, this forms a full resource ID of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry ID. This may not be set if no ID was assigned.
.aapt.pb.EntryId entry_id = 1;- Specified by:
hasEntryIdin interfaceResources.EntryOrBuilder- Returns:
- Whether the entryId field is set.
-
getEntryId
public Resources.EntryId getEntryId()
The ID of this entry. Together with the package ID and type ID, this forms a full resource ID of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry ID. This may not be set if no ID was assigned.
.aapt.pb.EntryId entry_id = 1;- Specified by:
getEntryIdin interfaceResources.EntryOrBuilder- Returns:
- The entryId.
-
getEntryIdOrBuilder
public Resources.EntryIdOrBuilder getEntryIdOrBuilder()
The ID of this entry. Together with the package ID and type ID, this forms a full resource ID of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry ID. This may not be set if no ID was assigned.
.aapt.pb.EntryId entry_id = 1;- Specified by:
getEntryIdOrBuilderin interfaceResources.EntryOrBuilder
-
getName
public java.lang.String getName()
The name of this entry. This corresponds to the 'entry' part of a full resource name of the form package:type/entry.
string name = 2;- Specified by:
getNamein interfaceResources.EntryOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of this entry. This corresponds to the 'entry' part of a full resource name of the form package:type/entry.
string name = 2;- Specified by:
getNameBytesin interfaceResources.EntryOrBuilder- Returns:
- The bytes for name.
-
hasVisibility
public boolean hasVisibility()
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3;- Specified by:
hasVisibilityin interfaceResources.EntryOrBuilder- Returns:
- Whether the visibility field is set.
-
getVisibility
public Resources.Visibility getVisibility()
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3;- Specified by:
getVisibilityin interfaceResources.EntryOrBuilder- Returns:
- The visibility.
-
getVisibilityOrBuilder
public Resources.VisibilityOrBuilder getVisibilityOrBuilder()
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3;- Specified by:
getVisibilityOrBuilderin interfaceResources.EntryOrBuilder
-
hasAllowNew
public boolean hasAllowNew()
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4;- Specified by:
hasAllowNewin interfaceResources.EntryOrBuilder- Returns:
- Whether the allowNew field is set.
-
getAllowNew
public Resources.AllowNew getAllowNew()
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4;- Specified by:
getAllowNewin interfaceResources.EntryOrBuilder- Returns:
- The allowNew.
-
getAllowNewOrBuilder
public Resources.AllowNewOrBuilder getAllowNewOrBuilder()
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4;- Specified by:
getAllowNewOrBuilderin interfaceResources.EntryOrBuilder
-
hasOverlayableItem
public boolean hasOverlayableItem()
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5;- Specified by:
hasOverlayableItemin interfaceResources.EntryOrBuilder- Returns:
- Whether the overlayableItem field is set.
-
getOverlayableItem
public Resources.OverlayableItem getOverlayableItem()
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5;- Specified by:
getOverlayableItemin interfaceResources.EntryOrBuilder- Returns:
- The overlayableItem.
-
getOverlayableItemOrBuilder
public Resources.OverlayableItemOrBuilder getOverlayableItemOrBuilder()
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5;- Specified by:
getOverlayableItemOrBuilderin interfaceResources.EntryOrBuilder
-
getConfigValueList
public java.util.List<Resources.ConfigValue> getConfigValueList()
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6;- Specified by:
getConfigValueListin interfaceResources.EntryOrBuilder
-
getConfigValueOrBuilderList
public java.util.List<? extends Resources.ConfigValueOrBuilder> getConfigValueOrBuilderList()
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6;- Specified by:
getConfigValueOrBuilderListin interfaceResources.EntryOrBuilder
-
getConfigValueCount
public int getConfigValueCount()
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6;- Specified by:
getConfigValueCountin interfaceResources.EntryOrBuilder
-
getConfigValue
public Resources.ConfigValue getConfigValue(int index)
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6;- Specified by:
getConfigValuein interfaceResources.EntryOrBuilder
-
getConfigValueOrBuilder
public Resources.ConfigValueOrBuilder getConfigValueOrBuilder(int index)
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6;- Specified by:
getConfigValueOrBuilderin interfaceResources.EntryOrBuilder
-
hasStagedId
public boolean hasStagedId()
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7;- Specified by:
hasStagedIdin interfaceResources.EntryOrBuilder- Returns:
- Whether the stagedId field is set.
-
getStagedId
public Resources.StagedId getStagedId()
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7;- Specified by:
getStagedIdin interfaceResources.EntryOrBuilder- Returns:
- The stagedId.
-
getStagedIdOrBuilder
public Resources.StagedIdOrBuilder getStagedIdOrBuilder()
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7;- Specified by:
getStagedIdOrBuilderin interfaceResources.EntryOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Resources.Entry parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Entry parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.Entry parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Resources.Entry.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Resources.Entry.Builder newBuilder()
-
newBuilder
public static Resources.Entry.Builder newBuilder(Resources.Entry prototype)
-
toBuilder
public Resources.Entry.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Resources.Entry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Resources.Entry getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Resources.Entry> parser()
-
getParserForType
public com.google.protobuf.Parser<Resources.Entry> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Resources.Entry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-