@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
@@ -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();
@@ -268,7 +268,7 @@ class SampleQuerySetServiceClient {
268
268
  'deleteSampleQuerySet',
269
269
  ];
270
270
  for (const methodName of sampleQuerySetServiceStubMethods) {
271
- const callPromise = this.sampleQuerySetServiceStub.then((stub) => (...args) => {
271
+ const callPromise = this.sampleQuerySetServiceStub.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 SampleQuerySetServiceClient {
364
364
  this._gaxModule.routingHeader.fromParams({
365
365
  name: request.name ?? '',
366
366
  });
367
- this.initialize().catch((err) => {
367
+ this.initialize().catch(err => {
368
368
  throw err;
369
369
  });
370
370
  this._log.info('getSampleQuerySet request %j', request);
@@ -407,7 +407,7 @@ class SampleQuerySetServiceClient {
407
407
  this._gaxModule.routingHeader.fromParams({
408
408
  parent: request.parent ?? '',
409
409
  });
410
- this.initialize().catch((err) => {
410
+ this.initialize().catch(err => {
411
411
  throw err;
412
412
  });
413
413
  this._log.info('createSampleQuerySet request %j', request);
@@ -450,7 +450,7 @@ class SampleQuerySetServiceClient {
450
450
  this._gaxModule.routingHeader.fromParams({
451
451
  'sample_query_set.name': request.sampleQuerySet.name ?? '',
452
452
  });
453
- this.initialize().catch((err) => {
453
+ this.initialize().catch(err => {
454
454
  throw err;
455
455
  });
456
456
  this._log.info('updateSampleQuerySet request %j', request);
@@ -493,7 +493,7 @@ class SampleQuerySetServiceClient {
493
493
  this._gaxModule.routingHeader.fromParams({
494
494
  name: request.name ?? '',
495
495
  });
496
- this.initialize().catch((err) => {
496
+ this.initialize().catch(err => {
497
497
  throw err;
498
498
  });
499
499
  this._log.info('deleteSampleQuerySet request %j', request);
@@ -536,7 +536,7 @@ class SampleQuerySetServiceClient {
536
536
  this._gaxModule.routingHeader.fromParams({
537
537
  parent: request.parent ?? '',
538
538
  });
539
- this.initialize().catch((err) => {
539
+ this.initialize().catch(err => {
540
540
  throw err;
541
541
  });
542
542
  const wrappedCallback = callback
@@ -605,7 +605,7 @@ class SampleQuerySetServiceClient {
605
605
  });
606
606
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
607
607
  const callSettings = defaultCallSettings.merge(options);
608
- this.initialize().catch((err) => {
608
+ this.initialize().catch(err => {
609
609
  throw err;
610
610
  });
611
611
  this._log.info('listSampleQuerySets stream %j', request);
@@ -666,7 +666,7 @@ class SampleQuerySetServiceClient {
666
666
  });
667
667
  const defaultCallSettings = this._defaults['listSampleQuerySets'];
668
668
  const callSettings = defaultCallSettings.merge(options);
669
- this.initialize().catch((err) => {
669
+ this.initialize().catch(err => {
670
670
  throw err;
671
671
  });
672
672
  this._log.info('listSampleQuerySets iterate %j', request);
@@ -3688,11 +3688,11 @@ class SampleQuerySetServiceClient {
3688
3688
  */
3689
3689
  close() {
3690
3690
  if (this.sampleQuerySetServiceStub && !this._terminated) {
3691
- return this.sampleQuerySetServiceStub.then((stub) => {
3691
+ return this.sampleQuerySetServiceStub.then(stub => {
3692
3692
  this._log.info('ending gRPC channel');
3693
3693
  this._terminated = true;
3694
3694
  stub.close();
3695
- this.locationsClient.close().catch((err) => {
3695
+ this.locationsClient.close().catch(err => {
3696
3696
  throw err;
3697
3697
  });
3698
3698
  });
@@ -401,7 +401,7 @@ class SchemaServiceClient {
401
401
  'deleteSchema',
402
402
  ];
403
403
  for (const methodName of schemaServiceStubMethods) {
404
- const callPromise = this.schemaServiceStub.then((stub) => (...args) => {
404
+ const callPromise = this.schemaServiceStub.then(stub => (...args) => {
405
405
  if (this._terminated) {
406
406
  return Promise.reject('The client has already been closed.');
407
407
  }
@@ -499,7 +499,7 @@ class SchemaServiceClient {
499
499
  this._gaxModule.routingHeader.fromParams({
500
500
  name: request.name ?? '',
501
501
  });
502
- this.initialize().catch((err) => {
502
+ this.initialize().catch(err => {
503
503
  throw err;
504
504
  });
505
505
  this._log.info('getSchema request %j', request);
@@ -542,7 +542,7 @@ class SchemaServiceClient {
542
542
  this._gaxModule.routingHeader.fromParams({
543
543
  parent: request.parent ?? '',
544
544
  });
545
- this.initialize().catch((err) => {
545
+ this.initialize().catch(err => {
546
546
  throw err;
547
547
  });
548
548
  const wrappedCallback = callback
@@ -594,7 +594,7 @@ class SchemaServiceClient {
594
594
  this._gaxModule.routingHeader.fromParams({
595
595
  'schema.name': request.schema.name ?? '',
596
596
  });
597
- this.initialize().catch((err) => {
597
+ this.initialize().catch(err => {
598
598
  throw err;
599
599
  });
600
600
  const wrappedCallback = callback
@@ -646,7 +646,7 @@ class SchemaServiceClient {
646
646
  this._gaxModule.routingHeader.fromParams({
647
647
  name: request.name ?? '',
648
648
  });
649
- this.initialize().catch((err) => {
649
+ this.initialize().catch(err => {
650
650
  throw err;
651
651
  });
652
652
  const wrappedCallback = callback
@@ -698,7 +698,7 @@ class SchemaServiceClient {
698
698
  this._gaxModule.routingHeader.fromParams({
699
699
  parent: request.parent ?? '',
700
700
  });
701
- this.initialize().catch((err) => {
701
+ this.initialize().catch(err => {
702
702
  throw err;
703
703
  });
704
704
  const wrappedCallback = callback
@@ -760,7 +760,7 @@ class SchemaServiceClient {
760
760
  });
761
761
  const defaultCallSettings = this._defaults['listSchemas'];
762
762
  const callSettings = defaultCallSettings.merge(options);
763
- this.initialize().catch((err) => {
763
+ this.initialize().catch(err => {
764
764
  throw err;
765
765
  });
766
766
  this._log.info('listSchemas stream %j', request);
@@ -814,7 +814,7 @@ class SchemaServiceClient {
814
814
  });
815
815
  const defaultCallSettings = this._defaults['listSchemas'];
816
816
  const callSettings = defaultCallSettings.merge(options);
817
- this.initialize().catch((err) => {
817
+ this.initialize().catch(err => {
818
818
  throw err;
819
819
  });
820
820
  this._log.info('listSchemas iterate %j', request);
@@ -3983,11 +3983,11 @@ class SchemaServiceClient {
3983
3983
  */
3984
3984
  close() {
3985
3985
  if (this.schemaServiceStub && !this._terminated) {
3986
- return this.schemaServiceStub.then((stub) => {
3986
+ return this.schemaServiceStub.then(stub => {
3987
3987
  this._log.info('ending gRPC channel');
3988
3988
  this._terminated = true;
3989
3989
  stub.close();
3990
- this.locationsClient.close().catch((err) => {
3990
+ this.locationsClient.close().catch(err => {
3991
3991
  throw err;
3992
3992
  });
3993
3993
  void this.operationsClient.close();
@@ -262,7 +262,7 @@ class SearchServiceClient {
262
262
  // and create an API call method for each.
263
263
  const searchServiceStubMethods = ['search', 'searchLite'];
264
264
  for (const methodName of searchServiceStubMethods) {
265
- const callPromise = this.searchServiceStub.then((stub) => (...args) => {
265
+ const callPromise = this.searchServiceStub.then(stub => (...args) => {
266
266
  if (this._terminated) {
267
267
  return Promise.reject('The client has already been closed.');
268
268
  }
@@ -359,7 +359,7 @@ class SearchServiceClient {
359
359
  this._gaxModule.routingHeader.fromParams({
360
360
  serving_config: request.servingConfig ?? '',
361
361
  });
362
- this.initialize().catch((err) => {
362
+ this.initialize().catch(err => {
363
363
  throw err;
364
364
  });
365
365
  const wrappedCallback = callback
@@ -814,7 +814,7 @@ class SearchServiceClient {
814
814
  });
815
815
  const defaultCallSettings = this._defaults['search'];
816
816
  const callSettings = defaultCallSettings.merge(options);
817
- this.initialize().catch((err) => {
817
+ this.initialize().catch(err => {
818
818
  throw err;
819
819
  });
820
820
  this._log.info('search stream %j', request);
@@ -1261,7 +1261,7 @@ class SearchServiceClient {
1261
1261
  });
1262
1262
  const defaultCallSettings = this._defaults['search'];
1263
1263
  const callSettings = defaultCallSettings.merge(options);
1264
- this.initialize().catch((err) => {
1264
+ this.initialize().catch(err => {
1265
1265
  throw err;
1266
1266
  });
1267
1267
  this._log.info('search iterate %j', request);
@@ -1284,7 +1284,7 @@ class SearchServiceClient {
1284
1284
  this._gaxModule.routingHeader.fromParams({
1285
1285
  serving_config: request.servingConfig ?? '',
1286
1286
  });
1287
- this.initialize().catch((err) => {
1287
+ this.initialize().catch(err => {
1288
1288
  throw err;
1289
1289
  });
1290
1290
  const wrappedCallback = callback
@@ -1739,7 +1739,7 @@ class SearchServiceClient {
1739
1739
  });
1740
1740
  const defaultCallSettings = this._defaults['searchLite'];
1741
1741
  const callSettings = defaultCallSettings.merge(options);
1742
- this.initialize().catch((err) => {
1742
+ this.initialize().catch(err => {
1743
1743
  throw err;
1744
1744
  });
1745
1745
  this._log.info('searchLite stream %j', request);
@@ -2186,7 +2186,7 @@ class SearchServiceClient {
2186
2186
  });
2187
2187
  const defaultCallSettings = this._defaults['searchLite'];
2188
2188
  const callSettings = defaultCallSettings.merge(options);
2189
- this.initialize().catch((err) => {
2189
+ this.initialize().catch(err => {
2190
2190
  throw err;
2191
2191
  });
2192
2192
  this._log.info('searchLite iterate %j', request);
@@ -5301,11 +5301,11 @@ class SearchServiceClient {
5301
5301
  */
5302
5302
  close() {
5303
5303
  if (this.searchServiceStub && !this._terminated) {
5304
- return this.searchServiceStub.then((stub) => {
5304
+ return this.searchServiceStub.then(stub => {
5305
5305
  this._log.info('ending gRPC channel');
5306
5306
  this._terminated = true;
5307
5307
  stub.close();
5308
- this.locationsClient.close().catch((err) => {
5308
+ this.locationsClient.close().catch(err => {
5309
5309
  throw err;
5310
5310
  });
5311
5311
  });
@@ -386,7 +386,7 @@ class SearchTuningServiceClient {
386
386
  'listCustomModels',
387
387
  ];
388
388
  for (const methodName of searchTuningServiceStubMethods) {
389
- const callPromise = this.searchTuningServiceStub.then((stub) => (...args) => {
389
+ const callPromise = this.searchTuningServiceStub.then(stub => (...args) => {
390
390
  if (this._terminated) {
391
391
  return Promise.reject('The client has already been closed.');
392
392
  }
@@ -482,7 +482,7 @@ class SearchTuningServiceClient {
482
482
  this._gaxModule.routingHeader.fromParams({
483
483
  data_store: request.dataStore ?? '',
484
484
  });
485
- this.initialize().catch((err) => {
485
+ this.initialize().catch(err => {
486
486
  throw err;
487
487
  });
488
488
  this._log.info('listCustomModels request %j', request);
@@ -525,7 +525,7 @@ class SearchTuningServiceClient {
525
525
  this._gaxModule.routingHeader.fromParams({
526
526
  data_store: request.dataStore ?? '',
527
527
  });
528
- this.initialize().catch((err) => {
528
+ this.initialize().catch(err => {
529
529
  throw err;
530
530
  });
531
531
  const wrappedCallback = callback
@@ -3723,11 +3723,11 @@ class SearchTuningServiceClient {
3723
3723
  */
3724
3724
  close() {
3725
3725
  if (this.searchTuningServiceStub && !this._terminated) {
3726
- return this.searchTuningServiceStub.then((stub) => {
3726
+ return this.searchTuningServiceStub.then(stub => {
3727
3727
  this._log.info('ending gRPC channel');
3728
3728
  this._terminated = true;
3729
3729
  stub.close();
3730
- this.locationsClient.close().catch((err) => {
3730
+ this.locationsClient.close().catch(err => {
3731
3731
  throw err;
3732
3732
  });
3733
3733
  void this.operationsClient.close();
@@ -267,7 +267,7 @@ class ServingConfigServiceClient {
267
267
  'listServingConfigs',
268
268
  ];
269
269
  for (const methodName of servingConfigServiceStubMethods) {
270
- const callPromise = this.servingConfigServiceStub.then((stub) => (...args) => {
270
+ const callPromise = this.servingConfigServiceStub.then(stub => (...args) => {
271
271
  if (this._terminated) {
272
272
  return Promise.reject('The client has already been closed.');
273
273
  }
@@ -363,7 +363,7 @@ class ServingConfigServiceClient {
363
363
  this._gaxModule.routingHeader.fromParams({
364
364
  parent: request.parent ?? '',
365
365
  });
366
- this.initialize().catch((err) => {
366
+ this.initialize().catch(err => {
367
367
  throw err;
368
368
  });
369
369
  this._log.info('createServingConfig request %j', request);
@@ -406,7 +406,7 @@ class ServingConfigServiceClient {
406
406
  this._gaxModule.routingHeader.fromParams({
407
407
  name: request.name ?? '',
408
408
  });
409
- this.initialize().catch((err) => {
409
+ this.initialize().catch(err => {
410
410
  throw err;
411
411
  });
412
412
  this._log.info('deleteServingConfig request %j', request);
@@ -449,7 +449,7 @@ class ServingConfigServiceClient {
449
449
  this._gaxModule.routingHeader.fromParams({
450
450
  'serving_config.name': request.servingConfig.name ?? '',
451
451
  });
452
- this.initialize().catch((err) => {
452
+ this.initialize().catch(err => {
453
453
  throw err;
454
454
  });
455
455
  this._log.info('updateServingConfig request %j', request);
@@ -492,7 +492,7 @@ class ServingConfigServiceClient {
492
492
  this._gaxModule.routingHeader.fromParams({
493
493
  name: request.name ?? '',
494
494
  });
495
- this.initialize().catch((err) => {
495
+ this.initialize().catch(err => {
496
496
  throw err;
497
497
  });
498
498
  this._log.info('getServingConfig request %j', request);
@@ -535,7 +535,7 @@ class ServingConfigServiceClient {
535
535
  this._gaxModule.routingHeader.fromParams({
536
536
  parent: request.parent ?? '',
537
537
  });
538
- this.initialize().catch((err) => {
538
+ this.initialize().catch(err => {
539
539
  throw err;
540
540
  });
541
541
  const wrappedCallback = callback
@@ -588,7 +588,7 @@ class ServingConfigServiceClient {
588
588
  });
589
589
  const defaultCallSettings = this._defaults['listServingConfigs'];
590
590
  const callSettings = defaultCallSettings.merge(options);
591
- this.initialize().catch((err) => {
591
+ this.initialize().catch(err => {
592
592
  throw err;
593
593
  });
594
594
  this._log.info('listServingConfigs stream %j', request);
@@ -633,7 +633,7 @@ class ServingConfigServiceClient {
633
633
  });
634
634
  const defaultCallSettings = this._defaults['listServingConfigs'];
635
635
  const callSettings = defaultCallSettings.merge(options);
636
- this.initialize().catch((err) => {
636
+ this.initialize().catch(err => {
637
637
  throw err;
638
638
  });
639
639
  this._log.info('listServingConfigs iterate %j', request);
@@ -3655,11 +3655,11 @@ class ServingConfigServiceClient {
3655
3655
  */
3656
3656
  close() {
3657
3657
  if (this.servingConfigServiceStub && !this._terminated) {
3658
- return this.servingConfigServiceStub.then((stub) => {
3658
+ return this.servingConfigServiceStub.then(stub => {
3659
3659
  this._log.info('ending gRPC channel');
3660
3660
  this._terminated = true;
3661
3661
  stub.close();
3662
- this.locationsClient.close().catch((err) => {
3662
+ this.locationsClient.close().catch(err => {
3663
3663
  throw err;
3664
3664
  });
3665
3665
  });
@@ -265,7 +265,7 @@ class SessionServiceClient {
265
265
  'listSessions',
266
266
  ];
267
267
  for (const methodName of sessionServiceStubMethods) {
268
- const callPromise = this.sessionServiceStub.then((stub) => (...args) => {
268
+ const callPromise = this.sessionServiceStub.then(stub => (...args) => {
269
269
  if (this._terminated) {
270
270
  return Promise.reject('The client has already been closed.');
271
271
  }
@@ -362,7 +362,7 @@ class SessionServiceClient {
362
362
  this._gaxModule.routingHeader.fromParams({
363
363
  parent: request.parent ?? '',
364
364
  });
365
- this.initialize().catch((err) => {
365
+ this.initialize().catch(err => {
366
366
  throw err;
367
367
  });
368
368
  this._log.info('createSession request %j', request);
@@ -405,7 +405,7 @@ class SessionServiceClient {
405
405
  this._gaxModule.routingHeader.fromParams({
406
406
  name: request.name ?? '',
407
407
  });
408
- this.initialize().catch((err) => {
408
+ this.initialize().catch(err => {
409
409
  throw err;
410
410
  });
411
411
  this._log.info('deleteSession request %j', request);
@@ -448,7 +448,7 @@ class SessionServiceClient {
448
448
  this._gaxModule.routingHeader.fromParams({
449
449
  'session.name': request.session.name ?? '',
450
450
  });
451
- this.initialize().catch((err) => {
451
+ this.initialize().catch(err => {
452
452
  throw err;
453
453
  });
454
454
  this._log.info('updateSession request %j', request);
@@ -491,7 +491,7 @@ class SessionServiceClient {
491
491
  this._gaxModule.routingHeader.fromParams({
492
492
  name: request.name ?? '',
493
493
  });
494
- this.initialize().catch((err) => {
494
+ this.initialize().catch(err => {
495
495
  throw err;
496
496
  });
497
497
  this._log.info('getSession request %j', request);
@@ -534,7 +534,7 @@ class SessionServiceClient {
534
534
  this._gaxModule.routingHeader.fromParams({
535
535
  parent: request.parent ?? '',
536
536
  });
537
- this.initialize().catch((err) => {
537
+ this.initialize().catch(err => {
538
538
  throw err;
539
539
  });
540
540
  const wrappedCallback = callback
@@ -629,7 +629,7 @@ class SessionServiceClient {
629
629
  });
630
630
  const defaultCallSettings = this._defaults['listSessions'];
631
631
  const callSettings = defaultCallSettings.merge(options);
632
- this.initialize().catch((err) => {
632
+ this.initialize().catch(err => {
633
633
  throw err;
634
634
  });
635
635
  this._log.info('listSessions stream %j', request);
@@ -716,7 +716,7 @@ class SessionServiceClient {
716
716
  });
717
717
  const defaultCallSettings = this._defaults['listSessions'];
718
718
  const callSettings = defaultCallSettings.merge(options);
719
- this.initialize().catch((err) => {
719
+ this.initialize().catch(err => {
720
720
  throw err;
721
721
  });
722
722
  this._log.info('listSessions iterate %j', request);
@@ -3705,11 +3705,11 @@ class SessionServiceClient {
3705
3705
  */
3706
3706
  close() {
3707
3707
  if (this.sessionServiceStub && !this._terminated) {
3708
- return this.sessionServiceStub.then((stub) => {
3708
+ return this.sessionServiceStub.then(stub => {
3709
3709
  this._log.info('ending gRPC channel');
3710
3710
  this._terminated = true;
3711
3711
  stub.close();
3712
- this.locationsClient.close().catch((err) => {
3712
+ this.locationsClient.close().catch(err => {
3713
3713
  throw err;
3714
3714
  });
3715
3715
  });