public enum RouteMatrixElementCondition extends Enum<RouteMatrixElementCondition> implements com.google.protobuf.ProtocolMessageEnum
The condition of the route being returned.Protobuf enum
google.maps.routing.v2.RouteMatrixElementCondition| Enum Constant and Description |
|---|
ROUTE_EXISTS
A route was found, and the corresponding information was filled out for the
element.
|
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED
Only used when the `status` of the element is not OK.
|
ROUTE_NOT_FOUND
No route could be found.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ROUTE_EXISTS_VALUE
A route was found, and the corresponding information was filled out for the
element.
|
static int |
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED_VALUE
Only used when the `status` of the element is not OK.
|
static int |
ROUTE_NOT_FOUND_VALUE
No route could be found.
|
| Modifier and Type | Method and Description |
|---|---|
static RouteMatrixElementCondition |
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<RouteMatrixElementCondition> |
internalGetValueMap() |
static RouteMatrixElementCondition |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RouteMatrixElementCondition |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RouteMatrixElementCondition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RouteMatrixElementCondition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RouteMatrixElementCondition ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED
Only used when the `status` of the element is not OK.
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0;public static final RouteMatrixElementCondition ROUTE_EXISTS
A route was found, and the corresponding information was filled out for the element.
ROUTE_EXISTS = 1;public static final RouteMatrixElementCondition ROUTE_NOT_FOUND
No route could be found. Fields containing route information, such as `distance_meters` or `duration`, will not be filled out in the element.
ROUTE_NOT_FOUND = 2;public static final RouteMatrixElementCondition UNRECOGNIZED
public static final int ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED_VALUE
Only used when the `status` of the element is not OK.
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0;public static final int ROUTE_EXISTS_VALUE
A route was found, and the corresponding information was filled out for the element.
ROUTE_EXISTS = 1;public static final int ROUTE_NOT_FOUND_VALUE
No route could be found. Fields containing route information, such as `distance_meters` or `duration`, will not be filled out in the element.
ROUTE_NOT_FOUND = 2;public static RouteMatrixElementCondition[] values()
for (RouteMatrixElementCondition c : RouteMatrixElementCondition.values()) System.out.println(c);
public static RouteMatrixElementCondition 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 RouteMatrixElementCondition valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RouteMatrixElementCondition forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RouteMatrixElementCondition> 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 RouteMatrixElementCondition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.