Package com.google.maps.routing.v2
Enum SpeedReadingInterval.Speed
- java.lang.Object
-
- java.lang.Enum<SpeedReadingInterval.Speed>
-
- com.google.maps.routing.v2.SpeedReadingInterval.Speed
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SpeedReadingInterval.Speed>
- Enclosing class:
- SpeedReadingInterval
public static enum SpeedReadingInterval.Speed extends Enum<SpeedReadingInterval.Speed> implements com.google.protobuf.ProtocolMessageEnum
The classification of polyline speed based on traffic data.
Protobuf enumgoogle.maps.routing.v2.SpeedReadingInterval.Speed
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NORMALNormal speed, no slowdown is detected.SLOWSlowdown detected, but no traffic jam formed.SPEED_UNSPECIFIEDDefault value.TRAFFIC_JAMTraffic jam detected.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intNORMAL_VALUENormal speed, no slowdown is detected.static intSLOW_VALUESlowdown detected, but no traffic jam formed.static intSPEED_UNSPECIFIED_VALUEDefault value.static intTRAFFIC_JAM_VALUETraffic jam detected.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SpeedReadingInterval.SpeedforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SpeedReadingInterval.Speed>internalGetValueMap()static SpeedReadingInterval.SpeedvalueOf(int value)Deprecated.static SpeedReadingInterval.SpeedvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static SpeedReadingInterval.SpeedvalueOf(String name)Returns the enum constant of this type with the specified name.static SpeedReadingInterval.Speed[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPEED_UNSPECIFIED
public static final SpeedReadingInterval.Speed SPEED_UNSPECIFIED
Default value. This value is unused.
SPEED_UNSPECIFIED = 0;
-
NORMAL
public static final SpeedReadingInterval.Speed NORMAL
Normal speed, no slowdown is detected.
NORMAL = 1;
-
SLOW
public static final SpeedReadingInterval.Speed SLOW
Slowdown detected, but no traffic jam formed.
SLOW = 2;
-
TRAFFIC_JAM
public static final SpeedReadingInterval.Speed TRAFFIC_JAM
Traffic jam detected.
TRAFFIC_JAM = 3;
-
UNRECOGNIZED
public static final SpeedReadingInterval.Speed UNRECOGNIZED
-
-
Field Detail
-
SPEED_UNSPECIFIED_VALUE
public static final int SPEED_UNSPECIFIED_VALUE
Default value. This value is unused.
SPEED_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
NORMAL_VALUE
public static final int NORMAL_VALUE
Normal speed, no slowdown is detected.
NORMAL = 1;- See Also:
- Constant Field Values
-
SLOW_VALUE
public static final int SLOW_VALUE
Slowdown detected, but no traffic jam formed.
SLOW = 2;- See Also:
- Constant Field Values
-
TRAFFIC_JAM_VALUE
public static final int TRAFFIC_JAM_VALUE
Traffic jam detected.
TRAFFIC_JAM = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SpeedReadingInterval.Speed[] 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 (SpeedReadingInterval.Speed c : SpeedReadingInterval.Speed.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpeedReadingInterval.Speed 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 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 public static SpeedReadingInterval.Speed valueOf(int value)
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
public static SpeedReadingInterval.Speed forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SpeedReadingInterval.Speed> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static SpeedReadingInterval.Speed valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-