Enum ValueType

    • Enum Constant Detail

      • VALUE_TYPE_UNSPECIFIED

        public static final ValueType VALUE_TYPE_UNSPECIFIED
        Do not use this default value.
      • BOOL

        public static final ValueType BOOL
        The value is a boolean. This value type can be used only if the metric kind is `GAUGE`.
      • INT64

        public static final ValueType INT64
        The value is a signed 64-bit integer.
      • DOUBLE

        public static final ValueType DOUBLE
        The value is a double precision floating point number.
      • STRING

        public static final ValueType STRING
        The value is a text string. This value type can be used only if the metric kind is `GAUGE`.
      • DISTRIBUTION

        public static final ValueType DISTRIBUTION
        The value is a [`Distribution`][google.api.Distribution].
      • MONEY

        public static final ValueType MONEY
        The value is money.
    • 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
      • value

        public int value()