@googlemaps/fleetengine-delivery 0.1.0 → 0.2.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.
@@ -1,4 +1,7 @@
1
1
  {
2
+ "options": {
3
+ "syntax": "proto3"
4
+ },
2
5
  "nested": {
3
6
  "maps": {
4
7
  "nested": {
@@ -12,8 +15,10 @@
12
15
  "go_package": "cloud.google.com/go/maps/fleetengine/delivery/apiv1/deliverypb;deliverypb",
13
16
  "java_multiple_files": true,
14
17
  "java_outer_classname": "Tasks",
15
- "java_package": "google.maps.fleetengine.delivery.v1",
18
+ "java_package": "com.google.maps.fleetengine.delivery.v1",
16
19
  "objc_class_prefix": "CFED",
20
+ "php_namespace": "Google\\Maps\\FleetEngine\\Delivery\\V1",
21
+ "ruby_package": "Google::Maps::FleetEngine::Delivery::V1",
17
22
  "(google.api.resource_definition).type": "fleetengine.googleapis.com/Provider",
18
23
  "(google.api.resource_definition).pattern": "providers/{provider}"
19
24
  },
@@ -442,38 +447,6 @@
442
447
  }
443
448
  ]
444
449
  },
445
- "SearchTasks": {
446
- "requestType": "SearchTasksRequest",
447
- "responseType": "SearchTasksResponse",
448
- "options": {
449
- "deprecated": true,
450
- "(google.api.http).get": "/v1/{parent=providers/*}/tasks:search",
451
- "(google.api.routing).routing_parameters.field": "parent",
452
- "(google.api.routing).routing_parameters.path_template": "{provider_id=providers/*}",
453
- "(google.api.method_signature)": "parent"
454
- },
455
- "parsedOptions": [
456
- {
457
- "deprecated": true
458
- },
459
- {
460
- "(google.api.http)": {
461
- "get": "/v1/{parent=providers/*}/tasks:search"
462
- }
463
- },
464
- {
465
- "(google.api.routing)": {
466
- "routing_parameters": {
467
- "field": "parent",
468
- "path_template": "{provider_id=providers/*}"
469
- }
470
- }
471
- },
472
- {
473
- "(google.api.method_signature)": "parent"
474
- }
475
- ]
476
- },
477
450
  "UpdateTask": {
478
451
  "requestType": "UpdateTaskRequest",
479
452
  "responseType": "Task",
@@ -817,64 +790,6 @@
817
790
  }
818
791
  }
819
792
  },
