Package com.android.aapt
Class Resources.Entry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
com.android.aapt.Resources.Entry.Builder
- All Implemented Interfaces:
Resources.EntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resources.Entry
public static final class Resources.Entry.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllConfigValue(Iterable<? extends Resources.ConfigValue> values) The set of values defined for this entry, each corresponding to a different configuration/variant.addConfigValue(int index, Resources.ConfigValue value) The set of values defined for this entry, each corresponding to a different configuration/variant.addConfigValue(int index, Resources.ConfigValue.Builder builderForValue) The 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.addConfigValue(Resources.ConfigValue.Builder builderForValue) The 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.addConfigValueBuilder(int index) The set of values defined for this entry, each corresponding to a different configuration/variant.build()clear()Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.The set of values defined for this entry, each corresponding to a different configuration/variant.The ID of this entry.The name of this entry.Whether this resource can be overlaid by a runtime resource overlay (RRO).The staged resource ID of this finalized resource.The visibility of this entry (public, private, undefined).Whether 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.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.getConfigValueBuilder(int index) The 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.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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe ID of this entry.The 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).Whether this resource can be overlaid by a runtime resource overlay (RRO).The staged resource ID of this finalized resource.The 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).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.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 booleanmergeAllowNew(Resources.AllowNew value) Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.mergeEntryId(Resources.EntryId value) The ID of this entry.mergeFrom(Resources.Entry other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Whether this resource can be overlaid by a runtime resource overlay (RRO).mergeStagedId(Resources.StagedId value) The staged resource ID of this finalized resource.final Resources.Entry.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The visibility of this entry (public, private, undefined).removeConfigValue(int index) The set of values defined for this entry, each corresponding to a different configuration/variant.setAllowNew(Resources.AllowNew value) Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.setAllowNew(Resources.AllowNew.Builder builderForValue) Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.setConfigValue(int index, Resources.ConfigValue value) The set of values defined for this entry, each corresponding to a different configuration/variant.setConfigValue(int index, Resources.ConfigValue.Builder builderForValue) The set of values defined for this entry, each corresponding to a different configuration/variant.setEntryId(Resources.EntryId value) The ID of this entry.setEntryId(Resources.EntryId.Builder builderForValue) The ID of this entry.The name of this entry.setNameBytes(com.google.protobuf.ByteString value) The name of this entry.Whether this resource can be overlaid by a runtime resource overlay (RRO).setOverlayableItem(Resources.OverlayableItem.Builder builderForValue) Whether this resource can be overlaid by a runtime resource overlay (RRO).setStagedId(Resources.StagedId value) The staged resource ID of this finalized resource.setStagedId(Resources.StagedId.Builder builderForValue) The staged resource ID of this finalized resource.final Resources.Entry.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The visibility of this entry (public, private, undefined).setVisibility(Resources.Visibility.Builder builderForValue) The visibility of this entry (public, private, undefined).Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Resources.Entry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Entry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
-
mergeFrom
public Resources.Entry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Entry.Builder>- Throws:
IOException
-
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.
-
setEntryId
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; -
setEntryId
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; -
mergeEntryId
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; -
clearEntryId
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; -
getEntryIdBuilder
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; -
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.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setVisibility
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3; -
setVisibility
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3; -
mergeVisibility
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3; -
clearVisibility
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3; -
getVisibilityBuilder
The visibility of this entry (public, private, undefined).
.aapt.pb.Visibility visibility = 3; -
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.
-
setAllowNew
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4; -
setAllowNew
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4; -
mergeAllowNew
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4; -
clearAllowNew
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4; -
getAllowNewBuilder
Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay any existing resources.
.aapt.pb.AllowNew allow_new = 4; -
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.
-
setOverlayableItem
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5; -
setOverlayableItem
public Resources.Entry.Builder setOverlayableItem(Resources.OverlayableItem.Builder builderForValue) Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5; -
mergeOverlayableItem
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5; -
clearOverlayableItem
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5; -
getOverlayableItemBuilder
Whether this resource can be overlaid by a runtime resource overlay (RRO).
.aapt.pb.OverlayableItem overlayable_item = 5; -
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
-
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
-
setConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
setConfigValue
public Resources.Entry.Builder setConfigValue(int index, Resources.ConfigValue.Builder builderForValue) The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addConfigValue
public Resources.Entry.Builder addConfigValue(int index, Resources.ConfigValue.Builder builderForValue) The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addAllConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
clearConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
removeConfigValue
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
getConfigValueBuilder
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
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
-
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
-
addConfigValueBuilder
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
addConfigValueBuilder
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
getConfigValueBuilderList
The set of values defined for this entry, each corresponding to a different configuration/variant.
repeated .aapt.pb.ConfigValue config_value = 6; -
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.
-
setStagedId
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7; -
setStagedId
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7; -
mergeStagedId
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7; -
clearStagedId
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7; -
getStagedIdBuilder
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7; -
getStagedIdOrBuilder
The staged resource ID of this finalized resource.
.aapt.pb.StagedId staged_id = 7;- Specified by:
getStagedIdOrBuilderin interfaceResources.EntryOrBuilder
-
setUnknownFields
public final Resources.Entry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
-
mergeUnknownFields
public final Resources.Entry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
-