@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
@@ -434,7 +434,7 @@ class SiteSearchEngineServiceClient {
434
434
  'fetchDomainVerificationStatus',
435
435
  ];
436
436
  for (const methodName of siteSearchEngineServiceStubMethods) {
437
- const callPromise = this.siteSearchEngineServiceStub.then((stub) => (...args) => {
437
+ const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
438
438
  if (this._terminated) {
439
439
  return Promise.reject('The client has already been closed.');
440
440
  }
@@ -532,7 +532,7 @@ class SiteSearchEngineServiceClient {
532
532
  this._gaxModule.routingHeader.fromParams({
533
533
  name: request.name ?? '',
534
534
  });
535
- this.initialize().catch((err) => {
535
+ this.initialize().catch(err => {
536
536
  throw err;
537
537
  });
538
538
  this._log.info('getSiteSearchEngine request %j', request);
@@ -575,7 +575,7 @@ class SiteSearchEngineServiceClient {
575
575
  this._gaxModule.routingHeader.fromParams({
576
576
  name: request.name ?? '',
577
577
  });
578
- this.initialize().catch((err) => {
578
+ this.initialize().catch(err => {
579
579
  throw err;
580
580
  });
581
581
  this._log.info('getTargetSite request %j', request);
@@ -618,7 +618,7 @@ class SiteSearchEngineServiceClient {
618
618
  this._gaxModule.routingHeader.fromParams({
619
619
  parent: request.parent ?? '',
620
620
  });
621
- this.initialize().catch((err) => {
621
+ this.initialize().catch(err => {
622
622
  throw err;
623
623
  });
624
624
  this._log.info('fetchSitemaps request %j', request);
@@ -661,7 +661,7 @@ class SiteSearchEngineServiceClient {
661
661
  this._gaxModule.routingHeader.fromParams({
662
662
  parent: request.parent ?? '',
663
663
  });
664
- this.initialize().catch((err) => {
664
+ this.initialize().catch(err => {
665
665
  throw err;
666
666
  });
667
667
  const wrappedCallback = callback
@@ -713,7 +713,7 @@ class SiteSearchEngineServiceClient {
713
713
  this._gaxModule.routingHeader.fromParams({
714
714
  parent: request.parent ?? '',
715
715
  });
716
- this.initialize().catch((err) => {
716
+ this.initialize().catch(err => {
717
717
  throw err;
718
718
  });
719
719
  const wrappedCallback = callback
@@ -765,7 +765,7 @@ class SiteSearchEngineServiceClient {
765
765
  this._gaxModule.routingHeader.fromParams({
766
766
  'target_site.name': request.targetSite.name ?? '',
767
767
  });
768
- this.initialize().catch((err) => {
768
+ this.initialize().catch(err => {
769
769
  throw err;
770
770
  });
771
771
  const wrappedCallback = callback
@@ -817,7 +817,7 @@ class SiteSearchEngineServiceClient {
817
817
  this._gaxModule.routingHeader.fromParams({
818
818
  name: request.name ?? '',
819
819
  });
820
- this.initialize().catch((err) => {
820
+ this.initialize().catch(err => {
821
821
  throw err;
822
822
  });
823
823
  const wrappedCallback = callback
@@ -869,7 +869,7 @@ class SiteSearchEngineServiceClient {
869
869
  this._gaxModule.routingHeader.fromParams({
870
870
  parent: request.parent ?? '',
871
871
  });
872
- this.initialize().catch((err) => {
872
+ this.initialize().catch(err => {
873
873
  throw err;
874
874
  });
875
875
  const wrappedCallback = callback
@@ -921,7 +921,7 @@ class SiteSearchEngineServiceClient {
921
921
  this._gaxModule.routingHeader.fromParams({
922
922
  name: request.name ?? '',
923
923
  });
924
- this.initialize().catch((err) => {
924
+ this.initialize().catch(err => {
925
925
  throw err;
926
926
  });
927
927
  const wrappedCallback = callback
@@ -973,7 +973,7 @@ class SiteSearchEngineServiceClient {
973
973
  this._gaxModule.routingHeader.fromParams({
974
974
  site_search_engine: request.siteSearchEngine ?? '',
975
975
  });
976
- this.initialize().catch((err) => {
976
+ this.initialize().catch(err => {
977
977
  throw err;
978
978
  });
979
979
  const wrappedCallback = callback
@@ -1025,7 +1025,7 @@ class SiteSearchEngineServiceClient {
1025
1025
  this._gaxModule.routingHeader.fromParams({
1026
1026
  site_search_engine: request.siteSearchEngine ?? '',
1027
1027
  });
1028
- this.initialize().catch((err) => {
1028
+ this.initialize().catch(err => {
1029
1029
  throw err;
1030
1030
  });
1031
1031
  const wrappedCallback = callback
@@ -1077,7 +1077,7 @@ class SiteSearchEngineServiceClient {
1077
1077
  this._gaxModule.routingHeader.fromParams({
1078
1078
  site_search_engine: request.siteSearchEngine ?? '',
1079
1079
  });
1080
- this.initialize().catch((err) => {
1080
+ this.initialize().catch(err => {
1081
1081
  throw err;
1082
1082
  });
1083
1083
  const wrappedCallback = callback
@@ -1129,7 +1129,7 @@ class SiteSearchEngineServiceClient {
1129
1129
  this._gaxModule.routingHeader.fromParams({
1130
1130
  parent: request.parent ?? '',
1131
1131
  });
1132
- this.initialize().catch((err) => {
1132
+ this.initialize().catch(err => {
1133
1133
  throw err;
1134
1134
  });
1135
1135
  const wrappedCallback = callback
@@ -1181,7 +1181,7 @@ class SiteSearchEngineServiceClient {
1181
1181
  this._gaxModule.routingHeader.fromParams({
1182
1182
  parent: request.parent ?? '',
1183
1183
  });
1184
- this.initialize().catch((err) => {
1184
+ this.initialize().catch(err => {
1185
1185
  throw err;
1186
1186
  });
1187
1187
  const wrappedCallback = callback
@@ -1244,7 +1244,7 @@ class SiteSearchEngineServiceClient {
1244
1244
  });
1245
1245
  const defaultCallSettings = this._defaults['listTargetSites'];
1246
1246
  const callSettings = defaultCallSettings.merge(options);
1247
- this.initialize().catch((err) => {
1247
+ this.initialize().catch(err => {
1248
1248
  throw err;
1249
1249
  });
1250
1250
  this._log.info('listTargetSites stream %j', request);
@@ -1299,7 +1299,7 @@ class SiteSearchEngineServiceClient {
1299
1299
  });
1300
1300
  const defaultCallSettings = this._defaults['listTargetSites'];
1301
1301
  const callSettings = defaultCallSettings.merge(options);
1302
- this.initialize().catch((err) => {
1302
+ this.initialize().catch(err => {
1303
1303
  throw err;
1304
1304
  });
1305
1305
  this._log.info('listTargetSites iterate %j', request);
@@ -1322,7 +1322,7 @@ class SiteSearchEngineServiceClient {
1322
1322
  this._gaxModule.routingHeader.fromParams({
1323
1323
  site_search_engine: request.siteSearchEngine ?? '',
1324
1324
  });
1325
- this.initialize().catch((err) => {
1325
+ this.initialize().catch(err => {
1326
1326
  throw err;
1327
1327
  });
1328
1328
  const wrappedCallback = callback
@@ -1382,7 +1382,7 @@ class SiteSearchEngineServiceClient {
1382
1382
  });
1383
1383
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1384
1384
  const callSettings = defaultCallSettings.merge(options);
1385
- this.initialize().catch((err) => {
1385
+ this.initialize().catch(err => {
1386
1386
  throw err;
1387
1387
  });
1388
1388
  this._log.info('fetchDomainVerificationStatus stream %j', request);
@@ -1434,7 +1434,7 @@ class SiteSearchEngineServiceClient {
1434
1434
  });
1435
1435
  const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
1436
1436
  const callSettings = defaultCallSettings.merge(options);
1437
- this.initialize().catch((err) => {
1437
+ this.initialize().catch(err => {
1438
1438
  throw err;
1439
1439
  });
1440
1440
  this._log.info('fetchDomainVerificationStatus iterate %j', request);
@@ -4603,11 +4603,11 @@ class SiteSearchEngineServiceClient {
4603
4603
  */
4604
4604
  close() {
4605
4605
  if (this.siteSearchEngineServiceStub && !this._terminated) {
4606
- return this.siteSearchEngineServiceStub.then((stub) => {
4606
+ return this.siteSearchEngineServiceStub.then(stub => {
4607
4607
  this._log.info('ending gRPC channel');
4608
4608
  this._terminated = true;
4609
4609
  stub.close();
4610
- this.locationsClient.close().catch((err) => {
4610
+ this.locationsClient.close().catch(err => {
4611
4611
  throw err;
4612
4612
  });
4613
4613
  void this.operationsClient.close();
@@ -391,7 +391,7 @@ class UserEventServiceClient {
391
391
  'importUserEvents',
392
392
  ];
393
393
  for (const methodName of userEventServiceStubMethods) {
394
- const callPromise = this.userEventServiceStub.then((stub) => (...args) => {
394
+ const callPromise = this.userEventServiceStub.then(stub => (...args) => {
395
395
  if (this._terminated) {
396
396
  return Promise.reject('The client has already been closed.');
397
397
  }
@@ -488,7 +488,7 @@ class UserEventServiceClient {
488
488
  this._gaxModule.routingHeader.fromParams({
489
489
  parent: request.parent ?? '',
490
490
  });
491
- this.initialize().catch((err) => {
491
+ this.initialize().catch(err => {
492
492
  throw err;
493
493
  });
494
494
  this._log.info('writeUserEvent request %j', request);
@@ -531,7 +531,7 @@ class UserEventServiceClient {
531
531
  this._gaxModule.routingHeader.fromParams({
532
532
  parent: request.parent ?? '',
533
533
  });
534
- this.initialize().catch((err) => {
534
+ this.initialize().catch(err => {
535
535
  throw err;
536
536
  });
537
537
  this._log.info('collectUserEvent request %j', request);
@@ -574,7 +574,7 @@ class UserEventServiceClient {
574
574
  this._gaxModule.routingHeader.fromParams({
575
575
  parent: request.parent ?? '',
576
576
  });
577
- this.initialize().catch((err) => {
577
+ this.initialize().catch(err => {
578
578
  throw err;
579
579
  });
580
580
  const wrappedCallback = callback
@@ -626,7 +626,7 @@ class UserEventServiceClient {
626
626
  this._gaxModule.routingHeader.fromParams({
627
627
  parent: request.parent ?? '',
628
628
  });
629
- this.initialize().catch((err) => {
629
+ this.initialize().catch(err => {
630
630
  throw err;
631
631
  });
632
632
  const wrappedCallback = callback
@@ -3824,11 +3824,11 @@ class UserEventServiceClient {
3824
3824
  */
3825
3825
  close() {
3826
3826
  if (this.userEventServiceStub && !this._terminated) {
3827
- return this.userEventServiceStub.then((stub) => {
3827
+ return this.userEventServiceStub.then(stub => {
3828
3828
  this._log.info('ending gRPC channel');
3829
3829
  this._terminated = true;
3830
3830
  stub.close();
3831
- this.locationsClient.close().catch((err) => {
3831
+ this.locationsClient.close().catch(err => {
3832
3832
  throw err;
3833
3833
  });
3834
3834
  void this.operationsClient.close();
@@ -393,7 +393,7 @@ class UserLicenseServiceClient {
393
393
  'batchUpdateUserLicenses',
394
394
  ];
395
395
  for (const methodName of userLicenseServiceStubMethods) {
396
- const callPromise = this.userLicenseServiceStub.then((stub) => (...args) => {
396
+ const callPromise = this.userLicenseServiceStub.then(stub => (...args) => {
397
397
  if (this._terminated) {
398
398
  return Promise.reject('The client has already been closed.');
399
399
  }
@@ -491,7 +491,7 @@ class UserLicenseServiceClient {
491
491
  this._gaxModule.routingHeader.fromParams({
492
492
  parent: request.parent ?? '',
493
493
  });
494
- this.initialize().catch((err) => {
494
+ this.initialize().catch(err => {
495
495
  throw err;
496
496
  });
497
497
  this._log.info('listLicenseConfigsUsageStats request %j', request);
@@ -534,7 +534,7 @@ class UserLicenseServiceClient {
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
@@ -586,7 +586,7 @@ class UserLicenseServiceClient {
586
586
  this._gaxModule.routingHeader.fromParams({
587
587
  parent: request.parent ?? '',
588
588
  });
589
- this.initialize().catch((err) => {
589
+ this.initialize().catch(err => {
590
590
  throw err;
591
591
  });
592
592
  const wrappedCallback = callback
@@ -681,7 +681,7 @@ class UserLicenseServiceClient {
681
681
  });
682
682
  const defaultCallSettings = this._defaults['listUserLicenses'];
683
683
  const callSettings = defaultCallSettings.merge(options);
684
- this.initialize().catch((err) => {
684
+ this.initialize().catch(err => {
685
685
  throw err;
686
686
  });
687
687
  this._log.info('listUserLicenses stream %j', request);
@@ -768,7 +768,7 @@ class UserLicenseServiceClient {
768
768
  });
769
769
  const defaultCallSettings = this._defaults['listUserLicenses'];
770
770
  const callSettings = defaultCallSettings.merge(options);
771
- this.initialize().catch((err) => {
771
+ this.initialize().catch(err => {
772
772
  throw err;
773
773
  });
774
774
  this._log.info('listUserLicenses iterate %j', request);
@@ -3937,11 +3937,11 @@ class UserLicenseServiceClient {
3937
3937
  */
3938
3938
  close() {
3939
3939
  if (this.userLicenseServiceStub && !this._terminated) {
3940
- return this.userLicenseServiceStub.then((stub) => {
3940
+ return this.userLicenseServiceStub.then(stub => {
3941
3941
  this._log.info('ending gRPC channel');
3942
3942
  this._terminated = true;
3943
3943
  stub.close();
3944
- this.locationsClient.close().catch((err) => {
3944
+ this.locationsClient.close().catch(err => {
3945
3945
  throw err;
3946
3946
  });
3947
3947
  void this.operationsClient.close();
@@ -253,7 +253,7 @@ class UserStoreServiceClient {
253
253
  // and create an API call method for each.
254
254
  const userStoreServiceStubMethods = ['getUserStore', 'updateUserStore'];
255
255
  for (const methodName of userStoreServiceStubMethods) {
256
- const callPromise = this.userStoreServiceStub.then((stub) => (...args) => {
256
+ const callPromise = this.userStoreServiceStub.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 UserStoreServiceClient {
349
349
  this._gaxModule.routingHeader.fromParams({
350
350
  name: request.name ?? '',
351
351
  });
352
- this.initialize().catch((err) => {
352
+ this.initialize().catch(err => {
353
353
  throw err;
354
354
  });
355
355
  this._log.info('getUserStore request %j', request);
@@ -392,7 +392,7 @@ class UserStoreServiceClient {
392
392
  this._gaxModule.routingHeader.fromParams({
393
393
  'user_store.name': request.userStore.name ?? '',
394
394
  });
395
- this.initialize().catch((err) => {
395
+ this.initialize().catch(err => {
396
396
  throw err;
397
397
  });
398
398
  this._log.info('updateUserStore request %j', request);
@@ -3401,11 +3401,11 @@ class UserStoreServiceClient {
3401
3401
  */
3402
3402
  close() {
3403
3403
  if (this.userStoreServiceStub && !this._terminated) {
3404
- return this.userStoreServiceStub.then((stub) => {
3404
+ return this.userStoreServiceStub.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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/discoveryengine",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Discovery Engine API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",