Package com.android.aapt
Class Resources.Primitive
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Primitive
- All Implemented Interfaces:
Resources.PrimitiveOrBuilder,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.Primitive
extends com.google.protobuf.GeneratedMessageV3
implements Resources.PrimitiveOrBuilder
A value that represents a primitive data type (float, int, boolean, etc.). Refer to Res_value in ResourceTypes.h for info on types and formattingProtobuf type
aapt.pb.Primitive- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA value that represents a primitive data type (float, int, boolean, etc.).static final classProtobuf typeaapt.pb.Primitive.EmptyTypestatic interfacestatic final classProtobuf typeaapt.pb.Primitive.NullTypestatic interfacestatic enumNested 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 intstatic 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 TypeMethodDescriptionbooleanbooleanbool boolean_value = 8;intuint32 color_argb4_value = 11;intuint32 color_argb8_value = 9;intuint32 color_rgb4_value = 12;intuint32 color_rgb8_value = 10;static Resources.Primitivestatic final com.google.protobuf.Descriptors.Descriptorintuint32 dimension_value = 13;floatDeprecated.aapt.pb.Primitive.dimension_value_deprecated is deprecated..aapt.pb.Primitive.EmptyType empty_value = 2;.aapt.pb.Primitive.EmptyType empty_value = 2;floatfloat float_value = 3;intuint32 fraction_value = 14;floatDeprecated.aapt.pb.Primitive.fraction_value_deprecated is deprecated.intint32 int_decimal_value = 6;intuint32 int_hexadecimal_value = 7;.aapt.pb.Primitive.NullType null_value = 1;.aapt.pb.Primitive.NullType null_value = 1;com.google.protobuf.Parser<Resources.Primitive>intbooleanbool boolean_value = 8;booleanuint32 color_argb4_value = 11;booleanuint32 color_argb8_value = 9;booleanuint32 color_rgb4_value = 12;booleanuint32 color_rgb8_value = 10;booleanuint32 dimension_value = 13;booleanDeprecated.aapt.pb.Primitive.dimension_value_deprecated is deprecated.boolean.aapt.pb.Primitive.EmptyType empty_value = 2;booleanfloat float_value = 3;booleanuint32 fraction_value = 14;booleanDeprecated.aapt.pb.Primitive.fraction_value_deprecated is deprecated.inthashCode()booleanint32 int_decimal_value = 6;booleanuint32 int_hexadecimal_value = 7;boolean.aapt.pb.Primitive.NullType null_value = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.Primitive.Builderstatic Resources.Primitive.BuildernewBuilder(Resources.Primitive prototype) protected Resources.Primitive.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.PrimitiveparseDelimitedFrom(InputStream input) static Resources.PrimitiveparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.PrimitiveparseFrom(byte[] data) static Resources.PrimitiveparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.PrimitiveparseFrom(com.google.protobuf.ByteString data) static Resources.PrimitiveparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.PrimitiveparseFrom(com.google.protobuf.CodedInputStream input) static Resources.PrimitiveparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.PrimitiveparseFrom(InputStream input) static Resources.PrimitiveparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.PrimitiveparseFrom(ByteBuffer data) static Resources.PrimitiveparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.Primitive>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
-
NULL_VALUE_FIELD_NUMBER
public static final int NULL_VALUE_FIELD_NUMBER- See Also:
-
EMPTY_VALUE_FIELD_NUMBER
public static final int EMPTY_VALUE_FIELD_NUMBER- See Also:
-
FLOAT_VALUE_FIELD_NUMBER
public static final int FLOAT_VALUE_FIELD_NUMBER- See Also:
-
DIMENSION_VALUE_FIELD_NUMBER
public static final int DIMENSION_VALUE_FIELD_NUMBER- See Also:
-
FRACTION_VALUE_FIELD_NUMBER
public static final int FRACTION_VALUE_FIELD_NUMBER- See Also:
-
INT_DECIMAL_VALUE_FIELD_NUMBER
public static final int INT_DECIMAL_VALUE_FIELD_NUMBER- See Also:
-
INT_HEXADECIMAL_VALUE_FIELD_NUMBER
public static final int INT_HEXADECIMAL_VALUE_FIELD_NUMBER- See Also:
-
BOOLEAN_VALUE_FIELD_NUMBER
public static final int BOOLEAN_VALUE_FIELD_NUMBER- See Also:
-
COLOR_ARGB8_VALUE_FIELD_NUMBER
public static final int COLOR_ARGB8_VALUE_FIELD_NUMBER- See Also:
-
COLOR_RGB8_VALUE_FIELD_NUMBER
public static final int COLOR_RGB8_VALUE_FIELD_NUMBER- See Also:
-
COLOR_ARGB4_VALUE_FIELD_NUMBER
public static final int COLOR_ARGB4_VALUE_FIELD_NUMBER- See Also:
-
COLOR_RGB4_VALUE_FIELD_NUMBER
public static final int COLOR_RGB4_VALUE_FIELD_NUMBER- See Also:
-
DIMENSION_VALUE_DEPRECATED_FIELD_NUMBER
public static final int DIMENSION_VALUE_DEPRECATED_FIELD_NUMBER- See Also:
-
FRACTION_VALUE_DEPRECATED_FIELD_NUMBER
public static final int FRACTION_VALUE_DEPRECATED_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
-
getOneofValueCase
- Specified by:
getOneofValueCasein interfaceResources.PrimitiveOrBuilder
-
hasNullValue
public boolean hasNullValue().aapt.pb.Primitive.NullType null_value = 1;- Specified by:
hasNullValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the nullValue field is set.
-
getNullValue
.aapt.pb.Primitive.NullType null_value = 1;- Specified by:
getNullValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The nullValue.
-
getNullValueOrBuilder
.aapt.pb.Primitive.NullType null_value = 1;- Specified by:
getNullValueOrBuilderin interfaceResources.PrimitiveOrBuilder
-
hasEmptyValue
public boolean hasEmptyValue().aapt.pb.Primitive.EmptyType empty_value = 2;- Specified by:
hasEmptyValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the emptyValue field is set.
-
getEmptyValue
.aapt.pb.Primitive.EmptyType empty_value = 2;- Specified by:
getEmptyValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The emptyValue.
-
getEmptyValueOrBuilder
.aapt.pb.Primitive.EmptyType empty_value = 2;- Specified by:
getEmptyValueOrBuilderin interfaceResources.PrimitiveOrBuilder
-
hasFloatValue
public boolean hasFloatValue()float float_value = 3;- Specified by:
hasFloatValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the floatValue field is set.
-
getFloatValue
public float getFloatValue()float float_value = 3;- Specified by:
getFloatValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The floatValue.
-
hasDimensionValue
public boolean hasDimensionValue()uint32 dimension_value = 13;- Specified by:
hasDimensionValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the dimensionValue field is set.
-
getDimensionValue
public int getDimensionValue()uint32 dimension_value = 13;- Specified by:
getDimensionValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The dimensionValue.
-
hasFractionValue
public boolean hasFractionValue()uint32 fraction_value = 14;- Specified by:
hasFractionValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the fractionValue field is set.
-
getFractionValue
public int getFractionValue()uint32 fraction_value = 14;- Specified by:
getFractionValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The fractionValue.
-
hasIntDecimalValue
public boolean hasIntDecimalValue()int32 int_decimal_value = 6;- Specified by:
hasIntDecimalValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the intDecimalValue field is set.
-
getIntDecimalValue
public int getIntDecimalValue()int32 int_decimal_value = 6;- Specified by:
getIntDecimalValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The intDecimalValue.
-
hasIntHexadecimalValue
public boolean hasIntHexadecimalValue()uint32 int_hexadecimal_value = 7;- Specified by:
hasIntHexadecimalValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the intHexadecimalValue field is set.
-
getIntHexadecimalValue
public int getIntHexadecimalValue()uint32 int_hexadecimal_value = 7;- Specified by:
getIntHexadecimalValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The intHexadecimalValue.
-
hasBooleanValue
public boolean hasBooleanValue()bool boolean_value = 8;- Specified by:
hasBooleanValuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the booleanValue field is set.
-
getBooleanValue
public boolean getBooleanValue()bool boolean_value = 8;- Specified by:
getBooleanValuein interfaceResources.PrimitiveOrBuilder- Returns:
- The booleanValue.
-
hasColorArgb8Value
public boolean hasColorArgb8Value()uint32 color_argb8_value = 9;- Specified by:
hasColorArgb8Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the colorArgb8Value field is set.
-
getColorArgb8Value
public int getColorArgb8Value()uint32 color_argb8_value = 9;- Specified by:
getColorArgb8Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- The colorArgb8Value.
-
hasColorRgb8Value
public boolean hasColorRgb8Value()uint32 color_rgb8_value = 10;- Specified by:
hasColorRgb8Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the colorRgb8Value field is set.
-
getColorRgb8Value
public int getColorRgb8Value()uint32 color_rgb8_value = 10;- Specified by:
getColorRgb8Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- The colorRgb8Value.
-
hasColorArgb4Value
public boolean hasColorArgb4Value()uint32 color_argb4_value = 11;- Specified by:
hasColorArgb4Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the colorArgb4Value field is set.
-
getColorArgb4Value
public int getColorArgb4Value()uint32 color_argb4_value = 11;- Specified by:
getColorArgb4Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- The colorArgb4Value.
-
hasColorRgb4Value
public boolean hasColorRgb4Value()uint32 color_rgb4_value = 12;- Specified by:
hasColorRgb4Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the colorRgb4Value field is set.
-
getColorRgb4Value
public int getColorRgb4Value()uint32 color_rgb4_value = 12;- Specified by:
getColorRgb4Valuein interfaceResources.PrimitiveOrBuilder- Returns:
- The colorRgb4Value.
-
hasDimensionValueDeprecated
Deprecated.aapt.pb.Primitive.dimension_value_deprecated is deprecated. See Resources.proto;l=409float dimension_value_deprecated = 4 [deprecated = true];- Specified by:
hasDimensionValueDeprecatedin interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the dimensionValueDeprecated field is set.
-
getDimensionValueDeprecated
Deprecated.aapt.pb.Primitive.dimension_value_deprecated is deprecated. See Resources.proto;l=409float dimension_value_deprecated = 4 [deprecated = true];- Specified by:
getDimensionValueDeprecatedin interfaceResources.PrimitiveOrBuilder- Returns:
- The dimensionValueDeprecated.
-
hasFractionValueDeprecated
Deprecated.aapt.pb.Primitive.fraction_value_deprecated is deprecated. See Resources.proto;l=410float fraction_value_deprecated = 5 [deprecated = true];- Specified by:
hasFractionValueDeprecatedin interfaceResources.PrimitiveOrBuilder- Returns:
- Whether the fractionValueDeprecated field is set.
-
getFractionValueDeprecated
Deprecated.aapt.pb.Primitive.fraction_value_deprecated is deprecated. See Resources.proto;l=410float fraction_value_deprecated = 5 [deprecated = true];- Specified by:
getFractionValueDeprecatedin interfaceResources.PrimitiveOrBuilder- Returns:
- The fractionValueDeprecated.
-
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.Primitive parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Primitive parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Primitive parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Primitive 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.Primitive parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Primitive 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.Primitive parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.Primitive parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Primitive parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Primitive 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.Primitive.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
-