@google-cloud/discoveryengine 3.1.0 → 3.3.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 (77) hide show
  1. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +147 -19
  2. package/build/protos/protos.d.ts +608 -126
  3. package/build/protos/protos.js +1 -1
  4. package/build/protos/protos.json +185 -12
  5. package/build/src/v1/assistant_service_client.js +4 -4
  6. package/build/src/v1/cmek_config_service_client.js +9 -13
  7. package/build/src/v1/completion_service_client.js +10 -14
  8. package/build/src/v1/control_service_client.js +10 -10
  9. package/build/src/v1/conversational_search_service_client.js +21 -21
  10. package/build/src/v1/data_store_service_client.js +12 -16
  11. package/build/src/v1/document_service_client.js +15 -19
  12. package/build/src/v1/engine_service_client.js +12 -16
  13. package/build/src/v1/grounded_generation_service_client.js +6 -6
  14. package/build/src/v1/identity_mapping_store_service_client.js +16 -20
  15. package/build/src/v1/project_service_client.js +6 -10
  16. package/build/src/v1/rank_service_client.js +4 -4
  17. package/build/src/v1/recommendation_service_client.js +4 -4
  18. package/build/src/v1/schema_service_client.js +12 -16
  19. package/build/src/v1/search_service_client.d.ts +162 -24
  20. package/build/src/v1/search_service_client.js +123 -26
  21. package/build/src/v1/search_tuning_service_client.js +7 -11
  22. package/build/src/v1/serving_config_service_client.js +4 -4
  23. package/build/src/v1/session_service_client.js +10 -10
  24. package/build/src/v1/site_search_engine_service_client.js +24 -28
  25. package/build/src/v1/user_event_service_client.js +9 -13
  26. package/build/src/v1/user_license_service_client.js +9 -13
  27. package/build/src/v1alpha/acl_config_service_client.js +5 -5
  28. package/build/src/v1alpha/chunk_service_client.js +7 -7
  29. package/build/src/v1alpha/completion_service_client.js +8 -8
  30. package/build/src/v1alpha/control_service_client.js +10 -10
  31. package/build/src/v1alpha/conversational_search_service_client.js +20 -20
  32. package/build/src/v1alpha/data_store_service_client.js +12 -12
  33. package/build/src/v1alpha/document_service_client.js +14 -14
  34. package/build/src/v1alpha/engine_service_client.js +13 -13
  35. package/build/src/v1alpha/estimate_billing_service_client.js +4 -4
  36. package/build/src/v1alpha/evaluation_service_client.js +11 -11
  37. package/build/src/v1alpha/grounded_generation_service_client.js +4 -4
  38. package/build/src/v1alpha/project_service_client.js +6 -6
  39. package/build/src/v1alpha/rank_service_client.js +4 -4
  40. package/build/src/v1alpha/recommendation_service_client.js +4 -4
  41. package/build/src/v1alpha/sample_query_service_client.js +11 -11
  42. package/build/src/v1alpha/sample_query_set_service_client.js +10 -10
  43. package/build/src/v1alpha/schema_service_client.js +10 -10
  44. package/build/src/v1alpha/search_service_client.js +6 -6
  45. package/build/src/v1alpha/search_tuning_service_client.js +5 -5
  46. package/build/src/v1alpha/serving_config_service_client.js +8 -8
  47. package/build/src/v1alpha/session_service_client.js +13 -13
  48. package/build/src/v1alpha/site_search_engine_service_client.js +21 -21
  49. package/build/src/v1alpha/user_event_service_client.js +7 -7
  50. package/build/src/v1beta/acl_config_service_client.js +5 -5
  51. package/build/src/v1beta/assistant_service_client.js +11 -11
  52. package/build/src/v1beta/cmek_config_service_client.js +7 -7
  53. package/build/src/v1beta/completion_service_client.js +10 -10
  54. package/build/src/v1beta/control_service_client.js +10 -10
  55. package/build/src/v1beta/conversational_search_service_client.js +21 -21
  56. package/build/src/v1beta/data_store_service_client.js +10 -10
  57. package/build/src/v1beta/document_service_client.js +13 -13
  58. package/build/src/v1beta/engine_service_client.js +15 -15
  59. package/build/src/v1beta/evaluation_service_client.js +11 -11
  60. package/build/src/v1beta/grounded_generation_service_client.js +6 -6
  61. package/build/src/v1beta/identity_mapping_store_service_client.js +14 -14
  62. package/build/src/v1beta/license_config_service_client.js +11 -11
  63. package/build/src/v1beta/project_service_client.js +4 -4
  64. package/build/src/v1beta/rank_service_client.js +4 -4
  65. package/build/src/v1beta/recommendation_service_client.js +4 -4
  66. package/build/src/v1beta/sample_query_service_client.js +11 -11
  67. package/build/src/v1beta/sample_query_set_service_client.js +10 -10
  68. package/build/src/v1beta/schema_service_client.js +10 -10
  69. package/build/src/v1beta/search_service_client.js +9 -9
  70. package/build/src/v1beta/search_tuning_service_client.js +5 -5
  71. package/build/src/v1beta/serving_config_service_client.js +10 -10
  72. package/build/src/v1beta/session_service_client.js +10 -10
  73. package/build/src/v1beta/site_search_engine_service_client.js +22 -22
  74. package/build/src/v1beta/user_event_service_client.js +7 -7
  75. package/build/src/v1beta/user_license_service_client.js +8 -8
  76. package/build/src/v1beta/user_store_service_client.js +5 -5
  77. package/package.json +1 -1
