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,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 type
aapt.pb.Entry- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn entry declaration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.getConfigValue(int index) The set of values defined for this entry, each corresponding to a different configuration/variant.intThe set of values defined for this entry, each corresponding to a different configuration/variant.The set of values defined for this entry, each corresponding to a different configuration/variant.getConfigValueOrBuilder(int index) The set of values defined for this entry, each corresponding to a different configuration/variant.List<? extends Resources.ConfigValueOrBuilder>The set of values defined for this entry, each corresponding to a different configuration/variant.static Resources.Entrystatic final com.google.protobuf.Descriptors.DescriptorThe ID of this entry.The ID of this entry.getName()The name of this entry.com.google.protobuf.ByteStringThe name of this entry.Whether this resource can be overlaid by a runtime resource overlay (RRO).Whether this resource can be overlaid by a runtime resource overlay (RRO).com.google.protobuf.Parser<Resources.Entry>intThe staged resource ID of this finalized resource.The staged resource ID of this finalized resource.The visibility of this entry (public, private, undefined).The visibility of this entry (public, private, undefined).booleanWhether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.booleanThe ID of this entry.inthashCode()booleanWhether this resource can be overlaid by a runtime resource overlay (RRO).booleanThe staged resource ID of this finalized resource.booleanThe visibility of this entry (public, private, undefined).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.Entry.Builderstatic Resources.Entry.BuildernewBuilder(Resources.Entry prototype) protected Resources.Entry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.EntryparseDelimitedFrom(InputStream input) static Resources.EntryparseDelimitedFrom(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(InputStream input) static Resources.EntryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.EntryparseFrom(ByteBuffer data) static Resources.EntryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.Entry>parser()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, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENTRY_ID_FIELD_NUMBER
public static final int ENTRY_ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
VISIBILITY_FIELD_NUMBER
public static final int VISIBILITY_FIELD_NUMBER- See Also:
-
ALLOW_NEW_FIELD_NUMBER
public static final int ALLOW_NEW_FIELD_NUMBER- See Also:
-
OVERLAYABLE_ITEM_FIELD_NUMBER
public static final int OVERLAYABLE_ITEM_FIELD_NUMBER- See Also:
-
CONFIG_VALUE_FIELD_NUMBER
public static final int CONFIG_VALUE_FIELD_NUMBER- See Also:
-
STAGED_ID_FIELD_NUMBER
public static final int STAGED_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
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
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
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
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3;- Specified by:
getVisibilityin interfaceResources.EntryOrBuilder- Returns:
- The visibility.
-
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
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
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
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
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5;- Specified by:
getOverlayableItemOrBuilderin interfaceResources.EntryOrBuilder
-
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
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
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
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
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7;- Specified by:
getStagedIdin interfaceResources.EntryOrBuilder- Returns:
- The stagedId.
-
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
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Entry parseFrom(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
- Throws:
IOException
-
parseFrom
public static Resources.Entry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.Entry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Entry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-