Package com.google.maps.routing.v2
Class ComputeRouteMatrixRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeRouteMatrixRequest.Builder>
com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder
- All Implemented Interfaces:
ComputeRouteMatrixRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeRouteMatrixRequest
public static final class ComputeRouteMatrixRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ComputeRouteMatrixRequest.Builder>
implements ComputeRouteMatrixRequestOrBuilder
ComputeRouteMatrix request messageProtobuf type
google.maps.routing.v2.ComputeRouteMatrixRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllDestinations(Iterable<? extends RouteMatrixDestination> values) Required.addAllExtraComputations(Iterable<? extends ComputeRouteMatrixRequest.ExtraComputation> values) Optional.addAllExtraComputationsValue(Iterable<Integer> values) Optional.addAllOrigins(Iterable<? extends RouteMatrixOrigin> values) Required.addDestinations(int index, RouteMatrixDestination value) Required.addDestinations(int index, RouteMatrixDestination.Builder builderForValue) Required.Required.addDestinations(RouteMatrixDestination.Builder builderForValue) Required.Required.addDestinationsBuilder(int index) Required.Optional.addExtraComputationsValue(int value) Optional.addOrigins(int index, RouteMatrixOrigin value) Required.addOrigins(int index, RouteMatrixOrigin.Builder builderForValue) Required.addOrigins(RouteMatrixOrigin value) Required.addOrigins(RouteMatrixOrigin.Builder builderForValue) Required.Required.addOriginsBuilder(int index) Required.build()clear()Optional.Optional.Required.Optional.Optional.Required.Optional.Optional.Optional.Optional.Optional.Optional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.com.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDestinations(int index) Required.getDestinationsBuilder(int index) Required.Required.intRequired.Required.getDestinationsOrBuilder(int index) Required.List<? extends RouteMatrixDestinationOrBuilder>Required.getExtraComputations(int index) Optional.intOptional.Optional.intgetExtraComputationsValue(int index) Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.getOrigins(int index) Required.getOriginsBuilder(int index) Required.Required.intRequired.Required.getOriginsOrBuilder(int index) Required.List<? extends RouteMatrixOriginOrBuilder>Required.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.Optional.intOptional.Optional.Optional.Optional.Optional.intOptional.getUnits()Optional.intOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeArrivalTime(com.google.protobuf.Timestamp value) Optional.mergeDepartureTime(com.google.protobuf.Timestamp value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.removeDestinations(int index) Required.removeOrigins(int index) Required.setArrivalTime(com.google.protobuf.Timestamp value) Optional.setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setDepartureTime(com.google.protobuf.Timestamp value) Optional.setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.setDestinations(int index, RouteMatrixDestination value) Required.setDestinations(int index, RouteMatrixDestination.Builder builderForValue) Required.setExtraComputations(int index, ComputeRouteMatrixRequest.ExtraComputation value) Optional.setExtraComputationsValue(int index, int value) Optional.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.setOrigins(int index, RouteMatrixOrigin value) Required.setOrigins(int index, RouteMatrixOrigin.Builder builderForValue) Required.setRegionCode(String value) Optional.setRegionCodeBytes(com.google.protobuf.ByteString value) 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<ComputeRouteMatrixRequest.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<ComputeRouteMatrixRequest.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<ComputeRouteMatrixRequest.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<ComputeRouteMatrixRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ComputeRouteMatrixRequest.Builder>
-
mergeFrom
public ComputeRouteMatrixRequest.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<ComputeRouteMatrixRequest.Builder>- Throws:
IOException
-
getOriginsList
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsListin interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsCount
public int getOriginsCount()Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsCountin interfaceComputeRouteMatrixRequestOrBuilder
-
getOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsin interfaceComputeRouteMatrixRequestOrBuilder
-
setOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
setOrigins
public ComputeRouteMatrixRequest.Builder setOrigins(int index, RouteMatrixOrigin.Builder builderForValue) Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addOrigins
public ComputeRouteMatrixRequest.Builder addOrigins(int index, RouteMatrixOrigin.Builder builderForValue) Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addAllOrigins
public ComputeRouteMatrixRequest.Builder addAllOrigins(Iterable<? extends RouteMatrixOrigin> values) Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
removeOrigins
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
getOriginsBuilder
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
getOriginsOrBuilder
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilderList
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginsOrBuilderListin interfaceComputeRouteMatrixRequestOrBuilder
-
addOriginsBuilder
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
addOriginsBuilder
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
getOriginsBuilderList
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The sum of the number of origins + the number of destinations specified as either `place_id` or `address` must be no greater than 50. * The product of number of origins × number of destinations must be no greater than 625 in any case. * The product of the number of origins × number of destinations must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The product of the number of origins × number of destinations must be no greater than 100 if travel_mode is set to `TRANSIT`.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsList
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsListin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsCount
public int getDestinationsCount()Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsCountin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsin interfaceComputeRouteMatrixRequestOrBuilder
-
setDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
setDestinations
public ComputeRouteMatrixRequest.Builder setDestinations(int index, RouteMatrixDestination.Builder builderForValue) Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
public ComputeRouteMatrixRequest.Builder addDestinations(RouteMatrixDestination.Builder builderForValue) Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addDestinations
public ComputeRouteMatrixRequest.Builder addDestinations(int index, RouteMatrixDestination.Builder builderForValue) Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addAllDestinations
public ComputeRouteMatrixRequest.Builder addAllDestinations(Iterable<? extends RouteMatrixDestination> values) Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
removeDestinations
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsBuilder
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsOrBuilder
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilderList
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationsOrBuilderListin interfaceComputeRouteMatrixRequestOrBuilder
-
addDestinationsBuilder
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
addDestinationsBuilder
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationsBuilderList
Required. Array of destinations, which determines the columns of the response matrix.
repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; -
getTravelModeValue
public int getTravelModeValue()Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModeValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTravelModein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The travelMode.
-
setTravelMode
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.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 = 3 [(.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, 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 = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferenceValuein interfaceComputeRouteMatrixRequestOrBuilder- 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, 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 = 4 [(.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, 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 = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingPreferencein interfaceComputeRouteMatrixRequestOrBuilder- 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, 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 = 4 [(.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, 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 = 4 [(.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`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDepartureTimein interfaceComputeRouteMatrixRequestOrBuilder- 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`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimein interfaceComputeRouteMatrixRequestOrBuilder- 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`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setDepartureTime
public ComputeRouteMatrixRequest.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`.
.google.protobuf.Timestamp departure_time = 5 [(.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`.
.google.protobuf.Timestamp departure_time = 5 [(.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`.
.google.protobuf.Timestamp departure_time = 5 [(.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`.
.google.protobuf.Timestamp departure_time = 5 [(.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`.
.google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDepartureTimeOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
hasArrivalTime
public boolean hasArrivalTime()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasArrivalTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- Whether the arrivalTime field is set.
-
getArrivalTime
public com.google.protobuf.Timestamp getArrivalTime()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The arrivalTime.
-
setArrivalTime
Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setArrivalTime
public ComputeRouteMatrixRequest.Builder setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeArrivalTime
Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearArrivalTime
Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getArrivalTimeBuilder
public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getArrivalTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder()Optional. The arrival time. NOTE: Can only be set when [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but not both.
.google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArrivalTimeOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-
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 first origin.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceComputeRouteMatrixRequestOrBuilder- 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 first origin.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceComputeRouteMatrixRequestOrBuilder- 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 first origin.
string language_code = 6 [(.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 first origin.
string language_code = 6 [(.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 first origin.
string language_code = 6 [(.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 = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodein interfaceComputeRouteMatrixRequestOrBuilder- 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 = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodeBytesin interfaceComputeRouteMatrixRequestOrBuilder- 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 = 9 [(.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 = 9 [(.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 = 9 [(.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.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsValuein interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The enum numeric value on the wire for units.
-
setUnitsValue
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.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.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUnitsin interfaceComputeRouteMatrixRequestOrBuilder- Returns:
- The units.
-
setUnits
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.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.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];- 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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsListin interfaceComputeRouteMatrixRequestOrBuilder- 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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsCountin interfaceComputeRouteMatrixRequestOrBuilder- 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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsin interfaceComputeRouteMatrixRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The extraComputations at the given index.
-
setExtraComputations
public ComputeRouteMatrixRequest.Builder setExtraComputations(int index, ComputeRouteMatrixRequest.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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 ComputeRouteMatrixRequest.Builder addExtraComputations(ComputeRouteMatrixRequest.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The extraComputations to add.- Returns:
- This builder for chaining.
-
addAllExtraComputations
public ComputeRouteMatrixRequest.Builder addAllExtraComputations(Iterable<? extends ComputeRouteMatrixRequest.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValueListin interfaceComputeRouteMatrixRequestOrBuilder- 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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExtraComputationsValuein interfaceComputeRouteMatrixRequestOrBuilder- 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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.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 [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] 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 = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelValuein interfaceComputeRouteMatrixRequestOrBuilder- 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 [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] 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 = 10 [(.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 [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] 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 = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTrafficModelin interfaceComputeRouteMatrixRequestOrBuilder- 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 [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] 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 = 10 [(.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 [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] 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 = 10 [(.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 = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransitPreferencesin interfaceComputeRouteMatrixRequestOrBuilder- 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 = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesin interfaceComputeRouteMatrixRequestOrBuilder- 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 = 12 [(.google.api.field_behavior) = OPTIONAL]; -
setTransitPreferences
public ComputeRouteMatrixRequest.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 = 12 [(.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 = 12 [(.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 = 12 [(.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 = 12 [(.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 = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransitPreferencesOrBuilderin interfaceComputeRouteMatrixRequestOrBuilder
-