Package com.google.analytics.data.v1beta
Enum MetricType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<MetricType>
@Generated
public enum MetricType
extends Enum<MetricType>
implements com.google.protobuf.ProtocolMessageEnum
A metric's value type.Protobuf enum
google.analytics.data.v1beta.MetricType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified type.An amount of money; a special floating point type.A length in feet; a special floating point type.Floating point type.A duration in hours; a special floating point type.Integer type.A length in kilometers; a special floating point type.A length in meters; a special floating point type.A length in miles; a special floating point type.A duration in milliseconds; a special floating point type.A duration in minutes; a special floating point type.A duration of seconds; a special floating point type.A custom metric of standard type; a special floating point type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified type.static final intAn amount of money; a special floating point type.static final intA length in feet; a special floating point type.static final intFloating point type.static final intA duration in hours; a special floating point type.static final intInteger type.static final intA length in kilometers; a special floating point type.static final intA length in meters; a special floating point type.static final intA length in miles; a special floating point type.static final intA duration in milliseconds; a special floating point type.static final intA duration in minutes; a special floating point type.static final intA duration of seconds; a special floating point type.static final intA custom metric of standard type; a special floating point type. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MetricType>static MetricTypevalueOf(int value) Deprecated.static MetricTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static MetricTypeReturns 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.
-
Enum Constant Details
-
METRIC_TYPE_UNSPECIFIED
Unspecified type.
METRIC_TYPE_UNSPECIFIED = 0; -
TYPE_INTEGER
Integer type.
TYPE_INTEGER = 1; -
TYPE_FLOAT
Floating point type.
TYPE_FLOAT = 2; -
TYPE_SECONDS
A duration of seconds; a special floating point type.
TYPE_SECONDS = 4; -
TYPE_MILLISECONDS
A duration in milliseconds; a special floating point type.
TYPE_MILLISECONDS = 5; -
TYPE_MINUTES
A duration in minutes; a special floating point type.
TYPE_MINUTES = 6; -
TYPE_HOURS
A duration in hours; a special floating point type.
TYPE_HOURS = 7; -
TYPE_STANDARD
A custom metric of standard type; a special floating point type.
TYPE_STANDARD = 8; -
TYPE_CURRENCY
An amount of money; a special floating point type.
TYPE_CURRENCY = 9; -
TYPE_FEET
A length in feet; a special floating point type.
TYPE_FEET = 10; -
TYPE_MILES
A length in miles; a special floating point type.
TYPE_MILES = 11; -
TYPE_METERS
A length in meters; a special floating point type.
TYPE_METERS = 12; -
TYPE_KILOMETERS
A length in kilometers; a special floating point type.
TYPE_KILOMETERS = 13; -
UNRECOGNIZED
-
-
Field Details
-
METRIC_TYPE_UNSPECIFIED_VALUE
public static final int METRIC_TYPE_UNSPECIFIED_VALUEUnspecified type.
METRIC_TYPE_UNSPECIFIED = 0;- See Also:
-
TYPE_INTEGER_VALUE
public static final int TYPE_INTEGER_VALUEInteger type.
TYPE_INTEGER = 1;- See Also:
-
TYPE_FLOAT_VALUE
public static final int TYPE_FLOAT_VALUEFloating point type.
TYPE_FLOAT = 2;- See Also:
-
TYPE_SECONDS_VALUE
public static final int TYPE_SECONDS_VALUEA duration of seconds; a special floating point type.
TYPE_SECONDS = 4;- See Also:
-
TYPE_MILLISECONDS_VALUE
public static final int TYPE_MILLISECONDS_VALUEA duration in milliseconds; a special floating point type.
TYPE_MILLISECONDS = 5;- See Also:
-
TYPE_MINUTES_VALUE
public static final int TYPE_MINUTES_VALUEA duration in minutes; a special floating point type.
TYPE_MINUTES = 6;- See Also:
-
TYPE_HOURS_VALUE
public static final int TYPE_HOURS_VALUEA duration in hours; a special floating point type.
TYPE_HOURS = 7;- See Also:
-
TYPE_STANDARD_VALUE
public static final int TYPE_STANDARD_VALUEA custom metric of standard type; a special floating point type.
TYPE_STANDARD = 8;- See Also:
-
TYPE_CURRENCY_VALUE
public static final int TYPE_CURRENCY_VALUEAn amount of money; a special floating point type.
TYPE_CURRENCY = 9;- See Also:
-
TYPE_FEET_VALUE
public static final int TYPE_FEET_VALUEA length in feet; a special floating point type.
TYPE_FEET = 10;- See Also:
-
TYPE_MILES_VALUE
public static final int TYPE_MILES_VALUEA length in miles; a special floating point type.
TYPE_MILES = 11;- See Also:
-
TYPE_METERS_VALUE
public static final int TYPE_METERS_VALUEA length in meters; a special floating point type.
TYPE_METERS = 12;- See Also:
-
TYPE_KILOMETERS_VALUE
public static final int TYPE_KILOMETERS_VALUEA length in kilometers; a special floating point type.
TYPE_KILOMETERS = 13;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-