@google-cloud/discoveryengine 3.1.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 (72) hide show
  1. package/build/src/v1/assistant_service_client.js +4 -4
  2. package/build/src/v1/cmek_config_service_client.js +9 -13
  3. package/build/src/v1/completion_service_client.js +10 -14
  4. package/build/src/v1/control_service_client.js +10 -10
  5. package/build/src/v1/conversational_search_service_client.js +21 -21
  6. package/build/src/v1/data_store_service_client.js +12 -16
  7. package/build/src/v1/document_service_client.js +15 -19
  8. package/build/src/v1/engine_service_client.js +12 -16
  9. package/build/src/v1/grounded_generation_service_client.js +6 -6
  10. package/build/src/v1/identity_mapping_store_service_client.js +16 -20
  11. package/build/src/v1/project_service_client.js +6 -10
  12. package/build/src/v1/rank_service_client.js +4 -4
  13. package/build/src/v1/recommendation_service_client.js +4 -4
  14. package/build/src/v1/schema_service_client.js +12 -16
  15. package/build/src/v1/search_service_client.js +9 -9
  16. package/build/src/v1/search_tuning_service_client.js +7 -11
  17. package/build/src/v1/serving_config_service_client.js +4 -4
  18. package/build/src/v1/session_service_client.js +10 -10
  19. package/build/src/v1/site_search_engine_service_client.js +24 -28
  20. package/build/src/v1/user_event_service_client.js +9 -13
  21. package/build/src/v1/user_license_service_client.js +9 -13
  22. package/build/src/v1alpha/acl_config_service_client.js +5 -5
  23. package/build/src/v1alpha/chunk_service_client.js +7 -7
  24. package/build/src/v1alpha/completion_service_client.js +8 -8
  25. package/build/src/v1alpha/control_service_client.js +10 -10
  26. package/build/src/v1alpha/conversational_search_service_client.js +20 -20
  27. package/build/src/v1alpha/data_store_service_client.js +12 -12
  28. package/build/src/v1alpha/document_service_client.js +14 -14
  29. package/build/src/v1alpha/engine_service_client.js +13 -13
  30. package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
  31. package/build/src/v1alpha/evaluation_service_client.js +11 -11
  32. package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
  33. package/build/src/v1alpha/project_service_client.js +6 -6
  34. package/build/src/v1alpha/rank_service_client.js +4 -4
  35. package/build/src/v1alpha/recommendation_service_client.js +4 -4
  36. package/build/src/v1alpha/sample_query_service_client.js +11 -11
  37. package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
  38. package/build/src/v1alpha/schema_service_client.js +10 -10
  39. package/build/src/v1alpha/search_service_client.js +6 -6
  40. package/build/src/v1alpha/search_tuning_service_client.js +5 -5
  41. package/build/src/v1alpha/serving_config_service_client.js +8 -8
  42. package/build/src/v1alpha/session_service_client.js +13 -13
  43. package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
  44. package/build/src/v1alpha/user_event_service_client.js +7 -7
  45. package/build/src/v1beta/acl_config_service_client.js +5 -5
  46. package/build/src/v1beta/assistant_service_client.js +11 -11
  47. package/build/src/v1beta/cmek_config_service_client.js +7 -7
  48. package/build/src/v1beta/completion_service_client.js +10 -10
  49. package/build/src/v1beta/control_service_client.js +10 -10
  50. package/build/src/v1beta/conversational_search_service_client.js +21 -21
  51. package/build/src/v1beta/data_store_service_client.js +10 -10
  52. package/build/src/v1beta/document_service_client.js +13 -13
  53. package/build/src/v1beta/engine_service_client.js +15 -15
  54. package/build/src/v1beta/evaluation_service_client.js +11 -11
  55. package/build/src/v1beta/grounded_generation_service_client.js +6 -6
  56. package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
  57. package/build/src/v1beta/license_config_service_client.js +11 -11
  58. package/build/src/v1beta/project_service_client.js +4 -4
  59. package/build/src/v1beta/rank_service_client.js +4 -4
  60. package/build/src/v1beta/recommendation_service_client.js +4 -4
  61. package/build/src/v1beta/sample_query_service_client.js +11 -11
  62. package/build/src/v1beta/sample_query_set_service_client.js +10 -10
  63. package/build/src/v1beta/schema_service_client.js +10 -10
  64. package/build/src/v1beta/search_service_client.js +9 -9
  65. package/build/src/v1beta/search_tuning_service_client.js +5 -5
  66. package/build/src/v1beta/serving_config_service_client.js +10 -10
  67. package/build/src/v1beta/session_service_client.js +10 -10
  68. package/build/src/v1beta/site_search_engine_service_client.js +22 -22
  69. package/build/src/v1beta/user_event_service_client.js +7 -7
  70. package/build/src/v1beta/user_license_service_client.js +8 -8
  71. package/build/src/v1beta/user_store_service_client.js +5 -5
  72. package/package.json +1 -1
