com.google.maps.routing.v2.Maneuver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-maps-routing-v2 Show documentation
Show all versions of proto-google-maps-routing-v2 Show documentation
Proto library for google-maps-routing
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/maps/routing/v2/maneuver.proto
// Protobuf Java Version: 3.25.5
package com.google.maps.routing.v2;
/**
*
*
*
* A set of values that specify the navigation action to take for the current
* step (for example, turn left, merge, or straight).
*
*
* Protobuf enum {@code google.maps.routing.v2.Maneuver}
*/
public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* Not used.
*
*
* MANEUVER_UNSPECIFIED = 0;
*/
MANEUVER_UNSPECIFIED(0),
/**
*
*
*
* Turn slightly to the left.
*
*
* TURN_SLIGHT_LEFT = 1;
*/
TURN_SLIGHT_LEFT(1),
/**
*
*
*
* Turn sharply to the left.
*
*
* TURN_SHARP_LEFT = 2;
*/
TURN_SHARP_LEFT(2),
/**
*
*
*
* Make a left u-turn.
*
*
* UTURN_LEFT = 3;
*/
UTURN_LEFT(3),
/**
*
*
*
* Turn left.
*
*
* TURN_LEFT = 4;
*/
TURN_LEFT(4),
/**
*
*
*
* Turn slightly to the right.
*
*
* TURN_SLIGHT_RIGHT = 5;
*/
TURN_SLIGHT_RIGHT(5),
/**
*
*
*
* Turn sharply to the right.
*
*
* TURN_SHARP_RIGHT = 6;
*/
TURN_SHARP_RIGHT(6),
/**
*
*
*
* Make a right u-turn.
*
*
* UTURN_RIGHT = 7;
*/
UTURN_RIGHT(7),
/**
*
*
*
* Turn right.
*
*
* TURN_RIGHT = 8;
*/
TURN_RIGHT(8),
/**
*
*
*
* Go straight.
*
*
* STRAIGHT = 9;
*/
STRAIGHT(9),
/**
*
*
*
* Take the left ramp.
*
*
* RAMP_LEFT = 10;
*/
RAMP_LEFT(10),
/**
*
*
*
* Take the right ramp.
*
*
* RAMP_RIGHT = 11;
*/
RAMP_RIGHT(11),
/**
*
*
*
* Merge into traffic.
*
*
* MERGE = 12;
*/
MERGE(12),
/**
*
*
*
* Take the left fork.
*
*
* FORK_LEFT = 13;
*/
FORK_LEFT(13),
/**
*
*
*
* Take the right fork.
*
*
* FORK_RIGHT = 14;
*/
FORK_RIGHT(14),
/**
*
*
*
* Take the ferry.
*
*
* FERRY = 15;
*/
FERRY(15),
/**
*
*
*
* Take the train leading onto the ferry.
*
*
* FERRY_TRAIN = 16;
*/
FERRY_TRAIN(16),
/**
*
*
*
* Turn left at the roundabout.
*
*
* ROUNDABOUT_LEFT = 17;
*/
ROUNDABOUT_LEFT(17),
/**
*
*
*
* Turn right at the roundabout.
*
*
* ROUNDABOUT_RIGHT = 18;
*/
ROUNDABOUT_RIGHT(18),
/**
*
*
*
* Initial maneuver.
*
*
* DEPART = 19;
*/
DEPART(19),
/**
*
*
*
* Used to indicate a street name change.
*
*
* NAME_CHANGE = 20;
*/
NAME_CHANGE(20),
UNRECOGNIZED(-1),
;
/**
*
*
*
* Not used.
*
*
* MANEUVER_UNSPECIFIED = 0;
*/
public static final int MANEUVER_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Turn slightly to the left.
*
*
* TURN_SLIGHT_LEFT = 1;
*/
public static final int TURN_SLIGHT_LEFT_VALUE = 1;
/**
*
*
*
* Turn sharply to the left.
*
*
* TURN_SHARP_LEFT = 2;
*/
public static final int TURN_SHARP_LEFT_VALUE = 2;
/**
*
*
*
* Make a left u-turn.
*
*
* UTURN_LEFT = 3;
*/
public static final int UTURN_LEFT_VALUE = 3;
/**
*
*
*
* Turn left.
*
*
* TURN_LEFT = 4;
*/
public static final int TURN_LEFT_VALUE = 4;
/**
*
*
*
* Turn slightly to the right.
*
*
* TURN_SLIGHT_RIGHT = 5;
*/
public static final int TURN_SLIGHT_RIGHT_VALUE = 5;
/**
*
*
*
* Turn sharply to the right.
*
*
* TURN_SHARP_RIGHT = 6;
*/
public static final int TURN_SHARP_RIGHT_VALUE = 6;
/**
*
*
*
* Make a right u-turn.
*
*
* UTURN_RIGHT = 7;
*/
public static final int UTURN_RIGHT_VALUE = 7;
/**
*
*
*
* Turn right.
*
*
* TURN_RIGHT = 8;
*/
public static final int TURN_RIGHT_VALUE = 8;
/**
*
*
*
* Go straight.
*
*
* STRAIGHT = 9;
*/
public static final int STRAIGHT_VALUE = 9;
/**
*
*
*
* Take the left ramp.
*
*
* RAMP_LEFT = 10;
*/
public static final int RAMP_LEFT_VALUE = 10;
/**
*
*
*
* Take the right ramp.
*
*
* RAMP_RIGHT = 11;
*/
public static final int RAMP_RIGHT_VALUE = 11;
/**
*
*
*
* Merge into traffic.
*
*
* MERGE = 12;
*/
public static final int MERGE_VALUE = 12;
/**
*
*
*
* Take the left fork.
*
*
* FORK_LEFT = 13;
*/
public static final int FORK_LEFT_VALUE = 13;
/**
*
*
*
* Take the right fork.
*
*
* FORK_RIGHT = 14;
*/
public static final int FORK_RIGHT_VALUE = 14;
/**
*
*
*
* Take the ferry.
*
*
* FERRY = 15;
*/
public static final int FERRY_VALUE = 15;
/**
*
*
*
* Take the train leading onto the ferry.
*
*
* FERRY_TRAIN = 16;
*/
public static final int FERRY_TRAIN_VALUE = 16;
/**
*
*
*
* Turn left at the roundabout.
*
*
* ROUNDABOUT_LEFT = 17;
*/
public static final int ROUNDABOUT_LEFT_VALUE = 17;
/**
*
*
*
* Turn right at the roundabout.
*
*
* ROUNDABOUT_RIGHT = 18;
*/
public static final int ROUNDABOUT_RIGHT_VALUE = 18;
/**
*
*
*
* Initial maneuver.
*
*
* DEPART = 19;
*/
public static final int DEPART_VALUE = 19;
/**
*
*
*
* Used to indicate a street name change.
*
*
* NAME_CHANGE = 20;
*/
public static final int NAME_CHANGE_VALUE = 20;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Maneuver valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Maneuver forNumber(int value) {
switch (value) {
case 0:
return MANEUVER_UNSPECIFIED;
case 1:
return TURN_SLIGHT_LEFT;
case 2:
return TURN_SHARP_LEFT;
case 3:
return UTURN_LEFT;
case 4:
return TURN_LEFT;
case 5:
return TURN_SLIGHT_RIGHT;
case 6:
return TURN_SHARP_RIGHT;
case 7:
return UTURN_RIGHT;
case 8:
return TURN_RIGHT;
case 9:
return STRAIGHT;
case 10:
return RAMP_LEFT;
case 11:
return RAMP_RIGHT;
case 12:
return MERGE;
case 13:
return FORK_LEFT;
case 14:
return FORK_RIGHT;
case 15:
return FERRY;
case 16:
return FERRY_TRAIN;
case 17:
return ROUNDABOUT_LEFT;
case 18:
return ROUNDABOUT_RIGHT;
case 19:
return DEPART;
case 20:
return NAME_CHANGE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Maneuver findValueByNumber(int number) {
return Maneuver.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.maps.routing.v2.ManeuverProto.getDescriptor().getEnumTypes().get(0);
}
private static final Maneuver[] VALUES = values();
public static Maneuver valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Maneuver(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.maps.routing.v2.Maneuver)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy