Package com.android.aapt
Class Resources.Attribute.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typeaapt.pb.Attribute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resources.Attribute.BuilderaddAllSymbol(java.lang.Iterable<? extends Resources.Attribute.Symbol> values)The set of enums/flags defined in this attribute.Resources.Attribute.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Resources.Attribute.BuilderaddSymbol(int index, Resources.Attribute.Symbol value)The set of enums/flags defined in this attribute.Resources.Attribute.BuilderaddSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue)The set of enums/flags defined in this attribute.Resources.Attribute.BuilderaddSymbol(Resources.Attribute.Symbol value)The set of enums/flags defined in this attribute.Resources.Attribute.BuilderaddSymbol(Resources.Attribute.Symbol.Builder builderForValue)The set of enums/flags defined in this attribute.Resources.Attribute.Symbol.BuilderaddSymbolBuilder()The set of enums/flags defined in this attribute.Resources.Attribute.Symbol.BuilderaddSymbolBuilder(int index)The set of enums/flags defined in this attribute.Resources.Attributebuild()Resources.AttributebuildPartial()Resources.Attribute.Builderclear()Resources.Attribute.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Resources.Attribute.BuilderclearFormatFlags()A bitmask of types that this XML attribute accepts.Resources.Attribute.BuilderclearMaxInt()The largest integer allowed for this XML attribute.Resources.Attribute.BuilderclearMinInt()The smallest integer allowed for this XML attribute.Resources.Attribute.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Resources.Attribute.BuilderclearSymbol()The set of enums/flags defined in this attribute.Resources.Attribute.Builderclone()Resources.AttributegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetFormatFlags()A bitmask of types that this XML attribute accepts.intgetMaxInt()The largest integer allowed for this XML attribute.intgetMinInt()The smallest integer allowed for this XML attribute.Resources.Attribute.SymbolgetSymbol(int index)The set of enums/flags defined in this attribute.Resources.Attribute.Symbol.BuildergetSymbolBuilder(int index)The set of enums/flags defined in this attribute.java.util.List<Resources.Attribute.Symbol.Builder>getSymbolBuilderList()The set of enums/flags defined in this attribute.intgetSymbolCount()The set of enums/flags defined in this attribute.java.util.List<Resources.Attribute.Symbol>getSymbolList()The set of enums/flags defined in this attribute.Resources.Attribute.SymbolOrBuildergetSymbolOrBuilder(int index)The set of enums/flags defined in this attribute.java.util.List<? extends Resources.Attribute.SymbolOrBuilder>getSymbolOrBuilderList()The set of enums/flags defined in this attribute.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Resources.Attribute.BuildermergeFrom(Resources.Attribute other)Resources.Attribute.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Resources.Attribute.BuildermergeFrom(com.google.protobuf.Message other)Resources.Attribute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resources.Attribute.BuilderremoveSymbol(int index)The set of enums/flags defined in this attribute.Resources.Attribute.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Resources.Attribute.BuildersetFormatFlags(int value)A bitmask of types that this XML attribute accepts.Resources.Attribute.BuildersetMaxInt(int value)The largest integer allowed for this XML attribute.Resources.Attribute.BuildersetMinInt(int value)The smallest integer allowed for this XML attribute.Resources.Attribute.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Resources.Attribute.BuildersetSymbol(int index, Resources.Attribute.Symbol value)The set of enums/flags defined in this attribute.Resources.Attribute.BuildersetSymbol(int index, Resources.Attribute.Symbol.Builder builderForValue)The set of enums/flags defined in this attribute.Resources.Attribute.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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
public 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
public Resources.Attribute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Resources.Attribute build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Resources.Attribute buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Resources.Attribute.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
setField
public Resources.Attribute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
clearField
public Resources.Attribute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
clearOneof
public Resources.Attribute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
setRepeatedField
public Resources.Attribute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
addRepeatedField
public Resources.Attribute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
-
mergeFrom
public Resources.Attribute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resources.Attribute.Builder>
-
mergeFrom
public Resources.Attribute.Builder mergeFrom(Resources.Attribute other)
-
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 java.io.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:
java.io.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
public Resources.Attribute.Builder setFormatFlags(int value)
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
public Resources.Attribute.Builder 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
public Resources.Attribute.Builder setMinInt(int value)
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
public Resources.Attribute.Builder 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
public Resources.Attribute.Builder setMaxInt(int value)
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
public Resources.Attribute.Builder 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
public java.util.List<Resources.Attribute.Symbol> 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
public Resources.Attribute.Symbol getSymbol(int index)
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
public Resources.Attribute.Builder setSymbol(int index, Resources.Attribute.Symbol value)
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
public Resources.Attribute.Builder addSymbol(Resources.Attribute.Symbol value)
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 value)
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(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
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(java.lang.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
public Resources.Attribute.Builder 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
public Resources.Attribute.Builder removeSymbol(int index)
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
public Resources.Attribute.Symbol.Builder getSymbolBuilder(int index)
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
public Resources.Attribute.SymbolOrBuilder getSymbolOrBuilder(int index)
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
public java.util.List<? extends Resources.Attribute.SymbolOrBuilder> 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
public Resources.Attribute.Symbol.Builder 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
public Resources.Attribute.Symbol.Builder addSymbolBuilder(int index)
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
public java.util.List<Resources.Attribute.Symbol.Builder> 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>
-
-