Package com.android.aapt
Class Resources.Attribute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
com.android.aapt.Resources.Attribute.Builder
- All Implemented Interfaces:
Resources.AttributeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resources.Attribute
public static final class Resources.Attribute.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
implements Resources.AttributeOrBuilder
A value that represents an XML attribute and what values it accepts.Protobuf type
aapt.pb.Attribute-
Method Summary
Modifier and TypeMethodDescriptionaddAllSymbol(Iterable<? extends Resources.Attribute.Symbol> values) The set of enums/flags defined in this attribute.addSymbol(int index, Resources.Attribute.Symbol value) The set of enums/flags defined in this attribute.addSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue) The set of enums/flags defined in this attribute.The set of enums/flags defined in this attribute.addSymbol(Resources.Attribute.Symbol.Builder builderForValue) The set of enums/flags defined in this attribute.The set of enums/flags defined in this attribute.addSymbolBuilder(int index) The set of enums/flags defined in this attribute.build()clear()A bitmask of types that this XML attribute accepts.The largest integer allowed for this XML attribute.The smallest integer allowed for this XML attribute.The set of enums/flags defined in this attribute.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintA bitmask of types that this XML attribute accepts.intThe largest integer allowed for this XML attribute.intThe smallest integer allowed for this XML attribute.getSymbol(int index) The set of enums/flags defined in this attribute.getSymbolBuilder(int index) The set of enums/flags defined in this attribute.The set of enums/flags defined in this attribute.intThe set of enums/flags defined in this attribute.The set of enums/flags defined in this attribute.getSymbolOrBuilder(int index) The set of enums/flags defined in this attribute.List<? extends Resources.Attribute.SymbolOrBuilder>The set of enums/flags defined in this attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Resources.Attribute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeSymbol(int index) The set of enums/flags defined in this attribute.setFormatFlags(int value) A bitmask of types that this XML attribute accepts.setMaxInt(int value) The largest integer allowed for this XML attribute.setMinInt(int value) The smallest integer allowed for this XML attribute.setSymbol(int index, Resources.Attribute.Symbol value) The set of enums/flags defined in this attribute.setSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue) The set of enums/flags defined in this attribute.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.Attribute.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.Attribute.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.Attribute.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.Attribute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
mergeFrom
public Resources.Attribute.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.Attribute.Builder>- Throws:
IOException
-
getFormatFlags
public int getFormatFlags()A bitmask of types that this XML attribute accepts. Corresponds to the flags in the enum FormatFlags.
uint32 format_flags = 1;- Specified by:
getFormatFlagsin interfaceResources.AttributeOrBuilder- Returns:
- The formatFlags.
-
setFormatFlags
A bitmask of types that this XML attribute accepts. Corresponds to the flags in the enum FormatFlags.
uint32 format_flags = 1;- Parameters:
value- The formatFlags to set.- Returns:
- This builder for chaining.
-
clearFormatFlags
A bitmask of types that this XML attribute accepts. Corresponds to the flags in the enum FormatFlags.
uint32 format_flags = 1;- Returns:
- This builder for chaining.
-
getMinInt
public int getMinInt()The smallest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 min_int = 2;- Specified by:
getMinIntin interfaceResources.AttributeOrBuilder- Returns:
- The minInt.
-
setMinInt
The smallest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 min_int = 2;- Parameters:
value- The minInt to set.- Returns:
- This builder for chaining.
-
clearMinInt
The smallest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 min_int = 2;- Returns:
- This builder for chaining.
-
getMaxInt
public int getMaxInt()The largest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 max_int = 3;- Specified by:
getMaxIntin interfaceResources.AttributeOrBuilder- Returns:
- The maxInt.
-
setMaxInt
The largest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 max_int = 3;- Parameters:
value- The maxInt to set.- Returns:
- This builder for chaining.
-
clearMaxInt
The largest integer allowed for this XML attribute. Only makes sense if the format includes FormatFlags::INTEGER.
int32 max_int = 3;- Returns:
- This builder for chaining.
-
getSymbolList
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;- Specified by:
getSymbolListin interfaceResources.AttributeOrBuilder
-
getSymbolCount
public int getSymbolCount()The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;- Specified by:
getSymbolCountin interfaceResources.AttributeOrBuilder
-
getSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;- Specified by:
getSymbolin interfaceResources.AttributeOrBuilder
-
setSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
setSymbol
public Resources.Attribute.Builder setSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue) The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addSymbol
public Resources.Attribute.Builder addSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue) The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addAllSymbol
public Resources.Attribute.Builder addAllSymbol(Iterable<? extends Resources.Attribute.Symbol> values) The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
clearSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
removeSymbol
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolBuilder
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolOrBuilder
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;- Specified by:
getSymbolOrBuilderin interfaceResources.AttributeOrBuilder
-
getSymbolOrBuilderList
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4;- Specified by:
getSymbolOrBuilderListin interfaceResources.AttributeOrBuilder
-
addSymbolBuilder
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
addSymbolBuilder
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
getSymbolBuilderList
The set of enums/flags defined in this attribute. Only makes sense if the format includes either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
repeated .aapt.pb.Attribute.Symbol symbol = 4; -
setUnknownFields
public final Resources.Attribute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
mergeUnknownFields
public final Resources.Attribute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-