@@ -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();
@@ -257,7 +257,7 @@ class SampleQuerySetServiceClient {
257
257
  'deleteSampleQuerySet',
258
258
  ];
259
259
  for (const methodName of sampleQuerySetServiceStubMethods) {
260
- const callPromise = this.sampleQuerySetServiceStub.then((stub) => (...args) => {
260
+ const callPromise = this.sampleQuerySetServiceStub.then(stub => (...args) => {
261
261
  if (this._terminated) {
262
262
  return Promise.reject('The client has already been closed.');
263
263
  }
@@ -349,7 +349,7 @@ class SampleQuerySetServiceClient {
349
349
  this._gaxModule.routingHeader.fromParams({
350
350
  name: request.name ?? '',
351
351
  });
352
- this.initialize().catch((err) => {
352
+ this.initialize().catch(err => {
353
353
  throw err;
354
354
  });
355
355
  this._log.info('getSampleQuerySet request %j', request);
@@ -392,7 +392,7 @@ class SampleQuerySetServiceClient {
392
392
  this._gaxModule.routingHeader.fromParams({
393
393
  parent: request.parent ?? '',
394
394
  });
395
- this.initialize().catch((err) => {
395
+ this.initialize().catch(err => {
396
396
  throw err;
397
397
  });
398
398
  this._log.info('createSampleQuerySet request %j', request);
@@ -435,7 +435,7 @@ class SampleQuerySetServiceClient {
435
435
  this._gaxModule.routingHeader.fromParams({
436
436
  'sample_query_set.name': request.sampleQuerySet.name ?? '',
437
437
  });
438
- this.initialize().catch((err) => {
438
+ this.initialize().catch(err => {
439
439
  throw err;
440
440
  });
441
441
  this._log.info('updateSampleQuerySet request %j', request);
@@ -478,7 +478,7 @@ class SampleQuerySetServiceClient {
478
478
  this._gaxModule.routingHeader.fromParams({
479
479
  name: request.name ?? '',
480
480
  });
481
- this.initialize().catch((err) => {
481
+ this.initialize().catch(err => {
482
482
  throw err;
483
483
  });
484
484
  this._log.info('deleteSampleQuerySet request %j', request);
@@ -521,7 +521,7 @@ class SampleQuerySetServiceClient {
521
521
  this._gaxModule.routingHeader.fromParams({
522
522
  parent: request.parent ?? '',
523
523
  });
524
- this.initialize().catch((err) => {
524
+ this.initialize().catch(err => {
525
525
  throw err;
526
526
  });
527
527
  const wrappedCallback = callback
@@ -590,7 +590,7 @@ class SampleQuerySetServiceClient {
590
590
  });
591
591
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
592
592
  const callSettings = defaultCallSettings.merge(options);
593
- this.initialize().catch((err) => {
593
+ this.initialize().catch(err => {
594
594
  throw err;
595
595
  });
596
596
  this._log.info('listSampleQuerySets stream %j', request);
@@ -651,7 +651,7 @@ class SampleQuerySetServiceClient {
651
651
  });
652
652
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
653
653
  const callSettings = defaultCallSettings.merge(options);
654
- this.initialize().catch((err) => {
654
+ this.initialize().catch(err => {
655
655
  throw err;
656
656
  });
657
657
  this._log.info('listSampleQuerySets iterate %j', request);
@@ -3042,11 +3042,11 @@ class SampleQuerySetServiceClient {
3042
3042
  */
3043
3043
  close() {
3044
3044
  if (this.sampleQuerySetServiceStub && !this._terminated) {
3045
- return this.sampleQuerySetServiceStub.then((stub) => {
3045
+ return this.sampleQuerySetServiceStub.then(stub => {
3046
3046
  this._log.info('ending gRPC channel');
3047
3047
  this._terminated = true;
3048
3048
  stub.close();
3049
- this.locationsClient.close().catch((err) => {
3049
+ this.locationsClient.close().catch(err => {
3050
3050
  throw err;
3051
3051
  });
3052
3052
  });
@@ -387,7 +387,7 @@ class SchemaServiceClient {
387
387
  'deleteSchema',
388
388
  ];
389
389
  for (const methodName of schemaServiceStubMethods) {
390
- const callPromise = this.schemaServiceStub.then((stub) => (...args) => {
390
+ const callPromise = this.schemaServiceStub.then(stub => (...args) => {
391
391
  if (this._terminated) {
392
392
  return Promise.reject('The client has already been closed.');
393
393
  }
@@ -481,7 +481,7 @@ class SchemaServiceClient {
481
481
  this._gaxModule.routingHeader.fromParams({
482
482
  name: request.name ?? '',
483
483
  });
484
- this.initialize().catch((err) => {
484
+ this.initialize().catch(err => {
485
485
  throw err;
486
486
  });
487
487
  this._log.info('getSchema request %j', request);
@@ -524,7 +524,7 @@ class SchemaServiceClient {
524
524
  this._gaxModule.routingHeader.fromParams({
525
525
  parent: request.parent ?? '',
526
526
  });
527
- this.initialize().catch((err) => {
527
+ this.initialize().catch(err => {
528
528
  throw err;
529
529
  });
530
530
  const wrappedCallback = callback
@@ -576,7 +576,7 @@ class SchemaServiceClient {
576
576
  this._gaxModule.routingHeader.fromParams({
577
577
  'schema.name': request.schema.name ?? '',
578
578
  });
579
- this.initialize().catch((err) => {
579
+ this.initialize().catch(err => {
580
580
  throw err;
581
581
  });
582
582
  const wrappedCallback = callback
@@ -628,7 +628,7 @@ class SchemaServiceClient {
628
628
  this._gaxModule.routingHeader.fromParams({
629
629
  name: request.name ?? '',
630
630
  });
631
- this.initialize().catch((err) => {
631
+ this.initialize().catch(err => {
632
632
  throw err;
633
633
  });
634
634
  const wrappedCallback = callback
@@ -680,7 +680,7 @@ class SchemaServiceClient {
680
680
  this._gaxModule.routingHeader.fromParams({
681
681
  parent: request.parent ?? '',
682
682
  });
683
- this.initialize().catch((err) => {
683
+ this.initialize().catch(err => {
684
684
  throw err;
685
685
  });
686
686
  const wrappedCallback = callback
@@ -743,7 +743,7 @@ class SchemaServiceClient {
743
743
  });
744
744
  const defaultCallSettings = this._defaults['listSchemas'];
745
745
  const callSettings = defaultCallSettings.merge(options);
746
- this.initialize().catch((err) => {
746
+ this.initialize().catch(err => {
747
747
  throw err;
748
748
  });
749
749
  this._log.info('listSchemas stream %j', request);
@@ -798,7 +798,7 @@ class SchemaServiceClient {
798
798
  });
799
799
  const defaultCallSettings = this._defaults['listSchemas'];
800
800
  const callSettings = defaultCallSettings.merge(options);
801
- this.initialize().catch((err) => {
801
+ this.initialize().catch(err => {
802
802
  throw err;
803
803
  });
804
804
  this._log.info('listSchemas iterate %j', request);
@@ -3336,11 +3336,11 @@ class SchemaServiceClient {
3336
3336
  */
3337
3337
  close() {
3338
3338
  if (this.schemaServiceStub && !this._terminated) {
3339
- return this.schemaServiceStub.then((stub) => {
3339
+ return this.schemaServiceStub.then(stub => {
3340
3340
  this._log.info('ending gRPC channel');
3341
3341
  this._terminated = true;
3342
3342
  stub.close();
3343
- this.locationsClient.close().catch((err) => {
3343
+ this.locationsClient.close().catch(err => {
3344
3344
  throw err;
3345
3345
  });
3346
3346
  void this.operationsClient.close();