Enum ValueType

  • All Implemented Interfaces:
    Serializable, Comparable<ValueType>

    public enum ValueType
    extends Enum<ValueType>
    ValueType describes the types that values in the Istio system can take. These are used to describe the type of Attributes at run time, describe the type of the result of evaluating an expression, and to describe the runtime type of fields of other descriptors.
    Author:
    Christophe Laprun
    • Enum Constant Detail

      • VALUE_TYPE_UNSPECIFIED

        public static final ValueType VALUE_TYPE_UNSPECIFIED
        Invalid, default value.
      • STRING

        public static final ValueType STRING
        An undiscriminated variable-length string.
      • INT64

        public static final ValueType INT64
        An undiscriminated 64-bit signed integer.
      • DOUBLE

        public static final ValueType DOUBLE
        An undiscriminated 64-bit floating-point value.
      • BOOL

        public static final ValueType BOOL
        An undiscriminated boolean value.
      • TIMESTAMP

        public static final ValueType TIMESTAMP
        A point in time.
      • IP_ADDRESS

        public static final ValueType IP_ADDRESS
        An IP address.
      • EMAIL_ADDRESS

        public static final ValueType EMAIL_ADDRESS
        An email address.
      • URI

        public static final ValueType URI
        A URI.
      • DNS_NAME

        public static final ValueType DNS_NAME
        A DNS name.
      • DURATION

        public static final ValueType DURATION
        A span between two points in time.
      • STRING_MAP

        public static final ValueType STRING_MAP
        A map string - string, typically used by headers.
    • Method Detail

      • values

        public static ValueType[] 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 (ValueType c : ValueType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ValueType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null