From 3b646fabd5aa4f29a176817d5ed6a23de9583ccb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:39:34 -0800 Subject: [PATCH] feat: Add ExtraComputations feature to ComputeRoutes and ComputeRouteMatrix (#3868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add ExtraComputations feature to ComputeRoutes and ComputeRouteMatrix PiperOrigin-RevId: 503020999 Source-Link: https://github.com/googleapis/googleapis/commit/23dc63cfbe99e84ff63f54ae2e3fbd1d1c2fa335 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c096dac123bc5901d820ba7811f4471afef9ad13 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiYzA5NmRhYzEyM2JjNTkwMWQ4MjBiYTc4MTFmNDQ3MWFmZWY5YWQxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../maps/routing/v2/routes_service.proto | 38 ++++ .../google-maps-routing/protos/protos.d.ts | 29 +++ packages/google-maps-routing/protos/protos.js | 174 ++++++++++++++++++ .../google-maps-routing/protos/protos.json | 32 ++++ .../v2/routes.compute_route_matrix.js | 7 + .../generated/v2/routes.compute_routes.js | 7 + ...ippet_metadata.google.maps.routing.v2.json | 12 +- .../src/v2/routes_client.ts | 10 + 8 files changed, 307 insertions(+), 2 deletions(-) diff --git a/packages/google-maps-routing/protos/google/maps/routing/v2/routes_service.proto b/packages/google-maps-routing/protos/google/maps/routing/v2/routes_service.proto index d2d241c05eb..f1f1df66b97 100644 --- a/packages/google-maps-routing/protos/google/maps/routing/v2/routes_service.proto +++ b/packages/google-maps-routing/protos/google/maps/routing/v2/routes_service.proto @@ -143,6 +143,21 @@ message ComputeRoutesRequest { FUEL_EFFICIENT = 1; } + // Extra computations to perform while completing the request. + enum ExtraComputation { + // Not used. Requests containing this value will fail. + EXTRA_COMPUTATION_UNSPECIFIED = 0; + + // Toll information for the route(s). + TOLLS = 1; + + // Estimated fuel consumption for the route(s). + FUEL_CONSUMPTION = 2; + + // Traffic aware polylines for the route(s). + TRAFFIC_ON_POLYLINE = 3; + } + // Required. Origin waypoint. Waypoint origin = 1 [(google.api.field_behavior) = REQUIRED]; @@ -208,6 +223,13 @@ message ComputeRoutesRequest { // parameters that would generate an optimal fuel efficient route. repeated ReferenceRoute requested_reference_routes = 14 [(google.api.field_behavior) = OPTIONAL]; + + // 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 ExtraComputation extra_computations = 15 + [(google.api.field_behavior) = OPTIONAL]; } // ComputeRoutes the response message. @@ -228,6 +250,15 @@ message ComputeRoutesResponse { // ComputeRouteMatrix request message message ComputeRouteMatrixRequest { + // Extra computations to perform while completing the request. + enum ExtraComputation { + // Not used. Requests containing this value will fail. + EXTRA_COMPUTATION_UNSPECIFIED = 0; + + // Toll information for the matrix element(s). + TOLLS = 1; + } + // Required. Array of origins, which determines the rows of the response // matrix. Several size restrictions apply to the cardinality of origins and // destinations: @@ -262,6 +293,13 @@ message ComputeRouteMatrixRequest { // has already occurred, the request fails. google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL]; + + // 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 ExtraComputation extra_computations = 8 + [(google.api.field_behavior) = OPTIONAL]; } // A single origin for ComputeRouteMatrixRequest diff --git a/packages/google-maps-routing/protos/protos.d.ts b/packages/google-maps-routing/protos/protos.d.ts index 392941080ac..c8ac0989914 100644 --- a/packages/google-maps-routing/protos/protos.d.ts +++ b/packages/google-maps-routing/protos/protos.d.ts @@ -7082,6 +7082,9 @@ export namespace google { /** ComputeRoutesRequest requestedReferenceRoutes */ requestedReferenceRoutes?: (google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[]|null); + + /** ComputeRoutesRequest extraComputations */ + extraComputations?: (google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[]|null); } /** Represents a ComputeRoutesRequest. */ @@ -7132,6 +7135,9 @@ export namespace google { /** ComputeRoutesRequest requestedReferenceRoutes. */ public requestedReferenceRoutes: google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[]; + /** ComputeRoutesRequest extraComputations. */ + public extraComputations: google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[]; + /** * Creates a new ComputeRoutesRequest instance using the specified properties. * @param [properties] Properties to set @@ -7217,6 +7223,14 @@ export namespace google { REFERENCE_ROUTE_UNSPECIFIED = 0, FUEL_EFFICIENT = 1 } + + /** ExtraComputation enum. */ + enum ExtraComputation { + EXTRA_COMPUTATION_UNSPECIFIED = 0, + TOLLS = 1, + FUEL_CONSUMPTION = 2, + TRAFFIC_ON_POLYLINE = 3 + } } /** Properties of a ComputeRoutesResponse. */ @@ -7339,6 +7353,9 @@ export namespace google { /** ComputeRouteMatrixRequest departureTime */ departureTime?: (google.protobuf.ITimestamp|null); + + /** ComputeRouteMatrixRequest extraComputations */ + extraComputations?: (google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]|null); } /** Represents a ComputeRouteMatrixRequest. */ @@ -7365,6 +7382,9 @@ export namespace google { /** ComputeRouteMatrixRequest departureTime. */ public departureTime?: (google.protobuf.ITimestamp|null); + /** ComputeRouteMatrixRequest extraComputations. */ + public extraComputations: google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]; + /** * Creates a new ComputeRouteMatrixRequest instance using the specified properties. * @param [properties] Properties to set @@ -7443,6 +7463,15 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace ComputeRouteMatrixRequest { + + /** ExtraComputation enum. */ + enum ExtraComputation { + EXTRA_COMPUTATION_UNSPECIFIED = 0, + TOLLS = 1 + } + } + /** Properties of a RouteMatrixOrigin. */ interface IRouteMatrixOrigin { diff --git a/packages/google-maps-routing/protos/protos.js b/packages/google-maps-routing/protos/protos.js index 6cb0d15dca6..ddf0a6e0203 100644 --- a/packages/google-maps-routing/protos/protos.js +++ b/packages/google-maps-routing/protos/protos.js @@ -18868,6 +18868,7 @@ * @property {string|null} [languageCode] ComputeRoutesRequest languageCode * @property {google.maps.routing.v2.Units|null} [units] ComputeRoutesRequest units * @property {Array.|null} [requestedReferenceRoutes] ComputeRoutesRequest requestedReferenceRoutes + * @property {Array.|null} [extraComputations] ComputeRoutesRequest extraComputations */ /** @@ -18881,6 +18882,7 @@ function ComputeRoutesRequest(properties) { this.intermediates = []; this.requestedReferenceRoutes = []; + this.extraComputations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18991,6 +18993,14 @@ */ ComputeRoutesRequest.prototype.requestedReferenceRoutes = $util.emptyArray; + /** + * ComputeRoutesRequest extraComputations. + * @member {Array.} extraComputations + * @memberof google.maps.routing.v2.ComputeRoutesRequest + * @instance + */ + ComputeRoutesRequest.prototype.extraComputations = $util.emptyArray; + /** * Creates a new ComputeRoutesRequest instance using the specified properties. * @function create @@ -19046,6 +19056,12 @@ writer.int32(message.requestedReferenceRoutes[i]); writer.ldelim(); } + if (message.extraComputations != null && message.extraComputations.length) { + writer.uint32(/* id 15, wireType 2 =*/122).fork(); + for (var i = 0; i < message.extraComputations.length; ++i) + writer.int32(message.extraComputations[i]); + writer.ldelim(); + } return writer; }; @@ -19141,6 +19157,17 @@ message.requestedReferenceRoutes.push(reader.int32()); break; } + case 15: { + if (!(message.extraComputations && message.extraComputations.length)) + message.extraComputations = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.extraComputations.push(reader.int32()); + } else + message.extraComputations.push(reader.int32()); + break; + } default: reader.skipType(tag & 7); break; @@ -19271,6 +19298,20 @@ break; } } + if (message.extraComputations != null && message.hasOwnProperty("extraComputations")) { + if (!Array.isArray(message.extraComputations)) + return "extraComputations: array expected"; + for (var i = 0; i < message.extraComputations.length; ++i) + switch (message.extraComputations[i]) { + default: + return "extraComputations: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } return null; }; @@ -19453,6 +19494,35 @@ break; } } + if (object.extraComputations) { + if (!Array.isArray(object.extraComputations)) + throw TypeError(".google.maps.routing.v2.ComputeRoutesRequest.extraComputations: array expected"); + message.extraComputations = []; + for (var i = 0; i < object.extraComputations.length; ++i) + switch (object.extraComputations[i]) { + default: + if (typeof object.extraComputations[i] === "number") { + message.extraComputations[i] = object.extraComputations[i]; + break; + } + case "EXTRA_COMPUTATION_UNSPECIFIED": + case 0: + message.extraComputations[i] = 0; + break; + case "TOLLS": + case 1: + message.extraComputations[i] = 1; + break; + case "FUEL_CONSUMPTION": + case 2: + message.extraComputations[i] = 2; + break; + case "TRAFFIC_ON_POLYLINE": + case 3: + message.extraComputations[i] = 3; + break; + } + } return message; }; @@ -19472,6 +19542,7 @@ if (options.arrays || options.defaults) { object.intermediates = []; object.requestedReferenceRoutes = []; + object.extraComputations = []; } if (options.defaults) { object.origin = null; @@ -19518,6 +19589,11 @@ for (var j = 0; j < message.requestedReferenceRoutes.length; ++j) object.requestedReferenceRoutes[j] = options.enums === String ? $root.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[message.requestedReferenceRoutes[j]] === undefined ? message.requestedReferenceRoutes[j] : $root.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[message.requestedReferenceRoutes[j]] : message.requestedReferenceRoutes[j]; } + if (message.extraComputations && message.extraComputations.length) { + object.extraComputations = []; + for (var j = 0; j < message.extraComputations.length; ++j) + object.extraComputations[j] = options.enums === String ? $root.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[message.extraComputations[j]] === undefined ? message.extraComputations[j] : $root.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[message.extraComputations[j]] : message.extraComputations[j]; + } return object; }; @@ -19561,6 +19637,24 @@ return values; })(); + /** + * ExtraComputation enum. + * @name google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation + * @enum {number} + * @property {number} EXTRA_COMPUTATION_UNSPECIFIED=0 EXTRA_COMPUTATION_UNSPECIFIED value + * @property {number} TOLLS=1 TOLLS value + * @property {number} FUEL_CONSUMPTION=2 FUEL_CONSUMPTION value + * @property {number} TRAFFIC_ON_POLYLINE=3 TRAFFIC_ON_POLYLINE value + */ + ComputeRoutesRequest.ExtraComputation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXTRA_COMPUTATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOLLS"] = 1; + values[valuesById[2] = "FUEL_CONSUMPTION"] = 2; + values[valuesById[3] = "TRAFFIC_ON_POLYLINE"] = 3; + return values; + })(); + return ComputeRoutesRequest; })(); @@ -19828,6 +19922,7 @@ * @property {google.maps.routing.v2.RouteTravelMode|null} [travelMode] ComputeRouteMatrixRequest travelMode * @property {google.maps.routing.v2.RoutingPreference|null} [routingPreference] ComputeRouteMatrixRequest routingPreference * @property {google.protobuf.ITimestamp|null} [departureTime] ComputeRouteMatrixRequest departureTime + * @property {Array.|null} [extraComputations] ComputeRouteMatrixRequest extraComputations */ /** @@ -19841,6 +19936,7 @@ function ComputeRouteMatrixRequest(properties) { this.origins = []; this.destinations = []; + this.extraComputations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19887,6 +19983,14 @@ */ ComputeRouteMatrixRequest.prototype.departureTime = null; + /** + * ComputeRouteMatrixRequest extraComputations. + * @member {Array.} extraComputations + * @memberof google.maps.routing.v2.ComputeRouteMatrixRequest + * @instance + */ + ComputeRouteMatrixRequest.prototype.extraComputations = $util.emptyArray; + /** * Creates a new ComputeRouteMatrixRequest instance using the specified properties. * @function create @@ -19923,6 +20027,12 @@ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.routingPreference); if (message.departureTime != null && Object.hasOwnProperty.call(message, "departureTime")) $root.google.protobuf.Timestamp.encode(message.departureTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extraComputations != null && message.extraComputations.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.extraComputations.length; ++i) + writer.int32(message.extraComputations[i]); + writer.ldelim(); + } return writer; }; @@ -19981,6 +20091,17 @@ message.departureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 8: { + if (!(message.extraComputations && message.extraComputations.length)) + message.extraComputations = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.extraComputations.push(reader.int32()); + } else + message.extraComputations.push(reader.int32()); + break; + } default: reader.skipType(tag & 7); break; @@ -20060,6 +20181,18 @@ if (error) return "departureTime." + error; } + if (message.extraComputations != null && message.hasOwnProperty("extraComputations")) { + if (!Array.isArray(message.extraComputations)) + return "extraComputations: array expected"; + for (var i = 0; i < message.extraComputations.length; ++i) + switch (message.extraComputations[i]) { + default: + return "extraComputations: enum value[] expected"; + case 0: + case 1: + break; + } + } return null; }; @@ -20152,6 +20285,27 @@ throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.departureTime: object expected"); message.departureTime = $root.google.protobuf.Timestamp.fromObject(object.departureTime); } + if (object.extraComputations) { + if (!Array.isArray(object.extraComputations)) + throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.extraComputations: array expected"); + message.extraComputations = []; + for (var i = 0; i < object.extraComputations.length; ++i) + switch (object.extraComputations[i]) { + default: + if (typeof object.extraComputations[i] === "number") { + message.extraComputations[i] = object.extraComputations[i]; + break; + } + case "EXTRA_COMPUTATION_UNSPECIFIED": + case 0: + message.extraComputations[i] = 0; + break; + case "TOLLS": + case 1: + message.extraComputations[i] = 1; + break; + } + } return message; }; @@ -20171,6 +20325,7 @@ if (options.arrays || options.defaults) { object.origins = []; object.destinations = []; + object.extraComputations = []; } if (options.defaults) { object.travelMode = options.enums === String ? "TRAVEL_MODE_UNSPECIFIED" : 0; @@ -20193,6 +20348,11 @@ object.routingPreference = options.enums === String ? $root.google.maps.routing.v2.RoutingPreference[message.routingPreference] === undefined ? message.routingPreference : $root.google.maps.routing.v2.RoutingPreference[message.routingPreference] : message.routingPreference; if (message.departureTime != null && message.hasOwnProperty("departureTime")) object.departureTime = $root.google.protobuf.Timestamp.toObject(message.departureTime, options); + if (message.extraComputations && message.extraComputations.length) { + object.extraComputations = []; + for (var j = 0; j < message.extraComputations.length; ++j) + object.extraComputations[j] = options.enums === String ? $root.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[message.extraComputations[j]] === undefined ? message.extraComputations[j] : $root.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[message.extraComputations[j]] : message.extraComputations[j]; + } return object; }; @@ -20222,6 +20382,20 @@ return typeUrlPrefix + "/google.maps.routing.v2.ComputeRouteMatrixRequest"; }; + /** + * ExtraComputation enum. + * @name google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation + * @enum {number} + * @property {number} EXTRA_COMPUTATION_UNSPECIFIED=0 EXTRA_COMPUTATION_UNSPECIFIED value + * @property {number} TOLLS=1 TOLLS value + */ + ComputeRouteMatrixRequest.ExtraComputation = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXTRA_COMPUTATION_UNSPECIFIED"] = 0; + values[valuesById[1] = "TOLLS"] = 1; + return values; + })(); + return ComputeRouteMatrixRequest; })(); diff --git a/packages/google-maps-routing/protos/protos.json b/packages/google-maps-routing/protos/protos.json index 69c9f9063bf..4ff0d589e8d 100644 --- a/packages/google-maps-routing/protos/protos.json +++ b/packages/google-maps-routing/protos/protos.json @@ -1802,6 +1802,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "extraComputations": { + "rule": "repeated", + "type": "ExtraComputation", + "id": 15, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -1810,6 +1818,14 @@ "REFERENCE_ROUTE_UNSPECIFIED": 0, "FUEL_EFFICIENT": 1 } + }, + "ExtraComputation": { + "values": { + "EXTRA_COMPUTATION_UNSPECIFIED": 0, + "TOLLS": 1, + "FUEL_CONSUMPTION": 2, + "TRAFFIC_ON_POLYLINE": 3 + } } } }, @@ -1864,6 +1880,22 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "extraComputations": { + "rule": "repeated", + "type": "ExtraComputation", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "ExtraComputation": { + "values": { + "EXTRA_COMPUTATION_UNSPECIFIED": 0, + "TOLLS": 1 + } } } }, diff --git a/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.js b/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.js index 81cbe6ca50d..1b4eda98dcb 100644 --- a/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.js +++ b/packages/google-maps-routing/samples/generated/v2/routes.compute_route_matrix.js @@ -63,6 +63,13 @@ function main(origins, destinations) { * has already occurred, the request fails. */ // const departureTime = {} + /** + * 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. + */ + // const extraComputations = 1234 // Imports the Routing library const {RoutesClient} = require('@googlemaps/routing').v2; diff --git a/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.js b/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.js index 96d9b0b25ab..0ac358fdbf1 100644 --- a/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.js +++ b/packages/google-maps-routing/samples/generated/v2/routes.compute_routes.js @@ -103,6 +103,13 @@ function main(origin, destination) { * parameters that would generate an optimal fuel efficient route. */ // const requestedReferenceRoutes = 1234 + /** + * 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. + */ + // const extraComputations = 1234 // Imports the Routing library const {RoutesClient} = require('@googlemaps/routing').v2; diff --git a/packages/google-maps-routing/samples/generated/v2/snippet_metadata.google.maps.routing.v2.json b/packages/google-maps-routing/samples/generated/v2/snippet_metadata.google.maps.routing.v2.json index 2cd7ce87710..28d3548872e 100644 --- a/packages/google-maps-routing/samples/generated/v2/snippet_metadata.google.maps.routing.v2.json +++ b/packages/google-maps-routing/samples/generated/v2/snippet_metadata.google.maps.routing.v2.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 125, + "end": 132, "type": "FULL" } ], @@ -82,6 +82,10 @@ { "name": "requested_reference_routes", "type": "TYPE_ENUM[]" + }, + { + "name": "extra_computations", + "type": "TYPE_ENUM[]" } ], "resultType": ".google.maps.routing.v2.ComputeRoutesResponse", @@ -110,7 +114,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 94, "type": "FULL" } ], @@ -138,6 +142,10 @@ { "name": "departure_time", "type": ".google.protobuf.Timestamp" + }, + { + "name": "extra_computations", + "type": "TYPE_ENUM[]" } ], "resultType": ".google.maps.routing.v2.RouteMatrixElement", diff --git a/packages/google-maps-routing/src/v2/routes_client.ts b/packages/google-maps-routing/src/v2/routes_client.ts index 7b5b62e7381..ea51e5209dd 100644 --- a/packages/google-maps-routing/src/v2/routes_client.ts +++ b/packages/google-maps-routing/src/v2/routes_client.ts @@ -412,6 +412,11 @@ export class RoutesClient { * 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. + * @param {number[]} [request.extraComputations] + * 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. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -552,6 +557,11 @@ export class RoutesClient { * 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. + * @param {number[]} [request.extraComputations] + * 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. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream}