public static final class ComputeRouteMatrixRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder> implements ComputeRouteMatrixRequestOrBuilder
ComputeRouteMatrix request messageProtobuf type
google.maps.routing.v2.ComputeRouteMatrixRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ComputeRouteMatrixRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ComputeRouteMatrixRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ComputeRouteMatrixRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder mergeFrom(ComputeRouteMatrixRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public ComputeRouteMatrixRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeRouteMatrixRequest.Builder>IOExceptionpublic 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 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];
getOriginsList in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getOriginsCount in interface ComputeRouteMatrixRequestOrBuilderpublic 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 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];
getOrigins in interface ComputeRouteMatrixRequestOrBuilderpublic 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 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];
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];
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 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];
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 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];
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 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];
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];
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];
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 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];
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 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];
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 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];
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 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 in interface ComputeRouteMatrixRequestOrBuilderpublic 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 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];
getOriginsOrBuilderList in interface ComputeRouteMatrixRequestOrBuilderpublic 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 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];
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 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];
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 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];
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];
getDestinationsList in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getDestinationsCount in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getDestinations in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getDestinationsOrBuilder in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getDestinationsOrBuilderList in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
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];
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];
public int getTravelModeValue()
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
getTravelModeValue in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setTravelModeValue(int value)
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for travelMode to set.public RouteTravelMode getTravelMode()
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
getTravelMode in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setTravelMode(RouteTravelMode value)
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The travelMode to set.public ComputeRouteMatrixRequest.Builder clearTravelMode()
Optional. Specifies the mode of transportation.
.google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
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];
getRoutingPreferenceValue in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
value - The enum numeric value on the wire for routingPreference to set.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];
getRoutingPreference in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
value - The routingPreference to set.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];
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];
hasDepartureTime in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getDepartureTime in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
getDepartureTimeOrBuilder in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
hasArrivalTime in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getArrivalTime in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
getArrivalTimeOrBuilder in interface ComputeRouteMatrixRequestOrBuilderpublic String 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];getLanguageCode in interface ComputeRouteMatrixRequestOrBuilderpublic 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];getLanguageCodeBytes in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setLanguageCode(String value)
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];value - The languageCode to set.public ComputeRouteMatrixRequest.Builder 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];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 [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];value - The bytes for languageCode to set.public String 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];getRegionCode in interface ComputeRouteMatrixRequestOrBuilderpublic 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];getRegionCodeBytes in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setRegionCode(String value)
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];value - The regionCode to set.public ComputeRouteMatrixRequest.Builder 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];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 [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];value - The bytes for regionCode to set.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];
getUnitsValue in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setUnitsValue(int value)
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for units to set.public Units getUnits()
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];
getUnits in interface ComputeRouteMatrixRequestOrBuilderpublic ComputeRouteMatrixRequest.Builder setUnits(Units value)
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];
value - The units to set.public ComputeRouteMatrixRequest.Builder clearUnits()
Optional. Specifies the units of measure for the display fields.
.google.maps.routing.v2.Units units = 7 [(.google.api.field_behavior) = OPTIONAL];
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];
getExtraComputationsList in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getExtraComputationsCount in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getExtraComputations in interface ComputeRouteMatrixRequestOrBuilderindex - The index of the element to return.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];
index - The index to set the value at.value - The extraComputations to set.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];
value - The extraComputations to add.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];
values - The extraComputations to add.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];
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];
getExtraComputationsValueList in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getExtraComputationsValue in interface ComputeRouteMatrixRequestOrBuilderindex - The index of the value to return.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];
index - The index to set the value at.value - The enum numeric value on the wire for extraComputations to set.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];
value - The enum numeric value on the wire for extraComputations to add.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];
values - The enum numeric values on the wire for extraComputations to add.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];
getTrafficModelValue in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
value - The enum numeric value on the wire for trafficModel to set.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];
getTrafficModel in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
value - The trafficModel to set.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];
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];
hasTransitPreferences in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
getTransitPreferences in interface ComputeRouteMatrixRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
getTransitPreferencesOrBuilder in interface ComputeRouteMatrixRequestOrBuilderpublic final ComputeRouteMatrixRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>public final ComputeRouteMatrixRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRouteMatrixRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.