@google-cloud/discoveryengine 3.0.0 → 3.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.
Files changed (79) hide show
  1. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +19 -0
  2. package/build/protos/google/cloud/discoveryengine/v1beta/assistant_service.proto +19 -0
  3. package/build/protos/protos.d.ts +406 -0
  4. package/build/protos/protos.js +1 -1
  5. package/build/protos/protos.json +64 -0
  6. package/build/src/v1/assistant_service_client.d.ts +2 -0
  7. package/build/src/v1/assistant_service_client.js +6 -4
  8. package/build/src/v1/cmek_config_service_client.js +9 -13
  9. package/build/src/v1/completion_service_client.js +10 -14
  10. package/build/src/v1/control_service_client.js +10 -10
  11. package/build/src/v1/conversational_search_service_client.js +21 -21
  12. package/build/src/v1/data_store_service_client.js +12 -16
  13. package/build/src/v1/document_service_client.js +15 -19
  14. package/build/src/v1/engine_service_client.js +12 -16
  15. package/build/src/v1/grounded_generation_service_client.js +6 -6
  16. package/build/src/v1/identity_mapping_store_service_client.js +16 -20
  17. package/build/src/v1/project_service_client.js +6 -10
  18. package/build/src/v1/rank_service_client.js +4 -4
  19. package/build/src/v1/recommendation_service_client.js +4 -4
  20. package/build/src/v1/schema_service_client.js +12 -16
  21. package/build/src/v1/search_service_client.js +9 -9
  22. package/build/src/v1/search_tuning_service_client.js +7 -11
  23. package/build/src/v1/serving_config_service_client.js +4 -4
  24. package/build/src/v1/session_service_client.js +10 -10
  25. package/build/src/v1/site_search_engine_service_client.js +24 -28
  26. package/build/src/v1/user_event_service_client.js +9 -13
  27. package/build/src/v1/user_license_service_client.js +9 -13
  28. package/build/src/v1alpha/acl_config_service_client.js +5 -5
  29. package/build/src/v1alpha/chunk_service_client.js +7 -7
  30. package/build/src/v1alpha/completion_service_client.js +8 -8
  31. package/build/src/v1alpha/control_service_client.js +10 -10
  32. package/build/src/v1alpha/conversational_search_service_client.js +20 -20
  33. package/build/src/v1alpha/data_store_service_client.js +12 -12
  34. package/build/src/v1alpha/document_service_client.js +14 -14
  35. package/build/src/v1alpha/engine_service_client.js +13 -13
  36. package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
  37. package/build/src/v1alpha/evaluation_service_client.js +11 -11
  38. package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
  39. package/build/src/v1alpha/project_service_client.js +6 -6
  40. package/build/src/v1alpha/rank_service_client.js +4 -4
  41. package/build/src/v1alpha/recommendation_service_client.js +4 -4
  42. package/build/src/v1alpha/sample_query_service_client.js +11 -11
  43. package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
  44. package/build/src/v1alpha/schema_service_client.js +10 -10
  45. package/build/src/v1alpha/search_service_client.js +6 -6
  46. package/build/src/v1alpha/search_tuning_service_client.js +5 -5
  47. package/build/src/v1alpha/serving_config_service_client.js +8 -8
  48. package/build/src/v1alpha/session_service_client.js +13 -13
  49. package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
  50. package/build/src/v1alpha/user_event_service_client.js +7 -7
  51. package/build/src/v1beta/acl_config_service_client.js +5 -5
  52. package/build/src/v1beta/assistant_service_client.d.ts +2 -0
  53. package/build/src/v1beta/assistant_service_client.js +13 -11
  54. package/build/src/v1beta/cmek_config_service_client.js +7 -7
  55. package/build/src/v1beta/completion_service_client.js +10 -10
  56. package/build/src/v1beta/control_service_client.js +10 -10
  57. package/build/src/v1beta/conversational_search_service_client.js +21 -21
  58. package/build/src/v1beta/data_store_service_client.js +10 -10
  59. package/build/src/v1beta/document_service_client.js +13 -13
  60. package/build/src/v1beta/engine_service_client.js +15 -15
  61. package/build/src/v1beta/evaluation_service_client.js +11 -11
  62. package/build/src/v1beta/grounded_generation_service_client.js +6 -6
  63. package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
  64. package/build/src/v1beta/license_config_service_client.js +11 -11
  65. package/build/src/v1beta/project_service_client.js +4 -4
  66. package/build/src/v1beta/rank_service_client.js +4 -4
  67. package/build/src/v1beta/recommendation_service_client.js +4 -4
  68. package/build/src/v1beta/sample_query_service_client.js +11 -11
  69. package/build/src/v1beta/sample_query_set_service_client.js +10 -10
  70. package/build/src/v1beta/schema_service_client.js +10 -10
  71. package/build/src/v1beta/search_service_client.js +9 -9
  72. package/build/src/v1beta/search_tuning_service_client.js +5 -5
  73. package/build/src/v1beta/serving_config_service_client.js +10 -10
  74. package/build/src/v1beta/session_service_client.js +10 -10
  75. package/build/src/v1beta/site_search_engine_service_client.js +22 -22
  76. package/build/src/v1beta/user_event_service_client.js +7 -7
  77. package/build/src/v1beta/user_license_service_client.js +8 -8
  78. package/build/src/v1beta/user_store_service_client.js +5 -5
  79. package/package.json +1 -1
