Class ComputeRoutesRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • clear

        public ComputeRoutesRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • getDefaultInstanceForType

        public ComputeRoutesRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ComputeRoutesRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ComputeRoutesRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ComputeRoutesRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • setField

        public ComputeRoutesRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • clearField

        public ComputeRoutesRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • clearOneof

        public ComputeRoutesRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • setRepeatedField

        public ComputeRoutesRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • addRepeatedField

        public ComputeRoutesRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • mergeFrom

        public ComputeRoutesRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeRoutesRequest.Builder>
        Throws:
        IOException
      • hasOrigin

        public boolean hasOrigin()
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasOrigin in interface ComputeRoutesRequestOrBuilder
        Returns:
        Whether the origin field is set.
      • getOrigin

        public Waypoint getOrigin()
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOrigin in interface ComputeRoutesRequestOrBuilder
        Returns:
        The origin.
      • setOrigin

        public ComputeRoutesRequest.Builder setOrigin​(Waypoint value)
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeOrigin

        public ComputeRoutesRequest.Builder mergeOrigin​(Waypoint value)
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearOrigin

        public ComputeRoutesRequest.Builder clearOrigin()
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
      • getOriginBuilder

        public Waypoint.Builder getOriginBuilder()
         Required. Origin waypoint.
         
        .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED];
      • hasDestination

        public boolean hasDestination()
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDestination in interface ComputeRoutesRequestOrBuilder
        Returns:
        Whether the destination field is set.
      • getDestination

        public Waypoint getDestination()
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDestination in interface ComputeRoutesRequestOrBuilder
        Returns:
        The destination.
      • setDestination

        public ComputeRoutesRequest.Builder setDestination​(Waypoint value)
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
      • setDestination

        public ComputeRoutesRequest.Builder setDestination​(Waypoint.Builder builderForValue)
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeDestination

        public ComputeRoutesRequest.Builder mergeDestination​(Waypoint value)
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearDestination

        public ComputeRoutesRequest.Builder clearDestination()
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDestinationBuilder

        public Waypoint.Builder getDestinationBuilder()
         Required. Destination waypoint.
         
        .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED];
      • getIntermediatesList

        public List<Waypoint> getIntermediatesList()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIntermediatesList in interface ComputeRoutesRequestOrBuilder
      • getIntermediatesCount

        public int getIntermediatesCount()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIntermediatesCount in interface ComputeRoutesRequestOrBuilder
      • getIntermediates

        public Waypoint getIntermediates​(int index)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIntermediates in interface ComputeRoutesRequestOrBuilder
      • setIntermediates

        public ComputeRoutesRequest.Builder setIntermediates​(int index,
                                                             Waypoint value)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setIntermediates

        public ComputeRoutesRequest.Builder setIntermediates​(int index,
                                                             Waypoint.Builder builderForValue)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addIntermediates

        public ComputeRoutesRequest.Builder addIntermediates​(Waypoint value)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addIntermediates

        public ComputeRoutesRequest.Builder addIntermediates​(int index,
                                                             Waypoint value)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addIntermediates

        public ComputeRoutesRequest.Builder addIntermediates​(Waypoint.Builder builderForValue)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addIntermediates

        public ComputeRoutesRequest.Builder addIntermediates​(int index,
                                                             Waypoint.Builder builderForValue)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addAllIntermediates

        public ComputeRoutesRequest.Builder addAllIntermediates​(Iterable<? extends Waypoint> values)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • clearIntermediates

        public ComputeRoutesRequest.Builder clearIntermediates()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • removeIntermediates

        public ComputeRoutesRequest.Builder removeIntermediates​(int index)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getIntermediatesBuilder

        public Waypoint.Builder getIntermediatesBuilder​(int index)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getIntermediatesOrBuilder

        public WaypointOrBuilder getIntermediatesOrBuilder​(int index)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIntermediatesOrBuilder in interface ComputeRoutesRequestOrBuilder
      • getIntermediatesOrBuilderList

        public List<? extends WaypointOrBuilder> getIntermediatesOrBuilderList()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIntermediatesOrBuilderList in interface ComputeRoutesRequestOrBuilder
      • addIntermediatesBuilder

        public Waypoint.Builder addIntermediatesBuilder()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • addIntermediatesBuilder

        public Waypoint.Builder addIntermediatesBuilder​(int index)
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getIntermediatesBuilderList

        public List<Waypoint.Builder> getIntermediatesBuilderList()
         Optional. A set of waypoints along the route (excluding terminal points),
         for either stopping at or passing by. Up to 25 intermediate waypoints are
         supported.
         
        repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getTravelModeValue

        public int getTravelModeValue()
         Optional. Specifies the mode of transportation.
         
        .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTravelModeValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for travelMode.
      • setTravelModeValue

        public ComputeRoutesRequest.Builder setTravelModeValue​(int value)
         Optional. Specifies the mode of transportation.
         
        .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for travelMode to set.
        Returns:
        This builder for chaining.
      • getTravelMode

        public RouteTravelMode getTravelMode()
         Optional. Specifies the mode of transportation.
         
        .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTravelMode in interface ComputeRoutesRequestOrBuilder
        Returns:
        The travelMode.
      • setTravelMode

        public ComputeRoutesRequest.Builder setTravelMode​(RouteTravelMode value)
         Optional. Specifies the mode of transportation.
         
        .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The travelMode to set.
        Returns:
        This builder for chaining.
      • clearTravelMode

        public ComputeRoutesRequest.Builder clearTravelMode()
         Optional. Specifies the mode of transportation.
         
        .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRoutingPreferenceValue

        public int getRoutingPreferenceValue()
         Optional. Specifies how to compute the route. The server
         attempts to use the selected routing preference to compute the route. If
          the routing preference results in an error or an extra long latency, then
         an error is returned. You can specify this option only when the
         `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
         
        .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRoutingPreferenceValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for routingPreference.
      • setRoutingPreferenceValue

        public ComputeRoutesRequest.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, then
         an error is returned. You can specify this option only when the
         `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
         
        .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for routingPreference to set.
        Returns:
        This builder for chaining.
      • getRoutingPreference

        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, then
         an error is returned. You can specify this option only when the
         `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
         
        .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRoutingPreference in interface ComputeRoutesRequestOrBuilder
        Returns:
        The routingPreference.
      • setRoutingPreference

        public ComputeRoutesRequest.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, then
         an error is returned. You can specify this option only when the
         `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
         
        .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The routingPreference to set.
        Returns:
        This builder for chaining.
      • clearRoutingPreference

        public ComputeRoutesRequest.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, then
         an error is returned. You can specify this option only when the
         `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
         
        .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getPolylineQualityValue

        public int getPolylineQualityValue()
         Optional. Specifies your preference for the quality of the polyline.
         
        .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolylineQualityValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for polylineQuality.
      • setPolylineQualityValue

        public ComputeRoutesRequest.Builder setPolylineQualityValue​(int value)
         Optional. Specifies your preference for the quality of the polyline.
         
        .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for polylineQuality to set.
        Returns:
        This builder for chaining.
      • getPolylineQuality

        public PolylineQuality getPolylineQuality()
         Optional. Specifies your preference for the quality of the polyline.
         
        .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolylineQuality in interface ComputeRoutesRequestOrBuilder
        Returns:
        The polylineQuality.
      • setPolylineQuality

        public ComputeRoutesRequest.Builder setPolylineQuality​(PolylineQuality value)
         Optional. Specifies your preference for the quality of the polyline.
         
        .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The polylineQuality to set.
        Returns:
        This builder for chaining.
      • clearPolylineQuality

        public ComputeRoutesRequest.Builder clearPolylineQuality()
         Optional. Specifies your preference for the quality of the polyline.
         
        .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getPolylineEncodingValue

        public int getPolylineEncodingValue()
         Optional. Specifies the preferred encoding for the polyline.
         
        .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolylineEncodingValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for polylineEncoding.
      • setPolylineEncodingValue

        public ComputeRoutesRequest.Builder setPolylineEncodingValue​(int value)
         Optional. Specifies the preferred encoding for the polyline.
         
        .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for polylineEncoding to set.
        Returns:
        This builder for chaining.
      • getPolylineEncoding

        public PolylineEncoding getPolylineEncoding()
         Optional. Specifies the preferred encoding for the polyline.
         
        .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPolylineEncoding in interface ComputeRoutesRequestOrBuilder
        Returns:
        The polylineEncoding.
      • setPolylineEncoding

        public ComputeRoutesRequest.Builder setPolylineEncoding​(PolylineEncoding value)
         Optional. Specifies the preferred encoding for the polyline.
         
        .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The polylineEncoding to set.
        Returns:
        This builder for chaining.
      • clearPolylineEncoding

        public ComputeRoutesRequest.Builder clearPolylineEncoding()
         Optional. Specifies the preferred encoding for the polyline.
         
        .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • hasDepartureTime

        public boolean hasDepartureTime()
         Optional. The departure time. If you don't set this value, then this value
         defaults to the time that you made the request.
         NOTE: You can only specify a `departure_time` in the past when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasDepartureTime in interface ComputeRoutesRequestOrBuilder
        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 = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDepartureTime in interface ComputeRoutesRequestOrBuilder
        Returns:
        The departureTime.
      • setDepartureTime

        public ComputeRoutesRequest.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      • setDepartureTime

        public ComputeRoutesRequest.Builder setDepartureTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Optional. The departure time. If you don't set this value, then this value
         defaults to the time that you made the request.
         NOTE: You can only specify a `departure_time` in the past when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];
      • mergeDepartureTime

        public ComputeRoutesRequest.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      • clearDepartureTime

        public ComputeRoutesRequest.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 = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getDepartureTimeBuilder

        public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder()
         Optional. The departure time. If you don't set this value, then this value
         defaults to the time that you made the request.
         NOTE: You can only specify a `departure_time` in the past when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getDepartureTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder()
         Optional. The departure time. If you don't set this value, then this value
         defaults to the time that you made the request.
         NOTE: You can only specify a `departure_time` in the past when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDepartureTimeOrBuilder in interface ComputeRoutesRequestOrBuilder
      • 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 = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasArrivalTime in interface ComputeRoutesRequestOrBuilder
        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 = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArrivalTime in interface ComputeRoutesRequestOrBuilder
        Returns:
        The arrivalTime.
      • setArrivalTime

        public ComputeRoutesRequest.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 = 19 [(.google.api.field_behavior) = OPTIONAL];
      • setArrivalTime

        public ComputeRoutesRequest.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 = 19 [(.google.api.field_behavior) = OPTIONAL];
      • mergeArrivalTime

        public ComputeRoutesRequest.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 = 19 [(.google.api.field_behavior) = OPTIONAL];
      • clearArrivalTime

        public ComputeRoutesRequest.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 = 19 [(.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 = 19 [(.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 = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArrivalTimeOrBuilder in interface ComputeRoutesRequestOrBuilder
      • getComputeAlternativeRoutes

        public boolean getComputeAlternativeRoutes()
         Optional. Specifies whether to calculate alternate routes in addition to
         the route. No alternative routes are returned for requests that have
         intermediate waypoints.
         
        bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getComputeAlternativeRoutes in interface ComputeRoutesRequestOrBuilder
        Returns:
        The computeAlternativeRoutes.
      • setComputeAlternativeRoutes

        public ComputeRoutesRequest.Builder setComputeAlternativeRoutes​(boolean value)
         Optional. Specifies whether to calculate alternate routes in addition to
         the route. No alternative routes are returned for requests that have
         intermediate waypoints.
         
        bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The computeAlternativeRoutes to set.
        Returns:
        This builder for chaining.
      • clearComputeAlternativeRoutes

        public ComputeRoutesRequest.Builder clearComputeAlternativeRoutes()
         Optional. Specifies whether to calculate alternate routes in addition to
         the route. No alternative routes are returned for requests that have
         intermediate waypoints.
         
        bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • hasRouteModifiers

        public boolean hasRouteModifiers()
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRouteModifiers in interface ComputeRoutesRequestOrBuilder
        Returns:
        Whether the routeModifiers field is set.
      • getRouteModifiers

        public RouteModifiers getRouteModifiers()
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRouteModifiers in interface ComputeRoutesRequestOrBuilder
        Returns:
        The routeModifiers.
      • setRouteModifiers

        public ComputeRoutesRequest.Builder setRouteModifiers​(RouteModifiers value)
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
      • setRouteModifiers

        public ComputeRoutesRequest.Builder setRouteModifiers​(RouteModifiers.Builder builderForValue)
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
      • mergeRouteModifiers

        public ComputeRoutesRequest.Builder mergeRouteModifiers​(RouteModifiers value)
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
      • clearRouteModifiers

        public ComputeRoutesRequest.Builder clearRouteModifiers()
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
      • getRouteModifiersBuilder

        public RouteModifiers.Builder getRouteModifiersBuilder()
         Optional. A set of conditions to satisfy that affect the way routes are
         calculated.
         
        .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL];
      • 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 route request.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface ComputeRoutesRequestOrBuilder
        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 route request.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface ComputeRoutesRequestOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public ComputeRoutesRequest.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 route request.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public ComputeRoutesRequest.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 route request.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public ComputeRoutesRequest.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 route request.
         
        string language_code = 10 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • getRegionCode

        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 = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRegionCode in interface ComputeRoutesRequestOrBuilder
        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 = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRegionCodeBytes in interface ComputeRoutesRequestOrBuilder
        Returns:
        The bytes for regionCode.
      • setRegionCode

        public ComputeRoutesRequest.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 = 16 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The regionCode to set.
        Returns:
        This builder for chaining.
      • clearRegionCode

        public ComputeRoutesRequest.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 = 16 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRegionCodeBytes

        public ComputeRoutesRequest.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 = 16 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for regionCode to set.
        Returns:
        This builder for chaining.
      • getUnitsValue

        public int getUnitsValue()
         Optional. Specifies the units of measure for the display fields. These
         fields include the `instruction` field in
         [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
         units of measure used for the route, leg, step distance, and duration are
         not affected by this value. If you don't provide this value, then the
         display units are inferred from the location of the first origin.
         
        .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUnitsValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for units.
      • setUnitsValue

        public ComputeRoutesRequest.Builder setUnitsValue​(int value)
         Optional. Specifies the units of measure for the display fields. These
         fields include the `instruction` field in
         [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
         units of measure used for the route, leg, step distance, and duration are
         not affected by this value. If you don't provide this value, then the
         display units are inferred from the location of the first origin.
         
        .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for units to set.
        Returns:
        This builder for chaining.
      • getUnits

        public Units getUnits()
         Optional. Specifies the units of measure for the display fields. These
         fields include the `instruction` field in
         [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
         units of measure used for the route, leg, step distance, and duration are
         not affected by this value. If you don't provide this value, then the
         display units are inferred from the location of the first origin.
         
        .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUnits in interface ComputeRoutesRequestOrBuilder
        Returns:
        The units.
      • setUnits

        public ComputeRoutesRequest.Builder setUnits​(Units value)
         Optional. Specifies the units of measure for the display fields. These
         fields include the `instruction` field in
         [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
         units of measure used for the route, leg, step distance, and duration are
         not affected by this value. If you don't provide this value, then the
         display units are inferred from the location of the first origin.
         
        .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The units to set.
        Returns:
        This builder for chaining.
      • clearUnits

        public ComputeRoutesRequest.Builder clearUnits()
         Optional. Specifies the units of measure for the display fields. These
         fields include the `instruction` field in
         [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
         units of measure used for the route, leg, step distance, and duration are
         not affected by this value. If you don't provide this value, then the
         display units are inferred from the location of the first origin.
         
        .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getOptimizeWaypointOrder

        public boolean getOptimizeWaypointOrder()
         Optional. If set to true, the service attempts to minimize the overall cost
         of the route by re-ordering the specified intermediate waypoints. The
         request fails if any of the intermediate waypoints is a `via` waypoint. Use
         `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
         find the new ordering.
         If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
         not requested in the `X-Goog-FieldMask` header, the request fails.
         If `optimize_waypoint_order` is set to false,
         `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
         empty.
         
        bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOptimizeWaypointOrder in interface ComputeRoutesRequestOrBuilder
        Returns:
        The optimizeWaypointOrder.
      • setOptimizeWaypointOrder

        public ComputeRoutesRequest.Builder setOptimizeWaypointOrder​(boolean value)
         Optional. If set to true, the service attempts to minimize the overall cost
         of the route by re-ordering the specified intermediate waypoints. The
         request fails if any of the intermediate waypoints is a `via` waypoint. Use
         `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
         find the new ordering.
         If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
         not requested in the `X-Goog-FieldMask` header, the request fails.
         If `optimize_waypoint_order` is set to false,
         `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
         empty.
         
        bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The optimizeWaypointOrder to set.
        Returns:
        This builder for chaining.
      • clearOptimizeWaypointOrder

        public ComputeRoutesRequest.Builder clearOptimizeWaypointOrder()
         Optional. If set to true, the service attempts to minimize the overall cost
         of the route by re-ordering the specified intermediate waypoints. The
         request fails if any of the intermediate waypoints is a `via` waypoint. Use
         `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
         find the new ordering.
         If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
         not requested in the `X-Goog-FieldMask` header, the request fails.
         If `optimize_waypoint_order` is set to false,
         `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
         empty.
         
        bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRequestedReferenceRoutesList

        public List<ComputeRoutesRequest.ReferenceRoute> getRequestedReferenceRoutesList()
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestedReferenceRoutesList in interface ComputeRoutesRequestOrBuilder
        Returns:
        A list containing the requestedReferenceRoutes.
      • getRequestedReferenceRoutesCount

        public int getRequestedReferenceRoutesCount()
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestedReferenceRoutesCount in interface ComputeRoutesRequestOrBuilder
        Returns:
        The count of requestedReferenceRoutes.
      • getRequestedReferenceRoutes

        public ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes​(int index)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestedReferenceRoutes in interface ComputeRoutesRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The requestedReferenceRoutes at the given index.
      • setRequestedReferenceRoutes

        public ComputeRoutesRequest.Builder setRequestedReferenceRoutes​(int index,
                                                                        ComputeRoutesRequest.ReferenceRoute value)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The requestedReferenceRoutes to set.
        Returns:
        This builder for chaining.
      • addRequestedReferenceRoutes

        public ComputeRoutesRequest.Builder addRequestedReferenceRoutes​(ComputeRoutesRequest.ReferenceRoute value)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestedReferenceRoutes to add.
        Returns:
        This builder for chaining.
      • addAllRequestedReferenceRoutes

        public ComputeRoutesRequest.Builder addAllRequestedReferenceRoutes​(Iterable<? extends ComputeRoutesRequest.ReferenceRoute> values)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The requestedReferenceRoutes to add.
        Returns:
        This builder for chaining.
      • clearRequestedReferenceRoutes

        public ComputeRoutesRequest.Builder clearRequestedReferenceRoutes()
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRequestedReferenceRoutesValueList

        public List<Integer> getRequestedReferenceRoutesValueList()
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestedReferenceRoutesValueList in interface ComputeRoutesRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for requestedReferenceRoutes.
      • getRequestedReferenceRoutesValue

        public int getRequestedReferenceRoutesValue​(int index)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestedReferenceRoutesValue in interface ComputeRoutesRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of requestedReferenceRoutes at the given index.
      • setRequestedReferenceRoutesValue

        public ComputeRoutesRequest.Builder setRequestedReferenceRoutesValue​(int index,
                                                                             int value)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for requestedReferenceRoutes to set.
        Returns:
        This builder for chaining.
      • addRequestedReferenceRoutesValue

        public ComputeRoutesRequest.Builder addRequestedReferenceRoutesValue​(int value)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for requestedReferenceRoutes to add.
        Returns:
        This builder for chaining.
      • addAllRequestedReferenceRoutesValue

        public ComputeRoutesRequest.Builder addAllRequestedReferenceRoutesValue​(Iterable<Integer> values)
         Optional. Specifies what reference routes to calculate as part of the
         request in addition to the default route. A reference route is a route with
         a different route calculation objective than the default route. For example
         a `FUEL_EFFICIENT` reference route calculation takes into account various
         parameters that would generate an optimal fuel efficient route.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for requestedReferenceRoutes to add.
        Returns:
        This builder for chaining.
      • getExtraComputationsList

        public List<ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExtraComputationsList in interface ComputeRoutesRequestOrBuilder
        Returns:
        A list containing the extraComputations.
      • getExtraComputationsCount

        public int getExtraComputationsCount()
         Optional. A list of extra computations which may be used to complete the
         request. Note: These extra computations may return extra fields on the
         response. These extra fields must also be specified in the field mask to be
         returned in the response.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExtraComputationsCount in interface ComputeRoutesRequestOrBuilder
        Returns:
        The count of extraComputations.
      • getExtraComputations

        public ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExtraComputations in interface ComputeRoutesRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The extraComputations at the given index.
      • setExtraComputations

        public ComputeRoutesRequest.Builder setExtraComputations​(int index,
                                                                 ComputeRoutesRequest.ExtraComputation value)
         Optional. A list of extra computations which may be used to complete the
         request. Note: These extra computations may return extra fields on the
         response. These extra fields must also be specified in the field mask to be
         returned in the response.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The extraComputations to set.
        Returns:
        This builder for chaining.
      • addExtraComputations

        public ComputeRoutesRequest.Builder addExtraComputations​(ComputeRoutesRequest.ExtraComputation value)
         Optional. A list of extra computations which may be used to complete the
         request. Note: These extra computations may return extra fields on the
         response. These extra fields must also be specified in the field mask to be
         returned in the response.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The extraComputations to add.
        Returns:
        This builder for chaining.
      • addAllExtraComputations

        public ComputeRoutesRequest.Builder addAllExtraComputations​(Iterable<? extends ComputeRoutesRequest.ExtraComputation> values)
         Optional. A list of extra computations which may be used to complete the
         request. Note: These extra computations may return extra fields on the
         response. These extra fields must also be specified in the field mask to be
         returned in the response.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The extraComputations to add.
        Returns:
        This builder for chaining.
      • clearExtraComputations

        public ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExtraComputationsValueList in interface ComputeRoutesRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for extraComputations.
      • getExtraComputationsValue

        public int getExtraComputationsValue​(int index)
         Optional. A list of extra computations which may be used to complete the
         request. Note: These extra computations may return extra fields on the
         response. These extra fields must also be specified in the field mask to be
         returned in the response.
         
        repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExtraComputationsValue in interface ComputeRoutesRequestOrBuilder
        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 ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for extraComputations to set.
        Returns:
        This builder for chaining.
      • addExtraComputationsValue

        public ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for extraComputations to add.
        Returns:
        This builder for chaining.
      • addAllExtraComputationsValue

        public ComputeRoutesRequest.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.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for extraComputations to add.
        Returns:
        This builder for chaining.
      • getTrafficModelValue

        public int getTrafficModelValue()
         Optional. Specifies the assumptions to use when calculating time in
         traffic. This setting affects the value returned in the duration field in
         the [Route][google.maps.routing.v2.Route] and
         [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
         time in traffic based on historical averages.
         `TrafficModel` is only available for requests that have set
         [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
         `TRAFFIC_AWARE_OPTIMAL` and
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
         Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
         specified.
         
        .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTrafficModelValue in interface ComputeRoutesRequestOrBuilder
        Returns:
        The enum numeric value on the wire for trafficModel.
      • setTrafficModelValue

        public ComputeRoutesRequest.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 [Route][google.maps.routing.v2.Route] and
         [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
         time in traffic based on historical averages.
         `TrafficModel` is only available for requests that have set
         [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
         `TRAFFIC_AWARE_OPTIMAL` and
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
         Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
         specified.
         
        .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for trafficModel to set.
        Returns:
        This builder for chaining.
      • getTrafficModel

        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 [Route][google.maps.routing.v2.Route] and
         [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
         time in traffic based on historical averages.
         `TrafficModel` is only available for requests that have set
         [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
         `TRAFFIC_AWARE_OPTIMAL` and
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
         Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
         specified.
         
        .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTrafficModel in interface ComputeRoutesRequestOrBuilder
        Returns:
        The trafficModel.
      • setTrafficModel

        public ComputeRoutesRequest.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 [Route][google.maps.routing.v2.Route] and
         [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
         time in traffic based on historical averages.
         `TrafficModel` is only available for requests that have set
         [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
         `TRAFFIC_AWARE_OPTIMAL` and
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
         Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
         specified.
         
        .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The trafficModel to set.
        Returns:
        This builder for chaining.
      • clearTrafficModel

        public ComputeRoutesRequest.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 [Route][google.maps.routing.v2.Route] and
         [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
         time in traffic based on historical averages.
         `TrafficModel` is only available for requests that have set
         [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
         `TRAFFIC_AWARE_OPTIMAL` and
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
         Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
         specified.
         
        .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • hasTransitPreferences

        public boolean hasTransitPreferences()
         Optional. Specifies preferences that influence the route returned for
         `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasTransitPreferences in interface ComputeRoutesRequestOrBuilder
        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 = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTransitPreferences in interface ComputeRoutesRequestOrBuilder
        Returns:
        The transitPreferences.
      • setTransitPreferences

        public ComputeRoutesRequest.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 = 20 [(.google.api.field_behavior) = OPTIONAL];
      • setTransitPreferences

        public ComputeRoutesRequest.Builder setTransitPreferences​(TransitPreferences.Builder builderForValue)
         Optional. Specifies preferences that influence the route returned for
         `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
         [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
         `TRANSIT`.
         
        .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL];
      • mergeTransitPreferences

        public ComputeRoutesRequest.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 = 20 [(.google.api.field_behavior) = OPTIONAL];
      • clearTransitPreferences

        public ComputeRoutesRequest.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 = 20 [(.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 = 20 [(.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 = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTransitPreferencesOrBuilder in interface ComputeRoutesRequestOrBuilder
      • setUnknownFields

        public final ComputeRoutesRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>
      • mergeUnknownFields

        public final ComputeRoutesRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ComputeRoutesRequest.Builder>