Package com.google.maps.routing.v2
Enum Maneuver
- java.lang.Object
-
- java.lang.Enum<Maneuver>
-
- com.google.maps.routing.v2.Maneuver
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Maneuver>
public enum Maneuver extends Enum<Maneuver> implements com.google.protobuf.ProtocolMessageEnum
A set of values that specify the navigation action to take for the current step (e.g., turn left, merge, straight, etc.).
Protobuf enumgoogle.maps.routing.v2.Maneuver
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEPART
Initial maneuver.FERRY
Take the ferry.FERRY_TRAIN
Take the train leading onto the ferry.FORK_LEFT
Take the left fork.FORK_RIGHT
Take the right fork.MANEUVER_UNSPECIFIED
Not used.MERGE
Merge into traffic.NAME_CHANGE
Used to indicate a street name change.RAMP_LEFT
Take the left ramp.RAMP_RIGHT
Take the right ramp.ROUNDABOUT_LEFT
Turn left at the roundabout.ROUNDABOUT_RIGHT
Turn right at the roundabout.STRAIGHT
Go straight.TURN_LEFT
Turn left.TURN_RIGHT
Turn right.TURN_SHARP_LEFT
Turn sharply to the left.TURN_SHARP_RIGHT
Turn sharply to the right.TURN_SLIGHT_LEFT
Turn slightly to the left.TURN_SLIGHT_RIGHT
Turn slightly to the right.UNRECOGNIZED
UTURN_LEFT
Make a left u-turn.UTURN_RIGHT
Make a right u-turn.
-
Field Summary
Fields Modifier and Type Field Description static int
DEPART_VALUE
Initial maneuver.static int
FERRY_TRAIN_VALUE
Take the train leading onto the ferry.static int
FERRY_VALUE
Take the ferry.static int
FORK_LEFT_VALUE
Take the left fork.static int
FORK_RIGHT_VALUE
Take the right fork.static int
MANEUVER_UNSPECIFIED_VALUE
Not used.static int
MERGE_VALUE
Merge into traffic.static int
NAME_CHANGE_VALUE
Used to indicate a street name change.static int
RAMP_LEFT_VALUE
Take the left ramp.static int
RAMP_RIGHT_VALUE
Take the right ramp.static int
ROUNDABOUT_LEFT_VALUE
Turn left at the roundabout.static int
ROUNDABOUT_RIGHT_VALUE
Turn right at the roundabout.static int
STRAIGHT_VALUE
Go straight.static int
TURN_LEFT_VALUE
Turn left.static int
TURN_RIGHT_VALUE
Turn right.static int
TURN_SHARP_LEFT_VALUE
Turn sharply to the left.static int
TURN_SHARP_RIGHT_VALUE
Turn sharply to the right.static int
TURN_SLIGHT_LEFT_VALUE
Turn slightly to the left.static int
TURN_SLIGHT_RIGHT_VALUE
Turn slightly to the right.static int
UTURN_LEFT_VALUE
Make a left u-turn.static int
UTURN_RIGHT_VALUE
Make a right u-turn.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Maneuver
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<Maneuver>
internalGetValueMap()
static Maneuver
valueOf(int value)
Deprecated.static Maneuver
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Maneuver
valueOf(String name)
Returns the enum constant of this type with the specified name.static Maneuver[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANEUVER_UNSPECIFIED
public static final Maneuver MANEUVER_UNSPECIFIED
Not used.
MANEUVER_UNSPECIFIED = 0;
-
TURN_SLIGHT_LEFT
public static final Maneuver TURN_SLIGHT_LEFT
Turn slightly to the left.
TURN_SLIGHT_LEFT = 1;
-
TURN_SHARP_LEFT
public static final Maneuver TURN_SHARP_LEFT
Turn sharply to the left.
TURN_SHARP_LEFT = 2;
-
UTURN_LEFT
public static final Maneuver UTURN_LEFT
Make a left u-turn.
UTURN_LEFT = 3;
-
TURN_LEFT
public static final Maneuver TURN_LEFT
Turn left.
TURN_LEFT = 4;
-
TURN_SLIGHT_RIGHT
public static final Maneuver TURN_SLIGHT_RIGHT
Turn slightly to the right.
TURN_SLIGHT_RIGHT = 5;
-
TURN_SHARP_RIGHT
public static final Maneuver TURN_SHARP_RIGHT
Turn sharply to the right.
TURN_SHARP_RIGHT = 6;
-
UTURN_RIGHT
public static final Maneuver UTURN_RIGHT
Make a right u-turn.
UTURN_RIGHT = 7;
-
TURN_RIGHT
public static final Maneuver TURN_RIGHT
Turn right.
TURN_RIGHT = 8;
-
STRAIGHT
public static final Maneuver STRAIGHT
Go straight.
STRAIGHT = 9;
-
RAMP_LEFT
public static final Maneuver RAMP_LEFT
Take the left ramp.
RAMP_LEFT = 10;
-
RAMP_RIGHT
public static final Maneuver RAMP_RIGHT
Take the right ramp.
RAMP_RIGHT = 11;
-
MERGE
public static final Maneuver MERGE
Merge into traffic.
MERGE = 12;
-
FORK_LEFT
public static final Maneuver FORK_LEFT
Take the left fork.
FORK_LEFT = 13;
-
FORK_RIGHT
public static final Maneuver FORK_RIGHT
Take the right fork.
FORK_RIGHT = 14;
-
FERRY
public static final Maneuver FERRY
Take the ferry.
FERRY = 15;
-
FERRY_TRAIN
public static final Maneuver FERRY_TRAIN
Take the train leading onto the ferry.
FERRY_TRAIN = 16;
-
ROUNDABOUT_LEFT
public static final Maneuver ROUNDABOUT_LEFT
Turn left at the roundabout.
ROUNDABOUT_LEFT = 17;
-
ROUNDABOUT_RIGHT
public static final Maneuver ROUNDABOUT_RIGHT
Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18;
-
DEPART
public static final Maneuver DEPART
Initial maneuver.
DEPART = 19;
-
NAME_CHANGE
public static final Maneuver NAME_CHANGE
Used to indicate a street name change.
NAME_CHANGE = 20;
-
UNRECOGNIZED
public static final Maneuver UNRECOGNIZED
-
-
Field Detail
-
MANEUVER_UNSPECIFIED_VALUE
public static final int MANEUVER_UNSPECIFIED_VALUE
Not used.
MANEUVER_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
TURN_SLIGHT_LEFT_VALUE
public static final int TURN_SLIGHT_LEFT_VALUE
Turn slightly to the left.
TURN_SLIGHT_LEFT = 1;
- See Also:
- Constant Field Values
-
TURN_SHARP_LEFT_VALUE
public static final int TURN_SHARP_LEFT_VALUE
Turn sharply to the left.
TURN_SHARP_LEFT = 2;
- See Also:
- Constant Field Values
-
UTURN_LEFT_VALUE
public static final int UTURN_LEFT_VALUE
Make a left u-turn.
UTURN_LEFT = 3;
- See Also:
- Constant Field Values
-
TURN_LEFT_VALUE
public static final int TURN_LEFT_VALUE
Turn left.
TURN_LEFT = 4;
- See Also:
- Constant Field Values
-
TURN_SLIGHT_RIGHT_VALUE
public static final int TURN_SLIGHT_RIGHT_VALUE
Turn slightly to the right.
TURN_SLIGHT_RIGHT = 5;
- See Also:
- Constant Field Values
-
TURN_SHARP_RIGHT_VALUE
public static final int TURN_SHARP_RIGHT_VALUE
Turn sharply to the right.
TURN_SHARP_RIGHT = 6;
- See Also:
- Constant Field Values
-
UTURN_RIGHT_VALUE
public static final int UTURN_RIGHT_VALUE
Make a right u-turn.
UTURN_RIGHT = 7;
- See Also:
- Constant Field Values
-
TURN_RIGHT_VALUE
public static final int TURN_RIGHT_VALUE
Turn right.
TURN_RIGHT = 8;
- See Also:
- Constant Field Values
-
STRAIGHT_VALUE
public static final int STRAIGHT_VALUE
Go straight.
STRAIGHT = 9;
- See Also:
- Constant Field Values
-
RAMP_LEFT_VALUE
public static final int RAMP_LEFT_VALUE
Take the left ramp.
RAMP_LEFT = 10;
- See Also:
- Constant Field Values
-
RAMP_RIGHT_VALUE
public static final int RAMP_RIGHT_VALUE
Take the right ramp.
RAMP_RIGHT = 11;
- See Also:
- Constant Field Values
-
MERGE_VALUE
public static final int MERGE_VALUE
Merge into traffic.
MERGE = 12;
- See Also:
- Constant Field Values
-
FORK_LEFT_VALUE
public static final int FORK_LEFT_VALUE
Take the left fork.
FORK_LEFT = 13;
- See Also:
- Constant Field Values
-
FORK_RIGHT_VALUE
public static final int FORK_RIGHT_VALUE
Take the right fork.
FORK_RIGHT = 14;
- See Also:
- Constant Field Values
-
FERRY_VALUE
public static final int FERRY_VALUE
Take the ferry.
FERRY = 15;
- See Also:
- Constant Field Values
-
FERRY_TRAIN_VALUE
public static final int FERRY_TRAIN_VALUE
Take the train leading onto the ferry.
FERRY_TRAIN = 16;
- See Also:
- Constant Field Values
-
ROUNDABOUT_LEFT_VALUE
public static final int ROUNDABOUT_LEFT_VALUE
Turn left at the roundabout.
ROUNDABOUT_LEFT = 17;
- See Also:
- Constant Field Values
-
ROUNDABOUT_RIGHT_VALUE
public static final int ROUNDABOUT_RIGHT_VALUE
Turn right at the roundabout.
ROUNDABOUT_RIGHT = 18;
- See Also:
- Constant Field Values
-
DEPART_VALUE
public static final int DEPART_VALUE
Initial maneuver.
DEPART = 19;
- See Also:
- Constant Field Values
-
NAME_CHANGE_VALUE
public static final int NAME_CHANGE_VALUE
Used to indicate a street name change.
NAME_CHANGE = 20;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Maneuver[] 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 (Maneuver c : Maneuver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Maneuver 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 Maneuver 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 Maneuver 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<Maneuver> 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 Maneuver 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
-
-