@@ -392,7 +392,7 @@ class DocumentServiceClient {
392
392
  'batchGetDocumentsMetadata',
393
393
  ];
394
394
  for (const methodName of documentServiceStubMethods) {
395
- const callPromise = this.documentServiceStub.then((stub) => (...args) => {
395
+ const callPromise = this.documentServiceStub.then(stub => (...args) => {
396
396
  if (this._terminated) {
397
397
  return Promise.reject('The client has already been closed.');
398
398
  }
@@ -486,7 +486,7 @@ class DocumentServiceClient {
486
486
  this._gaxModule.routingHeader.fromParams({
487
487
  name: request.name ?? '',
488
488
  });
489
- this.initialize().catch((err) => {
489
+ this.initialize().catch(err => {
490
490
  throw err;
491
491
  });
492
492
  this._log.info('getDocument request %j', request);
@@ -529,7 +529,7 @@ class DocumentServiceClient {
529
529
  this._gaxModule.routingHeader.fromParams({
530
530
  parent: request.parent ?? '',
531
531
  });
532
- this.initialize().catch((err) => {
532
+ this.initialize().catch(err => {
533
533
  throw err;
534
534
  });
535
535
  this._log.info('createDocument request %j', request);
@@ -572,7 +572,7 @@ class DocumentServiceClient {
572
572
  this._gaxModule.routingHeader.fromParams({
573
573
  'document.name': request.document.name ?? '',
574
574
  });
575
- this.initialize().catch((err) => {
575
+ this.initialize().catch(err => {
576
576
  throw err;
577
577
  });
578
578
  this._log.info('updateDocument request %j', request);
@@ -615,7 +615,7 @@ class DocumentServiceClient {
615
615
  this._gaxModule.routingHeader.fromParams({
616
616
  name: request.name ?? '',
617
617
  });
618
- this.initialize().catch((err) => {
618
+ this.initialize().catch(err => {
619
619
  throw err;
620
620
  });
621
621
  this._log.info('deleteDocument request %j', request);
@@ -658,7 +658,7 @@ class DocumentServiceClient {
658
658
  this._gaxModule.routingHeader.fromParams({
659
659
  name: request.name ?? '',
660
660
  });
661
- this.initialize().catch((err) => {
661
+ this.initialize().catch(err => {
662
662
  throw err;
663
663
  });
664
664
  this._log.info('getProcessedDocument request %j', request);
@@ -701,7 +701,7 @@ class DocumentServiceClient {
701
701
  this._gaxModule.routingHeader.fromParams({
702
702
  parent: request.parent ?? '',
703
703
  });
704
- this.initialize().catch((err) => {
704
+ this.initialize().catch(err => {
705
705
  throw err;
706
706
  });
707
707
  this._log.info('batchGetDocumentsMetadata request %j', request);
@@ -744,7 +744,7 @@ class DocumentServiceClient {
744
744
  this._gaxModule.routingHeader.fromParams({
745
745
  parent: request.parent ?? '',
746
746
  });
747
- this.initialize().catch((err) => {
747
+ this.initialize().catch(err => {
748
748
  throw err;
749
749
  });
750
750
  const wrappedCallback = callback
@@ -796,7 +796,7 @@ class DocumentServiceClient {
796
796
  this._gaxModule.routingHeader.fromParams({
797
797
  parent: request.parent ?? '',
798
798
  });
799
- this.initialize().catch((err) => {
799
+ this.initialize().catch(err => {
800
800
  throw err;
801
801
  });
802
802
  const wrappedCallback = callback
@@ -848,7 +848,7 @@ class DocumentServiceClient {
848
848
  this._gaxModule.routingHeader.fromParams({
849
849
  parent: request.parent ?? '',
850
850
  });
851
- this.initialize().catch((err) => {
851
+ this.initialize().catch(err => {
852
852
  throw err;
853
853
  });
854
854
  const wrappedCallback = callback
@@ -919,7 +919,7 @@ class DocumentServiceClient {
919
919
  });
920
920
  const defaultCallSettings = this._defaults['listDocuments'];
921
921
  const callSettings = defaultCallSettings.merge(options);
922
- this.initialize().catch((err) => {
922
+ this.initialize().catch(err => {
923
923
  throw err;
924
924
  });
925
925
  this._log.info('listDocuments stream %j', request);
@@ -982,7 +982,7 @@ class DocumentServiceClient {
982
982
  });
983
983
  const defaultCallSettings = this._defaults['listDocuments'];
984
984
  const callSettings = defaultCallSettings.merge(options);
985
- this.initialize().catch((err) => {
985
+ this.initialize().catch(err => {
986
986
  throw err;
987
987
  });
988
988
  this._log.info('listDocuments iterate %j', request);
@@ -3646,11 +3646,11 @@ class DocumentServiceClient {
3646
3646
  */
3647
3647
  close() {
3648
3648
  if (this.documentServiceStub && !this._terminated) {
3649
- return this.documentServiceStub.then((stub) => {
3649
+ return this.documentServiceStub.then(stub => {
3650
3650
  this._log.info('ending gRPC channel');
3651
3651
  this._terminated = true;
3652
3652
  stub.close();
3653
- this.locationsClient.close().catch((err) => {
3653
+ this.locationsClient.close().catch(err => {
3654
3654
  throw err;
3655
3655
  });
3656
3656
  void this.operationsClient.close();
@@ -392,7 +392,7 @@ class EngineServiceClient {
392
392
  'tuneEngine',
393
393
  ];
394
394
  for (const methodName of engineServiceStubMethods) {
395
- const callPromise = this.engineServiceStub.then((stub) => (...args) => {
395
+ const callPromise = this.engineServiceStub.then(stub => (...args) => {
396
396
  if (this._terminated) {
397
397
  return Promise.reject('The client has already been closed.');
398
398
  }
@@ -486,7 +486,7 @@ class EngineServiceClient {
486
486
  this._gaxModule.routingHeader.fromParams({
487
487
  'engine.name': request.engine.name ?? '',
488
488
  });
489
- this.initialize().catch((err) => {
489
+ this.initialize().catch(err => {
490
490
  throw err;
491
491
  });
492
492
  this._log.info('updateEngine request %j', request);
@@ -529,7 +529,7 @@ class EngineServiceClient {
529
529
  this._gaxModule.routingHeader.fromParams({
530
530
  name: request.name ?? '',
531
531
  });
532
- this.initialize().catch((err) => {
532
+ this.initialize().catch(err => {
533
533
  throw err;
534
534
  });
535
535
  this._log.info('getEngine request %j', request);
@@ -572,7 +572,7 @@ class EngineServiceClient {
572
572
  this._gaxModule.routingHeader.fromParams({
573
573
  name: request.name ?? '',
574
574
  });
575
- this.initialize().catch((err) => {
575
+ this.initialize().catch(err => {
576
576
  throw err;
577
577
  });
578
578
  this._log.info('pauseEngine request %j', request);
@@ -615,7 +615,7 @@ class EngineServiceClient {
615
615
  this._gaxModule.routingHeader.fromParams({
616
616
  name: request.name ?? '',
617
617
  });
618
- this.initialize().catch((err) => {
618
+ this.initialize().catch(err => {
619
619
  throw err;
620
620
  });
621
621
  this._log.info('resumeEngine request %j', request);
@@ -658,7 +658,7 @@ class EngineServiceClient {
658
658
  this._gaxModule.routingHeader.fromParams({
659
659
  parent: request.parent ?? '',
660
660
  });
661
- this.initialize().catch((err) => {
661
+ this.initialize().catch(err => {
662
662
  throw err;
663
663
  });
664
664
  const wrappedCallback = callback
@@ -710,7 +710,7 @@ class EngineServiceClient {
710
710
  this._gaxModule.routingHeader.fromParams({
711
711
  name: request.name ?? '',
712
712
  });
713
- this.initialize().catch((err) => {
713
+ this.initialize().catch(err => {
714
714
  throw err;
715
715
  });
716
716
  const wrappedCallback = callback
@@ -762,7 +762,7 @@ class EngineServiceClient {
762
762
  this._gaxModule.routingHeader.fromParams({
763
763
  name: request.name ?? '',
764
764
  });
765
- this.initialize().catch((err) => {
765
+ this.initialize().catch(err => {
766
766
  throw err;
767
767
  });
768
768
  const wrappedCallback = callback
@@ -814,7 +814,7 @@ class EngineServiceClient {
814
814
  this._gaxModule.routingHeader.fromParams({
815
815
  parent: request.parent ?? '',
816
816
  });
817
- this.initialize().catch((err) => {
817
+ this.initialize().catch(err => {
818
818
  throw err;
819
819
  });
820
820
  const wrappedCallback = callback
@@ -867,7 +867,7 @@ class EngineServiceClient {
867
867
  });
868
868
  const defaultCallSettings = this._defaults['listEngines'];
869
869
  const callSettings = defaultCallSettings.merge(options);
870
- this.initialize().catch((err) => {
870
+ this.initialize().catch(err => {
871
871
  throw err;
872
872
  });
873
873
  this._log.info('listEngines stream %j', request);
@@ -912,7 +912,7 @@ class EngineServiceClient {
912
912
  });
913
913
  const defaultCallSettings = this._defaults['listEngines'];
914
914
  const callSettings = defaultCallSettings.merge(options);
915
- this.initialize().catch((err) => {
915
+ this.initialize().catch(err => {
916
916
  throw err;
917
917
  });
918
918
  this._log.info('listEngines iterate %j', request);
@@ -3498,11 +3498,11 @@ class EngineServiceClient {
3498
3498
  */
3499
3499
  close() {
3500
3500
  if (this.engineServiceStub && !this._terminated) {
3501
- return this.engineServiceStub.then((stub) => {
3501
+ return this.engineServiceStub.then(stub => {
3502
3502
  this._log.info('ending gRPC channel');
3503
3503
  this._terminated = true;
3504
3504
  stub.close();
3505
- this.locationsClient.close().catch((err) => {
3505
+ this.locationsClient.close().catch(err => {
3506
3506
  throw err;
3507
3507
  });
3508
3508
  void this.operationsClient.close();
@@ -371,7 +371,7 @@ class EstimateBillingServiceClient {
371
371
  // and create an API call method for each.
372
372
  const estimateBillingServiceStubMethods = ['estimateDataSize'];
373
373
  for (const methodName of estimateBillingServiceStubMethods) {
374
- const callPromise = this.estimateBillingServiceStub.then((stub) => (...args) => {
374
+ const callPromise = this.estimateBillingServiceStub.then(stub => (...args) => {
375
375
  if (this._terminated) {
376
376
  return Promise.reject('The client has already been closed.');
377
377
  }
@@ -463,7 +463,7 @@ class EstimateBillingServiceClient {
463
463
  this._gaxModule.routingHeader.fromParams({
464
464
  location: request.location ?? '',
465
465
  });
466
- this.initialize().catch((err) => {
466
+ this.initialize().catch(err => {
467
467
  throw err;
468
468
  });
469
469
  const wrappedCallback = callback
@@ -3063,11 +3063,11 @@ class EstimateBillingServiceClient {
3063
3063
  */
3064
3064
  close() {
3065
3065
  if (this.estimateBillingServiceStub && !this._terminated) {
3066
- return this.estimateBillingServiceStub.then((stub) => {
3066
+ return this.estimateBillingServiceStub.then(stub => {
3067
3067
  this._log.info('ending gRPC channel');
3068
3068
  this._terminated = true;
3069
3069
  stub.close();
3070
- this.locationsClient.close().catch((err) => {
3070
+ this.locationsClient.close().catch(err => {
3071
3071
  throw err;
3072
3072
  });
3073
3073
  void this.operationsClient.close();
@@ -383,7 +383,7 @@ class EvaluationServiceClient {
383
383
  'listEvaluationResults',
384
384
  ];
385
385
  for (const methodName of evaluationServiceStubMethods) {
386
- const callPromise = this.evaluationServiceStub.then((stub) => (...args) => {
386
+ const callPromise = this.evaluationServiceStub.then(stub => (...args) => {
387
387
  if (this._terminated) {
388
388
  return Promise.reject('The client has already been closed.');
389
389
  }
@@ -477,7 +477,7 @@ class EvaluationServiceClient {
477
477
  this._gaxModule.routingHeader.fromParams({
478
478
  name: request.name ?? '',
479
479
  });
480
- this.initialize().catch((err) => {
480
+ this.initialize().catch(err => {
481
481
  throw err;
482
482
  });
483
483
  this._log.info('getEvaluation request %j', request);
@@ -520,7 +520,7 @@ class EvaluationServiceClient {
520
520
  this._gaxModule.routingHeader.fromParams({
521
521
  parent: request.parent ?? '',
522
522
  });
523
- this.initialize().catch((err) => {
523
+ this.initialize().catch(err => {
524
524
  throw err;
525
525
  });
526
526
  const wrappedCallback = callback
@@ -572,7 +572,7 @@ class EvaluationServiceClient {
572
572
  this._gaxModule.routingHeader.fromParams({
573
573
  parent: request.parent ?? '',
574
574
  });
575
- this.initialize().catch((err) => {
575
+ this.initialize().catch(err => {
576
576
  throw err;
577
577
  });
578
578
  const wrappedCallback = callback
@@ -641,7 +641,7 @@ class EvaluationServiceClient {
641
641
  });
642
642
  const defaultCallSettings = this._defaults['listEvaluations'];
643
643
  const callSettings = defaultCallSettings.merge(options);
644
- this.initialize().catch((err) => {
644
+ this.initialize().catch(err => {
645
645
  throw err;
646
646
  });
647
647
  this._log.info('listEvaluations stream %j', request);
@@ -702,7 +702,7 @@ class EvaluationServiceClient {
702
702
  });
703
703
  const defaultCallSettings = this._defaults['listEvaluations'];
704
704
  const callSettings = defaultCallSettings.merge(options);
705
- this.initialize().catch((err) => {
705
+ this.initialize().catch(err => {
706
706
  throw err;
707
707
  });
708
708
  this._log.info('listEvaluations iterate %j', request);
@@ -725,7 +725,7 @@ class EvaluationServiceClient {
725
725
  this._gaxModule.routingHeader.fromParams({
726
726
  evaluation: request.evaluation ?? '',
727
727
  });
728
- this.initialize().catch((err) => {
728
+ this.initialize().catch(err => {
729
729
  throw err;
730
730
  });
731
731
  const wrappedCallback = callback
@@ -792,7 +792,7 @@ class EvaluationServiceClient {
792
792
  });
793
793
  const defaultCallSettings = this._defaults['listEvaluationResults'];
794
794
  const callSettings = defaultCallSettings.merge(options);
795
- this.initialize().catch((err) => {
795
+ this.initialize().catch(err => {
796
796
  throw err;
797
797
  });
798
798
  this._log.info('listEvaluationResults stream %j', request);
@@ -851,7 +851,7 @@ class EvaluationServiceClient {
851
851
  });
852
852
  const defaultCallSettings = this._defaults['listEvaluationResults'];
853
853
  const callSettings = defaultCallSettings.merge(options);
854
- this.initialize().catch((err) => {
854
+ this.initialize().catch(err => {
855
855
  throw err;
856
856
  });
857
857
  this._log.info('listEvaluationResults iterate %j', request);
@@ -3422,11 +3422,11 @@ class EvaluationServiceClient {
3422
3422
  */
3423
3423
  close() {
3424
3424
  if (this.evaluationServiceStub && !this._terminated) {
3425
- return this.evaluationServiceStub.then((stub) => {
3425
+ return this.evaluationServiceStub.then(stub => {
3426
3426
  this._log.info('ending gRPC channel');
3427
3427
  this._terminated = true;
3428
3428
  stub.close();
3429
- this.locationsClient.close().catch((err) => {
3429
+ this.locationsClient.close().catch(err => {
3430
3430
  throw err;
3431
3431
  });
3432
3432
  void this.operationsClient.close();
@@ -244,7 +244,7 @@ class GroundedGenerationServiceClient {
244
244
  // and create an API call method for each.
245
245
  const groundedGenerationServiceStubMethods = ['checkGrounding'];
246
246
  for (const methodName of groundedGenerationServiceStubMethods) {
247
- const callPromise = this.groundedGenerationServiceStub.then((stub) => (...args) => {
247
+ const callPromise = this.groundedGenerationServiceStub.then(stub => (...args) => {
248
248
  if (this._terminated) {
249
249
  return Promise.reject('The client has already been closed.');
250
250
  }
@@ -336,7 +336,7 @@ class GroundedGenerationServiceClient {
336
336
  this._gaxModule.routingHeader.fromParams({
337
337
  grounding_config: request.groundingConfig ?? '',
338
338
  });
339
- this.initialize().catch((err) => {
339
+ this.initialize().catch(err => {
340
340
  throw err;
341
341
  });
342
342
  this._log.info('checkGrounding request %j', request);
@@ -2759,11 +2759,11 @@ class GroundedGenerationServiceClient {
2759
2759
  */
2760
2760
  close() {
2761
2761
  if (this.groundedGenerationServiceStub && !this._terminated) {
2762
- return this.groundedGenerationServiceStub.then((stub) => {
2762
+ return this.groundedGenerationServiceStub.then(stub => {
2763
2763
  this._log.info('ending gRPC channel');
2764
2764
  this._terminated = true;
2765
2765
  stub.close();
2766
- this.locationsClient.close().catch((err) => {
2766
+ this.locationsClient.close().catch(err => {
2767
2767
  throw err;
2768
2768
  });
2769
2769
  });
@@ -374,7 +374,7 @@ class ProjectServiceClient {
374
374
  'reportConsentChange',
375
375
  ];
376
376
  for (const methodName of projectServiceStubMethods) {
377
- const callPromise = this.projectServiceStub.then((stub) => (...args) => {
377
+ const callPromise = this.projectServiceStub.then(stub => (...args) => {
378
378
  if (this._terminated) {
379
379
  return Promise.reject('The client has already been closed.');
380
380
  }
@@ -466,7 +466,7 @@ class ProjectServiceClient {
466
466
  this._gaxModule.routingHeader.fromParams({
467
467
  name: request.name ?? '',
468
468
  });
469
- this.initialize().catch((err) => {
469
+ this.initialize().catch(err => {
470
470
  throw err;
471
471
  });
472
472
  this._log.info('getProject request %j', request);
@@ -509,7 +509,7 @@ class ProjectServiceClient {
509
509
  this._gaxModule.routingHeader.fromParams({
510
510
  project: request.project ?? '',
511
511
  });
512
- this.initialize().catch((err) => {
512
+ this.initialize().catch(err => {
513
513
  throw err;
514
514
  });
515
515
  this._log.info('reportConsentChange request %j', request);
@@ -552,7 +552,7 @@ class ProjectServiceClient {
552
552
  this._gaxModule.routingHeader.fromParams({
553
553
  name: request.name ?? '',
554
554
  });
555
- this.initialize().catch((err) => {
555
+ this.initialize().catch(err => {
556
556
  throw err;
557
557
  });
558
558
  const wrappedCallback = callback
@@ -3119,11 +3119,11 @@ class ProjectServiceClient {
3119
3119
  */
3120
3120
  close() {
3121
3121
  if (this.projectServiceStub && !this._terminated) {
3122
- return this.projectServiceStub.then((stub) => {
3122
+ return this.projectServiceStub.then(stub => {
3123
3123
  this._log.info('ending gRPC channel');
3124
3124
  this._terminated = true;
3125
3125
  stub.close();
3126
- this.locationsClient.close().catch((err) => {
3126
+ this.locationsClient.close().catch(err => {
3127
3127
  throw err;
3128
3128
  });
3129
3129
  void this.operationsClient.close();
@@ -243,7 +243,7 @@ class RankServiceClient {
243
243
  // and create an API call method for each.
244
244
  const rankServiceStubMethods = ['rank'];
245
245
  for (const methodName of rankServiceStubMethods) {
246
- const callPromise = this.rankServiceStub.then((stub) => (...args) => {
246
+ const callPromise = this.rankServiceStub.then(stub => (...args) => {
247
247
  if (this._terminated) {
248
248
  return Promise.reject('The client has already been closed.');
249
249
  }
@@ -335,7 +335,7 @@ class RankServiceClient {
335
335
  this._gaxModule.routingHeader.fromParams({
336
336
  ranking_config: request.rankingConfig ?? '',
337
337
  });
338
- this.initialize().catch((err) => {
338
+ this.initialize().catch(err => {
339
339
  throw err;
340
340
  });
341
341
  this._log.info('rank request %j', request);
@@ -2761,11 +2761,11 @@ class RankServiceClient {
2761
2761
  */
2762
2762
  close() {
2763
2763
  if (this.rankServiceStub && !this._terminated) {
2764
- return this.rankServiceStub.then((stub) => {
2764
+ return this.rankServiceStub.then(stub => {
2765
2765
  this._log.info('ending gRPC channel');
2766
2766
  this._terminated = true;
2767
2767
  stub.close();
2768
- this.locationsClient.close().catch((err) => {
2768
+ this.locationsClient.close().catch(err => {
2769
2769
  throw err;
2770
2770
  });
2771
2771
  });
@@ -243,7 +243,7 @@ class RecommendationServiceClient {
243
243
  // and create an API call method for each.
244
244
  const recommendationServiceStubMethods = ['recommend'];
245
245
  for (const methodName of recommendationServiceStubMethods) {
246
- const callPromise = this.recommendationServiceStub.then((stub) => (...args) => {
246
+ const callPromise = this.recommendationServiceStub.then(stub => (...args) => {
247
247
  if (this._terminated) {
248
248
  return Promise.reject('The client has already been closed.');
249
249
  }
@@ -335,7 +335,7 @@ class RecommendationServiceClient {
335
335
  this._gaxModule.routingHeader.fromParams({
336
336
  serving_config: request.servingConfig ?? '',
337
337
  });
338
- this.initialize().catch((err) => {
338
+ this.initialize().catch(err => {
339
339
  throw err;
340
340
  });
341
341
  this._log.info('recommend request %j', request);
@@ -2713,11 +2713,11 @@ class RecommendationServiceClient {
2713
2713
  */
2714
2714
  close() {
2715
2715
  if (this.recommendationServiceStub && !this._terminated) {
2716
- return this.recommendationServiceStub.then((stub) => {
2716
+ return this.recommendationServiceStub.then(stub => {
2717
2717
  this._log.info('ending gRPC channel');
2718
2718
  this._terminated = true;
2719
2719
  stub.close();
2720
- this.locationsClient.close().catch((err) => {
2720
+ this.locationsClient.close().catch(err => {
2721
2721
  throw err;
2722
2722
  });
2723
2723
  });
@@ -383,7 +383,7 @@ class SampleQueryServiceClient {
383
383
  'importSampleQueries',
384
384
  ];
385
385
  for (const methodName of sampleQueryServiceStubMethods) {
386
- const callPromise = this.sampleQueryServiceStub.then((stub) => (...args) => {
386
+ const callPromise = this.sampleQueryServiceStub.then(stub => (...args) => {
387
387
  if (this._terminated) {
388
388
  return Promise.reject('The client has already been closed.');
389
389
  }
@@ -477,7 +477,7 @@ class SampleQueryServiceClient {
477
477
  this._gaxModule.routingHeader.fromParams({
478
478
  name: request.name ?? '',
479
479
  });
480
- this.initialize().catch((err) => {
480
+ this.initialize().catch(err => {
481
481
  throw err;
482
482
  });
483
483
  this._log.info('getSampleQuery request %j', request);
@@ -520,7 +520,7 @@ class SampleQueryServiceClient {
520
520
  this._gaxModule.routingHeader.fromParams({
521
521
  parent: request.parent ?? '',
522
522
  });
523
- this.initialize().catch((err) => {
523
+ this.initialize().catch(err => {
524
524
  throw err;
525
525
  });
526
526
  this._log.info('createSampleQuery request %j', request);
@@ -563,7 +563,7 @@ class SampleQueryServiceClient {
563
563
  this._gaxModule.routingHeader.fromParams({
564
564
  'sample_query.name': request.sampleQuery.name ?? '',
565
565
  });
566
- this.initialize().catch((err) => {
566
+ this.initialize().catch(err => {
567
567
  throw err;
568
568
  });
569
569
  this._log.info('updateSampleQuery request %j', request);
@@ -606,7 +606,7 @@ class SampleQueryServiceClient {
606
606
  this._gaxModule.routingHeader.fromParams({
607
607
  name: request.name ?? '',
608
608
  });
609
- this.initialize().catch((err) => {
609
+ this.initialize().catch(err => {
610
610
  throw err;
611
611
  });
612
612
  this._log.info('deleteSampleQuery request %j', request);
@@ -649,7 +649,7 @@ class SampleQueryServiceClient {
649
649
  this._gaxModule.routingHeader.fromParams({
650
650
  parent: request.parent ?? '',
651
651
  });
652
- this.initialize().catch((err) => {
652
+ this.initialize().catch(err => {
653
653
  throw err;
654
654
  });
655
655
  const wrappedCallback = callback
@@ -701,7 +701,7 @@ class SampleQueryServiceClient {
701
701
  this._gaxModule.routingHeader.fromParams({
702
702
  parent: request.parent ?? '',
703
703
  });
704
- this.initialize().catch((err) => {
704
+ this.initialize().catch(err => {
705
705
  throw err;
706
706
  });
707
707
  const wrappedCallback = callback
@@ -770,7 +770,7 @@ class SampleQueryServiceClient {
770
770
  });
771
771
  const defaultCallSettings = this._defaults['listSampleQueries'];
772
772
  const callSettings = defaultCallSettings.merge(options);
773
- this.initialize().catch((err) => {
773
+ this.initialize().catch(err => {
774
774
  throw err;
775
775
  });
776
776
  this._log.info('listSampleQueries stream %j', request);
@@ -831,7 +831,7 @@ class SampleQueryServiceClient {
831
831
  });
832
832
  const defaultCallSettings = this._defaults['listSampleQueries'];
833
833
  const callSettings = defaultCallSettings.merge(options);
834
- this.initialize().catch((err) => {
834
+ this.initialize().catch(err => {
835
835
  throw err;
836
836
  });
837
837
  this._log.info('listSampleQueries iterate %j', request);
@@ -3369,11 +3369,11 @@ class SampleQueryServiceClient {
3369
3369
  */
3370
3370
  close() {
3371
3371
  if (this.sampleQueryServiceStub && !this._terminated) {
3372
- return this.sampleQueryServiceStub.then((stub) => {
3372
+ return this.sampleQueryServiceStub.then(stub => {
3373
3373
  this._log.info('ending gRPC channel');
3374
3374
  this._terminated = true;
3375
3375
  stub.close();
3376
- this.locationsClient.close().catch((err) => {
3376
+ this.locationsClient.close().catch(err => {
3377
3377
  throw err;
3378
3378
  });
3379
3379
  void this.operationsClient.close();