Package com.google.maps.routing.v2
Enum RouteLabel
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RouteLabel>
@Generated
public enum RouteLabel
extends Enum<RouteLabel>
implements com.google.protobuf.ProtocolMessageEnum
Labels for the [`Route`][google.maps.routing.v2.Route] that are useful to identify specific properties of the route to compare against others.Protobuf enum
google.maps.routing.v2.RouteLabel-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default "best" route returned for the route computation.An alternative to the default "best" route.Fuel efficient route.Default - not used.Shorter travel distance route. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn alternative to the default "best" route.static final intThe default "best" route returned for the route computation.static final intFuel efficient route.static final intDefault - not used.static final intShorter travel distance route. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteLabelforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<RouteLabel>static RouteLabelvalueOf(int value) Deprecated.static RouteLabelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RouteLabelReturns the enum constant of this type with the specified name.static RouteLabel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ROUTE_LABEL_UNSPECIFIED
Default - not used.
ROUTE_LABEL_UNSPECIFIED = 0; -
DEFAULT_ROUTE
The default "best" route returned for the route computation.
DEFAULT_ROUTE = 1; -
DEFAULT_ROUTE_ALTERNATE
An alternative to the default "best" route. Routes like this will be returned when [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes] is specified.
DEFAULT_ROUTE_ALTERNATE = 2; -
FUEL_EFFICIENT
Fuel efficient route. Routes labeled with this value are determined to be optimized for Eco parameters such as fuel consumption.
FUEL_EFFICIENT = 3; -
SHORTER_DISTANCE
Shorter travel distance route. This is an experimental feature.
SHORTER_DISTANCE = 4; -
UNRECOGNIZED
-
-
Field Details
-
ROUTE_LABEL_UNSPECIFIED_VALUE
public static final int ROUTE_LABEL_UNSPECIFIED_VALUEDefault - not used.
ROUTE_LABEL_UNSPECIFIED = 0;- See Also:
-
DEFAULT_ROUTE_VALUE
public static final int DEFAULT_ROUTE_VALUEThe default "best" route returned for the route computation.
DEFAULT_ROUTE = 1;- See Also:
-
DEFAULT_ROUTE_ALTERNATE_VALUE
public static final int DEFAULT_ROUTE_ALTERNATE_VALUEAn alternative to the default "best" route. Routes like this will be returned when [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes] is specified.
DEFAULT_ROUTE_ALTERNATE = 2;- See Also:
-
FUEL_EFFICIENT_VALUE
public static final int FUEL_EFFICIENT_VALUEFuel efficient route. Routes labeled with this value are determined to be optimized for Eco parameters such as fuel consumption.
FUEL_EFFICIENT = 3;- See Also:
-
SHORTER_DISTANCE_VALUE
public static final int SHORTER_DISTANCE_VALUEShorter travel distance route. This is an experimental feature.
SHORTER_DISTANCE = 4;- 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
-