@@ -274,7 +274,7 @@ class ConversationalSearchServiceClient {
274
274
  'listSessions',
275
275
  ];
276
276
  for (const methodName of conversationalSearchServiceStubMethods) {
277
- const callPromise = this.conversationalSearchServiceStub.then((stub) => (...args) => {
277
+ const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
278
278
  if (this._terminated) {
279
279
  if (methodName in this.descriptors.stream) {
280
280
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -375,7 +375,7 @@ class ConversationalSearchServiceClient {
375
375
  this._gaxModule.routingHeader.fromParams({
376
376
  name: request.name ?? '',
377
377
  });
378
- this.initialize().catch((err) => {
378
+ this.initialize().catch(err => {
379
379
  throw err;
380
380
  });
381
381
  this._log.info('converseConversation request %j', request);
@@ -418,7 +418,7 @@ class ConversationalSearchServiceClient {
418
418
  this._gaxModule.routingHeader.fromParams({
419
419
  parent: request.parent ?? '',
420
420
  });
421
- this.initialize().catch((err) => {
421
+ this.initialize().catch(err => {
422
422
  throw err;
423
423
  });
424
424
  this._log.info('createConversation request %j', request);
@@ -461,7 +461,7 @@ class ConversationalSearchServiceClient {
461
461
  this._gaxModule.routingHeader.fromParams({
462
462
  name: request.name ?? '',
463
463
  });
464
- this.initialize().catch((err) => {
464
+ this.initialize().catch(err => {
465
465
  throw err;
466
466
  });
467
467
  this._log.info('deleteConversation request %j', request);
@@ -504,7 +504,7 @@ class ConversationalSearchServiceClient {
504
504
  this._gaxModule.routingHeader.fromParams({
505
505
  'conversation.name': request.conversation.name ?? '',
506
506
  });
507
- this.initialize().catch((err) => {
507
+ this.initialize().catch(err => {
508
508
  throw err;
509
509
  });
510
510
  this._log.info('updateConversation request %j', request);
@@ -547,7 +547,7 @@ class ConversationalSearchServiceClient {
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('getConversation request %j', request);
@@ -590,7 +590,7 @@ class ConversationalSearchServiceClient {
590
590
  this._gaxModule.routingHeader.fromParams({
591
591
  serving_config: request.servingConfig ?? '',
592
592
  });
593
- this.initialize().catch((err) => {
593
+ this.initialize().catch(err => {
594
594
  throw err;
595
595
  });
596
596
  this._log.info('answerQuery request %j', request);
@@ -633,7 +633,7 @@ class ConversationalSearchServiceClient {
633
633
  this._gaxModule.routingHeader.fromParams({
634
634
  name: request.name ?? '',
635
635
  });
636
- this.initialize().catch((err) => {
636
+ this.initialize().catch(err => {
637
637
  throw err;
638
638
  });
639
639
  this._log.info('getAnswer request %j', request);
@@ -676,7 +676,7 @@ class ConversationalSearchServiceClient {
676
676
  this._gaxModule.routingHeader.fromParams({
677
677
  parent: request.parent ?? '',
678
678
  });
679
- this.initialize().catch((err) => {
679
+ this.initialize().catch(err => {
680
680
  throw err;
681
681
  });
682
682
  this._log.info('createSession request %j', request);
@@ -719,7 +719,7 @@ class ConversationalSearchServiceClient {
719
719
  this._gaxModule.routingHeader.fromParams({
720
720
  name: request.name ?? '',
721
721
  });
722
- this.initialize().catch((err) => {
722
+ this.initialize().catch(err => {
723
723
  throw err;
724
724
  });
725
725
  this._log.info('deleteSession request %j', request);
@@ -762,7 +762,7 @@ class ConversationalSearchServiceClient {
762
762
  this._gaxModule.routingHeader.fromParams({
763
763
  'session.name': request.session.name ?? '',
764
764
  });
765
- this.initialize().catch((err) => {
765
+ this.initialize().catch(err => {
766
766
  throw err;
767
767
  });
768
768
  this._log.info('updateSession request %j', request);
@@ -805,7 +805,7 @@ class ConversationalSearchServiceClient {
805
805
  this._gaxModule.routingHeader.fromParams({
806
806
  name: request.name ?? '',
807
807
  });
808
- this.initialize().catch((err) => {
808
+ this.initialize().catch(err => {
809
809
  throw err;
810
810
  });
811
811
  this._log.info('getSession request %j', request);
@@ -931,7 +931,7 @@ class ConversationalSearchServiceClient {
931
931
  this._gaxModule.routingHeader.fromParams({
932
932
  serving_config: request.servingConfig ?? '',
933
933
  });
934
- this.initialize().catch((err) => {
934
+ this.initialize().catch(err => {
935
935
  throw err;
936
936
  });
937
937
  this._log.info('streamAnswerQuery stream %j', options);
@@ -954,7 +954,7 @@ class ConversationalSearchServiceClient {
954
954
  this._gaxModule.routingHeader.fromParams({
955
955
  parent: request.parent ?? '',
956
956
  });
957
- this.initialize().catch((err) => {
957
+ this.initialize().catch(err => {
958
958
  throw err;
959
959
  });
960
960
  const wrappedCallback = callback
@@ -1023,7 +1023,7 @@ class ConversationalSearchServiceClient {
1023
1023
  });
1024
1024
  const defaultCallSettings = this._defaults['listConversations'];
1025
1025
  const callSettings = defaultCallSettings.merge(options);
1026
- this.initialize().catch((err) => {
1026
+ this.initialize().catch(err => {
1027
1027
  throw err;
1028
1028
  });
1029
1029
  this._log.info('listConversations stream %j', request);
@@ -1084,7 +1084,7 @@ class ConversationalSearchServiceClient {
1084
1084
  });
1085
1085
  const defaultCallSettings = this._defaults['listConversations'];
1086
1086
  const callSettings = defaultCallSettings.merge(options);
1087
- this.initialize().catch((err) => {
1087
+ this.initialize().catch(err => {
1088
1088
  throw err;
1089
1089
  });
1090
1090
  this._log.info('listConversations iterate %j', request);
@@ -1107,7 +1107,7 @@ class ConversationalSearchServiceClient {
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
@@ -1193,7 +1193,7 @@ class ConversationalSearchServiceClient {
1193
1193
  });
1194
1194
  const defaultCallSettings = this._defaults['listSessions'];
1195
1195
  const callSettings = defaultCallSettings.merge(options);
1196
- this.initialize().catch((err) => {
1196
+ this.initialize().catch(err => {
1197
1197
  throw err;
1198
1198
  });
1199
1199
  this._log.info('listSessions stream %j', request);
@@ -1271,7 +1271,7 @@ class ConversationalSearchServiceClient {
1271
1271
  });
1272
1272
  const defaultCallSettings = this._defaults['listSessions'];
1273
1273
  const callSettings = defaultCallSettings.merge(options);
1274
- this.initialize().catch((err) => {
1274
+ this.initialize().catch(err => {
1275
1275
  throw err;
1276
1276
  });
1277
1277
  this._log.info('listSessions iterate %j', request);
@@ -3849,11 +3849,11 @@ class ConversationalSearchServiceClient {
3849
3849
  */
3850
3850
  close() {
3851
3851
  if (this.conversationalSearchServiceStub && !this._terminated) {
3852
- return this.conversationalSearchServiceStub.then((stub) => {
3852
+ return this.conversationalSearchServiceStub.then(stub => {
3853
3853
  this._log.info('ending gRPC channel');
3854
3854
  this._terminated = true;
3855
3855
  stub.close();
3856
- this.locationsClient.close().catch((err) => {
3856
+ this.locationsClient.close().catch(err => {
3857
3857
  throw err;
3858
3858
  });
3859
3859
  });
@@ -323,18 +323,14 @@ class DataStoreServiceClient {
323
323
  {
324
324
  get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
325
325
  },
326
- {
327
- get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
328
- },
326
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
329
327
  {
330
328
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
331
329
  },
332
330
  {
333
331
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
334
332
  },
335
- {
336
- get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
337
- },
333
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
338
334
  {
339
335
  get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
340
336
  },
@@ -397,7 +393,7 @@ class DataStoreServiceClient {
397
393
  'updateDataStore',
398
394
  ];
399
395
  for (const methodName of dataStoreServiceStubMethods) {
400
- const callPromise = this.dataStoreServiceStub.then((stub) => (...args) => {
396
+ const callPromise = this.dataStoreServiceStub.then(stub => (...args) => {
401
397
  if (this._terminated) {
402
398
  return Promise.reject('The client has already been closed.');
403
399
  }
@@ -491,7 +487,7 @@ class DataStoreServiceClient {
491
487
  this._gaxModule.routingHeader.fromParams({
492
488
  name: request.name ?? '',
493
489
  });
494
- this.initialize().catch((err) => {
490
+ this.initialize().catch(err => {
495
491
  throw err;
496
492
  });
497
493
  this._log.info('getDataStore request %j', request);
@@ -534,7 +530,7 @@ class DataStoreServiceClient {
534
530
  this._gaxModule.routingHeader.fromParams({
535
531
  'data_store.name': request.dataStore.name ?? '',
536
532
  });
537
- this.initialize().catch((err) => {
533
+ this.initialize().catch(err => {
538
534
  throw err;
539
535
  });
540
536
  this._log.info('updateDataStore request %j', request);
@@ -577,7 +573,7 @@ class DataStoreServiceClient {
577
573
  this._gaxModule.routingHeader.fromParams({
578
574
  parent: request.parent ?? '',
579
575
  });
580
- this.initialize().catch((err) => {
576
+ this.initialize().catch(err => {
581
577
  throw err;
582
578
  });
583
579
  const wrappedCallback = callback
@@ -629,7 +625,7 @@ class DataStoreServiceClient {
629
625
  this._gaxModule.routingHeader.fromParams({
630
626
  name: request.name ?? '',
631
627
  });
632
- this.initialize().catch((err) => {
628
+ this.initialize().catch(err => {
633
629
  throw err;
634
630
  });
635
631
  const wrappedCallback = callback
@@ -681,7 +677,7 @@ class DataStoreServiceClient {
681
677
  this._gaxModule.routingHeader.fromParams({
682
678
  parent: request.parent ?? '',
683
679
  });
684
- this.initialize().catch((err) => {
680
+ this.initialize().catch(err => {
685
681
  throw err;
686
682
  });
687
683
  const wrappedCallback = callback
@@ -752,7 +748,7 @@ class DataStoreServiceClient {
752
748
  });
753
749
  const defaultCallSettings = this._defaults['listDataStores'];
754
750
  const callSettings = defaultCallSettings.merge(options);
755
- this.initialize().catch((err) => {
751
+ this.initialize().catch(err => {
756
752
  throw err;
757
753
  });
758
754
  this._log.info('listDataStores stream %j', request);
@@ -815,7 +811,7 @@ class DataStoreServiceClient {
815
811
  });
816
812
  const defaultCallSettings = this._defaults['listDataStores'];
817
813
  const callSettings = defaultCallSettings.merge(options);
818
- this.initialize().catch((err) => {
814
+ this.initialize().catch(err => {
819
815
  throw err;
820
816
  });
821
817
  this._log.info('listDataStores iterate %j', request);
@@ -3621,11 +3617,11 @@ class DataStoreServiceClient {
3621
3617
  */
3622
3618
  close() {
3623
3619
  if (this.dataStoreServiceStub && !this._terminated) {
3624
- return this.dataStoreServiceStub.then((stub) => {
3620
+ return this.dataStoreServiceStub.then(stub => {
3625
3621
  this._log.info('ending gRPC channel');
3626
3622
  this._terminated = true;
3627
3623
  stub.close();
3628
- this.locationsClient.close().catch((err) => {
3624
+ this.locationsClient.close().catch(err => {
3629
3625
  throw err;
3630
3626
  });
3631
3627
  void this.operationsClient.close();
@@ -324,18 +324,14 @@ class DocumentServiceClient {
324
324
  {
325
325
  get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
326
326
  },
327
- {
328
- get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
329
- },
327
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
330
328
  {
331
329
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
332
330
  },
333
331
  {
334
332
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
335
333
  },
336
- {
337
- get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
338
- },
334
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
339
335
  {
340
336
  get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
341
337
  },
@@ -400,7 +396,7 @@ class DocumentServiceClient {
400
396
  'batchGetDocumentsMetadata',
401
397
  ];
402
398
  for (const methodName of documentServiceStubMethods) {
403
- const callPromise = this.documentServiceStub.then((stub) => (...args) => {
399
+ const callPromise = this.documentServiceStub.then(stub => (...args) => {
404
400
  if (this._terminated) {
405
401
  return Promise.reject('The client has already been closed.');
406
402
  }
@@ -494,7 +490,7 @@ class DocumentServiceClient {
494
490
  this._gaxModule.routingHeader.fromParams({
495
491
  name: request.name ?? '',
496
492
  });
497
- this.initialize().catch((err) => {
493
+ this.initialize().catch(err => {
498
494
  throw err;
499
495
  });
500
496
  this._log.info('getDocument request %j', request);
@@ -537,7 +533,7 @@ class DocumentServiceClient {
537
533
  this._gaxModule.routingHeader.fromParams({
538
534
  parent: request.parent ?? '',
539
535
  });
540
- this.initialize().catch((err) => {
536
+ this.initialize().catch(err => {
541
537
  throw err;
542
538
  });
543
539
  this._log.info('createDocument request %j', request);
@@ -580,7 +576,7 @@ class DocumentServiceClient {
580
576
  this._gaxModule.routingHeader.fromParams({
581
577
  'document.name': request.document.name ?? '',
582
578
  });
583
- this.initialize().catch((err) => {
579
+ this.initialize().catch(err => {
584
580
  throw err;
585
581
  });
586
582
  this._log.info('updateDocument request %j', request);
@@ -623,7 +619,7 @@ class DocumentServiceClient {
623
619
  this._gaxModule.routingHeader.fromParams({
624
620
  name: request.name ?? '',
625
621
  });
626
- this.initialize().catch((err) => {
622
+ this.initialize().catch(err => {
627
623
  throw err;
628
624
  });
629
625
  this._log.info('deleteDocument request %j', request);
@@ -666,7 +662,7 @@ class DocumentServiceClient {
666
662
  this._gaxModule.routingHeader.fromParams({
667
663
  parent: request.parent ?? '',
668
664
  });
669
- this.initialize().catch((err) => {
665
+ this.initialize().catch(err => {
670
666
  throw err;
671
667
  });
672
668
  this._log.info('batchGetDocumentsMetadata request %j', request);
@@ -709,7 +705,7 @@ class DocumentServiceClient {
709
705
  this._gaxModule.routingHeader.fromParams({
710
706
  parent: request.parent ?? '',
711
707
  });
712
- this.initialize().catch((err) => {
708
+ this.initialize().catch(err => {
713
709
  throw err;
714
710
  });
715
711
  const wrappedCallback = callback
@@ -761,7 +757,7 @@ class DocumentServiceClient {
761
757
  this._gaxModule.routingHeader.fromParams({
762
758
  parent: request.parent ?? '',
763
759
  });
764
- this.initialize().catch((err) => {
760
+ this.initialize().catch(err => {
765
761
  throw err;
766
762
  });
767
763
  const wrappedCallback = callback
@@ -813,7 +809,7 @@ class DocumentServiceClient {
813
809
  this._gaxModule.routingHeader.fromParams({
814
810
  parent: request.parent ?? '',
815
811
  });
816
- this.initialize().catch((err) => {
812
+ this.initialize().catch(err => {
817
813
  throw err;
818
814
  });
819
815
  const wrappedCallback = callback
@@ -883,7 +879,7 @@ class DocumentServiceClient {
883
879
  });
884
880
  const defaultCallSettings = this._defaults['listDocuments'];
885
881
  const callSettings = defaultCallSettings.merge(options);
886
- this.initialize().catch((err) => {
882
+ this.initialize().catch(err => {
887
883
  throw err;
888
884
  });
889
885
  this._log.info('listDocuments stream %j', request);
@@ -945,7 +941,7 @@ class DocumentServiceClient {
945
941
  });
946
942
  const defaultCallSettings = this._defaults['listDocuments'];
947
943
  const callSettings = defaultCallSettings.merge(options);
948
- this.initialize().catch((err) => {
944
+ this.initialize().catch(err => {
949
945
  throw err;
950
946
  });
951
947
  this._log.info('listDocuments iterate %j', request);
@@ -3829,11 +3825,11 @@ class DocumentServiceClient {
3829
3825
  */
3830
3826
  close() {
3831
3827
  if (this.documentServiceStub && !this._terminated) {
3832
- return this.documentServiceStub.then((stub) => {
3828
+ return this.documentServiceStub.then(stub => {
3833
3829
  this._log.info('ending gRPC channel');
3834
3830
  this._terminated = true;
3835
3831
  stub.close();
3836
- this.locationsClient.close().catch((err) => {
3832
+ this.locationsClient.close().catch(err => {
3837
3833
  throw err;
3838
3834
  });
3839
3835
  void this.operationsClient.close();
@@ -323,18 +323,14 @@ class EngineServiceClient {
323
323
  {
324
324
  get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
325
325
  },
326
- {
327
- get: '/v1/{name=projects/*/locations/*/collections/*}/operations',
328
- },
326
+ { get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
329
327
  {
330
328
  get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
331
329
  },
332
330
  {
333
331
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
334
332
  },
335
- {
336
- get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations',
337
- },
333
+ { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
338
334
  {
339
335
  get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
340
336
  },
@@ -396,7 +392,7 @@ class EngineServiceClient {
396
392
  'listEngines',
397
393
  ];
398
394
  for (const methodName of engineServiceStubMethods) {
399
- const callPromise = this.engineServiceStub.then((stub) => (...args) => {
395
+ const callPromise = this.engineServiceStub.then(stub => (...args) => {
400
396
  if (this._terminated) {
401
397
  return Promise.reject('The client has already been closed.');
402
398
  }
@@ -490,7 +486,7 @@ class EngineServiceClient {
490
486
  this._gaxModule.routingHeader.fromParams({
491
487
  'engine.name': request.engine.name ?? '',
492
488
  });
493
- this.initialize().catch((err) => {
489
+ this.initialize().catch(err => {
494
490
  throw err;
495
491
  });
496
492
  this._log.info('updateEngine request %j', request);
@@ -533,7 +529,7 @@ class EngineServiceClient {
533
529
  this._gaxModule.routingHeader.fromParams({
534
530
  name: request.name ?? '',
535
531
  });
536
- this.initialize().catch((err) => {
532
+ this.initialize().catch(err => {
537
533
  throw err;
538
534
  });
539
535
  this._log.info('getEngine request %j', request);
@@ -576,7 +572,7 @@ class EngineServiceClient {
576
572
  this._gaxModule.routingHeader.fromParams({
577
573
  parent: request.parent ?? '',
578
574
  });
579
- this.initialize().catch((err) => {
575
+ this.initialize().catch(err => {
580
576
  throw err;
581
577
  });
582
578
  const wrappedCallback = callback
@@ -628,7 +624,7 @@ class EngineServiceClient {
628
624
  this._gaxModule.routingHeader.fromParams({
629
625
  name: request.name ?? '',
630
626
  });
631
- this.initialize().catch((err) => {
627
+ this.initialize().catch(err => {
632
628
  throw err;
633
629
  });
634
630
  const wrappedCallback = callback
@@ -680,7 +676,7 @@ class EngineServiceClient {
680
676
  this._gaxModule.routingHeader.fromParams({
681
677
  parent: request.parent ?? '',
682
678
  });
683
- this.initialize().catch((err) => {
679
+ this.initialize().catch(err => {
684
680
  throw err;
685
681
  });
686
682
  const wrappedCallback = callback
@@ -733,7 +729,7 @@ class EngineServiceClient {
733
729
  });
734
730
  const defaultCallSettings = this._defaults['listEngines'];
735
731
  const callSettings = defaultCallSettings.merge(options);
736
- this.initialize().catch((err) => {
732
+ this.initialize().catch(err => {
737
733
  throw err;
738
734
  });
739
735
  this._log.info('listEngines stream %j', request);
@@ -778,7 +774,7 @@ class EngineServiceClient {
778
774
  });
779
775
  const defaultCallSettings = this._defaults['listEngines'];
780
776
  const callSettings = defaultCallSettings.merge(options);
781
- this.initialize().catch((err) => {
777
+ this.initialize().catch(err => {
782
778
  throw err;
783
779
  });
784
780
  this._log.info('listEngines iterate %j', request);
@@ -3584,11 +3580,11 @@ class EngineServiceClient {
3584
3580
  */
3585
3581
  close() {
3586
3582
  if (this.engineServiceStub && !this._terminated) {
3587
- return this.engineServiceStub.then((stub) => {
3583
+ return this.engineServiceStub.then(stub => {
3588
3584
  this._log.info('ending gRPC channel');
3589
3585
  this._terminated = true;
3590
3586
  stub.close();
3591
- this.locationsClient.close().catch((err) => {
3587
+ this.locationsClient.close().catch(err => {
3592
3588
  throw err;
3593
3589
  });
3594
3590
  void this.operationsClient.close();
@@ -258,7 +258,7 @@ class GroundedGenerationServiceClient {
258
258
  'checkGrounding',
259
259
  ];
260
260
  for (const methodName of groundedGenerationServiceStubMethods) {
261
- const callPromise = this.groundedGenerationServiceStub.then((stub) => (...args) => {
261
+ const callPromise = this.groundedGenerationServiceStub.then(stub => (...args) => {
262
262
  if (this._terminated) {
263
263
  if (methodName in this.descriptors.stream) {
264
264
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -357,7 +357,7 @@ class GroundedGenerationServiceClient {
357
357
  this._gaxModule.routingHeader.fromParams({
358
358
  location: request.location ?? '',
359
359
  });
360
- this.initialize().catch((err) => {
360
+ this.initialize().catch(err => {
361
361
  throw err;
362
362
  });
363
363
  this._log.info('generateGroundedContent request %j', request);
@@ -400,7 +400,7 @@ class GroundedGenerationServiceClient {
400
400
  this._gaxModule.routingHeader.fromParams({
401
401
  grounding_config: request.groundingConfig ?? '',
402
402
  });
403
- this.initialize().catch((err) => {
403
+ this.initialize().catch(err => {
404
404
  throw err;
405
405
  });
406
406
  this._log.info('checkGrounding request %j', request);
@@ -441,7 +441,7 @@ class GroundedGenerationServiceClient {
441
441
  * region_tag:discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
442
442
  */
443
443
  streamGenerateGroundedContent(options) {
444
- this.initialize().catch((err) => {
444
+ this.initialize().catch(err => {
445
445
  throw err;
446
446
  });
447
447
  this._log.info('streamGenerateGroundedContent stream %j', options);
@@ -3097,11 +3097,11 @@ class GroundedGenerationServiceClient {
3097
3097
  */
3098
3098
  close() {
3099
3099
  if (this.groundedGenerationServiceStub && !this._terminated) {
3100
- return this.groundedGenerationServiceStub.then((stub) => {
3100
+ return this.groundedGenerationServiceStub.then(stub => {
3101
3101
  this._log.info('ending gRPC channel');
3102
3102
  this._terminated = true;
3103
3103
  stub.close();
3104
- this.locationsClient.close().catch((err) => {
3104
+ this.locationsClient.close().catch(err => {
3105
3105
  throw err;
3106
3106
  });
3107
3107
  });