public static final class ComputeRoutesResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder> implements ComputeRoutesResponseOrBuilder
ComputeRoutes the response message.Protobuf type
google.maps.routing.v2.ComputeRoutesResponse| Modifier and Type | Method and Description |
|---|---|
ComputeRoutesResponse.Builder |
addAllRoutes(Iterable<? extends Route> values)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ComputeRoutesResponse.Builder |
addRoutes(int index,
Route.Builder builderForValue)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
addRoutes(int index,
Route value)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
addRoutes(Route.Builder builderForValue)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
addRoutes(Route value)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
Route.Builder |
addRoutesBuilder()
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
Route.Builder |
addRoutesBuilder(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.
|
ComputeRoutesResponse |
build() |
ComputeRoutesResponse |
buildPartial() |
ComputeRoutesResponse.Builder |
clear() |
ComputeRoutesResponse.Builder |
clearFallbackInfo()
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.
|
ComputeRoutesResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ComputeRoutesResponse.Builder |
clearGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
|
ComputeRoutesResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ComputeRoutesResponse.Builder |
clearRoutes()
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
clone() |
ComputeRoutesResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
FallbackInfo.Builder |
getFallbackInfoBuilder()
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.
|
GeocodingResults.Builder |
getGeocodingResultsBuilder()
Contains geocoding response info for waypoints specified as addresses.
|
GeocodingResultsOrBuilder |
getGeocodingResultsOrBuilder()
Contains geocoding response info for waypoints specified as addresses.
|
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.
|
Route.Builder |
getRoutesBuilder(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<Route.Builder> |
getRoutesBuilderList()
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.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ComputeRoutesResponse.Builder |
mergeFallbackInfo(FallbackInfo value)
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.
|
ComputeRoutesResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ComputeRoutesResponse.Builder |
mergeFrom(ComputeRoutesResponse other) |
ComputeRoutesResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
ComputeRoutesResponse.Builder |
mergeGeocodingResults(GeocodingResults value)
Contains geocoding response info for waypoints specified as addresses.
|
ComputeRoutesResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ComputeRoutesResponse.Builder |
removeRoutes(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.
|
ComputeRoutesResponse.Builder |
setFallbackInfo(FallbackInfo.Builder builderForValue)
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.
|
ComputeRoutesResponse.Builder |
setFallbackInfo(FallbackInfo value)
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.
|
ComputeRoutesResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ComputeRoutesResponse.Builder |
setGeocodingResults(GeocodingResults.Builder builderForValue)
Contains geocoding response info for waypoints specified as addresses.
|
ComputeRoutesResponse.Builder |
setGeocodingResults(GeocodingResults value)
Contains geocoding response info for waypoints specified as addresses.
|
ComputeRoutesResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ComputeRoutesResponse.Builder |
setRoutes(int index,
Route.Builder builderForValue)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
setRoutes(int index,
Route value)
Contains an array of computed routes (up to three) when you specify
`compute_alternatives_routes`, and contains just one route when you don't.
|
ComputeRoutesResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.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.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ComputeRoutesResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ComputeRoutesResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ComputeRoutesResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.Builder mergeFrom(ComputeRoutesResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public ComputeRoutesResponse.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<ComputeRoutesResponse.Builder>IOExceptionpublic 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 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 ComputeRoutesResponse.Builder setRoutes(int index, Route value)
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;public ComputeRoutesResponse.Builder setRoutes(int index, Route.Builder builderForValue)
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;public ComputeRoutesResponse.Builder addRoutes(Route value)
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;public ComputeRoutesResponse.Builder addRoutes(int index, Route value)
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;public ComputeRoutesResponse.Builder addRoutes(Route.Builder builderForValue)
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;public ComputeRoutesResponse.Builder addRoutes(int index, Route.Builder builderForValue)
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;public ComputeRoutesResponse.Builder addAllRoutes(Iterable<? extends Route> values)
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;public ComputeRoutesResponse.Builder clearRoutes()
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;public ComputeRoutesResponse.Builder removeRoutes(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;public Route.Builder getRoutesBuilder(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;public 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 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 Route.Builder addRoutesBuilder()
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;public Route.Builder addRoutesBuilder(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;public List<Route.Builder> getRoutesBuilderList()
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;public 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 ComputeRoutesResponse.Builder setFallbackInfo(FallbackInfo value)
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;public ComputeRoutesResponse.Builder setFallbackInfo(FallbackInfo.Builder builderForValue)
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;public ComputeRoutesResponse.Builder mergeFallbackInfo(FallbackInfo value)
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;public ComputeRoutesResponse.Builder clearFallbackInfo()
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;public FallbackInfo.Builder getFallbackInfoBuilder()
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;public 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 ComputeRoutesResponse.Builder setGeocodingResults(GeocodingResults value)
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;public ComputeRoutesResponse.Builder setGeocodingResults(GeocodingResults.Builder builderForValue)
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;public ComputeRoutesResponse.Builder mergeGeocodingResults(GeocodingResults value)
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;public ComputeRoutesResponse.Builder clearGeocodingResults()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;public GeocodingResults.Builder getGeocodingResultsBuilder()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;public GeocodingResultsOrBuilder getGeocodingResultsOrBuilder()
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;getGeocodingResultsOrBuilder in interface ComputeRoutesResponseOrBuilderpublic final ComputeRoutesResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>public final ComputeRoutesResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesResponse.Builder>Copyright © 2025 Google LLC. All rights reserved.