public enum MetricType extends Enum<MetricType> implements com.google.protobuf.ProtocolMessageEnum
A metric's value type.Protobuf enum
google.analytics.data.v1alpha.MetricType| Enum Constant and Description |
|---|
METRIC_TYPE_UNSPECIFIED
Unspecified type.
|
TYPE_CURRENCY
An amount of money; a special floating point type.
|
TYPE_FEET
A length in feet; a special floating point type.
|
TYPE_FLOAT
Floating point type.
|
TYPE_HOURS
A duration in hours; a special floating point type.
|
TYPE_INTEGER
Integer type.
|
TYPE_KILOMETERS
A length in kilometers; a special floating point type.
|
TYPE_METERS
A length in meters; a special floating point type.
|
TYPE_MILES
A length in miles; a special floating point type.
|
TYPE_MILLISECONDS
A duration in milliseconds; a special floating point type.
|
TYPE_MINUTES
A duration in minutes; a special floating point type.
|
TYPE_SECONDS
A duration of seconds; a special floating point type.
|
TYPE_STANDARD
A custom metric of standard type; a special floating point type.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
METRIC_TYPE_UNSPECIFIED_VALUE
Unspecified type.
|
static int |
TYPE_CURRENCY_VALUE
An amount of money; a special floating point type.
|
static int |
TYPE_FEET_VALUE
A length in feet; a special floating point type.
|
static int |
TYPE_FLOAT_VALUE
Floating point type.
|
static int |
TYPE_HOURS_VALUE
A duration in hours; a special floating point type.
|
static int |
TYPE_INTEGER_VALUE
Integer type.
|
static int |
TYPE_KILOMETERS_VALUE
A length in kilometers; a special floating point type.
|
static int |
TYPE_METERS_VALUE
A length in meters; a special floating point type.
|
static int |
TYPE_MILES_VALUE
A length in miles; a special floating point type.
|
static int |
TYPE_MILLISECONDS_VALUE
A duration in milliseconds; a special floating point type.
|
static int |
TYPE_MINUTES_VALUE
A duration in minutes; a special floating point type.
|
static int |
TYPE_SECONDS_VALUE
A duration of seconds; a special floating point type.
|
static int |
TYPE_STANDARD_VALUE
A custom metric of standard type; a special floating point type.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<MetricType> |
internalGetValueMap() |
static MetricType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MetricType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricType METRIC_TYPE_UNSPECIFIED
Unspecified type.
METRIC_TYPE_UNSPECIFIED = 0;public static final MetricType TYPE_INTEGER
Integer type.
TYPE_INTEGER = 1;public static final MetricType TYPE_FLOAT
Floating point type.
TYPE_FLOAT = 2;public static final MetricType TYPE_SECONDS
A duration of seconds; a special floating point type.
TYPE_SECONDS = 4;public static final MetricType TYPE_MILLISECONDS
A duration in milliseconds; a special floating point type.
TYPE_MILLISECONDS = 5;public static final MetricType TYPE_MINUTES
A duration in minutes; a special floating point type.
TYPE_MINUTES = 6;public static final MetricType TYPE_HOURS
A duration in hours; a special floating point type.
TYPE_HOURS = 7;public static final MetricType TYPE_STANDARD
A custom metric of standard type; a special floating point type.
TYPE_STANDARD = 8;public static final MetricType TYPE_CURRENCY
An amount of money; a special floating point type.
TYPE_CURRENCY = 9;public static final MetricType TYPE_FEET
A length in feet; a special floating point type.
TYPE_FEET = 10;public static final MetricType TYPE_MILES
A length in miles; a special floating point type.
TYPE_MILES = 11;public static final MetricType TYPE_METERS
A length in meters; a special floating point type.
TYPE_METERS = 12;public static final MetricType TYPE_KILOMETERS
A length in kilometers; a special floating point type.
TYPE_KILOMETERS = 13;public static final MetricType UNRECOGNIZED
public static final int METRIC_TYPE_UNSPECIFIED_VALUE
Unspecified type.
METRIC_TYPE_UNSPECIFIED = 0;public static final int TYPE_INTEGER_VALUE
Integer type.
TYPE_INTEGER = 1;public static final int TYPE_FLOAT_VALUE
Floating point type.
TYPE_FLOAT = 2;public static final int TYPE_SECONDS_VALUE
A duration of seconds; a special floating point type.
TYPE_SECONDS = 4;public static final int TYPE_MILLISECONDS_VALUE
A duration in milliseconds; a special floating point type.
TYPE_MILLISECONDS = 5;public static final int TYPE_MINUTES_VALUE
A duration in minutes; a special floating point type.
TYPE_MINUTES = 6;public static final int TYPE_HOURS_VALUE
A duration in hours; a special floating point type.
TYPE_HOURS = 7;public static final int TYPE_STANDARD_VALUE
A custom metric of standard type; a special floating point type.
TYPE_STANDARD = 8;public static final int TYPE_CURRENCY_VALUE
An amount of money; a special floating point type.
TYPE_CURRENCY = 9;public static final int TYPE_FEET_VALUE
A length in feet; a special floating point type.
TYPE_FEET = 10;public static final int TYPE_MILES_VALUE
A length in miles; a special floating point type.
TYPE_MILES = 11;public static final int TYPE_METERS_VALUE
A length in meters; a special floating point type.
TYPE_METERS = 12;public static final int TYPE_KILOMETERS_VALUE
A length in kilometers; a special floating point type.
TYPE_KILOMETERS = 13;public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static MetricType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static MetricType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MetricType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MetricType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.