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_TRANSFERSIndicates that the calculated route should prefer a limited number of transfers.LESS_WALKINGIndicates that the calculated route should prefer limited amounts of walking.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIEDNo preference specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFEWER_TRANSFERS_VALUEIndicates that the calculated route should prefer a limited number of transfers.static intLESS_WALKING_VALUEIndicates that the calculated route should prefer limited amounts of walking.static intTRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUENo preference specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TransitPreferences.TransitRoutingPreferenceforNumber(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<TransitPreferences.TransitRoutingPreference>internalGetValueMap()static TransitPreferences.TransitRoutingPreferencevalueOf(int value)Deprecated.static TransitPreferences.TransitRoutingPreferencevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static TransitPreferences.TransitRoutingPreferencevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
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 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
-
-