820
- "SearchTasksRequest": {
821
- "options": {
822
- "deprecated": true
823
- },
824
- "fields": {
825
- "header": {
826
- "type": "DeliveryRequestHeader",
827
- "id": 1,
828
- "options": {
829
- "(google.api.field_behavior)": "OPTIONAL"
830
- }
831
- },
832
- "parent": {
833
- "type": "string",
834
- "id": 3,
835
- "options": {
836
- "(google.api.field_behavior)": "REQUIRED"
837
- }
838
- },
839
- "trackingId": {
840
- "type": "string",
841
- "id": 4,
842
- "options": {
843
- "(google.api.field_behavior)": "REQUIRED"
844
- }
845
- },
846
- "pageSize": {
847
- "type": "int32",
848
- "id": 5,
849
- "options": {
850
- "(google.api.field_behavior)": "OPTIONAL"
851
- }
852
- },
853
- "pageToken": {
854
- "type": "string",
855
- "id": 6,
856
- "options": {
857
- "(google.api.field_behavior)": "OPTIONAL"
858
- }
859
- }
860
- }
861
- },
862
- "SearchTasksResponse": {
863
- "options": {
864
- "deprecated": true
865
- },
866
- "fields": {
867
- "tasks": {
868
- "rule": "repeated",
869
- "type": "Task",
870
- "id": 1
871
- },
872
- "nextPageToken": {
873
- "type": "string",
874
- "id": 2
875
- }
876
- }
877
- },
878
793
  "UpdateTaskRequest": {
879
794
  "fields": {
880
795
  "header": {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Google LLC
2
+ // Copyright 2025 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,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as gax from 'google-gax';
3
2
  import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax';
4
3
  import { Transform } from 'stream';
@@ -139,6 +138,7 @@ export declare class DeliveryServiceClient {
139
138
  * Required. The `DeliveryVehicle` entity to create. When creating a new
140
139
  * delivery vehicle, you may set the following optional fields:
141
140
  *
141
+ * * type
142
142
  * * last_location
143
143
  * * attributes
144
144
  *
@@ -191,9 +191,9 @@ export declare class DeliveryServiceClient {
191
191
  /**
192
192
  * Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns
193
193
  * `Tasks` to the `DeliveryVehicle`. You cannot update the name of the
194
- * `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments`
195
- * though, but it must contain all of the `VehicleJourneySegment`s currently
196
- * on the `DeliveryVehicle`. The `task_id`s are retrieved from
194
+ * `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments`,
195
+ * but it must contain all of the `VehicleJourneySegment`s to be persisted on
196
+ * the `DeliveryVehicle`. The `task_id`s are retrieved from
197
197
  * `remaining_vehicle_journey_segments`, and their corresponding `Tasks` are
198
198
  * assigned to the `DeliveryVehicle` if they have not yet been assigned.
199
199
  *
@@ -414,146 +414,6 @@ export declare class DeliveryServiceClient {
414
414
  ]>;
415
415
  getTaskTrackingInfo(request: protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.delivery.v1.ITaskTrackingInfo, protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest | null | undefined, {} | null | undefined>): void;
416
416
  getTaskTrackingInfo(request: protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest, callback: Callback<protos.maps.fleetengine.delivery.v1.ITaskTrackingInfo, protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest | null | undefined, {} | null | undefined>): void;
417
- /**
418
- * Deprecated: Use `GetTaskTrackingInfo` instead.
419
- *
420
- * @param {Object} request
421
- * The request object that will be sent.
422
- * @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
423
- * Optional. The standard Delivery API request header.
424
- * @param {string} request.parent
425
- * Required. Must be in the format `providers/{provider}`.
426
- * The provider must be the Google Cloud Project ID. For example,
427
- * `sample-cloud-project`.
428
- * @param {string} request.trackingId
429
- * Required. The identifier of the set of related Tasks being requested.
430
- * Tracking IDs are subject to the following restrictions:
431
- *
432
- * * Must be a valid Unicode string.
433
- * * Limited to a maximum length of 64 characters.
434
- * * Normalized according to [Unicode Normalization Form C]
435
- * (http://www.unicode.org/reports/tr15/).
436
- * * May not contain any of the following ASCII characters: '/', ':', '?',
437
- * ',', or '#'.
438
- * @param {number} [request.pageSize]
439
- * Optional. The maximum number of Tasks to return. The service may return
440
- * fewer than this value. If you don't specify this value, then the server
441
- * determines the number of results to return.
442
- * @param {string} [request.pageToken]
443
- * Optional. A page token, received from a previous `SearchTasks` call. You
444
- * must provide this value to retrieve the subsequent page.
445
- *
446
- * When paginating, all other parameters provided to `SearchTasks` must match
447
- * the call that provided the page token.
448
- * @param {object} [options]
449
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
450
- * @returns {Promise} - The promise which resolves to an array.
451
- * The first element of the array is Array of {@link protos.maps.fleetengine.delivery.v1.Task|Task}.
452
- * The client library will perform auto-pagination by default: it will call the API as many
453
- * times as needed and will merge results from all the pages into this array.
454
- * Note that it can affect your quota.
455
- * We recommend using `searchTasksAsync()`
456
- * method described below for async iteration which you can stop as needed.
457
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
458
- * for more details and examples.
459
- * @deprecated SearchTasks is deprecated and may be removed in a future version.
460
- */
461
- searchTasks(request?: protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, options?: CallOptions): Promise<[
462
- protos.maps.fleetengine.delivery.v1.ITask[],
463
- protos.maps.fleetengine.delivery.v1.ISearchTasksRequest | null,
464
- protos.maps.fleetengine.delivery.v1.ISearchTasksResponse
465
- ]>;
466
- searchTasks(request: protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, options: CallOptions, callback: PaginationCallback<protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, protos.maps.fleetengine.delivery.v1.ISearchTasksResponse | null | undefined, protos.maps.fleetengine.delivery.v1.ITask>): void;
467
- searchTasks(request: protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, callback: PaginationCallback<protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, protos.maps.fleetengine.delivery.v1.ISearchTasksResponse | null | undefined, protos.maps.fleetengine.delivery.v1.ITask>): void;
468
- /**
469
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
470
- * @param {Object} request
471
- * The request object that will be sent.
472
- * @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
473
- * Optional. The standard Delivery API request header.
474
- * @param {string} request.parent
475
- * Required. Must be in the format `providers/{provider}`.
476
- * The provider must be the Google Cloud Project ID. For example,
477
- * `sample-cloud-project`.
478
- * @param {string} request.trackingId
479
- * Required. The identifier of the set of related Tasks being requested.
480
- * Tracking IDs are subject to the following restrictions:
481
- *
482
- * * Must be a valid Unicode string.
483
- * * Limited to a maximum length of 64 characters.
484
- * * Normalized according to [Unicode Normalization Form C]
485
- * (http://www.unicode.org/reports/tr15/).
486
- * * May not contain any of the following ASCII characters: '/', ':', '?',
487
- * ',', or '#'.
488
- * @param {number} [request.pageSize]
489
- * Optional. The maximum number of Tasks to return. The service may return
490
- * fewer than this value. If you don't specify this value, then the server
491
- * determines the number of results to return.
492
- * @param {string} [request.pageToken]
493
- * Optional. A page token, received from a previous `SearchTasks` call. You
494
- * must provide this value to retrieve the subsequent page.
495
- *
496
- * When paginating, all other parameters provided to `SearchTasks` must match
497
- * the call that provided the page token.
498
- * @param {object} [options]
499
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
500
- * @returns {Stream}
501
- * An object stream which emits an object representing {@link protos.maps.fleetengine.delivery.v1.Task|Task} on 'data' event.
502
- * The client library will perform auto-pagination by default: it will call the API as many
503
- * times as needed. Note that it can affect your quota.
504
- * We recommend using `searchTasksAsync()`
505
- * method described below for async iteration which you can stop as needed.
506
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
507
- * for more details and examples.
508
- * @deprecated SearchTasks is deprecated and may be removed in a future version.
509
- */
510
- searchTasksStream(request?: protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, options?: CallOptions): Transform;
511
- /**
512
- * Equivalent to `searchTasks`, but returns an iterable object.
513
- *
514
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
515
- * @param {Object} request
516
- * The request object that will be sent.
517
- * @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
518
- * Optional. The standard Delivery API request header.
519
- * @param {string} request.parent
520
- * Required. Must be in the format `providers/{provider}`.
521
- * The provider must be the Google Cloud Project ID. For example,
522
- * `sample-cloud-project`.
523
- * @param {string} request.trackingId
524
- * Required. The identifier of the set of related Tasks being requested.
525
- * Tracking IDs are subject to the following restrictions:
526
- *
527
- * * Must be a valid Unicode string.
528
- * * Limited to a maximum length of 64 characters.
529
- * * Normalized according to [Unicode Normalization Form C]
530
- * (http://www.unicode.org/reports/tr15/).
531
- * * May not contain any of the following ASCII characters: '/', ':', '?',
532
- * ',', or '#'.
533
- * @param {number} [request.pageSize]
534
- * Optional. The maximum number of Tasks to return. The service may return
535
- * fewer than this value. If you don't specify this value, then the server
536
- * determines the number of results to return.
537
- * @param {string} [request.pageToken]
538
- * Optional. A page token, received from a previous `SearchTasks` call. You
539
- * must provide this value to retrieve the subsequent page.
540
- *
541
- * When paginating, all other parameters provided to `SearchTasks` must match
542
- * the call that provided the page token.
543
- * @param {object} [options]
544
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
545
- * @returns {Object}
546
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
547
- * When you iterate the returned iterable, each element will be an object representing
548
- * {@link protos.maps.fleetengine.delivery.v1.Task|Task}. The API will be called under the hood as needed, once per the page,
549
- * so you can stop the iteration when you don't need more results.
550
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
551
- * for more details and examples.
552
- * @example <caption>include:samples/generated/v1/delivery_service.search_tasks.js</caption>
553
- * region_tag:fleetengine_v1_generated_DeliveryService_SearchTasks_async
554
- * @deprecated SearchTasks is deprecated and may be removed in a future version.
555
- */
556
- searchTasksAsync(request?: protos.maps.fleetengine.delivery.v1.ISearchTasksRequest, options?: CallOptions): AsyncIterable<protos.maps.fleetengine.delivery.v1.ITask>;
557
417
  /**
558
418
  * Gets all `Task`s that meet the specified filtering criteria.
559
419
  *
@@ -579,8 +439,8 @@ export declare class DeliveryServiceClient {
579
439
  * Optional. A filter query to apply when listing Tasks. See
580
440
  * http://aip.dev/160 for examples of filter syntax. If you don't specify a
581
441
  * value, or if you filter on an empty string, then all Tasks are returned.
582
- * For information about the Task properties that you can filter on, see [Task
583
- * list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks).
442
+ * For information about the Task properties that you can filter on, see [List
443
+ * tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
584
444
  * @param {object} [options]
585
445
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
586
446
  * @returns {Promise} - The promise which resolves to an array.
@@ -624,8 +484,8 @@ export declare class DeliveryServiceClient {
624
484
  * Optional. A filter query to apply when listing Tasks. See
625
485
  * http://aip.dev/160 for examples of filter syntax. If you don't specify a
626
486
  * value, or if you filter on an empty string, then all Tasks are returned.
627
- * For information about the Task properties that you can filter on, see [Task
628
- * list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks).
487
+ * For information about the Task properties that you can filter on, see [List
488
+ * tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
629
489
  * @param {object} [options]
630
490
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
631
491
  * @returns {Stream}
@@ -664,8 +524,8 @@ export declare class DeliveryServiceClient {
664
524
  * Optional. A filter query to apply when listing Tasks. See
665
525
  * http://aip.dev/160 for examples of filter syntax. If you don't specify a
666
526
  * value, or if you filter on an empty string, then all Tasks are returned.
667
- * For information about the Task properties that you can filter on, see [Task
668
- * list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks).
527
+ * For information about the Task properties that you can filter on, see [List
528
+ * tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
669
529
  * @param {object} [options]
670
530
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
671
531
  * @returns {Object}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2024 Google LLC
2
+ // Copyright 2025 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.
@@ -157,7 +157,6 @@ class DeliveryServiceClient {
157
157
  // (e.g. 50 results at a time, with tokens to get subsequent
158
158
  // pages). Denote the keys used for pagination and results.
159
159
  this.descriptors.page = {
160
- searchTasks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'tasks'),
161
160
  listTasks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'tasks'),
162
161
  listDeliveryVehicles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'deliveryVehicles'),
163
162
  };
@@ -201,7 +200,6 @@ class DeliveryServiceClient {
201
200
  'batchCreateTasks',
202
201
  'createTask',
203
202
  'getTask',
204
- 'searchTasks',
205
203
  'updateTask',
206
204
  'listTasks',
207
205
  'getTaskTrackingInfo',
@@ -539,180 +537,6 @@ class DeliveryServiceClient {
539
537
  this.initialize();
540
538
  return this.innerApiCalls.getTaskTrackingInfo(request, options, callback);
541
539
  }
542
- searchTasks(request, optionsOrCallback, callback) {
543
- var _a, _b;
544
- request = request || {};
545
- let options;
546
- if (typeof optionsOrCallback === 'function' && callback === undefined) {
547
- callback = optionsOrCallback;
548
- options = {};
549
- }
550
- else {
551
- options = optionsOrCallback;
552
- }
553
- options = options || {};
554
- options.otherArgs = options.otherArgs || {};
555
- options.otherArgs.headers = options.otherArgs.headers || {};
556
- const routingParameter = {};
557
- {
558
- const fieldValue = request.parent;
559
- if (fieldValue !== undefined && fieldValue !== null) {
560
- const match = fieldValue
561
- .toString()
562
- .match(RegExp('(?<provider_id>providers/[^/]+)'));
563
- if (match) {
564
- const parameterValue = (_b = (_a = match.groups) === null || _a === void 0 ? void 0 : _a['provider_id']) !== null && _b !== void 0 ? _b : fieldValue;
565
- Object.assign(routingParameter, { provider_id: parameterValue });
566
- }
567
- }
568
- }
569
- options.otherArgs.headers['x-goog-request-params'] =
570
- this._gaxModule.routingHeader.fromParams(routingParameter);
571
- this.initialize();
572
- this.warn('DEP$DeliveryService-$SearchTasks', 'SearchTasks is deprecated and may be removed in a future version.', 'DeprecationWarning');
573
- return this.innerApiCalls.searchTasks(request, options, callback);
574
- }
575
- /**
576
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
577
- * @param {Object} request
578
- * The request object that will be sent.
579
- * @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
580
- * Optional. The standard Delivery API request header.
581
- * @param {string} request.parent
582
- * Required. Must be in the format `providers/{provider}`.
583
- * The provider must be the Google Cloud Project ID. For example,
584
- * `sample-cloud-project`.
585
- * @param {string} request.trackingId
586
- * Required. The identifier of the set of related Tasks being requested.
587
- * Tracking IDs are subject to the following restrictions:
588
- *
589
- * * Must be a valid Unicode string.
590
- * * Limited to a maximum length of 64 characters.
591
- * * Normalized according to [Unicode Normalization Form C]
592
- * (http://www.unicode.org/reports/tr15/).
593
- * * May not contain any of the following ASCII characters: '/', ':', '?',
594
- * ',', or '#'.
595
- * @param {number} [request.pageSize]
596
- * Optional. The maximum number of Tasks to return. The service may return
597
- * fewer than this value. If you don't specify this value, then the server
598
- * determines the number of results to return.
599
- * @param {string} [request.pageToken]
600
- * Optional. A page token, received from a previous `SearchTasks` call. You
601
- * must provide this value to retrieve the subsequent page.
602
- *
603
- * When paginating, all other parameters provided to `SearchTasks` must match
604
- * the call that provided the page token.
605
- * @param {object} [options]
606
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
607
- * @returns {Stream}
608
- * An object stream which emits an object representing {@link protos.maps.fleetengine.delivery.v1.Task|Task} on 'data' event.
609
- * The client library will perform auto-pagination by default: it will call the API as many
610
- * times as needed. Note that it can affect your quota.
611
- * We recommend using `searchTasksAsync()`
612
- * method described below for async iteration which you can stop as needed.
613
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
614
- * for more details and examples.
615
- * @deprecated SearchTasks is deprecated and may be removed in a future version.
616
- */
617
- searchTasksStream(request, options) {
618
- var _a, _b;
619
- request = request || {};
620
- options = options || {};
621
- options.otherArgs = options.otherArgs || {};
622
- options.otherArgs.headers = options.otherArgs.headers || {};
623
- const routingParameter = {};
624
- {
625
- const fieldValue = request.parent;
626
- if (fieldValue !== undefined && fieldValue !== null) {
627
- const match = fieldValue
628
- .toString()
629
- .match(RegExp('(?<provider_id>providers/[^/]+)'));
630
- if (match) {
631
- const parameterValue = (_b = (_a = match.groups) === null || _a === void 0 ? void 0 : _a['provider_id']) !== null && _b !== void 0 ? _b : fieldValue;
632
- Object.assign(routingParameter, { provider_id: parameterValue });
633
- }
634
- }
635
- }
636
- options.otherArgs.headers['x-goog-request-params'] =
637
- this._gaxModule.routingHeader.fromParams(routingParameter);
638
- const defaultCallSettings = this._defaults['searchTasks'];
639
- const callSettings = defaultCallSettings.merge(options);
640
- this.initialize();
641
- this.warn('DEP$DeliveryService-$SearchTasks', 'SearchTasks is deprecated and may be removed in a future version.', 'DeprecationWarning');
642
- return this.descriptors.page.searchTasks.createStream(this.innerApiCalls.searchTasks, request, callSettings);
643
- }
644
- /**
645
- * Equivalent to `searchTasks`, but returns an iterable object.
646
- *
647
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
648
- * @param {Object} request
649
- * The request object that will be sent.
650
- * @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
651
- * Optional. The standard Delivery API request header.
652
- * @param {string} request.parent
653
- * Required. Must be in the format `providers/{provider}`.
654
- * The provider must be the Google Cloud Project ID. For example,
655
- * `sample-cloud-project`.
656
- * @param {string} request.trackingId
657
- * Required. The identifier of the set of related Tasks being requested.
658
- * Tracking IDs are subject to the following restrictions:
659
- *
660
- * * Must be a valid Unicode string.
661
- * * Limited to a maximum length of 64 characters.
662
- * * Normalized according to [Unicode Normalization Form C]
663
- * (http://www.unicode.org/reports/tr15/).
664
- * * May not contain any of the following ASCII characters: '/', ':', '?',
665
- * ',', or '#'.
666
- * @param {number} [request.pageSize]
667
- * Optional. The maximum number of Tasks to return. The service may return
668
- * fewer than this value. If you don't specify this value, then the server
669
- * determines the number of results to return.
670
- * @param {string} [request.pageToken]
671
- * Optional. A page token, received from a previous `SearchTasks` call. You
672
- * must provide this value to retrieve the subsequent page.
673
- *
674
- * When paginating, all other parameters provided to `SearchTasks` must match
675
- * the call that provided the page token.
676
- * @param {object} [options]
677
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
678
- * @returns {Object}
679
- * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
680
- * When you iterate the returned iterable, each element will be an object representing
681
- * {@link protos.maps.fleetengine.delivery.v1.Task|Task}. The API will be called under the hood as needed, once per the page,
682
- * so you can stop the iteration when you don't need more results.
683
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
684
- * for more details and examples.
685
- * @example <caption>include:samples/generated/v1/delivery_service.search_tasks.js</caption>
686
- * region_tag:fleetengine_v1_generated_DeliveryService_SearchTasks_async
687
- * @deprecated SearchTasks is deprecated and may be removed in a future version.
688
- */
689
- searchTasksAsync(request, options) {
690
- var _a, _b;
691
- request = request || {};
692
- options = options || {};
693
- options.otherArgs = options.otherArgs || {};
694
- options.otherArgs.headers = options.otherArgs.headers || {};
695
- const routingParameter = {};
696
- {
697
- const fieldValue = request.parent;
698
- if (fieldValue !== undefined && fieldValue !== null) {
699
- const match = fieldValue
700
- .toString()
701
- .match(RegExp('(?<provider_id>providers/[^/]+)'));
702
- if (match) {
703
- const parameterValue = (_b = (_a = match.groups) === null || _a === void 0 ? void 0 : _a['provider_id']) !== null && _b !== void 0 ? _b : fieldValue;
704
- Object.assign(routingParameter, { provider_id: parameterValue });
705
- }
706
- }
707
- }
708
- options.otherArgs.headers['x-goog-request-params'] =
709
- this._gaxModule.routingHeader.fromParams(routingParameter);
710
- const defaultCallSettings = this._defaults['searchTasks'];
711
- const callSettings = defaultCallSettings.merge(options);
712
- this.initialize();
713
- this.warn('DEP$DeliveryService-$SearchTasks', 'SearchTasks is deprecated and may be removed in a future version.', 'DeprecationWarning');
714
- return this.descriptors.page.searchTasks.asyncIterate(this.innerApiCalls['searchTasks'], request, callSettings);
715
- }
716
540
  listTasks(request, optionsOrCallback, callback) {
717
541
  var _a, _b;
718
542
  request = request || {};
@@ -769,8 +593,8 @@ class DeliveryServiceClient {
769
593
  * Optional. A filter query to apply when listing Tasks. See
770
594
  * http://aip.dev/160 for examples of filter syntax. If you don't specify a
771
595
  * value, or if you filter on an empty string, then all Tasks are returned.
772
- * For information about the Task properties that you can filter on, see [Task
773
- * list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks).
596
+ * For information about the Task properties that you can filter on, see [List
597
+ * tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
774
598
  * @param {object} [options]
775
599
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
776
600
  * @returns {Stream}
@@ -834,8 +658,8 @@ class DeliveryServiceClient {
834
658
  * Optional. A filter query to apply when listing Tasks. See
835
659
  * http://aip.dev/160 for examples of filter syntax. If you don't specify a
836
660
  * value, or if you filter on an empty string, then all Tasks are returned.
837
- * For information about the Task properties that you can filter on, see [Task
838
- * list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks).
661
+ * For information about the Task properties that you can filter on, see [List
662
+ * tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
839
663
  * @param {object} [options]
840
664
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
841
665
  * @returns {Object}