public static enum TransitPreferences.TransitRoutingPreference extends Enum<TransitPreferences.TransitRoutingPreference> implements com.google.protobuf.ProtocolMessageEnum
Specifies routing preferences for transit routes.Protobuf enum
google.maps.routing.v2.TransitPreferences.TransitRoutingPreference| Enum Constant and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TransitPreferences.TransitRoutingPreference |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final TransitPreferences.TransitRoutingPreference TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED
No preference specified.
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0;public static final TransitPreferences.TransitRoutingPreference LESS_WALKING
Indicates that the calculated route should prefer limited amounts of walking.
LESS_WALKING = 1;public static final TransitPreferences.TransitRoutingPreference FEWER_TRANSFERS
Indicates that the calculated route should prefer a limited number of transfers.
FEWER_TRANSFERS = 2;public static final TransitPreferences.TransitRoutingPreference UNRECOGNIZED
public static final int TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE
No preference specified.
TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0;public static final int LESS_WALKING_VALUE
Indicates that the calculated route should prefer limited amounts of walking.
LESS_WALKING = 1;public static final int FEWER_TRANSFERS_VALUE
Indicates that the calculated route should prefer a limited number of transfers.
FEWER_TRANSFERS = 2;public static TransitPreferences.TransitRoutingPreference[] values()
for (TransitPreferences.TransitRoutingPreference c : TransitPreferences.TransitRoutingPreference.values()) System.out.println(c);
public static TransitPreferences.TransitRoutingPreference 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 TransitPreferences.TransitRoutingPreference valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TransitPreferences.TransitRoutingPreference forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TransitPreferences.TransitRoutingPreference> 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 TransitPreferences.TransitRoutingPreference valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.