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 and Description |
|---|
DEFAULT_ROUTE
The default "best" route returned for the route computation.
|
DEFAULT_ROUTE_ALTERNATE
An alternative to the default "best" route.
|
FUEL_EFFICIENT
Fuel efficient route.
|
ROUTE_LABEL_UNSPECIFIED
Default - not used.
|
SHORTER_DISTANCE
Shorter travel distance route.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ROUTE_ALTERNATE_VALUE
An alternative to the default "best" route.
|
static int |
DEFAULT_ROUTE_VALUE
The default "best" route returned for the route computation.
|
static int |
FUEL_EFFICIENT_VALUE
Fuel efficient route.
|
static int |
ROUTE_LABEL_UNSPECIFIED_VALUE
Default - not used.
|
static int |
SHORTER_DISTANCE_VALUE
Shorter travel distance route.
|
| Modifier and Type | Method and Description |
|---|---|
static RouteLabel |
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<RouteLabel> |
internalGetValueMap() |
static RouteLabel |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RouteLabel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RouteLabel |
valueOf(String name)
Returns 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.
|
public static final RouteLabel ROUTE_LABEL_UNSPECIFIED
Default - not used.
ROUTE_LABEL_UNSPECIFIED = 0;public static final RouteLabel DEFAULT_ROUTE
The default "best" route returned for the route computation.
DEFAULT_ROUTE = 1;public static final RouteLabel 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;public static final RouteLabel 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;public static final RouteLabel SHORTER_DISTANCE
Shorter travel distance route. This is an experimental feature.
SHORTER_DISTANCE = 4;public static final RouteLabel UNRECOGNIZED
public static final int ROUTE_LABEL_UNSPECIFIED_VALUE
Default - not used.
ROUTE_LABEL_UNSPECIFIED = 0;public static final int DEFAULT_ROUTE_VALUE
The default "best" route returned for the route computation.
DEFAULT_ROUTE = 1;public static final int DEFAULT_ROUTE_ALTERNATE_VALUE
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;public static final int FUEL_EFFICIENT_VALUE
Fuel efficient route. Routes labeled with this value are determined to be optimized for Eco parameters such as fuel consumption.
FUEL_EFFICIENT = 3;public static final int SHORTER_DISTANCE_VALUE
Shorter travel distance route. This is an experimental feature.
SHORTER_DISTANCE = 4;public static RouteLabel[] values()
for (RouteLabel c : RouteLabel.values()) System.out.println(c);
public static RouteLabel 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 RouteLabel valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RouteLabel forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RouteLabel> 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 RouteLabel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.