@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
@@ -408,7 +408,7 @@ class EngineServiceClient {
408
408
  'setIamPolicy',
409
409
  ];
410
410
  for (const methodName of engineServiceStubMethods) {
411
- const callPromise = this.engineServiceStub.then((stub) => (...args) => {
411
+ const callPromise = this.engineServiceStub.then(stub => (...args) => {
412
412
  if (this._terminated) {
413
413
  return Promise.reject('The client has already been closed.');
414
414
  }
@@ -506,7 +506,7 @@ class EngineServiceClient {
506
506
  this._gaxModule.routingHeader.fromParams({
507
507
  'engine.name': request.engine.name ?? '',
508
508
  });
509
- this.initialize().catch((err) => {
509
+ this.initialize().catch(err => {
510
510
  throw err;
511
511
  });
512
512
  this._log.info('updateEngine request %j', request);
@@ -549,7 +549,7 @@ class EngineServiceClient {
549
549
  this._gaxModule.routingHeader.fromParams({
550
550
  name: request.name ?? '',
551
551
  });
552
- this.initialize().catch((err) => {
552
+ this.initialize().catch(err => {
553
553
  throw err;
554
554
  });
555
555
  this._log.info('getEngine request %j', request);
@@ -592,7 +592,7 @@ class EngineServiceClient {
592
592
  this._gaxModule.routingHeader.fromParams({
593
593
  name: request.name ?? '',
594
594
  });
595
- this.initialize().catch((err) => {
595
+ this.initialize().catch(err => {
596
596
  throw err;
597
597
  });
598
598
  this._log.info('pauseEngine request %j', request);
@@ -635,7 +635,7 @@ class EngineServiceClient {
635
635
  this._gaxModule.routingHeader.fromParams({
636
636
  name: request.name ?? '',
637
637
  });
638
- this.initialize().catch((err) => {
638
+ this.initialize().catch(err => {
639
639
  throw err;
640
640
  });
641
641
  this._log.info('resumeEngine request %j', request);
@@ -678,7 +678,7 @@ class EngineServiceClient {
678
678
  this._gaxModule.routingHeader.fromParams({
679
679
  resource: request.resource ?? '',
680
680
  });
681
- this.initialize().catch((err) => {
681
+ this.initialize().catch(err => {
682
682
  throw err;
683
683
  });
684
684
  this._log.info('getIamPolicy request %j', request);
@@ -721,7 +721,7 @@ class EngineServiceClient {
721
721
  this._gaxModule.routingHeader.fromParams({
722
722
  resource: request.resource ?? '',
723
723
  });
724
- this.initialize().catch((err) => {
724
+ this.initialize().catch(err => {
725
725
  throw err;
726
726
  });
727
727
  this._log.info('setIamPolicy request %j', request);
@@ -764,7 +764,7 @@ class EngineServiceClient {
764
764
  this._gaxModule.routingHeader.fromParams({
765
765
  parent: request.parent ?? '',
766
766
  });
767
- this.initialize().catch((err) => {
767
+ this.initialize().catch(err => {
768
768
  throw err;
769
769
  });
770
770
  const wrappedCallback = callback
@@ -816,7 +816,7 @@ class EngineServiceClient {
816
816
  this._gaxModule.routingHeader.fromParams({
817
817
  name: request.name ?? '',
818
818
  });
819
- this.initialize().catch((err) => {
819
+ this.initialize().catch(err => {
820
820
  throw err;
821
821
  });
822
822
  const wrappedCallback = callback
@@ -868,7 +868,7 @@ class EngineServiceClient {
868
868
  this._gaxModule.routingHeader.fromParams({
869
869
  name: request.name ?? '',
870
870
  });
871
- this.initialize().catch((err) => {
871
+ this.initialize().catch(err => {
872
872
  throw err;
873
873
  });
874
874
  const wrappedCallback = callback
@@ -920,7 +920,7 @@ class EngineServiceClient {
920
920
  this._gaxModule.routingHeader.fromParams({
921
921
  parent: request.parent ?? '',
922
922
  });
923
- this.initialize().catch((err) => {
923
+ this.initialize().catch(err => {
924
924
  throw err;
925
925
  });
926
926
  const wrappedCallback = callback
@@ -973,7 +973,7 @@ class EngineServiceClient {
973
973
  });
974
974
  const defaultCallSettings = this._defaults['listEngines'];
975
975
  const callSettings = defaultCallSettings.merge(options);
976
- this.initialize().catch((err) => {
976
+ this.initialize().catch(err => {
977
977
  throw err;
978
978
  });
979
979
  this._log.info('listEngines stream %j', request);
@@ -1018,7 +1018,7 @@ class EngineServiceClient {
1018
1018
  });
1019
1019
  const defaultCallSettings = this._defaults['listEngines'];
1020
1020
  const callSettings = defaultCallSettings.merge(options);
1021
- this.initialize().catch((err) => {
1021
+ this.initialize().catch(err => {
1022
1022
  throw err;
1023
1023
  });
1024
1024
  this._log.info('listEngines iterate %j', request);
@@ -4235,11 +4235,11 @@ class EngineServiceClient {
4235
4235
  */
4236
4236
  close() {
4237
4237
  if (this.engineServiceStub && !this._terminated) {
4238
- return this.engineServiceStub.then((stub) => {
4238
+ return this.engineServiceStub.then(stub => {
4239
4239
  this._log.info('ending gRPC channel');
4240
4240
  this._terminated = true;
4241
4241
  stub.close();
4242
- this.locationsClient.close().catch((err) => {
4242
+ this.locationsClient.close().catch(err => {
4243
4243
  throw err;
4244
4244
  });
4245
4245
  void this.operationsClient.close();
@@ -397,7 +397,7 @@ class EvaluationServiceClient {
397
397
  'listEvaluationResults',
398
398
  ];
399
399
  for (const methodName of evaluationServiceStubMethods) {
400
- const callPromise = this.evaluationServiceStub.then((stub) => (...args) => {
400
+ const callPromise = this.evaluationServiceStub.then(stub => (...args) => {
401
401
  if (this._terminated) {
402
402
  return Promise.reject('The client has already been closed.');
403
403
  }
@@ -496,7 +496,7 @@ class EvaluationServiceClient {
496
496
  this._gaxModule.routingHeader.fromParams({
497
497
  name: request.name ?? '',
498
498
  });
499
- this.initialize().catch((err) => {
499
+ this.initialize().catch(err => {
500
500
  throw err;
501
501
  });
502
502
  this._log.info('getEvaluation request %j', request);
@@ -539,7 +539,7 @@ class EvaluationServiceClient {
539
539
  this._gaxModule.routingHeader.fromParams({
540
540
  parent: request.parent ?? '',
541
541
  });
542
- this.initialize().catch((err) => {
542
+ this.initialize().catch(err => {
543
543
  throw err;
544
544
  });
545
545
  const wrappedCallback = callback
@@ -591,7 +591,7 @@ class EvaluationServiceClient {
591
591
  this._gaxModule.routingHeader.fromParams({
592
592
  parent: request.parent ?? '',
593
593
  });
594
- this.initialize().catch((err) => {
594
+ this.initialize().catch(err => {
595
595
  throw err;
596
596
  });
597
597
  const wrappedCallback = callback
@@ -660,7 +660,7 @@ class EvaluationServiceClient {
660
660
  });
661
661
  const defaultCallSettings = this._defaults['listEvaluations'];
662
662
  const callSettings = defaultCallSettings.merge(options);
663
- this.initialize().catch((err) => {
663
+ this.initialize().catch(err => {
664
664
  throw err;
665
665
  });
666
666
  this._log.info('listEvaluations stream %j', request);
@@ -721,7 +721,7 @@ class EvaluationServiceClient {
721
721
  });
722
722
  const defaultCallSettings = this._defaults['listEvaluations'];
723
723
  const callSettings = defaultCallSettings.merge(options);
724
- this.initialize().catch((err) => {
724
+ this.initialize().catch(err => {
725
725
  throw err;
726
726
  });
727
727
  this._log.info('listEvaluations iterate %j', request);
@@ -744,7 +744,7 @@ class EvaluationServiceClient {
744
744
  this._gaxModule.routingHeader.fromParams({
745
745
  evaluation: request.evaluation ?? '',
746
746
  });
747
- this.initialize().catch((err) => {
747
+ this.initialize().catch(err => {
748
748
  throw err;
749
749
  });
750
750
  const wrappedCallback = callback
@@ -813,7 +813,7 @@ class EvaluationServiceClient {
813
813
  });
814
814
  const defaultCallSettings = this._defaults['listEvaluationResults'];
815
815
  const callSettings = defaultCallSettings.merge(options);
816
- this.initialize().catch((err) => {
816
+ this.initialize().catch(err => {
817
817
  throw err;
818
818
  });
819
819
  this._log.info('listEvaluationResults stream %j', request);
@@ -874,7 +874,7 @@ class EvaluationServiceClient {
874
874
  });
875
875
  const defaultCallSettings = this._defaults['listEvaluationResults'];
876
876
  const callSettings = defaultCallSettings.merge(options);
877
- this.initialize().catch((err) => {
877
+ this.initialize().catch(err => {
878
878
  throw err;
879
879
  });
880
880
  this._log.info('listEvaluationResults iterate %j', request);
@@ -4076,11 +4076,11 @@ class EvaluationServiceClient {
4076
4076
  */
4077
4077
  close() {
4078
4078
  if (this.evaluationServiceStub && !this._terminated) {
4079
- return this.evaluationServiceStub.then((stub) => {
4079
+ return this.evaluationServiceStub.then(stub => {
4080
4080
  this._log.info('ending gRPC channel');
4081
4081
  this._terminated = true;
4082
4082
  stub.close();
4083
- this.locationsClient.close().catch((err) => {
4083
+ this.locationsClient.close().catch(err => {
4084
4084
  throw err;
4085
4085
  });
4086
4086
  void this.operationsClient.close();
@@ -265,7 +265,7 @@ class GroundedGenerationServiceClient {
265
265
  'checkGrounding',
266
266
  ];
267
267
  for (const methodName of groundedGenerationServiceStubMethods) {
268
- const callPromise = this.groundedGenerationServiceStub.then((stub) => (...args) => {
268
+ const callPromise = this.groundedGenerationServiceStub.then(stub => (...args) => {
269
269
  if (this._terminated) {
270
270
  if (methodName in this.descriptors.stream) {
271
271
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -368,7 +368,7 @@ class GroundedGenerationServiceClient {
368
368
  this._gaxModule.routingHeader.fromParams({
369
369
  location: request.location ?? '',
370
370
  });
371
- this.initialize().catch((err) => {
371
+ this.initialize().catch(err => {
372
372
  throw err;
373
373
  });
374
374
  this._log.info('generateGroundedContent request %j', request);
@@ -411,7 +411,7 @@ class GroundedGenerationServiceClient {
411
411
  this._gaxModule.routingHeader.fromParams({
412
412
  grounding_config: request.groundingConfig ?? '',
413
413
  });
414
- this.initialize().catch((err) => {
414
+ this.initialize().catch(err => {
415
415
  throw err;
416
416
  });
417
417
  this._log.info('checkGrounding request %j', request);
@@ -452,7 +452,7 @@ class GroundedGenerationServiceClient {
452
452
  * region_tag:discoveryengine_v1beta_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
453
453
  */
454
454
  streamGenerateGroundedContent(options) {
455
- this.initialize().catch((err) => {
455
+ this.initialize().catch(err => {
456
456
  throw err;
457
457
  });
458
458
  this._log.info('streamGenerateGroundedContent stream %j', options);
@@ -3474,11 +3474,11 @@ class GroundedGenerationServiceClient {
3474
3474
  */
3475
3475
  close() {
3476
3476
  if (this.groundedGenerationServiceStub && !this._terminated) {
3477
- return this.groundedGenerationServiceStub.then((stub) => {
3477
+ return this.groundedGenerationServiceStub.then(stub => {
3478
3478
  this._log.info('ending gRPC channel');
3479
3479
  this._terminated = true;
3480
3480
  stub.close();
3481
- this.locationsClient.close().catch((err) => {
3481
+ this.locationsClient.close().catch(err => {
3482
3482
  throw err;
3483
3483
  });
3484
3484
  });
@@ -406,7 +406,7 @@ class IdentityMappingStoreServiceClient {
406
406
  'listIdentityMappingStores',
407
407
  ];
408
408
  for (const methodName of identityMappingStoreServiceStubMethods) {
409
- const callPromise = this.identityMappingStoreServiceStub.then((stub) => (...args) => {
409
+ const callPromise = this.identityMappingStoreServiceStub.then(stub => (...args) => {
410
410
  if (this._terminated) {
411
411
  return Promise.reject('The client has already been closed.');
412
412
  }
@@ -504,7 +504,7 @@ class IdentityMappingStoreServiceClient {
504
504
  this._gaxModule.routingHeader.fromParams({
505
505
  parent: request.parent ?? '',
506
506
  });
507
- this.initialize().catch((err) => {
507
+ this.initialize().catch(err => {
508
508
  throw err;
509
509
  });
510
510
  this._log.info('createIdentityMappingStore request %j', request);
@@ -547,7 +547,7 @@ class IdentityMappingStoreServiceClient {
547
547
  this._gaxModule.routingHeader.fromParams({
548
548
  name: request.name ?? '',
549
549
  });
550
- this.initialize().catch((err) => {
550
+ this.initialize().catch(err => {
551
551
  throw err;
552
552
  });
553
553
  this._log.info('getIdentityMappingStore request %j', request);
@@ -590,7 +590,7 @@ class IdentityMappingStoreServiceClient {
590
590
  this._gaxModule.routingHeader.fromParams({
591
591
  name: request.name ?? '',
592
592
  });
593
- this.initialize().catch((err) => {
593
+ this.initialize().catch(err => {
594
594
  throw err;
595
595
  });
596
596
  const wrappedCallback = callback
@@ -642,7 +642,7 @@ class IdentityMappingStoreServiceClient {
642
642
  this._gaxModule.routingHeader.fromParams({
643
643
  identity_mapping_store: request.identityMappingStore?.toString() ?? '',
644
644
  });
645
- this.initialize().catch((err) => {
645
+ this.initialize().catch(err => {
646
646
  throw err;
647
647
  });
648
648
  const wrappedCallback = callback
@@ -694,7 +694,7 @@ class IdentityMappingStoreServiceClient {
694
694
  this._gaxModule.routingHeader.fromParams({
695
695
  identity_mapping_store: request.identityMappingStore?.toString() ?? '',
696
696
  });
697
- this.initialize().catch((err) => {
697
+ this.initialize().catch(err => {
698
698
  throw err;
699
699
  });
700
700
  const wrappedCallback = callback
@@ -746,7 +746,7 @@ class IdentityMappingStoreServiceClient {
746
746
  this._gaxModule.routingHeader.fromParams({
747
747
  identity_mapping_store: request.identityMappingStore?.toString() ?? '',
748
748
  });
749
- this.initialize().catch((err) => {
749
+ this.initialize().catch(err => {
750
750
  throw err;
751
751
  });
752
752
  const wrappedCallback = callback
@@ -804,7 +804,7 @@ class IdentityMappingStoreServiceClient {
804
804
  });
805
805
  const defaultCallSettings = this._defaults['listIdentityMappings'];
806
806
  const callSettings = defaultCallSettings.merge(options);
807
- this.initialize().catch((err) => {
807
+ this.initialize().catch(err => {
808
808
  throw err;
809
809
  });
810
810
  this._log.info('listIdentityMappings stream %j', request);
@@ -854,7 +854,7 @@ class IdentityMappingStoreServiceClient {
854
854
  });
855
855
  const defaultCallSettings = this._defaults['listIdentityMappings'];
856
856
  const callSettings = defaultCallSettings.merge(options);
857
- this.initialize().catch((err) => {
857
+ this.initialize().catch(err => {
858
858
  throw err;
859
859
  });
860
860
  this._log.info('listIdentityMappings iterate %j', request);
@@ -877,7 +877,7 @@ class IdentityMappingStoreServiceClient {
877
877
  this._gaxModule.routingHeader.fromParams({
878
878
  parent: request.parent ?? '',
879
879
  });
880
- this.initialize().catch((err) => {
880
+ this.initialize().catch(err => {
881
881
  throw err;
882
882
  });
883
883
  const wrappedCallback = callback
@@ -935,7 +935,7 @@ class IdentityMappingStoreServiceClient {
935
935
  });
936
936
  const defaultCallSettings = this._defaults['listIdentityMappingStores'];
937
937
  const callSettings = defaultCallSettings.merge(options);
938
- this.initialize().catch((err) => {
938
+ this.initialize().catch(err => {
939
939
  throw err;
940
940
  });
941
941
  this._log.info('listIdentityMappingStores stream %j', request);
@@ -985,7 +985,7 @@ class IdentityMappingStoreServiceClient {
985
985
  });
986
986
  const defaultCallSettings = this._defaults['listIdentityMappingStores'];
987
987
  const callSettings = defaultCallSettings.merge(options);
988
- this.initialize().catch((err) => {
988
+ this.initialize().catch(err => {
989
989
  throw err;
990
990
  });
991
991
  this._log.info('listIdentityMappingStores iterate %j', request);
@@ -4187,11 +4187,11 @@ class IdentityMappingStoreServiceClient {
4187
4187
  */
4188
4188
  close() {
4189
4189
  if (this.identityMappingStoreServiceStub && !this._terminated) {
4190
- return this.identityMappingStoreServiceStub.then((stub) => {
4190
+ return this.identityMappingStoreServiceStub.then(stub => {
4191
4191
  this._log.info('ending gRPC channel');
4192
4192
  this._terminated = true;
4193
4193
  stub.close();
4194
- this.locationsClient.close().catch((err) => {
4194
+ this.locationsClient.close().catch(err => {
4195
4195
  throw err;
4196
4196
  });
4197
4197
  void this.operationsClient.close();
@@ -268,7 +268,7 @@ class LicenseConfigServiceClient {
268
268
  'retractLicenseConfig',
269
269
  ];
270
270
  for (const methodName of licenseConfigServiceStubMethods) {
271
- const callPromise = this.licenseConfigServiceStub.then((stub) => (...args) => {
271
+ const callPromise = this.licenseConfigServiceStub.then(stub => (...args) => {
272
272
  if (this._terminated) {
273
273
  return Promise.reject('The client has already been closed.');
274
274
  }
@@ -364,7 +364,7 @@ class LicenseConfigServiceClient {
364
364
  this._gaxModule.routingHeader.fromParams({
365
365
  parent: request.parent ?? '',
366
366
  });
367
- this.initialize().catch((err) => {
367
+ this.initialize().catch(err => {
368
368
  throw err;
369
369
  });
370
370
  this._log.info('createLicenseConfig request %j', request);
@@ -407,7 +407,7 @@ class LicenseConfigServiceClient {
407
407
  this._gaxModule.routingHeader.fromParams({
408
408
  'license_config.name': request.licenseConfig.name ?? '',
409
409
  });
410
- this.initialize().catch((err) => {
410
+ this.initialize().catch(err => {
411
411
  throw err;
412
412
  });
413
413
  this._log.info('updateLicenseConfig request %j', request);
@@ -450,7 +450,7 @@ class LicenseConfigServiceClient {
450
450
  this._gaxModule.routingHeader.fromParams({
451
451
  name: request.name ?? '',
452
452
  });
453
- this.initialize().catch((err) => {
453
+ this.initialize().catch(err => {
454
454
  throw err;
455
455
  });
456
456
  this._log.info('getLicenseConfig request %j', request);
@@ -493,7 +493,7 @@ class LicenseConfigServiceClient {
493
493
  this._gaxModule.routingHeader.fromParams({
494
494
  billing_account_license_config: request.billingAccountLicenseConfig ?? '',
495
495
  });
496
- this.initialize().catch((err) => {
496
+ this.initialize().catch(err => {
497
497
  throw err;
498
498
  });
499
499
  this._log.info('distributeLicenseConfig request %j', request);
@@ -536,7 +536,7 @@ class LicenseConfigServiceClient {
536
536
  this._gaxModule.routingHeader.fromParams({
537
537
  billing_account_license_config: request.billingAccountLicenseConfig ?? '',
538
538
  });
539
- this.initialize().catch((err) => {
539
+ this.initialize().catch(err => {
540
540
  throw err;
541
541
  });
542
542
  this._log.info('retractLicenseConfig request %j', request);
@@ -579,7 +579,7 @@ class LicenseConfigServiceClient {
579
579
  this._gaxModule.routingHeader.fromParams({
580
580
  parent: request.parent ?? '',
581
581
  });
582
- this.initialize().catch((err) => {
582
+ this.initialize().catch(err => {
583
583
  throw err;
584
584
  });
585
585
  const wrappedCallback = callback
@@ -644,7 +644,7 @@ class LicenseConfigServiceClient {
644
644
  });
645
645
  const defaultCallSettings = this._defaults['listLicenseConfigs'];
646
646
  const callSettings = defaultCallSettings.merge(options);
647
- this.initialize().catch((err) => {
647
+ this.initialize().catch(err => {
648
648
  throw err;
649
649
  });
650
650
  this._log.info('listLicenseConfigs stream %j', request);
@@ -701,7 +701,7 @@ class LicenseConfigServiceClient {
701
701
  });
702
702
  const defaultCallSettings = this._defaults['listLicenseConfigs'];
703
703
  const callSettings = defaultCallSettings.merge(options);
704
- this.initialize().catch((err) => {
704
+ this.initialize().catch(err => {
705
705
  throw err;
706
706
  });
707
707
  this._log.info('listLicenseConfigs iterate %j', request);
@@ -3756,11 +3756,11 @@ class LicenseConfigServiceClient {
3756
3756
  */
3757
3757
  close() {
3758
3758
  if (this.licenseConfigServiceStub && !this._terminated) {
3759
- return this.licenseConfigServiceStub.then((stub) => {
3759
+ return this.licenseConfigServiceStub.then(stub => {
3760
3760
  this._log.info('ending gRPC channel');
3761
3761
  this._terminated = true;
3762
3762
  stub.close();
3763
- this.locationsClient.close().catch((err) => {
3763
+ this.locationsClient.close().catch(err => {
3764
3764
  throw err;
3765
3765
  });
3766
3766
  });
@@ -384,7 +384,7 @@ class ProjectServiceClient {
384
384
  // and create an API call method for each.
385
385
  const projectServiceStubMethods = ['provisionProject'];
386
386
  for (const methodName of projectServiceStubMethods) {
387
- const callPromise = this.projectServiceStub.then((stub) => (...args) => {
387
+ const callPromise = this.projectServiceStub.then(stub => (...args) => {
388
388
  if (this._terminated) {
389
389
  return Promise.reject('The client has already been closed.');
390
390
  }
@@ -480,7 +480,7 @@ class ProjectServiceClient {
480
480
  this._gaxModule.routingHeader.fromParams({
481
481
  name: request.name ?? '',
482
482
  });
483
- this.initialize().catch((err) => {
483
+ this.initialize().catch(err => {
484
484
  throw err;
485
485
  });
486
486
  const wrappedCallback = callback
@@ -3678,11 +3678,11 @@ class ProjectServiceClient {
3678
3678
  */
3679
3679
  close() {
3680
3680
  if (this.projectServiceStub && !this._terminated) {
3681
- return this.projectServiceStub.then((stub) => {
3681
+ return this.projectServiceStub.then(stub => {
3682
3682
  this._log.info('ending gRPC channel');
3683
3683
  this._terminated = true;
3684
3684
  stub.close();
3685
- this.locationsClient.close().catch((err) => {
3685
+ this.locationsClient.close().catch(err => {
3686
3686
  throw err;
3687
3687
  });
3688
3688
  void this.operationsClient.close();
@@ -253,7 +253,7 @@ class RankServiceClient {
253
253
  // and create an API call method for each.
254
254
  const rankServiceStubMethods = ['rank'];
255
255
  for (const methodName of rankServiceStubMethods) {
256
- const callPromise = this.rankServiceStub.then((stub) => (...args) => {
256
+ const callPromise = this.rankServiceStub.then(stub => (...args) => {
257
257
  if (this._terminated) {
258
258
  return Promise.reject('The client has already been closed.');
259
259
  }
@@ -349,7 +349,7 @@ class RankServiceClient {
349
349
  this._gaxModule.routingHeader.fromParams({
350
350
  ranking_config: request.rankingConfig ?? '',
351
351
  });
352
- this.initialize().catch((err) => {
352
+ this.initialize().catch(err => {
353
353
  throw err;
354
354
  });
355
355
  this._log.info('rank request %j', request);
@@ -3406,11 +3406,11 @@ class RankServiceClient {
3406
3406
  */
3407
3407
  close() {
3408
3408
  if (this.rankServiceStub && !this._terminated) {
3409
- return this.rankServiceStub.then((stub) => {
3409
+ return this.rankServiceStub.then(stub => {
3410
3410
  this._log.info('ending gRPC channel');
3411
3411
  this._terminated = true;
3412
3412
  stub.close();
3413
- this.locationsClient.close().catch((err) => {
3413
+ this.locationsClient.close().catch(err => {
3414
3414
  throw err;
3415
3415
  });
3416
3416
  });
@@ -254,7 +254,7 @@ class RecommendationServiceClient {
254
254
  // and create an API call method for each.
255
255
  const recommendationServiceStubMethods = ['recommend'];
256
256
  for (const methodName of recommendationServiceStubMethods) {
257
- const callPromise = this.recommendationServiceStub.then((stub) => (...args) => {
257
+ const callPromise = this.recommendationServiceStub.then(stub => (...args) => {
258
258
  if (this._terminated) {
259
259
  return Promise.reject('The client has already been closed.');
260
260
  }
@@ -350,7 +350,7 @@ class RecommendationServiceClient {
350
350
  this._gaxModule.routingHeader.fromParams({
351
351
  serving_config: request.servingConfig ?? '',
352
352
  });
353
- this.initialize().catch((err) => {
353
+ this.initialize().catch(err => {
354
354
  throw err;
355
355
  });
356
356
  this._log.info('recommend request %j', request);
@@ -3359,11 +3359,11 @@ class RecommendationServiceClient {
3359
3359
  */
3360
3360
  close() {
3361
3361
  if (this.recommendationServiceStub && !this._terminated) {
3362
- return this.recommendationServiceStub.then((stub) => {
3362
+ return this.recommendationServiceStub.then(stub => {
3363
3363
  this._log.info('ending gRPC channel');
3364
3364
  this._terminated = true;
3365
3365
  stub.close();
3366
- this.locationsClient.close().catch((err) => {
3366
+ this.locationsClient.close().catch(err => {
3367
3367
  throw err;
3368
3368
  });
3369
3369
  });
@@ -397,7 +397,7 @@ class SampleQueryServiceClient {
397
397
  'importSampleQueries',
398
398
  ];
399
399
  for (const methodName of sampleQueryServiceStubMethods) {
400
- const callPromise = this.sampleQueryServiceStub.then((stub) => (...args) => {
400
+ const callPromise = this.sampleQueryServiceStub.then(stub => (...args) => {
401
401
  if (this._terminated) {
402
402
  return Promise.reject('The client has already been closed.');
403
403
  }
@@ -495,7 +495,7 @@ class SampleQueryServiceClient {
495
495
  this._gaxModule.routingHeader.fromParams({
496
496
  name: request.name ?? '',
497
497
  });
498
- this.initialize().catch((err) => {
498
+ this.initialize().catch(err => {
499
499
  throw err;
500
500
  });
501
501
  this._log.info('getSampleQuery request %j', request);
@@ -538,7 +538,7 @@ class SampleQueryServiceClient {
538
538
  this._gaxModule.routingHeader.fromParams({
539
539
  parent: request.parent ?? '',
540
540
  });
541
- this.initialize().catch((err) => {
541
+ this.initialize().catch(err => {
542
542
  throw err;
543
543
  });
544
544
  this._log.info('createSampleQuery request %j', request);
@@ -581,7 +581,7 @@ class SampleQueryServiceClient {
581
581
  this._gaxModule.routingHeader.fromParams({
582
582
  'sample_query.name': request.sampleQuery.name ?? '',
583
583
  });
584
- this.initialize().catch((err) => {
584
+ this.initialize().catch(err => {
585
585
  throw err;
586
586
  });
587
587
  this._log.info('updateSampleQuery request %j', request);
@@ -624,7 +624,7 @@ class SampleQueryServiceClient {
624
624
  this._gaxModule.routingHeader.fromParams({
625
625
  name: request.name ?? '',
626
626
  });
627
- this.initialize().catch((err) => {
627
+ this.initialize().catch(err => {
628
628
  throw err;
629
629
  });
630
630
  this._log.info('deleteSampleQuery request %j', request);
@@ -667,7 +667,7 @@ class SampleQueryServiceClient {
667
667
  this._gaxModule.routingHeader.fromParams({
668
668
  parent: request.parent ?? '',
669
669
  });
670
- this.initialize().catch((err) => {
670
+ this.initialize().catch(err => {
671
671
  throw err;
672
672
  });
673
673
  const wrappedCallback = callback
@@ -719,7 +719,7 @@ class SampleQueryServiceClient {
719
719
  this._gaxModule.routingHeader.fromParams({
720
720
  parent: request.parent ?? '',
721
721
  });
722
- this.initialize().catch((err) => {
722
+ this.initialize().catch(err => {
723
723
  throw err;
724
724
  });
725
725
  const wrappedCallback = callback
@@ -788,7 +788,7 @@ class SampleQueryServiceClient {
788
788
  });
789
789
  const defaultCallSettings = this._defaults['listSampleQueries'];
790
790
  const callSettings = defaultCallSettings.merge(options);
791
- this.initialize().catch((err) => {
791
+ this.initialize().catch(err => {
792
792
  throw err;
793
793
  });
794
794
  this._log.info('listSampleQueries stream %j', request);
@@ -849,7 +849,7 @@ class SampleQueryServiceClient {
849
849
  });
850
850
  const defaultCallSettings = this._defaults['listSampleQueries'];
851
851
  const callSettings = defaultCallSettings.merge(options);
852
- this.initialize().catch((err) => {
852
+ this.initialize().catch(err => {
853
853
  throw err;
854
854
  });
855
855
  this._log.info('listSampleQueries iterate %j', request);
@@ -4018,11 +4018,11 @@ class SampleQueryServiceClient {
4018
4018
  */
4019
4019
  close() {
4020
4020
  if (this.sampleQueryServiceStub && !this._terminated) {
4021
- return this.sampleQueryServiceStub.then((stub) => {
4021
+ return this.sampleQueryServiceStub.then(stub => {
4022
4022
  this._log.info('ending gRPC channel');
4023
4023
  this._terminated = true;
4024
4024
  stub.close();
4025
- this.locationsClient.close().catch((err) => {
4025
+ this.locationsClient.close().catch(err => {
4026
4026
  throw err;
4027
4027
  });
4028
4028
  void this.operationsClient.close();