Package com.android.aapt
Class Resources.OverlayableItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.OverlayableItem.Builder>
com.android.aapt.Resources.OverlayableItem.Builder
- All Implemented Interfaces:
Resources.OverlayableItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resources.OverlayableItem
public static final class Resources.OverlayableItem.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.OverlayableItem.Builder>
implements Resources.OverlayableItemOrBuilder
Represents an overlayable <item> declaration within an <overlayable> tag.Protobuf type
aapt.pb.OverlayableItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllPolicy(Iterable<? extends Resources.OverlayableItem.Policy> values) The policy defined by the enclosing <policy> tag of this <item>.addAllPolicyValue(Iterable<Integer> values) The policy defined by the enclosing <policy> tag of this <item>.The policy defined by the enclosing <policy> tag of this <item>.addPolicyValue(int value) The policy defined by the enclosing <policy> tag of this <item>.build()clear()Any comment associated with the declaration.The index into overlayable list that points to the <overlayable> tag that contains this <item>.The policy defined by the enclosing <policy> tag of this <item>.The location of the <item> declaration in source.Any comment associated with the declaration.com.google.protobuf.ByteStringAny comment associated with the declaration.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintThe index into overlayable list that points to the <overlayable> tag that contains this <item>.getPolicy(int index) The policy defined by the enclosing <policy> tag of this <item>.intThe policy defined by the enclosing <policy> tag of this <item>.The policy defined by the enclosing <policy> tag of this <item>.intgetPolicyValue(int index) The policy defined by the enclosing <policy> tag of this <item>.The policy defined by the enclosing <policy> tag of this <item>.The location of the <item> declaration in source.The location of the <item> declaration in source.The location of the <item> declaration in source.booleanThe location of the <item> declaration in source.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSource(Resources.Source value) The location of the <item> declaration in source.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setComment(String value) Any comment associated with the declaration.setCommentBytes(com.google.protobuf.ByteString value) Any comment associated with the declaration.setOverlayableIdx(int value) The index into overlayable list that points to the <overlayable> tag that contains this <item>.setPolicy(int index, Resources.OverlayableItem.Policy value) The policy defined by the enclosing <policy> tag of this <item>.setPolicyValue(int index, int value) The policy defined by the enclosing <policy> tag of this <item>.setSource(Resources.Source value) The location of the <item> declaration in source.setSource(Resources.Source.Builder builderForValue) The location of the <item> declaration in source.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.OverlayableItem.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.OverlayableItem.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.OverlayableItem.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.OverlayableItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.OverlayableItem.Builder>
-
mergeFrom
public Resources.OverlayableItem.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.OverlayableItem.Builder>- Throws:
IOException
-
hasSource
public boolean hasSource()The location of the <item> declaration in source.
.aapt.pb.Source source = 1;- Specified by:
hasSourcein interfaceResources.OverlayableItemOrBuilder- Returns:
- Whether the source field is set.
-
getSource
The location of the <item> declaration in source.
.aapt.pb.Source source = 1;- Specified by:
getSourcein interfaceResources.OverlayableItemOrBuilder- Returns:
- The source.
-
setSource
The location of the <item> declaration in source.
.aapt.pb.Source source = 1; -
setSource
The location of the <item> declaration in source.
.aapt.pb.Source source = 1; -
mergeSource
The location of the <item> declaration in source.
.aapt.pb.Source source = 1; -
clearSource
The location of the <item> declaration in source.
.aapt.pb.Source source = 1; -
getSourceBuilder
The location of the <item> declaration in source.
.aapt.pb.Source source = 1; -
getSourceOrBuilder
The location of the <item> declaration in source.
.aapt.pb.Source source = 1;- Specified by:
getSourceOrBuilderin interfaceResources.OverlayableItemOrBuilder
-
getComment
Any comment associated with the declaration.
string comment = 2;- Specified by:
getCommentin interfaceResources.OverlayableItemOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()Any comment associated with the declaration.
string comment = 2;- Specified by:
getCommentBytesin interfaceResources.OverlayableItemOrBuilder- Returns:
- The bytes for comment.
-
setComment
Any comment associated with the declaration.
string comment = 2;- Parameters:
value- The comment to set.- Returns:
- This builder for chaining.
-
clearComment
Any comment associated with the declaration.
string comment = 2;- Returns:
- This builder for chaining.
-
setCommentBytes
Any comment associated with the declaration.
string comment = 2;- Parameters:
value- The bytes for comment to set.- Returns:
- This builder for chaining.
-
getPolicyList
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Specified by:
getPolicyListin interfaceResources.OverlayableItemOrBuilder- Returns:
- A list containing the policy.
-
getPolicyCount
public int getPolicyCount()The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Specified by:
getPolicyCountin interfaceResources.OverlayableItemOrBuilder- Returns:
- The count of policy.
-
getPolicy
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Specified by:
getPolicyin interfaceResources.OverlayableItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The policy at the given index.
-
setPolicy
public Resources.OverlayableItem.Builder setPolicy(int index, Resources.OverlayableItem.Policy value) The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
index- The index to set the value at.value- The policy to set.- Returns:
- This builder for chaining.
-
addPolicy
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
value- The policy to add.- Returns:
- This builder for chaining.
-
addAllPolicy
public Resources.OverlayableItem.Builder addAllPolicy(Iterable<? extends Resources.OverlayableItem.Policy> values) The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
values- The policy to add.- Returns:
- This builder for chaining.
-
clearPolicy
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Returns:
- This builder for chaining.
-
getPolicyValueList
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Specified by:
getPolicyValueListin interfaceResources.OverlayableItemOrBuilder- Returns:
- A list containing the enum numeric values on the wire for policy.
-
getPolicyValue
public int getPolicyValue(int index) The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Specified by:
getPolicyValuein interfaceResources.OverlayableItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of policy at the given index.
-
setPolicyValue
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for policy to set.- Returns:
- This builder for chaining.
-
addPolicyValue
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
value- The enum numeric value on the wire for policy to add.- Returns:
- This builder for chaining.
-
addAllPolicyValue
The policy defined by the enclosing <policy> tag of this <item>.
repeated .aapt.pb.OverlayableItem.Policy policy = 3;- Parameters:
values- The enum numeric values on the wire for policy to add.- Returns:
- This builder for chaining.
-
getOverlayableIdx
public int getOverlayableIdx()The index into overlayable list that points to the <overlayable> tag that contains this <item>.
uint32 overlayable_idx = 4;- Specified by:
getOverlayableIdxin interfaceResources.OverlayableItemOrBuilder- Returns:
- The overlayableIdx.
-
setOverlayableIdx
The index into overlayable list that points to the <overlayable> tag that contains this <item>.
uint32 overlayable_idx = 4;- Parameters:
value- The overlayableIdx to set.- Returns:
- This builder for chaining.
-
clearOverlayableIdx
The index into overlayable list that points to the <overlayable> tag that contains this <item>.
uint32 overlayable_idx = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Resources.OverlayableItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.OverlayableItem.Builder>
-
mergeUnknownFields
public final Resources.OverlayableItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.OverlayableItem.Builder>
-