@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
@@ -250,7 +250,7 @@ class SearchServiceClient {
250
250
  // and create an API call method for each.
251
251
  const searchServiceStubMethods = ['search'];
252
252
  for (const methodName of searchServiceStubMethods) {
253
- const callPromise = this.searchServiceStub.then((stub) => (...args) => {
253
+ const callPromise = this.searchServiceStub.then(stub => (...args) => {
254
254
  if (this._terminated) {
255
255
  return Promise.reject('The client has already been closed.');
256
256
  }
@@ -342,7 +342,7 @@ class SearchServiceClient {
342
342
  this._gaxModule.routingHeader.fromParams({
343
343
  serving_config: request.servingConfig ?? '',
344
344
  });
345
- this.initialize().catch((err) => {
345
+ this.initialize().catch(err => {
346
346
  throw err;
347
347
  });
348
348
  const wrappedCallback = callback
@@ -709,7 +709,7 @@ class SearchServiceClient {
709
709
  });
710
710
  const defaultCallSettings = this._defaults['search'];
711
711
  const callSettings = defaultCallSettings.merge(options);
712
- this.initialize().catch((err) => {
712
+ this.initialize().catch(err => {
713
713
  throw err;
714
714
  });
715
715
  this._log.info('search stream %j', request);
@@ -1068,7 +1068,7 @@ class SearchServiceClient {
1068
1068
  });
1069
1069
  const defaultCallSettings = this._defaults['search'];
1070
1070
  const callSettings = defaultCallSettings.merge(options);
1071
- this.initialize().catch((err) => {
1071
+ this.initialize().catch(err => {
1072
1072
  throw err;
1073
1073
  });
1074
1074
  this._log.info('search iterate %j', request);
@@ -3552,11 +3552,11 @@ class SearchServiceClient {
3552
3552
  */
3553
3553
  close() {
3554
3554
  if (this.searchServiceStub && !this._terminated) {
3555
- return this.searchServiceStub.then((stub) => {
3555
+ return this.searchServiceStub.then(stub => {
3556
3556
  this._log.info('ending gRPC channel');
3557
3557
  this._terminated = true;
3558
3558
  stub.close();
3559
- this.locationsClient.close().catch((err) => {
3559
+ this.locationsClient.close().catch(err => {
3560
3560
  throw err;
3561
3561
  });
3562
3562
  });
@@ -372,7 +372,7 @@ class SearchTuningServiceClient {
372
372
  'listCustomModels',
373
373
  ];
374
374
  for (const methodName of searchTuningServiceStubMethods) {
375
- const callPromise = this.searchTuningServiceStub.then((stub) => (...args) => {
375
+ const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
376
376
  if (this._terminated) {
377
377
  return Promise.reject('The client has already been closed.');
378
378
  }
@@ -464,7 +464,7 @@ class SearchTuningServiceClient {
464
464
  this._gaxModule.routingHeader.fromParams({
465
465
  data_store: request.dataStore ?? '',
466
466
  });
467
- this.initialize().catch((err) => {
467
+ this.initialize().catch(err => {
468
468
  throw err;
469
469
  });
470
470
  this._log.info('listCustomModels request %j', request);
@@ -507,7 +507,7 @@ class SearchTuningServiceClient {
507
507
  this._gaxModule.routingHeader.fromParams({
508
508
  data_store: request.dataStore ?? '',
509
509
  });
510
- this.initialize().catch((err) => {
510
+ this.initialize().catch(err => {
511
511
  throw err;
512
512
  });
513
513
  const wrappedCallback = callback
@@ -3074,11 +3074,11 @@ class SearchTuningServiceClient {
3074
3074
  */
3075
3075
  close() {
3076
3076
  if (this.searchTuningServiceStub && !this._terminated) {
3077
- return this.searchTuningServiceStub.then((stub) => {
3077
+ return this.searchTuningServiceStub.then(stub => {
3078
3078
  this._log.info('ending gRPC channel');
3079
3079
  this._terminated = true;
3080
3080
  stub.close();
3081
- this.locationsClient.close().catch((err) => {
3081
+ this.locationsClient.close().catch(err => {
3082
3082
  throw err;
3083
3083
  });
3084
3084
  void this.operationsClient.close();
@@ -254,7 +254,7 @@ class ServingConfigServiceClient {
254
254
  'listServingConfigs',
255
255
  ];
256
256
  for (const methodName of servingConfigServiceStubMethods) {
257
- const callPromise = this.servingConfigServiceStub.then((stub) => (...args) => {
257
+ const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
258
258
  if (this._terminated) {
259
259
  return Promise.reject('The client has already been closed.');
260
260
  }
@@ -346,7 +346,7 @@ class ServingConfigServiceClient {
346
346
  this._gaxModule.routingHeader.fromParams({
347
347
  'serving_config.name': request.servingConfig.name ?? '',
348
348
  });
349
- this.initialize().catch((err) => {
349
+ this.initialize().catch(err => {
350
350
  throw err;
351
351
  });
352
352
  this._log.info('updateServingConfig request %j', request);
@@ -389,7 +389,7 @@ class ServingConfigServiceClient {
389
389
  this._gaxModule.routingHeader.fromParams({
390
390
  name: request.name ?? '',
391
391
  });
392
- this.initialize().catch((err) => {
392
+ this.initialize().catch(err => {
393
393
  throw err;
394
394
  });
395
395
  this._log.info('getServingConfig request %j', request);
@@ -432,7 +432,7 @@ class ServingConfigServiceClient {
432
432
  this._gaxModule.routingHeader.fromParams({
433
433
  parent: request.parent ?? '',
434
434
  });
435
- this.initialize().catch((err) => {
435
+ this.initialize().catch(err => {
436
436
  throw err;
437
437
  });
438
438
  const wrappedCallback = callback
@@ -485,7 +485,7 @@ class ServingConfigServiceClient {
485
485
  });
486
486
  const defaultCallSettings = this._defaults['listServingConfigs'];
487
487
  const callSettings = defaultCallSettings.merge(options);
488
- this.initialize().catch((err) => {
488
+ this.initialize().catch(err => {
489
489
  throw err;
490
490
  });
491
491
  this._log.info('listServingConfigs stream %j', request);
@@ -530,7 +530,7 @@ class ServingConfigServiceClient {
530
530
  });
531
531
  const defaultCallSettings = this._defaults['listServingConfigs'];
532
532
  const callSettings = defaultCallSettings.merge(options);
533
- this.initialize().catch((err) => {
533
+ this.initialize().catch(err => {
534
534
  throw err;
535
535
  });
536
536
  this._log.info('listServingConfigs iterate %j', request);
@@ -2921,11 +2921,11 @@ class ServingConfigServiceClient {
2921
2921
  */
2922
2922
  close() {
2923
2923
  if (this.servingConfigServiceStub && !this._terminated) {
2924
- return this.servingConfigServiceStub.then((stub) => {
2924
+ return this.servingConfigServiceStub.then(stub => {
2925
2925
  this._log.info('ending gRPC channel');
2926
2926
  this._terminated = true;
2927
2927
  stub.close();
2928
- this.locationsClient.close().catch((err) => {
2928
+ this.locationsClient.close().catch(err => {
2929
2929
  throw err;
2930
2930
  });
2931
2931
  });
@@ -256,7 +256,7 @@ class SessionServiceClient {
256
256
  'listFiles',
257
257
  ];
258
258
  for (const methodName of sessionServiceStubMethods) {
259
- const callPromise = this.sessionServiceStub.then((stub) => (...args) => {
259
+ const callPromise = this.sessionServiceStub.then(stub => (...args) => {
260
260
  if (this._terminated) {
261
261
  return Promise.reject('The client has already been closed.');
262
262
  }
@@ -348,7 +348,7 @@ class SessionServiceClient {
348
348
  this._gaxModule.routingHeader.fromParams({
349
349
  parent: request.parent ?? '',
350
350
  });
351
- this.initialize().catch((err) => {
351
+ this.initialize().catch(err => {
352
352
  throw err;
353
353
  });
354
354
  this._log.info('createSession request %j', request);
@@ -391,7 +391,7 @@ class SessionServiceClient {
391
391
  this._gaxModule.routingHeader.fromParams({
392
392
  name: request.name ?? '',
393
393
  });
394
- this.initialize().catch((err) => {
394
+ this.initialize().catch(err => {
395
395
  throw err;
396
396
  });
397
397
  this._log.info('deleteSession request %j', request);
@@ -434,7 +434,7 @@ class SessionServiceClient {
434
434
  this._gaxModule.routingHeader.fromParams({
435
435
  'session.name': request.session.name ?? '',
436
436
  });
437
- this.initialize().catch((err) => {
437
+ this.initialize().catch(err => {
438
438
  throw err;
439
439
  });
440
440
  this._log.info('updateSession request %j', request);
@@ -477,7 +477,7 @@ class SessionServiceClient {
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('getSession request %j', request);
@@ -520,7 +520,7 @@ class SessionServiceClient {
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
@@ -606,7 +606,7 @@ class SessionServiceClient {
606
606
  });
607
607
  const defaultCallSettings = this._defaults['listSessions'];
608
608
  const callSettings = defaultCallSettings.merge(options);
609
- this.initialize().catch((err) => {
609
+ this.initialize().catch(err => {
610
610
  throw err;
611
611
  });
612
612
  this._log.info('listSessions stream %j', request);
@@ -684,7 +684,7 @@ class SessionServiceClient {
684
684
  });
685
685
  const defaultCallSettings = this._defaults['listSessions'];
686
686
  const callSettings = defaultCallSettings.merge(options);
687
- this.initialize().catch((err) => {
687
+ this.initialize().catch(err => {
688
688
  throw err;
689
689
  });
690
690
  this._log.info('listSessions iterate %j', request);
@@ -707,7 +707,7 @@ class SessionServiceClient {
707
707
  this._gaxModule.routingHeader.fromParams({
708
708
  parent: request.parent ?? '',
709
709
  });
710
- this.initialize().catch((err) => {
710
+ this.initialize().catch(err => {
711
711
  throw err;
712
712
  });
713
713
  const wrappedCallback = callback
@@ -786,7 +786,7 @@ class SessionServiceClient {
786
786
  });
787
787
  const defaultCallSettings = this._defaults['listFiles'];
788
788
  const callSettings = defaultCallSettings.merge(options);
789
- this.initialize().catch((err) => {
789
+ this.initialize().catch(err => {
790
790
  throw err;
791
791
  });
792
792
  this._log.info('listFiles stream %j', request);
@@ -857,7 +857,7 @@ class SessionServiceClient {
857
857
  });
858
858
  const defaultCallSettings = this._defaults['listFiles'];
859
859
  const callSettings = defaultCallSettings.merge(options);
860
- this.initialize().catch((err) => {
860
+ this.initialize().catch(err => {
861
861
  throw err;
862
862
  });
863
863
  this._log.info('listFiles iterate %j', request);
@@ -3215,11 +3215,11 @@ class SessionServiceClient {
3215
3215
  */
3216
3216
  close() {
3217
3217
  if (this.sessionServiceStub && !this._terminated) {
3218
- return this.sessionServiceStub.then((stub) => {
3218
+ return this.sessionServiceStub.then(stub => {
3219
3219
  this._log.info('ending gRPC channel');
3220
3220
  this._terminated = true;
3221
3221
  stub.close();
3222
- this.locationsClient.close().catch((err) => {
3222
+ this.locationsClient.close().catch(err => {
3223
3223
  throw err;
3224
3224
  });
3225
3225
  });
@@ -416,7 +416,7 @@ class SiteSearchEngineServiceClient {
416
416
  'getUriPatternDocumentData',
417
417
  ];
418
418
  for (const methodName of siteSearchEngineServiceStubMethods) {
419
- const callPromise = this.siteSearchEngineServiceStub.then((stub) => (...args) => {
419
+ const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
420
420
  if (this._terminated) {
421
421
  return Promise.reject('The client has already been closed.');
422
422
  }
@@ -510,7 +510,7 @@ class SiteSearchEngineServiceClient {
510
510
  this._gaxModule.routingHeader.fromParams({
511
511
  name: request.name ?? '',
512
512
  });
513
- this.initialize().catch((err) => {
513
+ this.initialize().catch(err => {
514
514
  throw err;
515
515
  });
516
516
  this._log.info('getSiteSearchEngine request %j', request);
@@ -553,7 +553,7 @@ class SiteSearchEngineServiceClient {
553
553
  this._gaxModule.routingHeader.fromParams({
554
554
  name: request.name ?? '',
555
555
  });
556
- this.initialize().catch((err) => {
556
+ this.initialize().catch(err => {
557
557
  throw err;
558
558
  });
559
559
  this._log.info('getTargetSite request %j', request);
@@ -596,7 +596,7 @@ class SiteSearchEngineServiceClient {
596
596
  this._gaxModule.routingHeader.fromParams({
597
597
  site_search_engine: request.siteSearchEngine ?? '',
598
598
  });
599
- this.initialize().catch((err) => {
599
+ this.initialize().catch(err => {
600
600
  throw err;
601
601
  });
602
602
  this._log.info('getUriPatternDocumentData request %j', request);
@@ -639,7 +639,7 @@ class SiteSearchEngineServiceClient {
639
639
  this._gaxModule.routingHeader.fromParams({
640
640
  parent: request.parent ?? '',
641
641
  });
642
- this.initialize().catch((err) => {
642
+ this.initialize().catch(err => {
643
643
  throw err;
644
644
  });
645
645
  const wrappedCallback = callback
@@ -691,7 +691,7 @@ class SiteSearchEngineServiceClient {
691
691
  this._gaxModule.routingHeader.fromParams({
692
692
  parent: request.parent ?? '',
693
693
  });
694
- this.initialize().catch((err) => {
694
+ this.initialize().catch(err => {
695
695
  throw err;
696
696
  });
697
697
  const wrappedCallback = callback
@@ -743,7 +743,7 @@ class SiteSearchEngineServiceClient {
743
743
  this._gaxModule.routingHeader.fromParams({
744
744
  'target_site.name': request.targetSite.name ?? '',
745
745
  });
746
- this.initialize().catch((err) => {
746
+ this.initialize().catch(err => {
747
747
  throw err;
748
748
  });
749
749
  const wrappedCallback = callback
@@ -795,7 +795,7 @@ class SiteSearchEngineServiceClient {
795
795
  this._gaxModule.routingHeader.fromParams({
796
796
  name: request.name ?? '',
797
797
  });
798
- this.initialize().catch((err) => {
798
+ this.initialize().catch(err => {
799
799
  throw err;
800
800
  });
801
801
  const wrappedCallback = callback
@@ -847,7 +847,7 @@ class SiteSearchEngineServiceClient {
847
847
  this._gaxModule.routingHeader.fromParams({
848
848
  site_search_engine: request.siteSearchEngine ?? '',
849
849
  });
850
- this.initialize().catch((err) => {
850
+ this.initialize().catch(err => {
851
851
  throw err;
852
852
  });
853
853
  const wrappedCallback = callback
@@ -899,7 +899,7 @@ class SiteSearchEngineServiceClient {
899
899
  this._gaxModule.routingHeader.fromParams({
900
900
  site_search_engine: request.siteSearchEngine ?? '',
901
901
  });
902
- this.initialize().catch((err) => {
902
+ this.initialize().catch(err => {
903
903
  throw err;
904
904
  });
905
905
  const wrappedCallback = callback
@@ -951,7 +951,7 @@ class SiteSearchEngineServiceClient {
951
951
  this._gaxModule.routingHeader.fromParams({
952
952
  site_search_engine: request.siteSearchEngine ?? '',
953
953
  });
954
- this.initialize().catch((err) => {
954
+ this.initialize().catch(err => {
955
955
  throw err;
956
956
  });
957
957
  const wrappedCallback = callback
@@ -1003,7 +1003,7 @@ class SiteSearchEngineServiceClient {
1003
1003
  this._gaxModule.routingHeader.fromParams({
1004
1004
  parent: request.parent ?? '',
1005
1005
  });
1006
- this.initialize().catch((err) => {
1006
+ this.initialize().catch(err => {
1007
1007
  throw err;
1008
1008
  });
1009
1009
  const wrappedCallback = callback
@@ -1055,7 +1055,7 @@ class SiteSearchEngineServiceClient {
1055
1055
  this._gaxModule.routingHeader.fromParams({
1056
1056
  site_search_engine: request.siteSearchEngine ?? '',
1057
1057
  });
1058
- this.initialize().catch((err) => {
1058
+ this.initialize().catch(err => {
1059
1059
  throw err;
1060
1060
  });
1061
1061
  const wrappedCallback = callback
@@ -1107,7 +1107,7 @@ class SiteSearchEngineServiceClient {
1107
1107
  this._gaxModule.routingHeader.fromParams({
1108
1108
  parent: request.parent ?? '',
1109
1109
  });
1110
- this.initialize().catch((err) => {
1110
+ this.initialize().catch(err => {
1111
1111
  throw err;
1112
1112
  });
1113
1113
  const wrappedCallback = callback
@@ -1170,7 +1170,7 @@ class SiteSearchEngineServiceClient {
1170
1170
  });
1171
1171
  const defaultCallSettings = this._defaults['listTargetSites'];
1172
1172
  const callSettings = defaultCallSettings.merge(options);
1173
- this.initialize().catch((err) => {
1173
+ this.initialize().catch(err => {
1174
1174
  throw err;
1175
1175
  });
1176
1176
  this._log.info('listTargetSites stream %j', request);
@@ -1225,7 +1225,7 @@ class SiteSearchEngineServiceClient {
1225
1225
  });
1226
1226
  const defaultCallSettings = this._defaults['listTargetSites'];
1227
1227
  const callSettings = defaultCallSettings.merge(options);
1228
- this.initialize().catch((err) => {
1228
+ this.initialize().catch(err => {
1229
1229
  throw err;
1230
1230
  });
1231
1231
  this._log.info('listTargetSites iterate %j', request);
@@ -1248,7 +1248,7 @@ class SiteSearchEngineServiceClient {
1248
1248
  this._gaxModule.routingHeader.fromParams({
1249
1249
  site_search_engine: request.siteSearchEngine ?? '',
1250
1250
  });
1251
- this.initialize().catch((err) => {
1251
+ this.initialize().catch(err => {
1252
1252
  throw err;
1253
1253
  });
1254
1254
  const wrappedCallback = callback
@@ -1308,7 +1308,7 @@ class SiteSearchEngineServiceClient {
1308
1308
  });
1309
1309
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1310
1310
  const callSettings = defaultCallSettings.merge(options);
1311
- this.initialize().catch((err) => {
1311
+ this.initialize().catch(err => {
1312
1312
  throw err;
1313
1313
  });
1314
1314
  this._log.info('fetchDomainVerificationStatus stream %j', request);
@@ -1360,7 +1360,7 @@ class SiteSearchEngineServiceClient {
1360
1360
  });
1361
1361
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1362
1362
  const callSettings = defaultCallSettings.merge(options);
1363
- this.initialize().catch((err) => {
1363
+ this.initialize().catch(err => {
1364
1364
  throw err;
1365
1365
  });
1366
1366
  this._log.info('fetchDomainVerificationStatus iterate %j', request);
@@ -3898,11 +3898,11 @@ class SiteSearchEngineServiceClient {
3898
3898
  */
3899
3899
  close() {
3900
3900
  if (this.siteSearchEngineServiceStub && !this._terminated) {
3901
- return this.siteSearchEngineServiceStub.then((stub) => {
3901
+ return this.siteSearchEngineServiceStub.then(stub => {
3902
3902
  this._log.info('ending gRPC channel');
3903
3903
  this._terminated = true;
3904
3904
  stub.close();
3905
- this.locationsClient.close().catch((err) => {
3905
+ this.locationsClient.close().catch(err => {
3906
3906
  throw err;
3907
3907
  });
3908
3908
  void this.operationsClient.close();
@@ -377,7 +377,7 @@ class UserEventServiceClient {
377
377
  'importUserEvents',
378
378
  ];
379
379
  for (const methodName of userEventServiceStubMethods) {
380
- const callPromise = this.userEventServiceStub.then((stub) => (...args) => {
380
+ const callPromise = this.userEventServiceStub.then(stub => (...args) => {
381
381
  if (this._terminated) {
382
382
  return Promise.reject('The client has already been closed.');
383
383
  }
@@ -469,7 +469,7 @@ class UserEventServiceClient {
469
469
  this._gaxModule.routingHeader.fromParams({
470
470
  parent: request.parent ?? '',
471
471
  });
472
- this.initialize().catch((err) => {
472
+ this.initialize().catch(err => {
473
473
  throw err;
474
474
  });
475
475
  this._log.info('writeUserEvent request %j', request);
@@ -512,7 +512,7 @@ class UserEventServiceClient {
512
512
  this._gaxModule.routingHeader.fromParams({
513
513
  parent: request.parent ?? '',
514
514
  });
515
- this.initialize().catch((err) => {
515
+ this.initialize().catch(err => {
516
516
  throw err;
517
517
  });
518
518
  this._log.info('collectUserEvent request %j', request);
@@ -555,7 +555,7 @@ class UserEventServiceClient {
555
555
  this._gaxModule.routingHeader.fromParams({
556
556
  parent: request.parent ?? '',
557
557
  });
558
- this.initialize().catch((err) => {
558
+ this.initialize().catch(err => {
559
559
  throw err;
560
560
  });
561
561
  const wrappedCallback = callback
@@ -607,7 +607,7 @@ class UserEventServiceClient {
607
607
  this._gaxModule.routingHeader.fromParams({
608
608
  parent: request.parent ?? '',
609
609
  });
610
- this.initialize().catch((err) => {
610
+ this.initialize().catch(err => {
611
611
  throw err;
612
612
  });
613
613
  const wrappedCallback = callback
@@ -3174,11 +3174,11 @@ class UserEventServiceClient {
3174
3174
  */
3175
3175
  close() {
3176
3176
  if (this.userEventServiceStub && !this._terminated) {
3177
- return this.userEventServiceStub.then((stub) => {
3177
+ return this.userEventServiceStub.then(stub => {
3178
3178
  this._log.info('ending gRPC channel');
3179
3179
  this._terminated = true;
3180
3180
  stub.close();
3181
- this.locationsClient.close().catch((err) => {
3181
+ this.locationsClient.close().catch(err => {
3182
3182
  throw err;
3183
3183
  });
3184
3184
  void this.operationsClient.close();
@@ -253,7 +253,7 @@ class AclConfigServiceClient {
253
253
  // and create an API call method for each.
254
254
  const aclConfigServiceStubMethods = ['updateAclConfig', 'getAclConfig'];
255
255
  for (const methodName of aclConfigServiceStubMethods) {
256
- const callPromise = this.aclConfigServiceStub.then((stub) => (...args) => {
256
+ const callPromise = this.aclConfigServiceStub.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 AclConfigServiceClient {
349
349
  this._gaxModule.routingHeader.fromParams({
350
350
  'acl_config.name': request.aclConfig.name ?? '',
351
351
  });
352
- this.initialize().catch((err) => {
352
+ this.initialize().catch(err => {
353
353
  throw err;
354
354
  });
355
355
  this._log.info('updateAclConfig request %j', request);
@@ -392,7 +392,7 @@ class AclConfigServiceClient {
392
392
  this._gaxModule.routingHeader.fromParams({
393
393
  name: request.name ?? '',
394
394
  });
395
- this.initialize().catch((err) => {
395
+ this.initialize().catch(err => {
396
396
  throw err;
397
397
  });
398
398
  this._log.info('getAclConfig request %j', request);
@@ -3401,11 +3401,11 @@ class AclConfigServiceClient {
3401
3401
  */
3402
3402
  close() {
3403
3403
  if (this.aclConfigServiceStub && !this._terminated) {
3404
- return this.aclConfigServiceStub.then((stub) => {
3404
+ return this.aclConfigServiceStub.then(stub => {
3405
3405
  this._log.info('ending gRPC channel');
3406
3406
  this._terminated = true;
3407
3407
  stub.close();
3408
- this.locationsClient.close().catch((err) => {
3408
+ this.locationsClient.close().catch(err => {
3409
3409
  throw err;
3410
3410
  });
3411
3411
  });
@@ -272,7 +272,7 @@ class AssistantServiceClient {
272
272
  'listAssistants',
273
273
  ];
274
274
  for (const methodName of assistantServiceStubMethods) {
275
- const callPromise = this.assistantServiceStub.then((stub) => (...args) => {
275
+ const callPromise = this.assistantServiceStub.then(stub => (...args) => {
276
276
  if (this._terminated) {
277
277
  if (methodName in this.descriptors.stream) {
278
278
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -378,7 +378,7 @@ class AssistantServiceClient {
378
378
  this._gaxModule.routingHeader.fromParams({
379
379
  parent: request.parent ?? '',
380
380
  });
381
- this.initialize().catch((err) => {
381
+ this.initialize().catch(err => {
382
382
  throw err;
383
383
  });
384
384
  this._log.info('createAssistant request %j', request);
@@ -421,7 +421,7 @@ class AssistantServiceClient {
421
421
  this._gaxModule.routingHeader.fromParams({
422
422
  name: request.name ?? '',
423
423
  });
424
- this.initialize().catch((err) => {
424
+ this.initialize().catch(err => {
425
425
  throw err;
426
426
  });
427
427
  this._log.info('deleteAssistant request %j', request);
@@ -464,7 +464,7 @@ class AssistantServiceClient {
464
464
  this._gaxModule.routingHeader.fromParams({
465
465
  'assistant.name': request.assistant.name ?? '',
466
466
  });
467
- this.initialize().catch((err) => {
467
+ this.initialize().catch(err => {
468
468
  throw err;
469
469
  });
470
470
  this._log.info('updateAssistant request %j', request);
@@ -507,7 +507,7 @@ class AssistantServiceClient {
507
507
  this._gaxModule.routingHeader.fromParams({
508
508
  name: request.name ?? '',
509
509
  });
510
- this.initialize().catch((err) => {
510
+ this.initialize().catch(err => {
511
511
  throw err;
512
512
  });
513
513
  this._log.info('getAssistant request %j', request);
@@ -583,7 +583,7 @@ class AssistantServiceClient {
583
583
  this._gaxModule.routingHeader.fromParams({
584
584
  name: request.name ?? '',
585
585
  });
586
- this.initialize().catch((err) => {
586
+ this.initialize().catch(err => {
587
587
  throw err;
588
588
  });
589
589
  this._log.info('streamAssist stream %j', options);
@@ -606,7 +606,7 @@ class AssistantServiceClient {
606
606
  this._gaxModule.routingHeader.fromParams({
607
607
  parent: request.parent ?? '',
608
608
  });
609
- this.initialize().catch((err) => {
609
+ this.initialize().catch(err => {
610
610
  throw err;
611
611
  });
612
612
  const wrappedCallback = callback
@@ -668,7 +668,7 @@ class AssistantServiceClient {
668
668
  });
669
669
  const defaultCallSettings = this._defaults['listAssistants'];
670
670
  const callSettings = defaultCallSettings.merge(options);
671
- this.initialize().catch((err) => {
671
+ this.initialize().catch(err => {
672
672
  throw err;
673
673
  });
674
674
  this._log.info('listAssistants stream %j', request);
@@ -722,7 +722,7 @@ class AssistantServiceClient {
722
722
  });
723
723
  const defaultCallSettings = this._defaults['listAssistants'];
724
724
  const callSettings = defaultCallSettings.merge(options);
725
- this.initialize().catch((err) => {
725
+ this.initialize().catch(err => {
726
726
  throw err;
727
727
  });
728
728
  this._log.info('listAssistants iterate %j', request);
@@ -3711,11 +3711,11 @@ class AssistantServiceClient {
3711
3711
  */
3712
3712
  close() {
3713
3713
  if (this.assistantServiceStub && !this._terminated) {
3714
- return this.assistantServiceStub.then((stub) => {
3714
+ return this.assistantServiceStub.then(stub => {
3715
3715
  this._log.info('ending gRPC channel');
3716
3716
  this._terminated = true;
3717
3717
  stub.close();
3718
- this.locationsClient.close().catch((err) => {
3718
+ this.locationsClient.close().catch(err => {
3719
3719
  throw err;
3720
3720
  });
3721
3721
  });