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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder> implements ComputeRouteMatrixRequestOrBuilder
ComputeRouteMatrix request message
Protobuf typegoogle.maps.routing.v2.ComputeRouteMatrixRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
clear
public ComputeRouteMatrixRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
getDefaultInstanceForType
public ComputeRouteMatrixRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ComputeRouteMatrixRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ComputeRouteMatrixRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ComputeRouteMatrixRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
setField
public ComputeRouteMatrixRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
clearField
public ComputeRouteMatrixRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
clearOneof
public ComputeRouteMatrixRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
setRepeatedField
public ComputeRouteMatrixRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
addRepeatedField
public ComputeRouteMatrixRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
mergeFrom
public ComputeRouteMatrixRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeRouteMatrixRequest.Builder>
-
mergeFrom
public ComputeRouteMatrixRequest.Builder mergeFrom(ComputeRouteMatrixRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
mergeFrom
public ComputeRouteMatrixRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeRouteMatrixRequest.Builder>
- Throws:
IOException
-
getOriginsList
public List<RouteMatrixOrigin> 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsList
in 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsCount
in interfaceComputeRouteMatrixRequestOrBuilder
-
getOrigins
public RouteMatrixOrigin getOrigins(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOrigins
in interfaceComputeRouteMatrixRequestOrBuilder
-
setOrigins
public ComputeRouteMatrixRequest.Builder setOrigins(int index, RouteMatrixOrigin value)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
addOrigins
public ComputeRouteMatrixRequest.Builder addOrigins(RouteMatrixOrigin value)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
addOrigins
public ComputeRouteMatrixRequest.Builder addOrigins(int index, RouteMatrixOrigin value)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
addOrigins
public ComputeRouteMatrixRequest.Builder addOrigins(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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
clearOrigins
public ComputeRouteMatrixRequest.Builder 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
removeOrigins
public ComputeRouteMatrixRequest.Builder removeOrigins(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
getOriginsBuilder
public RouteMatrixOrigin.Builder getOriginsBuilder(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
getOriginsOrBuilder
public RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
getOriginsOrBuilderList
public List<? extends RouteMatrixOriginOrBuilder> 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getOriginsOrBuilderList
in interfaceComputeRouteMatrixRequestOrBuilder
-
addOriginsBuilder
public RouteMatrixOrigin.Builder 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
addOriginsBuilder
public RouteMatrixOrigin.Builder addOriginsBuilder(int index)
Required. Array of origins, which determines the rows of the response matrix. Several size restrictions apply to the cardinality of origins and destinations: * The number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
getOriginsBuilderList
public List<RouteMatrixOrigin.Builder> 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 number of elements (origins × destinations) must be no greater than 625 in any case. * The number of elements (origins × destinations) must be no greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. * The number of waypoints (origins + destinations) specified as `place_id` must be no greater than 50.
repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED];
-
getDestinationsList
public List<RouteMatrixDestination> 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:
getDestinationsList
in 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:
getDestinationsCount
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinations
public RouteMatrixDestination getDestinations(int index)
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:
getDestinations
in interfaceComputeRouteMatrixRequestOrBuilder
-
setDestinations
public ComputeRouteMatrixRequest.Builder setDestinations(int index, RouteMatrixDestination value)
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
public ComputeRouteMatrixRequest.Builder addDestinations(RouteMatrixDestination value)
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 value)
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
public ComputeRouteMatrixRequest.Builder 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
public ComputeRouteMatrixRequest.Builder removeDestinations(int index)
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
public RouteMatrixDestination.Builder getDestinationsBuilder(int index)
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
public RouteMatrixDestinationOrBuilder getDestinationsOrBuilder(int index)
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:
getDestinationsOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
getDestinationsOrBuilderList
public List<? extends RouteMatrixDestinationOrBuilder> 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:
getDestinationsOrBuilderList
in interfaceComputeRouteMatrixRequestOrBuilder
-
addDestinationsBuilder
public RouteMatrixDestination.Builder 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
public RouteMatrixDestination.Builder addDestinationsBuilder(int index)
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
public List<RouteMatrixDestination.Builder> 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:
getTravelModeValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for travelMode.
-
setTravelModeValue
public ComputeRouteMatrixRequest.Builder setTravelModeValue(int value)
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
public RouteTravelMode getTravelMode()
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTravelMode
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The travelMode.
-
setTravelMode
public ComputeRouteMatrixRequest.Builder setTravelMode(RouteTravelMode value)
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
public ComputeRouteMatrixRequest.Builder 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:
getRoutingPreferenceValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for routingPreference.
-
setRoutingPreferenceValue
public ComputeRouteMatrixRequest.Builder setRoutingPreferenceValue(int value)
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
public RoutingPreference 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:
getRoutingPreference
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The routingPreference.
-
setRoutingPreference
public ComputeRouteMatrixRequest.Builder setRoutingPreference(RoutingPreference value)
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
public ComputeRouteMatrixRequest.Builder 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:
hasDepartureTime
in 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:
getDepartureTime
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The departureTime.
-
setDepartureTime
public ComputeRouteMatrixRequest.Builder setDepartureTime(com.google.protobuf.Timestamp value)
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
public ComputeRouteMatrixRequest.Builder mergeDepartureTime(com.google.protobuf.Timestamp value)
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
public ComputeRouteMatrixRequest.Builder 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:
getDepartureTimeOrBuilder
in 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:
hasArrivalTime
in 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:
getArrivalTime
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The arrivalTime.
-
setArrivalTime
public ComputeRouteMatrixRequest.Builder setArrivalTime(com.google.protobuf.Timestamp value)
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
public ComputeRouteMatrixRequest.Builder mergeArrivalTime(com.google.protobuf.Timestamp value)
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
public ComputeRouteMatrixRequest.Builder 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:
getArrivalTimeOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
getLanguageCode
public String getLanguageCode()
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see 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:
getLanguageCode
in 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 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:
getLanguageCodeBytes
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The bytes for languageCode.
-
setLanguageCode
public ComputeRouteMatrixRequest.Builder setLanguageCode(String value)
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see 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
public ComputeRouteMatrixRequest.Builder clearLanguageCode()
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see 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
public ComputeRouteMatrixRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see 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
public String getRegionCode()
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see 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:
getRegionCode
in 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 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:
getRegionCodeBytes
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The bytes for regionCode.
-
setRegionCode
public ComputeRouteMatrixRequest.Builder setRegionCode(String value)
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see 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
public ComputeRouteMatrixRequest.Builder clearRegionCode()
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see 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
public ComputeRouteMatrixRequest.Builder setRegionCodeBytes(com.google.protobuf.ByteString value)
Optional. The region code, specified as a ccTLD ("top-level domain") two-character value. For more information see 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.
-
getExtraComputationsList
public List<ComputeRouteMatrixRequest.ExtraComputation> 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:
getExtraComputationsList
in 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:
getExtraComputationsCount
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The count of extraComputations.
-
getExtraComputations
public ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(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:
getExtraComputations
in 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
public ComputeRouteMatrixRequest.Builder 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
public List<Integer> 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:
getExtraComputationsValueList
in 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:
getExtraComputationsValue
in 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
public ComputeRouteMatrixRequest.Builder setExtraComputationsValue(int index, int 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 enum numeric value on the wire for extraComputations to set.- Returns:
- This builder for chaining.
-
addExtraComputationsValue
public ComputeRouteMatrixRequest.Builder addExtraComputationsValue(int 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 enum numeric value on the wire for extraComputations to add.- Returns:
- This builder for chaining.
-
addAllExtraComputationsValue
public ComputeRouteMatrixRequest.Builder addAllExtraComputationsValue(Iterable<Integer> 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 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. [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:
getTrafficModelValue
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The enum numeric value on the wire for trafficModel.
-
setTrafficModelValue
public ComputeRouteMatrixRequest.Builder setTrafficModelValue(int value)
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. [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
public TrafficModel 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. [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:
getTrafficModel
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The trafficModel.
-
setTrafficModel
public ComputeRouteMatrixRequest.Builder setTrafficModel(TrafficModel value)
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. [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
public ComputeRouteMatrixRequest.Builder 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. [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:
hasTransitPreferences
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- Whether the transitPreferences field is set.
-
getTransitPreferences
public TransitPreferences 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:
getTransitPreferences
in interfaceComputeRouteMatrixRequestOrBuilder
- Returns:
- The transitPreferences.
-
setTransitPreferences
public ComputeRouteMatrixRequest.Builder setTransitPreferences(TransitPreferences value)
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
public ComputeRouteMatrixRequest.Builder mergeTransitPreferences(TransitPreferences value)
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
public ComputeRouteMatrixRequest.Builder 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
public TransitPreferences.Builder 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
public TransitPreferencesOrBuilder 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:
getTransitPreferencesOrBuilder
in interfaceComputeRouteMatrixRequestOrBuilder
-
setUnknownFields
public final ComputeRouteMatrixRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
mergeUnknownFields
public final ComputeRouteMatrixRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>
-
-