Package com.google.maps.routing.v2
Class ComputeRoutesResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
com.google.maps.routing.v2.ComputeRoutesResponse.Builder
- All Implemented Interfaces:
ComputeRoutesResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeRoutesResponse
public static final class ComputeRoutesResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
implements ComputeRoutesResponseOrBuilder
ComputeRoutes the response message.Protobuf type
google.maps.routing.v2.ComputeRoutesResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllRoutes(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.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.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.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.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.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.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.build()clear()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.Contains geocoding response info for waypoints specified as addresses.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIn 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.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.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.Contains geocoding response info for waypoints specified as addresses.Contains geocoding response info for waypoints specified as addresses.Contains geocoding response info for waypoints specified as addresses.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.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.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.intContains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.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>Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.booleanIn 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.booleanContains geocoding response info for waypoints specified as addresses.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFallbackInfo(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.mergeFrom(ComputeRoutesResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Contains geocoding response info for waypoints specified as addresses.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.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.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.Contains geocoding response info for waypoints specified as addresses.setGeocodingResults(GeocodingResults.Builder builderForValue) Contains geocoding response info for waypoints specified as addresses.Contains an array of computed routes (up to three) when you specify `compute_alternatives_routes`, and contains just one route when you don't.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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeRoutesResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeRoutesResponse.Builder>
-
mergeFrom
public ComputeRoutesResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeRoutesResponse.Builder>- Throws:
IOException
-
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;- Specified by:
getRoutesListin interfaceComputeRoutesResponseOrBuilder
-
getRoutesCount
public 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;- Specified by:
getRoutesCountin interfaceComputeRoutesResponseOrBuilder
-
getRoutes
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;- Specified by:
getRoutesin interfaceComputeRoutesResponseOrBuilder
-
setRoutes
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; -
setRoutes
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; -
addRoutes
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; -
addRoutes
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; -
addRoutes
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; -
addRoutes
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; -
addAllRoutes
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; -
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; -
removeRoutes
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; -
getRoutesBuilder
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
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;- Specified by:
getRoutesOrBuilderin interfaceComputeRoutesResponseOrBuilder
-
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;- Specified by:
getRoutesOrBuilderListin interfaceComputeRoutesResponseOrBuilder
-
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; -
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; -
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; -
hasFallbackInfo
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;- Specified by:
hasFallbackInfoin interfaceComputeRoutesResponseOrBuilder- Returns:
- Whether the fallbackInfo field is set.
-
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;- Specified by:
getFallbackInfoin interfaceComputeRoutesResponseOrBuilder- Returns:
- The fallbackInfo.
-
setFallbackInfo
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; -
setFallbackInfo
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; -
mergeFallbackInfo
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; -
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; -
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; -
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;- Specified by:
getFallbackInfoOrBuilderin interfaceComputeRoutesResponseOrBuilder
-
hasGeocodingResults
public boolean hasGeocodingResults()Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;- Specified by:
hasGeocodingResultsin interfaceComputeRoutesResponseOrBuilder- Returns:
- Whether the geocodingResults field is set.
-
getGeocodingResults
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;- Specified by:
getGeocodingResultsin interfaceComputeRoutesResponseOrBuilder- Returns:
- The geocodingResults.
-
setGeocodingResults
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3; -
setGeocodingResults
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3; -
mergeGeocodingResults
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3; -
clearGeocodingResults
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3; -
getGeocodingResultsBuilder
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3; -
getGeocodingResultsOrBuilder
Contains geocoding response info for waypoints specified as addresses.
.google.maps.routing.v2.GeocodingResults geocoding_results = 3;- Specified by:
getGeocodingResultsOrBuilderin interfaceComputeRoutesResponseOrBuilder
-