Package com.google.maps.routing.v2
Enum TransitPreferences.TransitRoutingPreference
- java.lang.Object
-
- java.lang.Enum<TransitPreferences.TransitRoutingPreference>
-
- com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<TransitPreferences.TransitRoutingPreference>
- Enclosing class:
- TransitPreferences
public static enum TransitPreferences.TransitRoutingPreference extends Enum<TransitPreferences.TransitRoutingPreference> implements com.google.protobuf.ProtocolMessageEnum
Specifies routing preferences for transit routes.
Protobuf enumgoogle.maps.routing.v2.TransitPreferences.TransitRoutingPreference
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FEWER_TRANSFERS
Indicates that the calculated route should prefer a limited number of transfers.LESS_WALKING
Indicates that the calculated route should prefer limited amounts of walking.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED
No preference specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
FEWER_TRANSFERS_VALUE
Indicates that the calculated route should prefer a limited number of transfers.static int
LESS_WALKING_VALUE
Indicates that the calculated route should prefer limited amounts of walking.static int
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE
No preference specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TransitPreferences.TransitRoutingPreference
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<TransitPreferences.TransitRoutingPreference>
internalGetValueMap()
static TransitPreferences.TransitRoutingPreference
valueOf(int value)
Deprecated.static TransitPreferences.TransitRoutingPreference
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static TransitPreferences.TransitRoutingPreference
valueOf(String name)
Returns the enum constant of this type with the specified name.static TransitPreferences.TransitRoutingPreference[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED
public static final TransitPreferences.TransitRoutingPreference TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED
No preference specified.
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0;
-
LESS_WALKING
public static final TransitPreferences.TransitRoutingPreference LESS_WALKING
Indicates that the calculated route should prefer limited amounts of walking.
LESS_WALKING = 1;
-
FEWER_TRANSFERS
public static final TransitPreferences.TransitRoutingPreference FEWER_TRANSFERS
Indicates that the calculated route should prefer a limited number of transfers.
FEWER_TRANSFERS = 2;
-
UNRECOGNIZED
public static final TransitPreferences.TransitRoutingPreference UNRECOGNIZED
-
-
Field Detail
-
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE
public static final int TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE
No preference specified.
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
LESS_WALKING_VALUE
public static final int LESS_WALKING_VALUE
Indicates that the calculated route should prefer limited amounts of walking.
LESS_WALKING = 1;
- See Also:
- Constant Field Values
-
FEWER_TRANSFERS_VALUE
public static final int FEWER_TRANSFERS_VALUE
Indicates that the calculated route should prefer a limited number of transfers.
FEWER_TRANSFERS = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TransitPreferences.TransitRoutingPreference[] 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 (TransitPreferences.TransitRoutingPreference c : TransitPreferences.TransitRoutingPreference.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransitPreferences.TransitRoutingPreference 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static TransitPreferences.TransitRoutingPreference 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 TransitPreferences.TransitRoutingPreference 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<TransitPreferences.TransitRoutingPreference> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TransitPreferences.TransitRoutingPreference 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
-
-