Enum Resources.Attribute.FormatFlags

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<Resources.Attribute.FormatFlags>
    Enclosing class:
    Resources.Attribute

    public static enum Resources.Attribute.FormatFlags
    extends java.lang.Enum<Resources.Attribute.FormatFlags>
    implements com.google.protobuf.ProtocolMessageEnum
     Bitmask of formats allowed for an attribute.
     
    Protobuf enum aapt.pb.Attribute.FormatFlags
    • Field Detail

      • NONE_VALUE

        public static final int NONE_VALUE
         Proto3 requires a default of 0.
         
        NONE = 0;
        See Also:
        Constant Field Values
      • ANY_VALUE

        public static final int ANY_VALUE
         Allows any type except ENUM and FLAGS.
         
        ANY = 65535;
        See Also:
        Constant Field Values
      • REFERENCE_VALUE

        public static final int REFERENCE_VALUE
         Allows Reference values.
         
        REFERENCE = 1;
        See Also:
        Constant Field Values
      • STRING_VALUE

        public static final int STRING_VALUE
         Allows String/StyledString values.
         
        STRING = 2;
        See Also:
        Constant Field Values
      • INTEGER_VALUE

        public static final int INTEGER_VALUE
         Allows any integer BinaryPrimitive values.
         
        INTEGER = 4;
        See Also:
        Constant Field Values
      • BOOLEAN_VALUE

        public static final int BOOLEAN_VALUE
         Allows any boolean BinaryPrimitive values.
         
        BOOLEAN = 8;
        See Also:
        Constant Field Values
      • COLOR_VALUE

        public static final int COLOR_VALUE
         Allows any color BinaryPrimitive values.
         
        COLOR = 16;
        See Also:
        Constant Field Values
      • FLOAT_VALUE

        public static final int FLOAT_VALUE
         Allows any float BinaryPrimitive values.
         
        FLOAT = 32;
        See Also:
        Constant Field Values
      • DIMENSION_VALUE

        public static final int DIMENSION_VALUE
         Allows any dimension BinaryPrimitive values.
         
        DIMENSION = 64;
        See Also:
        Constant Field Values
      • FRACTION_VALUE

        public static final int FRACTION_VALUE
         Allows any fraction BinaryPrimitive values.
         
        FRACTION = 128;
        See Also:
        Constant Field Values
      • ENUM_VALUE

        public static final int ENUM_VALUE
         Allows enums that are defined in the Attribute's symbols.
         
        ENUM = 65536;
        See Also:
        Constant Field Values
      • FLAGS_VALUE

        public static final int FLAGS_VALUE
         ENUM and FLAGS cannot BOTH be set.
         
        FLAGS = 131072;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Resources.Attribute.FormatFlags[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Resources.Attribute.FormatFlags c : Resources.Attribute.FormatFlags.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Resources.Attribute.FormatFlags valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static Resources.Attribute.FormatFlags valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static Resources.Attribute.FormatFlags forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static Resources.Attribute.FormatFlags valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null