Package com.google.maps.routing.v2
Class ComputeRoutesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeRoutesRequest.Builder>
com.google.maps.routing.v2.ComputeRoutesRequest.Builder
- All Implemented Interfaces:
ComputeRoutesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeRoutesRequest
public static final class ComputeRoutesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ComputeRoutesRequest.Builder>
implements ComputeRoutesRequestOrBuilder
ComputeRoutes request message.Protobuf type
google.maps.routing.v2.ComputeRoutesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllExtraComputations(Iterable<? extends ComputeRoutesRequest.ExtraComputation> values) Optional.addAllExtraComputationsValue(Iterable<Integer> values) Optional.addAllIntermediates(Iterable<? extends Waypoint> values) Optional.addAllRequestedReferenceRoutes(Iterable<? extends ComputeRoutesRequest.ReferenceRoute> values) Optional.Optional.Optional.addExtraComputationsValue(int value) Optional.addIntermediates(int index, Waypoint value) Optional.addIntermediates(int index, Waypoint.Builder builderForValue) Optional.addIntermediates(Waypoint value) Optional.addIntermediates(Waypoint.Builder builderForValue) Optional.Optional.addIntermediatesBuilder(int index) Optional.Optional.addRequestedReferenceRoutesValue(int value) Optional.build()clear()Optional.Optional.Optional.Required.Optional.Optional.Optional.Optional.Required.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.booleanOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.getExtraComputations(int index) Optional.intOptional.Optional.intgetExtraComputationsValue(int index) Optional.Optional.getIntermediates(int index) Optional.getIntermediatesBuilder(int index) Optional.Optional.intOptional.Optional.getIntermediatesOrBuilder(int index) Optional.List<? extends WaypointOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.Required.Required.Required.Optional.intOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.getRequestedReferenceRoutes(int index) Optional.intOptional.Optional.intgetRequestedReferenceRoutesValue(int index) Optional.Optional.Optional.Optional.Optional.Optional.intOptional.Optional.intOptional.Optional.Optional.Optional.Optional.intOptional.getUnits()Optional.intOptional.booleanOptional.booleanOptional.booleanRequired.booleanRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArrivalTime(com.google.protobuf.Timestamp value) Optional.mergeDepartureTime(com.google.protobuf.Timestamp value) Optional.mergeDestination(Waypoint value) Required.mergeFrom(ComputeRoutesRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOrigin(Waypoint value) Required.Optional.Optional.removeIntermediates(int index) Optional.setArrivalTime(com.google.protobuf.Timestamp value) Optional.setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setComputeAlternativeRoutes(boolean value) Optional.setDepartureTime(com.google.protobuf.Timestamp value) Optional.setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setDestination(Waypoint value) Required.setDestination(Waypoint.Builder builderForValue) Required.setExtraComputations(int index, ComputeRoutesRequest.ExtraComputation value) Optional.setExtraComputationsValue(int index, int value) Optional.setIntermediates(int index, Waypoint value) Optional.setIntermediates(int index, Waypoint.Builder builderForValue) Optional.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.setOptimizeWaypointOrder(boolean value) Optional.Required.setOrigin(Waypoint.Builder builderForValue) Required.Optional.setPolylineEncodingValue(int value) Optional.Optional.setPolylineQualityValue(int value) Optional.setRegionCode(String value) Optional.setRegionCodeBytes(com.google.protobuf.ByteString value) Optional.setRequestedReferenceRoutes(int index, ComputeRoutesRequest.ReferenceRoute value) Optional.setRequestedReferenceRoutesValue(int index, int value) Optional.setRouteModifiers(RouteModifiers value) Optional.setRouteModifiers(RouteModifiers.Builder builderForValue) Optional.Optional.setRoutingPreferenceValue(int value) Optional.setTrafficModel(TrafficModel value) Optional.setTrafficModelValue(int value) Optional.Optional.setTransitPreferences(TransitPreferences.Builder builderForValue) Optional.setTravelMode(RouteTravelMode value) Optional.setTravelModeValue(int value) Optional.Optional.setUnitsValue(int value) Optional.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<ComputeRoutesRequest.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<ComputeRoutesRequest.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<ComputeRoutesRequest.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<ComputeRoutesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeRoutesRequest.Builder>
-
mergeFrom
public ComputeRoutesRequest.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<ComputeRoutesRequest.Builder>- Throws:
IOException
-
hasOrigin
public boolean hasOrigin()Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOriginin interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the origin field is set.
-
getOrigin
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginin interfaceComputeRoutesRequestOrBuilder- Returns:
- The origin.
-
setOrigin
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; -
setOrigin
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeOrigin
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearOrigin
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; -
getOriginBuilder
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; -
getOriginOrBuilder
Required. Origin waypoint.
.google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
hasDestination
public boolean hasDestination()Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasDestinationin interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the destination field is set.
-
getDestination
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationin interfaceComputeRoutesRequestOrBuilder- Returns:
- The destination.
-
setDestination
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; -
setDestination
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeDestination
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearDestination
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationBuilder
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationOrBuilder
Required. Destination waypoint.
.google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
getIntermediatesList
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntermediatesListin interfaceComputeRoutesRequestOrBuilder
-
getIntermediatesCount
public int getIntermediatesCount()Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntermediatesCountin interfaceComputeRoutesRequestOrBuilder
-
getIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntermediatesin interfaceComputeRoutesRequestOrBuilder
-
setIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeIntermediates
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getIntermediatesBuilder
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getIntermediatesOrBuilder
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntermediatesOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
getIntermediatesOrBuilderList
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntermediatesOrBuilderListin interfaceComputeRoutesRequestOrBuilder
-
addIntermediatesBuilder
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addIntermediatesBuilder
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getIntermediatesBuilderList
Optional. A set of waypoints along the route (excluding terminal points), for either stopping at or passing by. Up to 25 intermediate waypoints are supported.
repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getTravelModeValue
public int getTravelModeValue()Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModeValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for travelMode to set.- Returns:
- This builder for chaining.
-
getTravelMode
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModein interfaceComputeRoutesRequestOrBuilder- Returns:
- The travelMode.
-
setTravelMode
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The travelMode to set.- Returns:
- This builder for chaining.
-
clearTravelMode
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getRoutingPreferenceValue
public int getRoutingPreferenceValue()Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferenceValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for routingPreference.
-
setRoutingPreferenceValue
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for routingPreference to set.- Returns:
- This builder for chaining.
-
getRoutingPreference
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferencein interfaceComputeRoutesRequestOrBuilder- Returns:
- The routingPreference.
-
setRoutingPreference
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The routingPreference to set.- Returns:
- This builder for chaining.
-
clearRoutingPreference
Optional. Specifies how to compute the route. The server attempts to use the selected routing preference to compute the route. If the routing preference results in an error or an extra long latency, then an error is returned. You can specify this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
.google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPolylineQualityValue
public int getPolylineQualityValue()Optional. Specifies your preference for the quality of the polyline.
.google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolylineQualityValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for polylineQuality.
-
setPolylineQualityValue
Optional. Specifies your preference for the quality of the polyline.
.google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for polylineQuality to set.- Returns:
- This builder for chaining.
-
getPolylineQuality
Optional. Specifies your preference for the quality of the polyline.
.google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolylineQualityin interfaceComputeRoutesRequestOrBuilder- Returns:
- The polylineQuality.
-
setPolylineQuality
Optional. Specifies your preference for the quality of the polyline.
.google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The polylineQuality to set.- Returns:
- This builder for chaining.
-
clearPolylineQuality
Optional. Specifies your preference for the quality of the polyline.
.google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getPolylineEncodingValue
public int getPolylineEncodingValue()Optional. Specifies the preferred encoding for the polyline.
.google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolylineEncodingValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for polylineEncoding.
-
setPolylineEncodingValue
Optional. Specifies the preferred encoding for the polyline.
.google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for polylineEncoding to set.- Returns:
- This builder for chaining.
-
getPolylineEncoding
Optional. Specifies the preferred encoding for the polyline.
.google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolylineEncodingin interfaceComputeRoutesRequestOrBuilder- Returns:
- The polylineEncoding.
-
setPolylineEncoding
Optional. Specifies the preferred encoding for the polyline.
.google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The polylineEncoding to set.- Returns:
- This builder for chaining.
-
clearPolylineEncoding
Optional. Specifies the preferred encoding for the polyline.
.google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasDepartureTime
public boolean hasDepartureTime()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDepartureTimein interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the departureTime field is set.
-
getDepartureTime
public com.google.protobuf.Timestamp getDepartureTime()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimein interfaceComputeRoutesRequestOrBuilder- Returns:
- The departureTime.
-
setDepartureTime
Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setDepartureTime
public ComputeRoutesRequest.Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDepartureTime
Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearDepartureTime
Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDepartureTimeBuilder
public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDepartureTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder()Optional. The departure time. If you don't set this value, then this value defaults to the time that you made the request. NOTE: You can only specify a `departure_time` in the past when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimeOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
hasArrivalTime
public boolean hasArrivalTime()Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasArrivalTimein interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the arrivalTime field is set.
-
getArrivalTime
public com.google.protobuf.Timestamp getArrivalTime()Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimein interfaceComputeRoutesRequestOrBuilder- Returns:
- The arrivalTime.
-
setArrivalTime
Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; -
setArrivalTime
public ComputeRoutesRequest.Builder setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; -
mergeArrivalTime
Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; -
clearArrivalTime
Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getArrivalTimeBuilder
public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder()Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; -
getArrivalTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder()Optional. The arrival time. NOTE: This field is ignored when requests specify a [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] other than `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both. Transit trips are available for up to 7 days in the past or 100 days in the future.
.google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimeOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
getComputeAlternativeRoutes
public boolean getComputeAlternativeRoutes()Optional. Specifies whether to calculate alternate routes in addition to the route. No alternative routes are returned for requests that have intermediate waypoints.
bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getComputeAlternativeRoutesin interfaceComputeRoutesRequestOrBuilder- Returns:
- The computeAlternativeRoutes.
-
setComputeAlternativeRoutes
Optional. Specifies whether to calculate alternate routes in addition to the route. No alternative routes are returned for requests that have intermediate waypoints.
bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The computeAlternativeRoutes to set.- Returns:
- This builder for chaining.
-
clearComputeAlternativeRoutes
Optional. Specifies whether to calculate alternate routes in addition to the route. No alternative routes are returned for requests that have intermediate waypoints.
bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasRouteModifiers
public boolean hasRouteModifiers()Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRouteModifiersin interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the routeModifiers field is set.
-
getRouteModifiers
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRouteModifiersin interfaceComputeRoutesRequestOrBuilder- Returns:
- The routeModifiers.
-
setRouteModifiers
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; -
setRouteModifiers
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRouteModifiers
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; -
clearRouteModifiers
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getRouteModifiersBuilder
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getRouteModifiersOrBuilder
Optional. A set of conditions to satisfy that affect the way routes are calculated.
.google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRouteModifiersOrBuilderin interfaceComputeRoutesRequestOrBuilder
-
getLanguageCode
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request.
string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceComputeRoutesRequestOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request.
string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceComputeRoutesRequestOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request.
string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request.
string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Unicode Locale Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier). See [Language Support](https://developers.google.com/maps/faq#languagesupport) for the list of supported languages. When you don't provide this value, the display language is inferred from the location of the route request.
string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getRegionCode
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodein interfaceComputeRoutesRequestOrBuilder- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodeBytesin interfaceComputeRoutesRequestOrBuilder- Returns:
- The bytes for regionCode.
-
setRegionCode
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 16 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The regionCode to set.- Returns:
- This builder for chaining.
-
clearRegionCode
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 16 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRegionCodeBytes
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see [Country code top-level domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).string region_code = 16 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for regionCode to set.- Returns:
- This builder for chaining.
-
getUnitsValue
public int getUnitsValue()Optional. Specifies the units of measure for the display fields. These fields include the `instruction` field in [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]. The units of measure used for the route, leg, step distance, and duration are not affected by this value. If you don't provide this value, then the display units are inferred from the location of the first origin.
.google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for units.
-
setUnitsValue
Optional. Specifies the units of measure for the display fields. These fields include the `instruction` field in [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]. The units of measure used for the route, leg, step distance, and duration are not affected by this value. If you don't provide this value, then the display units are inferred from the location of the first origin.
.google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for units to set.- Returns:
- This builder for chaining.
-
getUnits
Optional. Specifies the units of measure for the display fields. These fields include the `instruction` field in [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]. The units of measure used for the route, leg, step distance, and duration are not affected by this value. If you don't provide this value, then the display units are inferred from the location of the first origin.
.google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsin interfaceComputeRoutesRequestOrBuilder- Returns:
- The units.
-
setUnits
Optional. Specifies the units of measure for the display fields. These fields include the `instruction` field in [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]. The units of measure used for the route, leg, step distance, and duration are not affected by this value. If you don't provide this value, then the display units are inferred from the location of the first origin.
.google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The units to set.- Returns:
- This builder for chaining.
-
clearUnits
Optional. Specifies the units of measure for the display fields. These fields include the `instruction` field in [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]. The units of measure used for the route, leg, step distance, and duration are not affected by this value. If you don't provide this value, then the display units are inferred from the location of the first origin.
.google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getOptimizeWaypointOrder
public boolean getOptimizeWaypointOrder()Optional. If set to true, the service attempts to minimize the overall cost of the route by re-ordering the specified intermediate waypoints. The request fails if any of the intermediate waypoints is a `via` waypoint. Use `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to find the new ordering. If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is not requested in the `X-Goog-FieldMask` header, the request fails. If `optimize_waypoint_order` is set to false, `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be empty.
bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptimizeWaypointOrderin interfaceComputeRoutesRequestOrBuilder- Returns:
- The optimizeWaypointOrder.
-
setOptimizeWaypointOrder
Optional. If set to true, the service attempts to minimize the overall cost of the route by re-ordering the specified intermediate waypoints. The request fails if any of the intermediate waypoints is a `via` waypoint. Use `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to find the new ordering. If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is not requested in the `X-Goog-FieldMask` header, the request fails. If `optimize_waypoint_order` is set to false, `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be empty.
bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The optimizeWaypointOrder to set.- Returns:
- This builder for chaining.
-
clearOptimizeWaypointOrder
Optional. If set to true, the service attempts to minimize the overall cost of the route by re-ordering the specified intermediate waypoints. The request fails if any of the intermediate waypoints is a `via` waypoint. Use `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to find the new ordering. If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is not requested in the `X-Goog-FieldMask` header, the request fails. If `optimize_waypoint_order` is set to false, `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be empty.
bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getRequestedReferenceRoutesList
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestedReferenceRoutesListin interfaceComputeRoutesRequestOrBuilder- Returns:
- A list containing the requestedReferenceRoutes.
-
getRequestedReferenceRoutesCount
public int getRequestedReferenceRoutesCount()Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestedReferenceRoutesCountin interfaceComputeRoutesRequestOrBuilder- Returns:
- The count of requestedReferenceRoutes.
-
getRequestedReferenceRoutes
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestedReferenceRoutesin interfaceComputeRoutesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requestedReferenceRoutes at the given index.
-
setRequestedReferenceRoutes
public ComputeRoutesRequest.Builder setRequestedReferenceRoutes(int index, ComputeRoutesRequest.ReferenceRoute value) Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The requestedReferenceRoutes to set.- Returns:
- This builder for chaining.
-
addRequestedReferenceRoutes
public ComputeRoutesRequest.Builder addRequestedReferenceRoutes(ComputeRoutesRequest.ReferenceRoute value) Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The requestedReferenceRoutes to add.- Returns:
- This builder for chaining.
-
addAllRequestedReferenceRoutes
public ComputeRoutesRequest.Builder addAllRequestedReferenceRoutes(Iterable<? extends ComputeRoutesRequest.ReferenceRoute> values) Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The requestedReferenceRoutes to add.- Returns:
- This builder for chaining.
-
clearRequestedReferenceRoutes
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getRequestedReferenceRoutesValueList
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestedReferenceRoutesValueListin interfaceComputeRoutesRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for requestedReferenceRoutes.
-
getRequestedReferenceRoutesValue
public int getRequestedReferenceRoutesValue(int index) Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestedReferenceRoutesValuein interfaceComputeRoutesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of requestedReferenceRoutes at the given index.
-
setRequestedReferenceRoutesValue
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for requestedReferenceRoutes to set.- Returns:
- This builder for chaining.
-
addRequestedReferenceRoutesValue
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for requestedReferenceRoutes to add.- Returns:
- This builder for chaining.
-
addAllRequestedReferenceRoutesValue
Optional. Specifies what reference routes to calculate as part of the request in addition to the default route. A reference route is a route with a different route calculation objective than the default route. For example a `FUEL_EFFICIENT` reference route calculation takes into account various parameters that would generate an optimal fuel efficient route. When using this feature, look for [`route_labels`][google.maps.routing.v2.Route.route_labels] on the resulting routes.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for requestedReferenceRoutes to add.- Returns:
- This builder for chaining.
-
getExtraComputationsList
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsListin interfaceComputeRoutesRequestOrBuilder- Returns:
- A list containing the extraComputations.
-
getExtraComputationsCount
public int getExtraComputationsCount()Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsCountin interfaceComputeRoutesRequestOrBuilder- Returns:
- The count of extraComputations.
-
getExtraComputations
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsin interfaceComputeRoutesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The extraComputations at the given index.
-
setExtraComputations
public ComputeRoutesRequest.Builder setExtraComputations(int index, ComputeRoutesRequest.ExtraComputation value) Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The extraComputations to set.- Returns:
- This builder for chaining.
-
addExtraComputations
public ComputeRoutesRequest.Builder addExtraComputations(ComputeRoutesRequest.ExtraComputation value) Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The extraComputations to add.- Returns:
- This builder for chaining.
-
addAllExtraComputations
public ComputeRoutesRequest.Builder addAllExtraComputations(Iterable<? extends ComputeRoutesRequest.ExtraComputation> values) Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The extraComputations to add.- Returns:
- This builder for chaining.
-
clearExtraComputations
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getExtraComputationsValueList
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValueListin interfaceComputeRoutesRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for extraComputations.
-
getExtraComputationsValue
public int getExtraComputationsValue(int index) Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValuein interfaceComputeRoutesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of extraComputations at the given index.
-
setExtraComputationsValue
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for extraComputations to set.- Returns:
- This builder for chaining.
-
addExtraComputationsValue
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for extraComputations to add.- Returns:
- This builder for chaining.
-
addAllExtraComputationsValue
Optional. A list of extra computations which may be used to complete the request. Note: These extra computations may return extra fields on the response. These extra fields must also be specified in the field mask to be returned in the response.
repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for extraComputations to add.- Returns:
- This builder for chaining.
-
getTrafficModelValue
public int getTrafficModelValue()Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [`Route`][google.maps.routing.v2.Route] and [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelValuein interfaceComputeRoutesRequestOrBuilder- Returns:
- The enum numeric value on the wire for trafficModel.
-
setTrafficModelValue
Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [`Route`][google.maps.routing.v2.Route] and [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for trafficModel to set.- Returns:
- This builder for chaining.
-
getTrafficModel
Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [`Route`][google.maps.routing.v2.Route] and [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelin interfaceComputeRoutesRequestOrBuilder- Returns:
- The trafficModel.
-
setTrafficModel
Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [`Route`][google.maps.routing.v2.Route] and [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The trafficModel to set.- Returns:
- This builder for chaining.
-
clearTrafficModel
Optional. Specifies the assumptions to use when calculating time in traffic. This setting affects the value returned in the duration field in the [`Route`][google.maps.routing.v2.Route] and [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted time in traffic based on historical averages. `TrafficModel` is only available for requests that have set [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to `TRAFFIC_AWARE_OPTIMAL` and [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not specified.
.google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasTransitPreferences
public boolean hasTransitPreferences()Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransitPreferencesin interfaceComputeRoutesRequestOrBuilder- Returns:
- Whether the transitPreferences field is set.
-
getTransitPreferences
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesin interfaceComputeRoutesRequestOrBuilder- Returns:
- The transitPreferences.
-
setTransitPreferences
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; -
setTransitPreferences
public ComputeRoutesRequest.Builder setTransitPreferences(TransitPreferences.Builder builderForValue) Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTransitPreferences
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; -
clearTransitPreferences
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; -
getTransitPreferencesBuilder
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; -
getTransitPreferencesOrBuilder
Optional. Specifies preferences that influence the route returned for `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`.
.google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesOrBuilderin interfaceComputeRoutesRequestOrBuilder
-