diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java index 48d661e9795e..57b858d4fd12 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java @@ -76,8 +76,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -99,8 +99,8 @@ public java.util.List getOriginsLi
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -123,8 +123,8 @@ public java.util.List getOriginsLi
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -146,8 +146,8 @@ public int getOriginsCount() {
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -169,8 +169,8 @@ public com.google.maps.routing.v2.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
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -195,7 +195,8 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
    *
    *
    * 
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -210,7 +211,8 @@ public java.util.List getDest * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -226,7 +228,8 @@ public java.util.List getDest * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -241,7 +244,8 @@ public int getDestinationsCount() { * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -256,7 +260,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int ind * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -315,13 +320,11 @@ public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { * * *
-   * 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. In the future,
-   * we might implement a fallback mechanism to use a different option when the
-   * preferred option does not give a valid result. You can specify this option
-   * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-   * request fails.
+   * 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.
    * 
* * @@ -338,13 +341,11 @@ 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. In the future,
-   * we might implement a fallback mechanism to use a different option when the
-   * preferred option does not give a valid result. You can specify this option
-   * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-   * request fails.
+   * 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.
    * 
* * @@ -367,9 +368,9 @@ public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -385,9 +386,9 @@ public boolean hasDepartureTime() { * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -405,9 +406,9 @@ public com.google.protobuf.Timestamp getDepartureTime() { * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -966,8 +967,8 @@ private void ensureOriginsIsMutable() { * * *
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -992,8 +993,8 @@ public java.util.List getOriginsLi
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1018,8 +1019,8 @@ public int getOriginsCount() {
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1044,8 +1045,8 @@ public com.google.maps.routing.v2.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
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1076,8 +1077,8 @@ public Builder setOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1106,8 +1107,8 @@ public Builder setOrigins(
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1138,8 +1139,8 @@ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) {
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1170,8 +1171,8 @@ public Builder addOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1200,8 +1201,8 @@ public Builder addOrigins(
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1230,8 +1231,8 @@ public Builder addOrigins(
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1260,8 +1261,8 @@ public Builder addAllOrigins(
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1289,8 +1290,8 @@ public Builder clearOrigins() {
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1318,8 +1319,8 @@ public 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
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1340,8 +1341,8 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder(in
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1366,8 +1367,8 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1393,8 +1394,8 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1416,8 +1417,8 @@ public com.google.maps.routing.v2.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
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1439,8 +1440,8 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder(in
      *
      *
      * 
-     * Required. Array of origins, which determines the rows of the response matrix.
-     * Several size restrictions apply to the cardinality of origins and
+     * Required. Array of origins, which determines the rows of the response
+     * matrix. Several size restrictions apply to the cardinality of origins and
      * destinations:
      * * The number of elements (origins × destinations) must be no greater than
      * 625 in any case.
@@ -1498,7 +1499,8 @@ private void ensureDestinationsIsMutable() {
      *
      *
      * 
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1516,7 +1518,8 @@ public java.util.List getDest * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1534,7 +1537,8 @@ public int getDestinationsCount() { * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1552,7 +1556,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int ind * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1577,7 +1582,8 @@ public Builder setDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1599,7 +1605,8 @@ public Builder setDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1623,7 +1630,8 @@ public Builder addDestinations(com.google.maps.routing.v2.RouteMatrixDestination * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1648,7 +1656,8 @@ public Builder addDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1670,7 +1679,8 @@ public Builder addDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1692,7 +1702,8 @@ public Builder addDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1714,7 +1725,8 @@ public Builder addAllDestinations( * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1735,7 +1747,8 @@ public Builder clearDestinations() { * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1756,7 +1769,8 @@ public Builder removeDestinations(int index) { * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1771,7 +1785,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination.Builder getDestinations * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1790,7 +1805,8 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1809,7 +1825,8 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1824,7 +1841,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinations * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1841,7 +1859,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinations * * *
-     * Required. Array of destinations, which determines the columns of the response matrix.
+     * Required. Array of destinations, which determines the columns of the
+     * response matrix.
      * 
* * @@ -1976,13 +1995,11 @@ public Builder clearTravelMode() { * * *
-     * 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. In the future,
-     * we might implement a fallback mechanism to use a different option when the
-     * preferred option does not give a valid result. You can specify this option
-     * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-     * request fails.
+     * 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.
      * 
* * @@ -1999,13 +2016,11 @@ 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. In the future,
-     * we might implement a fallback mechanism to use a different option when the
-     * preferred option does not give a valid result. You can specify this option
-     * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-     * request fails.
+     * 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.
      * 
* * @@ -2025,13 +2040,11 @@ public 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. In the future,
-     * we might implement a fallback mechanism to use a different option when the
-     * preferred option does not give a valid result. You can specify this option
-     * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-     * request fails.
+     * 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.
      * 
* * @@ -2051,13 +2064,11 @@ public com.google.maps.routing.v2.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. In the future,
-     * we might implement a fallback mechanism to use a different option when the
-     * preferred option does not give a valid result. You can specify this option
-     * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-     * request fails.
+     * 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.
      * 
* * @@ -2080,13 +2091,11 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference * * *
-     * 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. In the future,
-     * we might implement a fallback mechanism to use a different option when the
-     * preferred option does not give a valid result. You can specify this option
-     * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-     * request fails.
+     * 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.
      * 
* * @@ -2112,9 +2121,9 @@ public Builder clearRoutingPreference() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2130,9 +2139,9 @@ public boolean hasDepartureTime() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2154,9 +2163,9 @@ public com.google.protobuf.Timestamp getDepartureTime() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2180,9 +2189,9 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2203,9 +2212,9 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderFor * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2233,9 +2242,9 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2257,9 +2266,9 @@ public Builder clearDepartureTime() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2275,9 +2284,9 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * @@ -2297,9 +2306,9 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { * * *
-     * Optional. The departure time. If you don't set this value, this defaults to the time
-     * that you made the request. If you set this value to a time that has already
-     * occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, this defaults to
+     * the time that you made the request. If you set this value to a time that
+     * has already occurred, the request fails.
      * 
* * diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java index 6e7f1ef478d8..6d66db78f4b4 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -47,8 +47,8 @@ public interface ComputeRouteMatrixRequestOrBuilder
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -67,8 +67,8 @@ public interface ComputeRouteMatrixRequestOrBuilder
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -87,8 +87,8 @@ public interface ComputeRouteMatrixRequestOrBuilder
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -108,8 +108,8 @@ public interface ComputeRouteMatrixRequestOrBuilder
    *
    *
    * 
-   * Required. Array of origins, which determines the rows of the response matrix.
-   * Several size restrictions apply to the cardinality of origins and
+   * Required. Array of origins, which determines the rows of the response
+   * matrix. Several size restrictions apply to the cardinality of origins and
    * destinations:
    * * The number of elements (origins × destinations) must be no greater than
    * 625 in any case.
@@ -129,7 +129,8 @@ public interface ComputeRouteMatrixRequestOrBuilder
    *
    *
    * 
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -141,7 +142,8 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -153,7 +155,8 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -165,7 +168,8 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -178,7 +182,8 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Required. Array of destinations, which determines the columns of the response matrix.
+   * Required. Array of destinations, which determines the columns of the
+   * response matrix.
    * 
* * @@ -220,13 +225,11 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * 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. In the future,
-   * we might implement a fallback mechanism to use a different option when the
-   * preferred option does not give a valid result. You can specify this option
-   * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-   * request fails.
+   * 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.
    * 
* * @@ -240,13 +243,11 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * 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. In the future,
-   * we might implement a fallback mechanism to use a different option when the
-   * preferred option does not give a valid result. You can specify this option
-   * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
-   * request fails.
+   * 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.
    * 
* * @@ -261,9 +262,9 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -276,9 +277,9 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -291,9 +292,9 @@ public interface ComputeRouteMatrixRequestOrBuilder * * *
-   * Optional. The departure time. If you don't set this value, this defaults to the time
-   * that you made the request. If you set this value to a time that has already
-   * occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, this defaults to
+   * the time that you made the request. If you set this value to a time that
+   * has already occurred, the request fails.
    * 
* * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java index 86bd34992e8b..fe4fdb178f8a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java @@ -452,10 +452,8 @@ public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { * 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -475,10 +473,8 @@ 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -638,7 +634,8 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { * * *
-   * Optional. Specifies whether to calculate alternate routes in addition to the route.
+   * Optional. Specifies whether to calculate alternate routes in addition to
+   * the route.
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -832,12 +829,11 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -857,12 +853,11 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -879,12 +874,11 @@ 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -903,12 +897,11 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -925,12 +918,11 @@ public java.util.List 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -2610,10 +2602,8 @@ public Builder clearTravelMode() { * 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -2633,10 +2623,8 @@ 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -2659,10 +2647,8 @@ public 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -2685,10 +2671,8 @@ public com.google.maps.routing.v2.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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -2714,10 +2698,8 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference * 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -3161,7 +3143,8 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { * * *
-     * Optional. Specifies whether to calculate alternate routes in addition to the route.
+     * Optional. Specifies whether to calculate alternate routes in addition to
+     * the route.
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3176,7 +3159,8 @@ public boolean getComputeAlternativeRoutes() { * * *
-     * Optional. Specifies whether to calculate alternate routes in addition to the route.
+     * Optional. Specifies whether to calculate alternate routes in addition to
+     * the route.
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3194,7 +3178,8 @@ public Builder setComputeAlternativeRoutes(boolean value) { * * *
-     * Optional. Specifies whether to calculate alternate routes in addition to the route.
+     * Optional. Specifies whether to calculate alternate routes in addition to
+     * the route.
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3681,12 +3666,11 @@ private void ensureRequestedReferenceRoutesIsMutable() { * * *
-     * 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3705,12 +3689,11 @@ private void ensureRequestedReferenceRoutesIsMutable() { * * *
-     * 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3726,12 +3709,11 @@ 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3749,12 +3731,11 @@ 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3779,12 +3760,11 @@ public Builder setRequestedReferenceRoutes( * * *
-     * 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3808,12 +3788,11 @@ public Builder addRequestedReferenceRoutes( * * *
-     * 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3837,12 +3816,11 @@ public Builder addAllRequestedReferenceRoutes( * * *
-     * 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3861,12 +3839,11 @@ public 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3882,12 +3859,11 @@ public java.util.List 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3904,12 +3880,11 @@ 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3930,12 +3905,11 @@ public 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * @@ -3955,12 +3929,11 @@ public 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 an FUEL_EFFICIENT reference route
-     * calculation takes into account various parameters that would generate an
-     * optimal fuel efficient route.
+     * 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
+     * an FUEL_EFFICIENT reference route calculation takes into account various
+     * parameters that would generate an optimal fuel efficient route.
      * 
* * diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java index bd62b69664af..35780b38fcc4 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java @@ -210,10 +210,8 @@ public interface ComputeRoutesRequestOrBuilder * 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -230,10 +228,8 @@ public interface ComputeRoutesRequestOrBuilder * 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. In the future, we might implement a fallback - * mechanism to use a different option when the preferred option does not give - * a valid result. You can specify this option only when the `travel_mode` is - * `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + * an error is returned. You can specify this option only when the + * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. *
* * @@ -350,7 +346,8 @@ public interface ComputeRoutesRequestOrBuilder * * *
-   * Optional. Specifies whether to calculate alternate routes in addition to the route.
+   * Optional. Specifies whether to calculate alternate routes in addition to
+   * the route.
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -477,12 +474,11 @@ public interface ComputeRoutesRequestOrBuilder * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -497,12 +493,11 @@ public interface ComputeRoutesRequestOrBuilder * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -516,12 +511,11 @@ public interface ComputeRoutesRequestOrBuilder * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -537,12 +531,11 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * @@ -556,12 +549,11 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer * * *
-   * 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 an FUEL_EFFICIENT reference route
-   * calculation takes into account various parameters that would generate an
-   * optimal fuel efficient route.
+   * 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
+   * an FUEL_EFFICIENT reference route calculation takes into account various
+   * parameters that would generate an optimal fuel efficient route.
    * 
* * diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java index c7f18faddafa..fab593f4b642 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java @@ -662,6 +662,10 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -689,6 +693,10 @@ public java.lang.String getRouteToken() { * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -3410,6 +3418,10 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -3436,6 +3448,10 @@ public java.lang.String getRouteToken() { * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -3462,6 +3478,10 @@ public com.google.protobuf.ByteString getRouteTokenBytes() { * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -3487,6 +3507,10 @@ public Builder setRouteToken(java.lang.String value) { * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -3508,6 +3532,10 @@ public Builder clearRouteToken() { * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java index f3acda6beda8..8d44746e443e 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java @@ -463,6 +463,10 @@ public interface RouteOrBuilder * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; @@ -479,6 +483,10 @@ public interface RouteOrBuilder * and in the event of rerouting honor the original intention when Routes * ComputeRoutes is called. Customers should treat this token as an * opaque blob. + * NOTE: `Route.route_token` is only available for requests that have set + * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + * requests that have Via waypoints. *
* * string route_token = 12; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java index b405e143175b..eb2f5ca3d254 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java @@ -23,6 +23,10 @@ * *
  * A set of values used to specify the mode of travel.
+ * NOTE: WALK, BICYCLE, and TWO_WHEELER routes are in beta and might sometimes
+ * be missing clear sidewalks, pedestrian paths, or bicycling paths.
+ * You must display this warning to the user for all walking, bicycling, and
+ * two-wheel routes that you display in your app.
  * 
* * Protobuf enum {@code google.maps.routing.v2.RouteTravelMode} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto index f78b22c7d694..7ce7c294fdcc 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto @@ -86,6 +86,10 @@ message Route { // and in the event of rerouting honor the original intention when Routes // ComputeRoutes is called. Customers should treat this token as an // opaque blob. + // NOTE: `Route.route_token` is only available for requests that have set + // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for + // requests that have Via waypoints. string route_token = 12; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto index adc091e166fd..2eb9e5c29236 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto @@ -27,6 +27,10 @@ option php_namespace = "Google\\Maps\\Routing\\V2"; option ruby_package = "Google::Maps::Routing::V2"; // A set of values used to specify the mode of travel. +// NOTE: WALK, BICYCLE, and TWO_WHEELER routes are in beta and might sometimes +// be missing clear sidewalks, pedestrian paths, or bicycling paths. +// You must display this warning to the user for all walking, bicycling, and +// two-wheel routes that you display in your app. enum RouteTravelMode { // No travel mode specified. Defaults to `DRIVE`. TRAVEL_MODE_UNSPECIFIED = 0; diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto index 7eb2229d5b3d..d2d241c05eb7 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto @@ -122,7 +122,8 @@ service Routes { // be automatically included in the response. // * Selecting only the fields that you need results in a smaller response // size, and thus higher network throughput. - rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) returns (stream RouteMatrixElement) { + rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) + returns (stream RouteMatrixElement) { option (google.api.http) = { post: "/distanceMatrix/v2:computeRouteMatrix" body: "*" @@ -159,24 +160,26 @@ message ComputeRoutesRequest { // 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. In the future, we might implement a fallback - // mechanism to use a different option when the preferred option does not give - // a valid result. You can specify this option only when the `travel_mode` is - // `DRIVE` or `TWO_WHEELER`, otherwise the request fails. - RoutingPreference routing_preference = 5 [(google.api.field_behavior) = OPTIONAL]; + // an error is returned. You can specify this option only when the + // `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails. + RoutingPreference routing_preference = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies your preference for the quality of the polyline. PolylineQuality polyline_quality = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the preferred encoding for the polyline. - PolylineEncoding polyline_encoding = 12 [(google.api.field_behavior) = OPTIONAL]; + PolylineEncoding polyline_encoding = 12 + [(google.api.field_behavior) = OPTIONAL]; // Optional. The departure time. If you don't set this value, then this value // defaults to the time that you made the request. If you set this value to a // time that has already occurred, then the request fails. - google.protobuf.Timestamp departure_time = 7 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp departure_time = 7 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specifies whether to calculate alternate routes in addition to the route. + // Optional. Specifies whether to calculate alternate routes in addition to + // the route. bool compute_alternative_routes = 8 [(google.api.field_behavior) = OPTIONAL]; // Optional. A set of conditions to satisfy that affect the way routes are @@ -198,13 +201,13 @@ message ComputeRoutesRequest { // units are inferred from the location of the request. Units units = 11 [(google.api.field_behavior) = OPTIONAL]; - // 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 an FUEL_EFFICIENT reference route - // calculation takes into account various parameters that would generate an - // optimal fuel efficient route. - repeated ReferenceRoute requested_reference_routes = 14 [(google.api.field_behavior) = OPTIONAL]; + // 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 + // an FUEL_EFFICIENT reference route calculation takes into account various + // parameters that would generate an optimal fuel efficient route. + repeated ReferenceRoute requested_reference_routes = 14 + [(google.api.field_behavior) = OPTIONAL]; } // ComputeRoutes the response message. @@ -225,8 +228,8 @@ message ComputeRoutesResponse { // ComputeRouteMatrix request message message ComputeRouteMatrixRequest { - // Required. Array of origins, which determines the rows of the response matrix. - // Several size restrictions apply to the cardinality of origins and + // Required. Array of origins, which determines the rows of the response + // matrix. Several size restrictions apply to the cardinality of origins and // destinations: // // * The number of elements (origins × destinations) must be no greater than @@ -235,27 +238,30 @@ message ComputeRouteMatrixRequest { // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. // * The number of waypoints (origins + destinations) specified as `place_id` // must be no greater than 50. - repeated RouteMatrixOrigin origins = 1 [(google.api.field_behavior) = REQUIRED]; + repeated RouteMatrixOrigin origins = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. Array of destinations, which determines the columns of the response matrix. - repeated RouteMatrixDestination destinations = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. Array of destinations, which determines the columns of the + // response matrix. + repeated RouteMatrixDestination destinations = 2 + [(google.api.field_behavior) = REQUIRED]; // Optional. Specifies the mode of transportation. RouteTravelMode travel_mode = 3 [(google.api.field_behavior) = OPTIONAL]; - // 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. In the future, - // we might implement a fallback mechanism to use a different option when the - // preferred option does not give a valid result. You can specify this option - // only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the - // request fails. - RoutingPreference routing_preference = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The departure time. If you don't set this value, this defaults to the time - // that you made the request. If you set this value to a time that has already - // occurred, the request fails. - google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL]; + // 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. + RoutingPreference routing_preference = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The departure time. If you don't set this value, this defaults to + // the time that you made the request. If you set this value to a time that + // has already occurred, the request fails. + google.protobuf.Timestamp departure_time = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A single origin for ComputeRouteMatrixRequest