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 formatting
 
Protobuf type aapt.pb.Primitive
See Also:
  • 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getOneofValueCase

      public Resources.Primitive.OneofValueCase getOneofValueCase()
      Specified by:
      getOneofValueCase in interface Resources.PrimitiveOrBuilder
    • hasNullValue

      public boolean hasNullValue()
      .aapt.pb.Primitive.NullType null_value = 1;
      Specified by:
      hasNullValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the nullValue field is set.
    • getNullValue

      public Resources.Primitive.NullType getNullValue()
      .aapt.pb.Primitive.NullType null_value = 1;
      Specified by:
      getNullValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The nullValue.
    • getNullValueOrBuilder

      public Resources.Primitive.NullTypeOrBuilder getNullValueOrBuilder()
      .aapt.pb.Primitive.NullType null_value = 1;
      Specified by:
      getNullValueOrBuilder in interface Resources.PrimitiveOrBuilder
    • hasEmptyValue

      public boolean hasEmptyValue()
      .aapt.pb.Primitive.EmptyType empty_value = 2;
      Specified by:
      hasEmptyValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the emptyValue field is set.
    • getEmptyValue

      public Resources.Primitive.EmptyType getEmptyValue()
      .aapt.pb.Primitive.EmptyType empty_value = 2;
      Specified by:
      getEmptyValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The emptyValue.
    • getEmptyValueOrBuilder

      public Resources.Primitive.EmptyTypeOrBuilder getEmptyValueOrBuilder()
      .aapt.pb.Primitive.EmptyType empty_value = 2;
      Specified by:
      getEmptyValueOrBuilder in interface Resources.PrimitiveOrBuilder
    • hasFloatValue

      public boolean hasFloatValue()
      float float_value = 3;
      Specified by:
      hasFloatValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the floatValue field is set.
    • getFloatValue

      public float getFloatValue()
      float float_value = 3;
      Specified by:
      getFloatValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The floatValue.
    • hasDimensionValue

      public boolean hasDimensionValue()
      uint32 dimension_value = 13;
      Specified by:
      hasDimensionValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the dimensionValue field is set.
    • getDimensionValue

      public int getDimensionValue()
      uint32 dimension_value = 13;
      Specified by:
      getDimensionValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The dimensionValue.
    • hasFractionValue

      public boolean hasFractionValue()
      uint32 fraction_value = 14;
      Specified by:
      hasFractionValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the fractionValue field is set.
    • getFractionValue

      public int getFractionValue()
      uint32 fraction_value = 14;
      Specified by:
      getFractionValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The fractionValue.
    • hasIntDecimalValue

      public boolean hasIntDecimalValue()
      int32 int_decimal_value = 6;
      Specified by:
      hasIntDecimalValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the intDecimalValue field is set.
    • getIntDecimalValue

      public int getIntDecimalValue()
      int32 int_decimal_value = 6;
      Specified by:
      getIntDecimalValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The intDecimalValue.
    • hasIntHexadecimalValue

      public boolean hasIntHexadecimalValue()
      uint32 int_hexadecimal_value = 7;
      Specified by:
      hasIntHexadecimalValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the intHexadecimalValue field is set.
    • getIntHexadecimalValue

      public int getIntHexadecimalValue()
      uint32 int_hexadecimal_value = 7;
      Specified by:
      getIntHexadecimalValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The intHexadecimalValue.
    • hasBooleanValue

      public boolean hasBooleanValue()
      bool boolean_value = 8;
      Specified by:
      hasBooleanValue in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the booleanValue field is set.
    • getBooleanValue

      public boolean getBooleanValue()
      bool boolean_value = 8;
      Specified by:
      getBooleanValue in interface Resources.PrimitiveOrBuilder
      Returns:
      The booleanValue.
    • hasColorArgb8Value

      public boolean hasColorArgb8Value()
      uint32 color_argb8_value = 9;
      Specified by:
      hasColorArgb8Value in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the colorArgb8Value field is set.
    • getColorArgb8Value

      public int getColorArgb8Value()
      uint32 color_argb8_value = 9;
      Specified by:
      getColorArgb8Value in interface Resources.PrimitiveOrBuilder
      Returns:
      The colorArgb8Value.
    • hasColorRgb8Value

      public boolean hasColorRgb8Value()
      uint32 color_rgb8_value = 10;
      Specified by:
      hasColorRgb8Value in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the colorRgb8Value field is set.
    • getColorRgb8Value

      public int getColorRgb8Value()
      uint32 color_rgb8_value = 10;
      Specified by:
      getColorRgb8Value in interface Resources.PrimitiveOrBuilder
      Returns:
      The colorRgb8Value.
    • hasColorArgb4Value

      public boolean hasColorArgb4Value()
      uint32 color_argb4_value = 11;
      Specified by:
      hasColorArgb4Value in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the colorArgb4Value field is set.
    • getColorArgb4Value

      public int getColorArgb4Value()
      uint32 color_argb4_value = 11;
      Specified by:
      getColorArgb4Value in interface Resources.PrimitiveOrBuilder
      Returns:
      The colorArgb4Value.
    • hasColorRgb4Value

      public boolean hasColorRgb4Value()
      uint32 color_rgb4_value = 12;
      Specified by:
      hasColorRgb4Value in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the colorRgb4Value field is set.
    • getColorRgb4Value

      public int getColorRgb4Value()
      uint32 color_rgb4_value = 12;
      Specified by:
      getColorRgb4Value in interface Resources.PrimitiveOrBuilder
      Returns:
      The colorRgb4Value.
    • hasDimensionValueDeprecated

      @Deprecated public boolean hasDimensionValueDeprecated()
      Deprecated.
      aapt.pb.Primitive.dimension_value_deprecated is deprecated. See Resources.proto;l=409
      float dimension_value_deprecated = 4 [deprecated = true];
      Specified by:
      hasDimensionValueDeprecated in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the dimensionValueDeprecated field is set.
    • getDimensionValueDeprecated

      @Deprecated public float getDimensionValueDeprecated()
      Deprecated.
      aapt.pb.Primitive.dimension_value_deprecated is deprecated. See Resources.proto;l=409
      float dimension_value_deprecated = 4 [deprecated = true];
      Specified by:
      getDimensionValueDeprecated in interface Resources.PrimitiveOrBuilder
      Returns:
      The dimensionValueDeprecated.
    • hasFractionValueDeprecated

      @Deprecated public boolean hasFractionValueDeprecated()
      Deprecated.
      aapt.pb.Primitive.fraction_value_deprecated is deprecated. See Resources.proto;l=410
      float fraction_value_deprecated = 5 [deprecated = true];
      Specified by:
      hasFractionValueDeprecated in interface Resources.PrimitiveOrBuilder
      Returns:
      Whether the fractionValueDeprecated field is set.
    • getFractionValueDeprecated

      @Deprecated public float getFractionValueDeprecated()
      Deprecated.
      aapt.pb.Primitive.fraction_value_deprecated is deprecated. See Resources.proto;l=410
      float fraction_value_deprecated = 5 [deprecated = true];
      Specified by:
      getFractionValueDeprecated in interface Resources.PrimitiveOrBuilder
      Returns:
      The fractionValueDeprecated.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Resources.Primitive parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.Primitive parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resources.Primitive parseDelimitedFrom(InputStream input) throws IOException
      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

      public Resources.Primitive.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Resources.Primitive.Builder newBuilder()
    • newBuilder

      public static Resources.Primitive.Builder newBuilder(Resources.Primitive prototype)
    • toBuilder

      public Resources.Primitive.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Resources.Primitive.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Resources.Primitive getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Resources.Primitive> parser()
    • getParserForType

      public com.google.protobuf.Parser<Resources.Primitive> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Resources.Primitive getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder