@googlemaps/routing 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.2.1...routing-v0.3.0) (2023-01-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add ExtraComputations feature to ComputeRoutes and ComputeRouteMatrix ([#3868](https://github.com/googleapis/google-cloud-node/issues/3868)) ([3b646fa](https://github.com/googleapis/google-cloud-node/commit/3b646fabd5aa4f29a176817d5ed6a23de9583ccb))
9
+ * Added SuggestConversationSummary RPC ([#3854](https://github.com/googleapis/google-cloud-node/issues/3854)) ([9e4b7f8](https://github.com/googleapis/google-cloud-node/commit/9e4b7f8d27dbb1ac011267f9b96ce90d2ff7a74b))
10
+
3
11
  ## [0.2.1](https://github.com/googleapis/google-cloud-node/compare/routing-v0.2.0...routing-v0.2.1) (2022-11-10)
4
12
 
5
13
 
@@ -86,6 +86,10 @@ message Route {
86
86
  // and in the event of rerouting honor the original intention when Routes
87
87
  // ComputeRoutes is called. Customers should treat this token as an
88
88
  // opaque blob.
89
+ // NOTE: `Route.route_token` is only available for requests that have set
90
+ // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
91
+ // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
92
+ // requests that have Via waypoints.
89
93
  string route_token = 12;
90
94
  }
91
95
 
@@ -27,6 +27,10 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
27
27
  option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
29
  // A set of values used to specify the mode of travel.
30
+ // NOTE: WALK, BICYCLE, and TWO_WHEELER routes are in beta and might sometimes
31
+ // be missing clear sidewalks, pedestrian paths, or bicycling paths.
32
+ // You must display this warning to the user for all walking, bicycling, and
33
+ // two-wheel routes that you display in your app.
30
34
  enum RouteTravelMode {
31
35
  // No travel mode specified. Defaults to `DRIVE`.
32
36
  TRAVEL_MODE_UNSPECIFIED = 0;
@@ -122,7 +122,8 @@ service Routes {
122
122
  // be automatically included in the response.
123
123
  // * Selecting only the fields that you need results in a smaller response
124
124
  // size, and thus higher network throughput.
125
- rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) returns (stream RouteMatrixElement) {
125
+ rpc ComputeRouteMatrix(ComputeRouteMatrixRequest)
126
+ returns (stream RouteMatrixElement) {
126
127
  option (google.api.http) = {
127
128
  post: "/distanceMatrix/v2:computeRouteMatrix"
128
129
  body: "*"
@@ -142,6 +143,21 @@ message ComputeRoutesRequest {
142
143
  FUEL_EFFICIENT = 1;
143
144
  }
144
145
 
146
+ // Extra computations to perform while completing the request.
147
+ enum ExtraComputation {
148
+ // Not used. Requests containing this value will fail.
149
+ EXTRA_COMPUTATION_UNSPECIFIED = 0;
150
+
151
+ // Toll information for the route(s).
152
+ TOLLS = 1;
153
+
154
+ // Estimated fuel consumption for the route(s).
155
+ FUEL_CONSUMPTION = 2;
156
+
157
+ // Traffic aware polylines for the route(s).
158
+ TRAFFIC_ON_POLYLINE = 3;
159
+ }
160
+
145
161
  // Required. Origin waypoint.
146
162
  Waypoint origin = 1 [(google.api.field_behavior) = REQUIRED];
147
163
 
@@ -159,24 +175,26 @@ message ComputeRoutesRequest {
159
175
  // Optional. Specifies how to compute the route. The server
160
176
  // attempts to use the selected routing preference to compute the route. If
161
177
  // the routing preference results in an error or an extra long latency, then
162
- // an error is returned. In the future, we might implement a fallback
163
- // mechanism to use a different option when the preferred option does not give
164
- // a valid result. You can specify this option only when the `travel_mode` is
165
- // `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
166
- RoutingPreference routing_preference = 5 [(google.api.field_behavior) = OPTIONAL];
178
+ // an error is returned. You can specify this option only when the
179
+ // `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
180
+ RoutingPreference routing_preference = 5
181
+ [(google.api.field_behavior) = OPTIONAL];
167
182
 
168
183
  // Optional. Specifies your preference for the quality of the polyline.
169
184
  PolylineQuality polyline_quality = 6 [(google.api.field_behavior) = OPTIONAL];
170
185
 
171
186
  // Optional. Specifies the preferred encoding for the polyline.
172
- PolylineEncoding polyline_encoding = 12 [(google.api.field_behavior) = OPTIONAL];
187
+ PolylineEncoding polyline_encoding = 12
188
+ [(google.api.field_behavior) = OPTIONAL];
173
189
 
174
190
  // Optional. The departure time. If you don't set this value, then this value
175
191
  // defaults to the time that you made the request. If you set this value to a
176
192
  // time that has already occurred, then the request fails.
177
- google.protobuf.Timestamp departure_time = 7 [(google.api.field_behavior) = OPTIONAL];
193
+ google.protobuf.Timestamp departure_time = 7
194
+ [(google.api.field_behavior) = OPTIONAL];
178
195
 
179
- // Optional. Specifies whether to calculate alternate routes in addition to the route.
196
+ // Optional. Specifies whether to calculate alternate routes in addition to
197
+ // the route.
180
198
  bool compute_alternative_routes = 8 [(google.api.field_behavior) = OPTIONAL];
181
199
 
182
200
  // Optional. A set of conditions to satisfy that affect the way routes are
@@ -198,13 +216,20 @@ message ComputeRoutesRequest {
198
216
  // units are inferred from the location of the request.
199
217
  Units units = 11 [(google.api.field_behavior) = OPTIONAL];
200
218
 
201
- // Optional. Specifies what reference routes to calculate as part of the request in
202
- // addition to the default route.
203
- // A reference route is a route with a different route calculation objective
204
- // than the default route. For example an FUEL_EFFICIENT reference route
205
- // calculation takes into account various parameters that would generate an
206
- // optimal fuel efficient route.
207
- repeated ReferenceRoute requested_reference_routes = 14 [(google.api.field_behavior) = OPTIONAL];
219
+ // Optional. Specifies what reference routes to calculate as part of the
220
+ // request in addition to the default route. A reference route is a route with
221
+ // a different route calculation objective than the default route. For example
222
+ // an FUEL_EFFICIENT reference route calculation takes into account various
223
+ // parameters that would generate an optimal fuel efficient route.
224
+ repeated ReferenceRoute requested_reference_routes = 14
225
+ [(google.api.field_behavior) = OPTIONAL];
226
+
227
+ // Optional. A list of extra computations which may be used to complete the
228
+ // request. Note: These extra computations may return extra fields on the
229
+ // response. These extra fields must also be specified in the field mask to be
230
+ // returned in the response.
231
+ repeated ExtraComputation extra_computations = 15
232
+ [(google.api.field_behavior) = OPTIONAL];
208
233
  }
209
234
 
210
235
  // ComputeRoutes the response message.
@@ -225,8 +250,17 @@ message ComputeRoutesResponse {
225
250
 
226
251
  // ComputeRouteMatrix request message
227
252
  message ComputeRouteMatrixRequest {
228
- // Required. Array of origins, which determines the rows of the response matrix.
229
- // Several size restrictions apply to the cardinality of origins and
253
+ // Extra computations to perform while completing the request.
254
+ enum ExtraComputation {
255
+ // Not used. Requests containing this value will fail.
256
+ EXTRA_COMPUTATION_UNSPECIFIED = 0;
257
+
258
+ // Toll information for the matrix element(s).
259
+ TOLLS = 1;
260
+ }
261
+
262
+ // Required. Array of origins, which determines the rows of the response
263
+ // matrix. Several size restrictions apply to the cardinality of origins and
230
264
  // destinations:
231
265
  //
232
266
  // * The number of elements (origins × destinations) must be no greater than
@@ -235,27 +269,37 @@ message ComputeRouteMatrixRequest {
235
269
  // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`.
236
270
  // * The number of waypoints (origins + destinations) specified as `place_id`
237
271
  // must be no greater than 50.
238
- repeated RouteMatrixOrigin origins = 1 [(google.api.field_behavior) = REQUIRED];
272
+ repeated RouteMatrixOrigin origins = 1
273
+ [(google.api.field_behavior) = REQUIRED];
239
274
 
240
- // Required. Array of destinations, which determines the columns of the response matrix.
241
- repeated RouteMatrixDestination destinations = 2 [(google.api.field_behavior) = REQUIRED];
275
+ // Required. Array of destinations, which determines the columns of the
276
+ // response matrix.
277
+ repeated RouteMatrixDestination destinations = 2
278
+ [(google.api.field_behavior) = REQUIRED];
242
279
 
243
280
  // Optional. Specifies the mode of transportation.
244
281
  RouteTravelMode travel_mode = 3 [(google.api.field_behavior) = OPTIONAL];
245
282
 
246
- // Optional. Specifies how to compute the route. The server attempts to use the selected
247
- // routing preference to compute the route. If the routing preference results
248
- // in an error or an extra long latency, an error is returned. In the future,
249
- // we might implement a fallback mechanism to use a different option when the
250
- // preferred option does not give a valid result. You can specify this option
251
- // only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
252
- // request fails.
253
- RoutingPreference routing_preference = 4 [(google.api.field_behavior) = OPTIONAL];
254
-
255
- // Optional. The departure time. If you don't set this value, this defaults to the time
256
- // that you made the request. If you set this value to a time that has already
257
- // occurred, the request fails.
258
- google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL];
283
+ // Optional. Specifies how to compute the route. The server attempts to use
284
+ // the selected routing preference to compute the route. If the routing
285
+ // preference results in an error or an extra long latency, an error is
286
+ // returned. You can specify this option only when the `travel_mode` is
287
+ // `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
288
+ RoutingPreference routing_preference = 4
289
+ [(google.api.field_behavior) = OPTIONAL];
290
+
291
+ // Optional. The departure time. If you don't set this value, this defaults to
292
+ // the time that you made the request. If you set this value to a time that
293
+ // has already occurred, the request fails.
294
+ google.protobuf.Timestamp departure_time = 5
295
+ [(google.api.field_behavior) = OPTIONAL];
296
+
297
+ // Optional. A list of extra computations which may be used to complete the
298
+ // request. Note: These extra computations may return extra fields on the
299
+ // response. These extra fields must also be specified in the field mask to be
300
+ // returned in the response.
301
+ repeated ExtraComputation extra_computations = 8
302
+ [(google.api.field_behavior) = OPTIONAL];
259
303
  }
260
304
 
261
305
  // A single origin for ComputeRouteMatrixRequest
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -7082,6 +7082,9 @@ export namespace google {
7082
7082
 
7083
7083
  /** ComputeRoutesRequest requestedReferenceRoutes */
7084
7084
  requestedReferenceRoutes?: (google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[]|null);
7085
+
7086
+ /** ComputeRoutesRequest extraComputations */
7087
+ extraComputations?: (google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[]|null);
7085
7088
  }
7086
7089
 
7087
7090
  /** Represents a ComputeRoutesRequest. */
@@ -7132,6 +7135,9 @@ export namespace google {
7132
7135
  /** ComputeRoutesRequest requestedReferenceRoutes. */
7133
7136
  public requestedReferenceRoutes: google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[];
7134
7137
 
7138
+ /** ComputeRoutesRequest extraComputations. */
7139
+ public extraComputations: google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[];
7140
+
7135
7141
  /**
7136
7142
  * Creates a new ComputeRoutesRequest instance using the specified properties.
7137
7143
  * @param [properties] Properties to set
@@ -7217,6 +7223,14 @@ export namespace google {
7217
7223
  REFERENCE_ROUTE_UNSPECIFIED = 0,
7218
7224
  FUEL_EFFICIENT = 1
7219
7225
  }
7226
+
7227
+ /** ExtraComputation enum. */
7228
+ enum ExtraComputation {
7229
+ EXTRA_COMPUTATION_UNSPECIFIED = 0,
7230
+ TOLLS = 1,
7231
+ FUEL_CONSUMPTION = 2,
7232
+ TRAFFIC_ON_POLYLINE = 3
7233
+ }
7220
7234
  }
7221
7235
 
7222
7236
  /** Properties of a ComputeRoutesResponse. */
@@ -7339,6 +7353,9 @@ export namespace google {
7339
7353
 
7340
7354
  /** ComputeRouteMatrixRequest departureTime */
7341
7355
  departureTime?: (google.protobuf.ITimestamp|null);
7356
+
7357
+ /** ComputeRouteMatrixRequest extraComputations */
7358
+ extraComputations?: (google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]|null);
7342
7359
  }
7343
7360
 
7344
7361
  /** Represents a ComputeRouteMatrixRequest. */
@@ -7365,6 +7382,9 @@ export namespace google {
7365
7382
  /** ComputeRouteMatrixRequest departureTime. */
7366
7383
  public departureTime?: (google.protobuf.ITimestamp|null);
7367
7384
 
7385
+ /** ComputeRouteMatrixRequest extraComputations. */
7386
+ public extraComputations: google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[];
7387
+
7368
7388
  /**
7369
7389
  * Creates a new ComputeRouteMatrixRequest instance using the specified properties.
7370
7390
  * @param [properties] Properties to set
@@ -7443,6 +7463,15 @@ export namespace google {
7443
7463
  public static getTypeUrl(typeUrlPrefix?: string): string;
7444
7464
  }
7445
7465
 
7466
+ namespace ComputeRouteMatrixRequest {
7467
+
7468
+ /** ExtraComputation enum. */
7469
+ enum ExtraComputation {
7470
+ EXTRA_COMPUTATION_UNSPECIFIED = 0,
7471
+ TOLLS = 1
7472
+ }
7473
+ }
7474
+
7446
7475
  /** Properties of a RouteMatrixOrigin. */
7447
7476
  interface IRouteMatrixOrigin {
7448
7477
 
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -18868,6 +18868,7 @@
18868
18868
  * @property {string|null} [languageCode] ComputeRoutesRequest languageCode
18869
18869
  * @property {google.maps.routing.v2.Units|null} [units] ComputeRoutesRequest units
18870
18870
  * @property {Array.<google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>|null} [requestedReferenceRoutes] ComputeRoutesRequest requestedReferenceRoutes
18871
+ * @property {Array.<google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>|null} [extraComputations] ComputeRoutesRequest extraComputations
18871
18872
  */
18872
18873
 
18873
18874
  /**
@@ -18881,6 +18882,7 @@
18881
18882
  function ComputeRoutesRequest(properties) {
18882
18883
  this.intermediates = [];
18883
18884
  this.requestedReferenceRoutes = [];
18885
+ this.extraComputations = [];
18884
18886
  if (properties)
18885
18887
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18886
18888
  if (properties[keys[i]] != null)
@@ -18991,6 +18993,14 @@
18991
18993
  */
18992
18994
  ComputeRoutesRequest.prototype.requestedReferenceRoutes = $util.emptyArray;
18993
18995
 
18996
+ /**
18997
+ * ComputeRoutesRequest extraComputations.
18998
+ * @member {Array.<google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>} extraComputations
18999
+ * @memberof google.maps.routing.v2.ComputeRoutesRequest
19000
+ * @instance
19001
+ */
19002
+ ComputeRoutesRequest.prototype.extraComputations = $util.emptyArray;
19003
+
18994
19004
  /**
18995
19005
  * Creates a new ComputeRoutesRequest instance using the specified properties.
18996
19006
  * @function create
@@ -19046,6 +19056,12 @@
19046
19056
  writer.int32(message.requestedReferenceRoutes[i]);
19047
19057
  writer.ldelim();
19048
19058
  }
19059
+ if (message.extraComputations != null && message.extraComputations.length) {
19060
+ writer.uint32(/* id 15, wireType 2 =*/122).fork();
19061
+ for (var i = 0; i < message.extraComputations.length; ++i)
19062
+ writer.int32(message.extraComputations[i]);
19063
+ writer.ldelim();
19064
+ }
19049
19065
  return writer;
19050
19066
  };
19051
19067
 
@@ -19141,6 +19157,17 @@
19141
19157
  message.requestedReferenceRoutes.push(reader.int32());
19142
19158
  break;
19143
19159
  }
19160
+ case 15: {
19161
+ if (!(message.extraComputations && message.extraComputations.length))
19162
+ message.extraComputations = [];
19163
+ if ((tag & 7) === 2) {
19164
+ var end2 = reader.uint32() + reader.pos;
19165
+ while (reader.pos < end2)
19166
+ message.extraComputations.push(reader.int32());
19167
+ } else
19168
+ message.extraComputations.push(reader.int32());
19169
+ break;
19170
+ }
19144
19171
  default:
19145
19172
  reader.skipType(tag & 7);
19146
19173
  break;
@@ -19271,6 +19298,20 @@
19271
19298
  break;
19272
19299
  }
19273
19300
  }
19301
+ if (message.extraComputations != null && message.hasOwnProperty("extraComputations")) {
19302
+ if (!Array.isArray(message.extraComputations))
19303
+ return "extraComputations: array expected";
19304
+ for (var i = 0; i < message.extraComputations.length; ++i)
19305
+ switch (message.extraComputations[i]) {
19306
+ default:
19307
+ return "extraComputations: enum value[] expected";
19308
+ case 0:
19309
+ case 1:
19310
+ case 2:
19311
+ case 3:
19312
+ break;
19313
+ }
19314
+ }
19274
19315
  return null;
19275
19316
  };
19276
19317
 
@@ -19453,6 +19494,35 @@
19453
19494
  break;
19454
19495
  }
19455
19496
  }
19497
+ if (object.extraComputations) {
19498
+ if (!Array.isArray(object.extraComputations))
19499
+ throw TypeError(".google.maps.routing.v2.ComputeRoutesRequest.extraComputations: array expected");
19500
+ message.extraComputations = [];
19501
+ for (var i = 0; i < object.extraComputations.length; ++i)
19502
+ switch (object.extraComputations[i]) {
19503
+ default:
19504
+ if (typeof object.extraComputations[i] === "number") {
19505
+ message.extraComputations[i] = object.extraComputations[i];
19506
+ break;
19507
+ }
19508
+ case "EXTRA_COMPUTATION_UNSPECIFIED":
19509
+ case 0:
19510
+ message.extraComputations[i] = 0;
19511
+ break;
19512
+ case "TOLLS":
19513
+ case 1:
19514
+ message.extraComputations[i] = 1;
19515
+ break;
19516
+ case "FUEL_CONSUMPTION":
19517
+ case 2:
19518
+ message.extraComputations[i] = 2;
19519
+ break;
19520
+ case "TRAFFIC_ON_POLYLINE":
19521
+ case 3:
19522
+ message.extraComputations[i] = 3;
19523
+ break;
19524
+ }
19525
+ }
19456
19526
  return message;
19457
19527
  };
19458
19528
 
@@ -19472,6 +19542,7 @@
19472
19542
  if (options.arrays || options.defaults) {
19473
19543
  object.intermediates = [];
19474
19544
  object.requestedReferenceRoutes = [];
19545
+ object.extraComputations = [];
19475
19546
  }
19476
19547
  if (options.defaults) {
19477
19548
  object.origin = null;
@@ -19518,6 +19589,11 @@
19518
19589
  for (var j = 0; j < message.requestedReferenceRoutes.length; ++j)
19519
19590
  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];
19520
19591
  }
19592
+ if (message.extraComputations && message.extraComputations.length) {
19593
+ object.extraComputations = [];
19594
+ for (var j = 0; j < message.extraComputations.length; ++j)
19595
+ 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];
19596
+ }
19521
19597
  return object;
19522
19598
  };
19523
19599
 
@@ -19561,6 +19637,24 @@
19561
19637
  return values;
19562
19638
  })();
19563
19639
 
19640
+ /**
19641
+ * ExtraComputation enum.
19642
+ * @name google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation
19643
+ * @enum {number}
19644
+ * @property {number} EXTRA_COMPUTATION_UNSPECIFIED=0 EXTRA_COMPUTATION_UNSPECIFIED value
19645
+ * @property {number} TOLLS=1 TOLLS value
19646
+ * @property {number} FUEL_CONSUMPTION=2 FUEL_CONSUMPTION value
19647
+ * @property {number} TRAFFIC_ON_POLYLINE=3 TRAFFIC_ON_POLYLINE value
19648
+ */
19649
+ ComputeRoutesRequest.ExtraComputation = (function() {
19650
+ var valuesById = {}, values = Object.create(valuesById);
19651
+ values[valuesById[0] = "EXTRA_COMPUTATION_UNSPECIFIED"] = 0;
19652
+ values[valuesById[1] = "TOLLS"] = 1;
19653
+ values[valuesById[2] = "FUEL_CONSUMPTION"] = 2;
19654
+ values[valuesById[3] = "TRAFFIC_ON_POLYLINE"] = 3;
19655
+ return values;
19656
+ })();
19657
+
19564
19658
  return ComputeRoutesRequest;
19565
19659
  })();
19566
19660
 
@@ -19828,6 +19922,7 @@
19828
19922
  * @property {google.maps.routing.v2.RouteTravelMode|null} [travelMode] ComputeRouteMatrixRequest travelMode
19829
19923
  * @property {google.maps.routing.v2.RoutingPreference|null} [routingPreference] ComputeRouteMatrixRequest routingPreference
19830
19924
  * @property {google.protobuf.ITimestamp|null} [departureTime] ComputeRouteMatrixRequest departureTime
19925
+ * @property {Array.<google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>|null} [extraComputations] ComputeRouteMatrixRequest extraComputations
19831
19926
  */
19832
19927
 
19833
19928
  /**
@@ -19841,6 +19936,7 @@
19841
19936
  function ComputeRouteMatrixRequest(properties) {
19842
19937
  this.origins = [];
19843
19938
  this.destinations = [];
19939
+ this.extraComputations = [];
19844
19940
  if (properties)
19845
19941
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19846
19942
  if (properties[keys[i]] != null)
@@ -19887,6 +19983,14 @@
19887
19983
  */
19888
19984
  ComputeRouteMatrixRequest.prototype.departureTime = null;
19889
19985
 
19986
+ /**
19987
+ * ComputeRouteMatrixRequest extraComputations.
19988
+ * @member {Array.<google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>} extraComputations
19989
+ * @memberof google.maps.routing.v2.ComputeRouteMatrixRequest
19990
+ * @instance
19991
+ */
19992
+ ComputeRouteMatrixRequest.prototype.extraComputations = $util.emptyArray;
19993
+
19890
19994
  /**
19891
19995
  * Creates a new ComputeRouteMatrixRequest instance using the specified properties.
19892
19996
  * @function create
@@ -19923,6 +20027,12 @@
19923
20027
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.routingPreference);
19924
20028
  if (message.departureTime != null && Object.hasOwnProperty.call(message, "departureTime"))
19925
20029
  $root.google.protobuf.Timestamp.encode(message.departureTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
20030
+ if (message.extraComputations != null && message.extraComputations.length) {
20031
+ writer.uint32(/* id 8, wireType 2 =*/66).fork();
20032
+ for (var i = 0; i < message.extraComputations.length; ++i)
20033
+ writer.int32(message.extraComputations[i]);
20034
+ writer.ldelim();
20035
+ }
19926
20036
  return writer;
19927
20037
  };
19928
20038
 
@@ -19981,6 +20091,17 @@
19981
20091
  message.departureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
19982
20092
  break;
19983
20093
  }
20094
+ case 8: {
20095
+ if (!(message.extraComputations && message.extraComputations.length))
20096
+ message.extraComputations = [];
20097
+ if ((tag & 7) === 2) {
20098
+ var end2 = reader.uint32() + reader.pos;
20099
+ while (reader.pos < end2)
20100
+ message.extraComputations.push(reader.int32());
20101
+ } else
20102
+ message.extraComputations.push(reader.int32());
20103
+ break;
20104
+ }
19984
20105
  default:
19985
20106
  reader.skipType(tag & 7);
19986
20107
  break;
@@ -20060,6 +20181,18 @@
20060
20181
  if (error)
20061
20182
  return "departureTime." + error;
20062
20183
  }
20184
+ if (message.extraComputations != null && message.hasOwnProperty("extraComputations")) {
20185
+ if (!Array.isArray(message.extraComputations))
20186
+ return "extraComputations: array expected";
20187
+ for (var i = 0; i < message.extraComputations.length; ++i)
20188
+ switch (message.extraComputations[i]) {
20189
+ default:
20190
+ return "extraComputations: enum value[] expected";
20191
+ case 0:
20192
+ case 1:
20193
+ break;
20194
+ }
20195
+ }
20063
20196
  return null;
20064
20197
  };
20065
20198
 
@@ -20152,6 +20285,27 @@
20152
20285
  throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.departureTime: object expected");
20153
20286
  message.departureTime = $root.google.protobuf.Timestamp.fromObject(object.departureTime);
20154
20287
  }
20288
+ if (object.extraComputations) {
20289
+ if (!Array.isArray(object.extraComputations))
20290
+ throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.extraComputations: array expected");
20291
+ message.extraComputations = [];
20292
+ for (var i = 0; i < object.extraComputations.length; ++i)
20293
+ switch (object.extraComputations[i]) {
20294
+ default:
20295
+ if (typeof object.extraComputations[i] === "number") {
20296
+ message.extraComputations[i] = object.extraComputations[i];
20297
+ break;
20298
+ }
20299
+ case "EXTRA_COMPUTATION_UNSPECIFIED":
20300
+ case 0:
20301
+ message.extraComputations[i] = 0;
20302
+ break;
20303
+ case "TOLLS":
20304
+ case 1:
20305
+ message.extraComputations[i] = 1;
20306
+ break;
20307
+ }
20308
+ }
20155
20309
  return message;
20156
20310
  };
20157
20311
 
@@ -20171,6 +20325,7 @@
20171
20325
  if (options.arrays || options.defaults) {
20172
20326
  object.origins = [];
20173
20327
  object.destinations = [];
20328
+ object.extraComputations = [];
20174
20329
  }
