@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
@@ -405,7 +405,7 @@ class DocumentServiceClient {
405
405
  'batchGetDocumentsMetadata',
406
406
  ];
407
407
  for (const methodName of documentServiceStubMethods) {
408
- const callPromise = this.documentServiceStub.then((stub) => (...args) => {
408
+ const callPromise = this.documentServiceStub.then(stub => (...args) => {
409
409
  if (this._terminated) {
410
410
  return Promise.reject('The client has already been closed.');
411
411
  }
@@ -503,7 +503,7 @@ class DocumentServiceClient {
503
503
  this._gaxModule.routingHeader.fromParams({
504
504
  name: request.name ?? '',
505
505
  });
506
- this.initialize().catch((err) => {
506
+ this.initialize().catch(err => {
507
507
  throw err;
508
508
  });
509
509
  this._log.info('getDocument request %j', request);
@@ -546,7 +546,7 @@ class DocumentServiceClient {
546
546
  this._gaxModule.routingHeader.fromParams({
547
547
  parent: request.parent ?? '',
548
548
  });
549
- this.initialize().catch((err) => {
549
+ this.initialize().catch(err => {
550
550
  throw err;
551
551
  });
552
552
  this._log.info('createDocument request %j', request);
@@ -589,7 +589,7 @@ class DocumentServiceClient {
589
589
  this._gaxModule.routingHeader.fromParams({
590
590
  'document.name': request.document.name ?? '',
591
591
  });
592
- this.initialize().catch((err) => {
592
+ this.initialize().catch(err => {
593
593
  throw err;
594
594
  });
595
595
  this._log.info('updateDocument request %j', request);
@@ -632,7 +632,7 @@ class DocumentServiceClient {
632
632
  this._gaxModule.routingHeader.fromParams({
633
633
  name: request.name ?? '',
634
634
  });
635
- this.initialize().catch((err) => {
635
+ this.initialize().catch(err => {
636
636
  throw err;
637
637
  });
638
638
  this._log.info('deleteDocument request %j', request);
@@ -675,7 +675,7 @@ class DocumentServiceClient {
675
675
  this._gaxModule.routingHeader.fromParams({
676
676
  parent: request.parent ?? '',
677
677
  });
678
- this.initialize().catch((err) => {
678
+ this.initialize().catch(err => {
679
679
  throw err;
680
680
  });
681
681
  this._log.info('batchGetDocumentsMetadata request %j', request);
@@ -718,7 +718,7 @@ class DocumentServiceClient {
718
718
  this._gaxModule.routingHeader.fromParams({
719
719
  parent: request.parent ?? '',
720
720
  });
721
- this.initialize().catch((err) => {
721
+ this.initialize().catch(err => {
722
722
  throw err;
723
723
  });
724
724
  const wrappedCallback = callback
@@ -770,7 +770,7 @@ class DocumentServiceClient {
770
770
  this._gaxModule.routingHeader.fromParams({
771
771
  parent: request.parent ?? '',
772
772
  });
773
- this.initialize().catch((err) => {
773
+ this.initialize().catch(err => {
774
774
  throw err;
775
775
  });
776
776
  const wrappedCallback = callback
@@ -822,7 +822,7 @@ class DocumentServiceClient {
822
822
  this._gaxModule.routingHeader.fromParams({
823
823
  parent: request.parent ?? '',
824
824
  });
825
- this.initialize().catch((err) => {
825
+ this.initialize().catch(err => {
826
826
  throw err;
827
827
  });
828
828
  const wrappedCallback = callback
@@ -892,7 +892,7 @@ class DocumentServiceClient {
892
892
  });
893
893
  const defaultCallSettings = this._defaults['listDocuments'];
894
894
  const callSettings = defaultCallSettings.merge(options);
895
- this.initialize().catch((err) => {
895
+ this.initialize().catch(err => {
896
896
  throw err;
897
897
  });
898
898
  this._log.info('listDocuments stream %j', request);
@@ -954,7 +954,7 @@ class DocumentServiceClient {
954
954
  });
955
955
  const defaultCallSettings = this._defaults['listDocuments'];
956
956
  const callSettings = defaultCallSettings.merge(options);
957
- this.initialize().catch((err) => {
957
+ this.initialize().catch(err => {
958
958
  throw err;
959
959
  });
960
960
  this._log.info('listDocuments iterate %j', request);
@@ -4249,11 +4249,11 @@ class DocumentServiceClient {
4249
4249
  */
4250
4250
  close() {
4251
4251
  if (this.documentServiceStub && !this._terminated) {
4252
- return this.documentServiceStub.then((stub) => {
4252
+ return this.documentServiceStub.then(stub => {
4253
4253
  this._log.info('ending gRPC channel');
4254
4254
  this._terminated = true;
4255
4255
  stub.close();
4256
- this.locationsClient.close().catch((err) => {
4256
+ this.locationsClient.close().catch(err => {
4257
4257
  throw err;
4258
4258
  });
4259
4259
  void this.operationsClient.close();
@@ -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
  });