public final class ComputeRoutesResponse extends com.google.protobuf.GeneratedMessageV3 implements ComputeRoutesResponseOrBuilder
ComputeRoutes the response message.Protobuf type
google.maps.routing.v2.ComputeRoutesResponse| Modifier and Type | Class and Description |
|---|---|
static class |
ComputeRoutesResponse.Builder
ComputeRoutes the response message.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FALLBACK_INFO_FIELD_NUMBER |
static int |
GEOCODING_RESULTS_FIELD_NUMBER |
static int |
ROUTES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ComputeRoutesResponse |
getDefaultInstance() |
ComputeRoutesResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
FallbackInfo |
getFallbackInfo()
In some cases when the server is not able to compute the route results with
all of the input preferences, it may fallback to using a different way of
computation.
|
FallbackInfoOrBuilder |
getFallbackInfoOrBuilder()
In some cases when the server is not able to compute the route results with
all of the input preferences, it may fallback to using a different way of
computation.
|
GeocodingResults |
getGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
|
GeocodingResultsOrBuilder |
getGeocodingResultsOrBuilder()
Contains geocoding response info for waypoints specified as addresses.
|
com.google.protobuf.Parser<ComputeRoutesResponse> |
getParserForType() |
Route |
getRoutes(int index)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
int |
getRoutesCount()
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
List<Route> |
getRoutesList()
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
RouteOrBuilder |
getRoutesOrBuilder(int index)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
List<? extends RouteOrBuilder> |
getRoutesOrBuilderList()
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
int |
getSerializedSize() |
boolean |
hasFallbackInfo()
In some cases when the server is not able to compute the route results with
all of the input preferences, it may fallback to using a different way of
computation.
|
boolean |
hasGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ComputeRoutesResponse.Builder |
newBuilder() |
static ComputeRoutesResponse.Builder |
newBuilder(ComputeRoutesResponse prototype) |
ComputeRoutesResponse.Builder |
newBuilderForType() |
protected ComputeRoutesResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ComputeRoutesResponse |
parseDelimitedFrom(InputStream input) |
static ComputeRoutesResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ComputeRoutesResponse |
parseFrom(byte[] data) |
static ComputeRoutesResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ComputeRoutesResponse |
parseFrom(ByteBuffer data) |
static ComputeRoutesResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ComputeRoutesResponse |
parseFrom(com.google.protobuf.ByteString data) |
static ComputeRoutesResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ComputeRoutesResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ComputeRoutesResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ComputeRoutesResponse |
parseFrom(InputStream input) |
static ComputeRoutesResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ComputeRoutesResponse> |
parser() |
ComputeRoutesResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ROUTES_FIELD_NUMBER
public static final int FALLBACK_INFO_FIELD_NUMBER
public static final int GEOCODING_RESULTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<Route> getRoutesList()
Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.
repeated .google.maps.routing.v2.Route routes = 1;getRoutesList in interface ComputeRoutesResponseOrBuilderpublic List<? extends RouteOrBuilder> getRoutesOrBuilderList()
Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.
repeated .google.maps.routing.v2.Route routes = 1;getRoutesOrBuilderList in interface ComputeRoutesResponseOrBuilderpublic int getRoutesCount()
Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.
repeated .google.maps.routing.v2.Route routes = 1;getRoutesCount in interface ComputeRoutesResponseOrBuilderpublic Route getRoutes(int index)
Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.
repeated .google.maps.routing.v2.Route routes = 1;getRoutes in interface ComputeRoutesResponseOrBuilderpublic RouteOrBuilder getRoutesOrBuilder(int index)
Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't. When this array contains multiple entries, the first one is the most recommended route. If the array is empty, then it means no route could be found.
repeated .google.maps.routing.v2.Route routes = 1;getRoutesOrBuilder in interface ComputeRoutesResponseOrBuilderpublic boolean hasFallbackInfo()
In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation. When fallback mode is used, this field contains detailed info about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 2;hasFallbackInfo in interface ComputeRoutesResponseOrBuilderpublic FallbackInfo getFallbackInfo()
In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation. When fallback mode is used, this field contains detailed info about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 2;getFallbackInfo in interface ComputeRoutesResponseOrBuilderpublic FallbackInfoOrBuilder getFallbackInfoOrBuilder()
In some cases when the server is not able to compute the route results with all of the input preferences, it may fallback to using a different way of computation. When fallback mode is used, this field contains detailed info about the fallback response. Otherwise this field is unset.
.google.maps.routing.v2.FallbackInfo fallback_info = 2;getFallbackInfoOrBuilder in interface ComputeRoutesResponseOrBuilderpublic boolean hasGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;hasGeocodingResults in interface ComputeRoutesResponseOrBuilderpublic GeocodingResults getGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;getGeocodingResults in interface ComputeRoutesResponseOrBuilderpublic GeocodingResultsOrBuilder getGeocodingResultsOrBuilder()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;getGeocodingResultsOrBuilder in interface ComputeRoutesResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ComputeRoutesResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ComputeRoutesResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static ComputeRoutesResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ComputeRoutesResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ComputeRoutesResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ComputeRoutesResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ComputeRoutesResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ComputeRoutesResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ComputeRoutesResponse.Builder newBuilder()
public static ComputeRoutesResponse.Builder newBuilder(ComputeRoutesResponse prototype)
public ComputeRoutesResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ComputeRoutesResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ComputeRoutesResponse getDefaultInstance()
public static com.google.protobuf.Parser<ComputeRoutesResponse> parser()
public com.google.protobuf.Parser<ComputeRoutesResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ComputeRoutesResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.