Package com.google.maps.routing.v2
Enum RouteTravelMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RouteTravelMode>
@Generated
public enum RouteTravelMode
extends Enum<RouteTravelMode>
implements com.google.protobuf.ProtocolMessageEnum
A set of values used to specify the mode of travel. NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths. You must display this warning to the user for all walking, bicycling, and two-wheel routes that you display in your app.Protobuf enum
google.maps.routing.v2.RouteTravelMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTravel by bicycle.Travel by passenger car.Travel by public transit routes, where available.No travel mode specified.Two-wheeled, motorized vehicle.Travel by walking. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTravel by bicycle.static final intTravel by passenger car.static final intTravel by public transit routes, where available.static final intNo travel mode specified.static final intTwo-wheeled, motorized vehicle.static final intTravel by walking. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteTravelModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RouteTravelMode>static RouteTravelModevalueOf(int value) Deprecated.static RouteTravelModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteTravelModeReturns the enum constant of this type with the specified name.static RouteTravelMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRAVEL_MODE_UNSPECIFIED
No travel mode specified. Defaults to `DRIVE`.
TRAVEL_MODE_UNSPECIFIED = 0; -
DRIVE
Travel by passenger car.
DRIVE = 1; -
BICYCLE
Travel by bicycle.
BICYCLE = 2; -
WALK
Travel by walking.
WALK = 3; -
TWO_WHEELER
Two-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the `BICYCLE` travel mode which covers human-powered mode.
TWO_WHEELER = 4; -
TRANSIT
Travel by public transit routes, where available.
TRANSIT = 7; -
UNRECOGNIZED
-
-
Field Details
-
TRAVEL_MODE_UNSPECIFIED_VALUE
public static final int TRAVEL_MODE_UNSPECIFIED_VALUENo travel mode specified. Defaults to `DRIVE`.
TRAVEL_MODE_UNSPECIFIED = 0;- See Also:
-
DRIVE_VALUE
public static final int DRIVE_VALUETravel by passenger car.
DRIVE = 1;- See Also:
-
BICYCLE_VALUE
public static final int BICYCLE_VALUETravel by bicycle.
BICYCLE = 2;- See Also:
-
WALK_VALUE
public static final int WALK_VALUETravel by walking.
WALK = 3;- See Also:
-
TWO_WHEELER_VALUE
public static final int TWO_WHEELER_VALUETwo-wheeled, motorized vehicle. For example, motorcycle. Note that this differs from the `BICYCLE` travel mode which covers human-powered mode.
TWO_WHEELER = 4;- See Also:
-
TRANSIT_VALUE
public static final int TRANSIT_VALUETravel by public transit routes, where available.
TRANSIT = 7;- 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
-