Package com.google.maps.routing.v2
Enum RouteLabel
- java.lang.Object
-
- java.lang.Enum<RouteLabel>
-
- com.google.maps.routing.v2.RouteLabel
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<RouteLabel>
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 enumgoogle.maps.routing.v2.RouteLabel
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static RouteLabel
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
ROUTE_LABEL_UNSPECIFIED
public static final RouteLabel ROUTE_LABEL_UNSPECIFIED
Default - not used.
ROUTE_LABEL_UNSPECIFIED = 0;
-
DEFAULT_ROUTE
public static final RouteLabel DEFAULT_ROUTE
The default "best" route returned for the route computation.
DEFAULT_ROUTE = 1;
-
DEFAULT_ROUTE_ALTERNATE
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;
-
FUEL_EFFICIENT
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;
-
UNRECOGNIZED
public static final RouteLabel UNRECOGNIZED
-
-
Field Detail
-
ROUTE_LABEL_UNSPECIFIED_VALUE
public static final int ROUTE_LABEL_UNSPECIFIED_VALUE
Default - not used.
ROUTE_LABEL_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
DEFAULT_ROUTE_VALUE
public static final int DEFAULT_ROUTE_VALUE
The default "best" route returned for the route computation.
DEFAULT_ROUTE = 1;
- See Also:
- Constant Field Values
-
DEFAULT_ROUTE_ALTERNATE_VALUE
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;
- See Also:
- Constant Field Values
-
FUEL_EFFICIENT_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RouteLabel[] 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 (RouteLabel c : RouteLabel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RouteLabel 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 RouteLabel 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 RouteLabel 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<RouteLabel> 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 RouteLabel 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
-
-