20175
20330
  if (options.defaults) {
20176
20331
  object.travelMode = options.enums === String ? "TRAVEL_MODE_UNSPECIFIED" : 0;
@@ -20193,6 +20348,11 @@
20193
20348
  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;
20194
20349
  if (message.departureTime != null && message.hasOwnProperty("departureTime"))
20195
20350
  object.departureTime = $root.google.protobuf.Timestamp.toObject(message.departureTime, options);
20351
+ if (message.extraComputations && message.extraComputations.length) {
20352
+ object.extraComputations = [];
20353
+ for (var j = 0; j < message.extraComputations.length; ++j)
20354
+ 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];
20355
+ }
20196
20356
  return object;
20197
20357
  };
20198
20358
 
@@ -20222,6 +20382,20 @@
20222
20382
  return typeUrlPrefix + "/google.maps.routing.v2.ComputeRouteMatrixRequest";
20223
20383
  };
20224
20384
 
20385
+ /**
20386
+ * ExtraComputation enum.
20387
+ * @name google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation
20388
+ * @enum {number}
20389
+ * @property {number} EXTRA_COMPUTATION_UNSPECIFIED=0 EXTRA_COMPUTATION_UNSPECIFIED value
20390
+ * @property {number} TOLLS=1 TOLLS value
20391
+ */
20392
+ ComputeRouteMatrixRequest.ExtraComputation = (function() {
20393
+ var valuesById = {}, values = Object.create(valuesById);
20394
+ values[valuesById[0] = "EXTRA_COMPUTATION_UNSPECIFIED"] = 0;
20395
+ values[valuesById[1] = "TOLLS"] = 1;
20396
+ return values;
20397
+ })();
20398
+
20225
20399
  return ComputeRouteMatrixRequest;
20226
20400
  })();
20227
20401
 
@@ -1802,6 +1802,14 @@
1802
1802
  "options": {
1803
1803
  "(google.api.field_behavior)": "OPTIONAL"
1804
1804
  }
1805
+ },
1806
+ "extraComputations": {
1807
+ "rule": "repeated",
1808
+ "type": "ExtraComputation",
1809
+ "id": 15,
1810
+ "options": {
1811
+ "(google.api.field_behavior)": "OPTIONAL"
1812
+ }
1805
1813
  }
1806
1814
  },
1807
1815
  "nested": {
@@ -1810,6 +1818,14 @@
1810
1818
  "REFERENCE_ROUTE_UNSPECIFIED": 0,
1811
1819
  "FUEL_EFFICIENT": 1
1812
1820
  }
1821
+ },
1822
+ "ExtraComputation": {
1823
+ "values": {
1824
+ "EXTRA_COMPUTATION_UNSPECIFIED": 0,
1825
+ "TOLLS": 1,
1826
+ "FUEL_CONSUMPTION": 2,
1827
+ "TRAFFIC_ON_POLYLINE": 3
1828
+ }
1813
1829
  }
1814
1830
  }
1815
1831
  },
@@ -1864,6 +1880,22 @@
1864
1880
  "options": {
1865
1881
  "(google.api.field_behavior)": "OPTIONAL"
1866
1882
  }
