public static enum MetricDescriptor.ValueType extends java.lang.Enum<MetricDescriptor.ValueType> implements ProtocolMessageEnum
The value type of a metric.Protobuf enum
google.api.MetricDescriptor.ValueType
Enum Constant and Description |
---|
BOOL
The value is a boolean.
|
DISTRIBUTION
The value is a [`Distribution`][google.api.Distribution].
|
DOUBLE
The value is a double precision floating point number.
|
INT64
The value is a signed 64-bit integer.
|
MONEY
The value is money.
|
STRING
The value is a text string.
|
UNRECOGNIZED |
VALUE_TYPE_UNSPECIFIED
Do not use this default value.
|
Modifier and Type | Field and Description |
---|---|
static int |
BOOL_VALUE
The value is a boolean.
|
static int |
DISTRIBUTION_VALUE
The value is a [`Distribution`][google.api.Distribution].
|
static int |
DOUBLE_VALUE
The value is a double precision floating point number.
|
static int |
INT64_VALUE
The value is a signed 64-bit integer.
|
static int |
MONEY_VALUE
The value is money.
|
static int |
STRING_VALUE
The value is a text string.
|
static int |
VALUE_TYPE_UNSPECIFIED_VALUE
Do not use this default value.
|
Modifier and Type | Method and Description |
---|---|
static MetricDescriptor.ValueType |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<MetricDescriptor.ValueType> |
internalGetValueMap() |
static MetricDescriptor.ValueType |
valueOf(Descriptors.EnumValueDescriptor desc) |
static MetricDescriptor.ValueType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricDescriptor.ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MetricDescriptor.ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricDescriptor.ValueType VALUE_TYPE_UNSPECIFIED
Do not use this default value.
VALUE_TYPE_UNSPECIFIED = 0;
public static final MetricDescriptor.ValueType BOOL
The value is a boolean. This value type can be used only if the metric kind is `GAUGE`.
BOOL = 1;
public static final MetricDescriptor.ValueType INT64
The value is a signed 64-bit integer.
INT64 = 2;
public static final MetricDescriptor.ValueType DOUBLE
The value is a double precision floating point number.
DOUBLE = 3;
public static final MetricDescriptor.ValueType STRING
The value is a text string. This value type can be used only if the metric kind is `GAUGE`.
STRING = 4;
public static final MetricDescriptor.ValueType DISTRIBUTION
The value is a [`Distribution`][google.api.Distribution].
DISTRIBUTION = 5;
public static final MetricDescriptor.ValueType MONEY
The value is money.
MONEY = 6;
public static final MetricDescriptor.ValueType UNRECOGNIZED
public static final int VALUE_TYPE_UNSPECIFIED_VALUE
Do not use this default value.
VALUE_TYPE_UNSPECIFIED = 0;
public static final int BOOL_VALUE
The value is a boolean. This value type can be used only if the metric kind is `GAUGE`.
BOOL = 1;
public static final int INT64_VALUE
The value is a signed 64-bit integer.
INT64 = 2;
public static final int DOUBLE_VALUE
The value is a double precision floating point number.
DOUBLE = 3;
public static final int STRING_VALUE
The value is a text string. This value type can be used only if the metric kind is `GAUGE`.
STRING = 4;
public static final int DISTRIBUTION_VALUE
The value is a [`Distribution`][google.api.Distribution].
DISTRIBUTION = 5;
public static final int MONEY_VALUE
The value is money.
MONEY = 6;
public static MetricDescriptor.ValueType[] values()
for (MetricDescriptor.ValueType c : MetricDescriptor.ValueType.values()) System.out.println(c);
public static MetricDescriptor.ValueType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static MetricDescriptor.ValueType valueOf(int value)
forNumber(int)
instead.public static MetricDescriptor.ValueType forNumber(int value)
public static Internal.EnumLiteMap<MetricDescriptor.ValueType> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static MetricDescriptor.ValueType valueOf(Descriptors.EnumValueDescriptor desc)