public enum FallbackReason extends Enum<FallbackReason> implements com.google.protobuf.ProtocolMessageEnum
Reasons for using fallback response.Protobuf enum
google.maps.routing.v2.FallbackReason| Enum Constant and Description |
|---|
FALLBACK_REASON_UNSPECIFIED
No fallback reason specified.
|
LATENCY_EXCEEDED
We were not able to finish the calculation with your preferred routing mode
on time, but we were able to return a result calculated by an alternative
mode.
|
SERVER_ERROR
A server error happened while calculating routes with your preferred
routing mode, but we were able to return a result calculated by an
alternative mode.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
FALLBACK_REASON_UNSPECIFIED_VALUE
No fallback reason specified.
|
static int |
LATENCY_EXCEEDED_VALUE
We were not able to finish the calculation with your preferred routing mode
on time, but we were able to return a result calculated by an alternative
mode.
|
static int |
SERVER_ERROR_VALUE
A server error happened while calculating routes with your preferred
routing mode, but we were able to return a result calculated by an
alternative mode.
|
| Modifier and Type | Method and Description |
|---|---|
static FallbackReason |
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<FallbackReason> |
internalGetValueMap() |
static FallbackReason |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static FallbackReason |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FallbackReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FallbackReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FallbackReason FALLBACK_REASON_UNSPECIFIED
No fallback reason specified.
FALLBACK_REASON_UNSPECIFIED = 0;public static final FallbackReason SERVER_ERROR
A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode.
SERVER_ERROR = 1;public static final FallbackReason LATENCY_EXCEEDED
We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode.
LATENCY_EXCEEDED = 2;public static final FallbackReason UNRECOGNIZED
public static final int FALLBACK_REASON_UNSPECIFIED_VALUE
No fallback reason specified.
FALLBACK_REASON_UNSPECIFIED = 0;public static final int SERVER_ERROR_VALUE
A server error happened while calculating routes with your preferred routing mode, but we were able to return a result calculated by an alternative mode.
SERVER_ERROR = 1;public static final int LATENCY_EXCEEDED_VALUE
We were not able to finish the calculation with your preferred routing mode on time, but we were able to return a result calculated by an alternative mode.
LATENCY_EXCEEDED = 2;public static FallbackReason[] values()
for (FallbackReason c : FallbackReason.values()) System.out.println(c);
public static FallbackReason 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 FallbackReason valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static FallbackReason forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<FallbackReason> 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 FallbackReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.