1883
+ },
1884
+ "extraComputations": {
1885
+ "rule": "repeated",
1886
+ "type": "ExtraComputation",
1887
+ "id": 8,
1888
+ "options": {
1889
+ "(google.api.field_behavior)": "OPTIONAL"
1890
+ }
1891
+ }
1892
+ },
1893
+ "nested": {
1894
+ "ExtraComputation": {
1895
+ "values": {
1896
+ "EXTRA_COMPUTATION_UNSPECIFIED": 0,
1897
+ "TOLLS": 1
1898
+ }
1867
1899
  }
1868
1900
  }
1869
1901
  },
@@ -1,6 +1,6 @@
1
1
  import * as v2 from './v2';
2
2
  declare const RoutesClient: typeof v2.RoutesClient;
3
- declare type RoutesClient = v2.RoutesClient;
3
+ type RoutesClient = v2.RoutesClient;
4
4
  export { v2, RoutesClient };
5
5
  declare const _default: {
6
6
  v2: typeof v2;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2022 Google LLC
2
+ // Copyright 2023 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2022 Google LLC
2
+ // Copyright 2023 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -155,10 +155,8 @@ export declare class RoutesClient {
155
155
  * Optional. Specifies how to compute the route. The server
156
156
  * attempts to use the selected routing preference to compute the route. If
157
157
  * the routing preference results in an error or an extra long latency, then
158
- * an error is returned. In the future, we might implement a fallback
159
- * mechanism to use a different option when the preferred option does not give
160
- * a valid result. You can specify this option only when the `travel_mode` is
161
- * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
158
+ * an error is returned. You can specify this option only when the
159
+ * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
162
160
  * @param {google.maps.routing.v2.PolylineQuality} [request.polylineQuality]
163
161
  * Optional. Specifies your preference for the quality of the polyline.
164
162
  * @param {google.maps.routing.v2.PolylineEncoding} [request.polylineEncoding]
@@ -168,7 +166,8 @@ export declare class RoutesClient {
168
166
  * defaults to the time that you made the request. If you set this value to a
169
167
  * time that has already occurred, then the request fails.
170
168
  * @param {boolean} [request.computeAlternativeRoutes]
171
- * Optional. Specifies whether to calculate alternate routes in addition to the route.
169
+ * Optional. Specifies whether to calculate alternate routes in addition to
170
+ * the route.
172
171
  * @param {google.maps.routing.v2.RouteModifiers} [request.routeModifiers]
173
172
  * Optional. A set of conditions to satisfy that affect the way routes are
174
173
  * calculated.
@@ -186,12 +185,16 @@ export declare class RoutesClient {
186
185
  * affected by this value. If you don't provide this value, then the display
187
186
  * units are inferred from the location of the request.
188
187
  * @param {number[]} [request.requestedReferenceRoutes]
189
- * Optional. Specifies what reference routes to calculate as part of the request in
190
- * addition to the default route.
191
- * A reference route is a route with a different route calculation objective
192
- * than the default route. For example an FUEL_EFFICIENT reference route
193
- * calculation takes into account various parameters that would generate an
194
- * optimal fuel efficient route.
188
+ * Optional. Specifies what reference routes to calculate as part of the
189
+ * request in addition to the default route. A reference route is a route with
190
+ * a different route calculation objective than the default route. For example
191
+ * an FUEL_EFFICIENT reference route calculation takes into account various
192
+ * parameters that would generate an optimal fuel efficient route.
193
+ * @param {number[]} [request.extraComputations]
194
+ * Optional. A list of extra computations which may be used to complete the
195
+ * request. Note: These extra computations may return extra fields on the
196
+ * response. These extra fields must also be specified in the field mask to be
197
+ * returned in the response.
195
198
  * @param {object} [options]
196
199
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
197
200
  * @returns {Promise} - The promise which resolves to an array.
@@ -249,8 +252,8 @@ export declare class RoutesClient {
249
252
  * @param {Object} request
250
253
  * The request object that will be sent.
251
254
  * @param {number[]} request.origins
252
- * Required. Array of origins, which determines the rows of the response matrix.
253
- * Several size restrictions apply to the cardinality of origins and
255
+ * Required. Array of origins, which determines the rows of the response
256
+ * matrix. Several size restrictions apply to the cardinality of origins and
254
257
  * destinations:
255
258
  *
256
259
  * * The number of elements (origins × destinations) must be no greater than
@@ -260,21 +263,25 @@ export declare class RoutesClient {
260
263
  * * The number of waypoints (origins + destinations) specified as `place_id`
261
264
  * must be no greater than 50.
262
265
  * @param {number[]} request.destinations
263
- * Required. Array of destinations, which determines the columns of the response matrix.
266
+ * Required. Array of destinations, which determines the columns of the
267
+ * response matrix.
264
268
  * @param {google.maps.routing.v2.RouteTravelMode} [request.travelMode]
265
269
  * Optional. Specifies the mode of transportation.
266
270
  * @param {google.maps.routing.v2.RoutingPreference} [request.routingPreference]
267
- * Optional. Specifies how to compute the route. The server attempts to use the selected
268
- * routing preference to compute the route. If the routing preference results
269
- * in an error or an extra long latency, an error is returned. In the future,
270
- * we might implement a fallback mechanism to use a different option when the
271
- * preferred option does not give a valid result. You can specify this option
272
- * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
273
- * request fails.
271
+ * Optional. Specifies how to compute the route. The server attempts to use
272
+ * the selected routing preference to compute the route. If the routing
273
+ * preference results in an error or an extra long latency, an error is
274
+ * returned. You can specify this option only when the `travel_mode` is
275
+ * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
274
276
  * @param {google.protobuf.Timestamp} [request.departureTime]
275
- * Optional. The departure time. If you don't set this value, this defaults to the time
276
- * that you made the request. If you set this value to a time that has already
277
- * occurred, the request fails.
277
+ * Optional. The departure time. If you don't set this value, this defaults to
278
+ * the time that you made the request. If you set this value to a time that
279
+ * has already occurred, the request fails.
280
+ * @param {number[]} [request.extraComputations]
281
+ * Optional. A list of extra computations which may be used to complete the
282
+ * request. Note: These extra computations may return extra fields on the
283
+ * response. These extra fields must also be specified in the field mask to be
284
+ * returned in the response.
278
285
  * @param {object} [options]
279
286
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
280
287
  * @returns {Stream}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2022 Google LLC
2
+ // Copyright 2023 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -90,6 +90,8 @@ class RoutesClient {
90
90
  const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
91
91
  const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
92
92
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
93
+ // Request numeric enum values if REST transport is used.
94
+ opts.numericEnums = true;
93
95
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
94
96
  if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
95
97
  opts['scopes'] = staticMembers.scopes;
@@ -292,8 +294,8 @@ class RoutesClient {
292
294
  * @param {Object} request
293
295
  * The request object that will be sent.
294
296
  * @param {number[]} request.origins
295
- * Required. Array of origins, which determines the rows of the response matrix.
296
- * Several size restrictions apply to the cardinality of origins and
297
+ * Required. Array of origins, which determines the rows of the response
298
+ * matrix. Several size restrictions apply to the cardinality of origins and
297
299
  * destinations:
298
300
  *
299
301
  * * The number of elements (origins × destinations) must be no greater than
@@ -303,21 +305,25 @@ class RoutesClient {
303
305
  * * The number of waypoints (origins + destinations) specified as `place_id`
304
306
  * must be no greater than 50.
305
307
  * @param {number[]} request.destinations
306
- * Required. Array of destinations, which determines the columns of the response matrix.
308
+ * Required. Array of destinations, which determines the columns of the
309
+ * response matrix.
307
310
  * @param {google.maps.routing.v2.RouteTravelMode} [request.travelMode]
308
311
  * Optional. Specifies the mode of transportation.
309
312
  * @param {google.maps.routing.v2.RoutingPreference} [request.routingPreference]
310
- * Optional. Specifies how to compute the route. The server attempts to use the selected
311
- * routing preference to compute the route. If the routing preference results
312
- * in an error or an extra long latency, an error is returned. In the future,
313
- * we might implement a fallback mechanism to use a different option when the
314
- * preferred option does not give a valid result. You can specify this option
315
- * only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
316
- * request fails.
313
+ * Optional. Specifies how to compute the route. The server attempts to use
314
+ * the selected routing preference to compute the route. If the routing
315
+ * preference results in an error or an extra long latency, an error is
316
+ * returned. You can specify this option only when the `travel_mode` is
317
+ * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
317
318
  * @param {google.protobuf.Timestamp} [request.departureTime]
318
- * Optional. The departure time. If you don't set this value, this defaults to the time
319
- * that you made the request. If you set this value to a time that has already
320
- * occurred, the request fails.
319
+ * Optional. The departure time. If you don't set this value, this defaults to
320
+ * the time that you made the request. If you set this value to a time that
321
+ * has already occurred, the request fails.
322
+ * @param {number[]} [request.extraComputations]
323
+ * Optional. A list of extra computations which may be used to complete the
324
+ * request. Note: These extra computations may return extra fields on the
325
+ * response. These extra fields must also be specified in the field mask to be
326
+ * returned in the response.
321
327
  * @param {object} [options]
322
328
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
323
329
  * @returns {Stream}
@@ -1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",
4
4
  "description": " client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/mocha": "^9.0.0",
51
- "@types/node": "^16.0.0",
51
+ "@types/node": "^18.0.0",
52
52
  "@types/sinon": "^10.0.0",
53
53
  "c8": "^7.3.5",
54
54
  "gts": "^3.1.0",
@@ -59,11 +59,11 @@
59
59
  "mocha": "^9.2.2",
60
60
  "null-loader": "^4.0.1",
61
61
  "pack-n-play": "^1.0.0-2",
62
- "sinon": "^14.0.0",
62
+ "sinon": "^15.0.0",
63
63
  "ts-loader": "^9.0.0",
64
64
  "typescript": "^4.6.4",
65
65
  "webpack": "^5.9.0",
66
- "webpack-cli": "^4.2.0"
66
+ "webpack-cli": "^5.0.0"
67
67
  },
68
68
  "engines": {
69
69
  "node": ">=12.0.0"