public static final class FallbackInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<FallbackInfo.Builder> implements FallbackInfoOrBuilder
Information related to how and why a fallback result was used. If this field is set, then it means the server used a different routing mode from your preferred mode as fallback.Protobuf type
google.maps.routing.v2.FallbackInfo| Modifier and Type | Method and Description |
|---|---|
FallbackInfo |
build() |
FallbackInfo |
buildPartial() |
FallbackInfo.Builder |
clear() |
FallbackInfo.Builder |
clearReason()
The reason why fallback response was used instead of the original response.
|
FallbackInfo.Builder |
clearRoutingMode()
Routing mode used for the response.
|
FallbackInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FallbackReason |
getReason()
The reason why fallback response was used instead of the original response.
|
int |
getReasonValue()
The reason why fallback response was used instead of the original response.
|
FallbackRoutingMode |
getRoutingMode()
Routing mode used for the response.
|
int |
getRoutingModeValue()
Routing mode used for the response.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FallbackInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FallbackInfo.Builder |
mergeFrom(FallbackInfo other) |
FallbackInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
FallbackInfo.Builder |
setReason(FallbackReason value)
The reason why fallback response was used instead of the original response.
|
FallbackInfo.Builder |
setReasonValue(int value)
The reason why fallback response was used instead of the original response.
|
FallbackInfo.Builder |
setRoutingMode(FallbackRoutingMode value)
Routing mode used for the response.
|
FallbackInfo.Builder |
setRoutingModeValue(int value)
Routing mode used for the response.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FallbackInfo.Builder>public FallbackInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FallbackInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FallbackInfo.Builder>public FallbackInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FallbackInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FallbackInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FallbackInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FallbackInfo.Builder>public FallbackInfo.Builder mergeFrom(FallbackInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FallbackInfo.Builder>public FallbackInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FallbackInfo.Builder>IOExceptionpublic int getRoutingModeValue()
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
.google.maps.routing.v2.FallbackRoutingMode routing_mode = 1;getRoutingModeValue in interface FallbackInfoOrBuilderpublic FallbackInfo.Builder setRoutingModeValue(int value)
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
.google.maps.routing.v2.FallbackRoutingMode routing_mode = 1;value - The enum numeric value on the wire for routingMode to set.public FallbackRoutingMode getRoutingMode()
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
.google.maps.routing.v2.FallbackRoutingMode routing_mode = 1;getRoutingMode in interface FallbackInfoOrBuilderpublic FallbackInfo.Builder setRoutingMode(FallbackRoutingMode value)
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
.google.maps.routing.v2.FallbackRoutingMode routing_mode = 1;value - The routingMode to set.public FallbackInfo.Builder clearRoutingMode()
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
.google.maps.routing.v2.FallbackRoutingMode routing_mode = 1;public int getReasonValue()
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
.google.maps.routing.v2.FallbackReason reason = 2;getReasonValue in interface FallbackInfoOrBuilderpublic FallbackInfo.Builder setReasonValue(int value)
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
.google.maps.routing.v2.FallbackReason reason = 2;value - The enum numeric value on the wire for reason to set.public FallbackReason getReason()
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
.google.maps.routing.v2.FallbackReason reason = 2;getReason in interface FallbackInfoOrBuilderpublic FallbackInfo.Builder setReason(FallbackReason value)
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
.google.maps.routing.v2.FallbackReason reason = 2;value - The reason to set.public FallbackInfo.Builder clearReason()
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
.google.maps.routing.v2.FallbackReason reason = 2;Copyright © 2026 Google LLC. All rights reserved.