@google-cloud/discoveryengine 2.0.0 → 2.1.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 (149) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +7 -2
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
  6. package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
  12. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
  13. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
  15. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
  17. package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
  19. package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
  24. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
  26. package/build/protos/protos.d.ts +5356 -981
  27. package/build/protos/protos.js +32266 -20956
  28. package/build/protos/protos.json +1391 -74
  29. package/build/src/index.d.ts +4 -1
  30. package/build/src/index.js +4 -1
  31. package/build/src/v1/completion_service_client.d.ts +238 -1
  32. package/build/src/v1/completion_service_client.js +341 -5
  33. package/build/src/v1/completion_service_proto_list.json +3 -0
  34. package/build/src/v1/control_service_client.d.ts +237 -0
  35. package/build/src/v1/control_service_client.js +347 -7
  36. package/build/src/v1/control_service_proto_list.json +3 -0
  37. package/build/src/v1/conversational_search_service_client.d.ts +213 -6
  38. package/build/src/v1/conversational_search_service_client.js +316 -22
  39. package/build/src/v1/conversational_search_service_client_config.json +5 -0
  40. package/build/src/v1/conversational_search_service_proto_list.json +3 -0
  41. package/build/src/v1/data_store_service_client.d.ts +238 -1
  42. package/build/src/v1/data_store_service_client.js +347 -7
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +245 -2
  45. package/build/src/v1/document_service_client.js +356 -10
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +238 -1
  48. package/build/src/v1/engine_service_client.js +347 -7
  49. package/build/src/v1/engine_service_proto_list.json +3 -0
  50. package/build/src/v1/gapic_metadata.json +59 -0
  51. package/build/src/v1/grounded_generation_service_client.d.ts +238 -3
  52. package/build/src/v1/grounded_generation_service_client.js +335 -3
  53. package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
  54. package/build/src/v1/index.d.ts +1 -0
  55. package/build/src/v1/index.js +3 -1
  56. package/build/src/v1/project_service_client.d.ts +238 -1
  57. package/build/src/v1/project_service_client.js +329 -1
  58. package/build/src/v1/project_service_proto_list.json +3 -0
  59. package/build/src/v1/rank_service_client.d.ts +238 -1
  60. package/build/src/v1/rank_service_client.js +329 -1
  61. package/build/src/v1/rank_service_proto_list.json +3 -0
  62. package/build/src/v1/recommendation_service_client.d.ts +95 -2
  63. package/build/src/v1/recommendation_service_client.js +131 -1
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +238 -1
  66. package/build/src/v1/schema_service_client.js +347 -7
  67. package/build/src/v1/schema_service_proto_list.json +3 -0
  68. package/build/src/v1/search_service_client.d.ts +219 -30
  69. package/build/src/v1/search_service_client.js +230 -26
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +238 -1
  72. package/build/src/v1/search_tuning_service_client.js +332 -2
  73. package/build/src/v1/search_tuning_service_proto_list.json +3 -0
  74. package/build/src/v1/serving_config_service_client.d.ts +1851 -0
  75. package/build/src/v1/serving_config_service_client.js +2653 -0
  76. package/build/src/v1/serving_config_service_client_config.json +30 -0
  77. package/build/src/v1/serving_config_service_proto_list.json +39 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +357 -4
  79. package/build/src/v1/site_search_engine_service_client.js +521 -16
  80. package/build/src/v1/site_search_engine_service_client_config.json +12 -0
  81. package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
  82. package/build/src/v1/user_event_service_client.d.ts +259 -10
  83. package/build/src/v1/user_event_service_client.js +338 -4
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/build/src/v1alpha/acl_config_service_client.js +6 -2
  86. package/build/src/v1alpha/chunk_service_client.js +12 -4
  87. package/build/src/v1alpha/completion_service_client.d.ts +1 -1
  88. package/build/src/v1alpha/completion_service_client.js +15 -5
  89. package/build/src/v1alpha/control_service_client.js +21 -7
  90. package/build/src/v1alpha/conversational_search_service_client.js +51 -17
  91. package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
  92. package/build/src/v1alpha/data_store_service_client.js +27 -9
  93. package/build/src/v1alpha/document_service_client.d.ts +1 -1
  94. package/build/src/v1alpha/document_service_client.js +33 -11
  95. package/build/src/v1alpha/engine_service_client.d.ts +1 -1
  96. package/build/src/v1alpha/engine_service_client.js +30 -10
  97. package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
  98. package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
  99. package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
  100. package/build/src/v1alpha/evaluation_service_client.js +24 -8
  101. package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
  102. package/build/src/v1alpha/project_service_client.d.ts +1 -1
  103. package/build/src/v1alpha/project_service_client.js +9 -3
  104. package/build/src/v1alpha/rank_service_client.js +3 -1
  105. package/build/src/v1alpha/recommendation_service_client.js +3 -1
  106. package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
  107. package/build/src/v1alpha/sample_query_service_client.js +24 -8
  108. package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
  109. package/build/src/v1alpha/schema_service_client.d.ts +1 -1
  110. package/build/src/v1alpha/schema_service_client.js +21 -7
  111. package/build/src/v1alpha/search_service_client.js +9 -3
  112. package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
  113. package/build/src/v1alpha/search_tuning_service_client.js +6 -2
  114. package/build/src/v1alpha/serving_config_service_client.js +15 -5
  115. package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
  116. package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
  117. package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
  118. package/build/src/v1alpha/user_event_service_client.js +12 -4
  119. package/build/src/v1beta/completion_service_client.d.ts +1 -1
  120. package/build/src/v1beta/completion_service_client.js +18 -6
  121. package/build/src/v1beta/control_service_client.js +21 -7
  122. package/build/src/v1beta/conversational_search_service_client.js +51 -17
  123. package/build/src/v1beta/data_store_service_client.d.ts +1 -1
  124. package/build/src/v1beta/data_store_service_client.js +21 -7
  125. package/build/src/v1beta/document_service_client.d.ts +1 -1
  126. package/build/src/v1beta/document_service_client.js +30 -10
  127. package/build/src/v1beta/engine_service_client.d.ts +1 -1
  128. package/build/src/v1beta/engine_service_client.js +30 -10
  129. package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
  130. package/build/src/v1beta/evaluation_service_client.js +24 -8
  131. package/build/src/v1beta/grounded_generation_service_client.js +9 -3
  132. package/build/src/v1beta/project_service_client.d.ts +1 -1
  133. package/build/src/v1beta/project_service_client.js +3 -1
  134. package/build/src/v1beta/rank_service_client.js +3 -1
  135. package/build/src/v1beta/recommendation_service_client.js +3 -1
  136. package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
  137. package/build/src/v1beta/sample_query_service_client.js +24 -8
  138. package/build/src/v1beta/sample_query_set_service_client.js +21 -7
  139. package/build/src/v1beta/schema_service_client.d.ts +1 -1
  140. package/build/src/v1beta/schema_service_client.js +21 -7
  141. package/build/src/v1beta/search_service_client.js +18 -6
  142. package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
  143. package/build/src/v1beta/search_tuning_service_client.js +6 -2
  144. package/build/src/v1beta/serving_config_service_client.js +15 -5
  145. package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
  146. package/build/src/v1beta/site_search_engine_service_client.js +57 -19
  147. package/build/src/v1beta/user_event_service_client.d.ts +1 -1
  148. package/build/src/v1beta/user_event_service_client.js +12 -4
  149. package/package.json +5 -5
@@ -181,12 +181,15 @@ class EngineServiceClient {
181
181
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
182
182
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
183
183
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
184
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
184
185
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
185
186
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
186
187
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
188
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
187
189
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
190
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
189
191
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
192
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
190
193
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
191
194
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
192
195
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -197,9 +200,11 @@ class EngineServiceClient {
197
200
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
198
201
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
199
202
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
203
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
200
204
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
201
205
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
202
206
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
207
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
203
208
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
204
209
  };
205
210
  // Some of the methods on this service return "paged" results,
@@ -472,7 +477,9 @@ class EngineServiceClient {
472
477
  this._gaxModule.routingHeader.fromParams({
473
478
  'engine.name': request.engine.name ?? '',
474
479
  });
475
- this.initialize();
480
+ this.initialize().catch(err => {
481
+ throw err;
482
+ });
476
483
  this._log.info('updateEngine request %j', request);
477
484
  const wrappedCallback = callback
478
485
  ? (error, response, options, rawResponse) => {
@@ -504,7 +511,9 @@ class EngineServiceClient {
504
511
  this._gaxModule.routingHeader.fromParams({
505
512
  name: request.name ?? '',
506
513
  });
507
- this.initialize();
514
+ this.initialize().catch(err => {
515
+ throw err;
516
+ });
508
517
  this._log.info('getEngine request %j', request);
509
518
  const wrappedCallback = callback
510
519
  ? (error, response, options, rawResponse) => {
@@ -536,7 +545,9 @@ class EngineServiceClient {
536
545
  this._gaxModule.routingHeader.fromParams({
537
546
  parent: request.parent ?? '',
538
547
  });
539
- this.initialize();
548
+ this.initialize().catch(err => {
549
+ throw err;
550
+ });
540
551
  const wrappedCallback = callback
541
552
  ? (error, response, rawResponse, _) => {
542
553
  this._log.info('createEngine response %j', rawResponse);
@@ -586,7 +597,9 @@ class EngineServiceClient {
586
597
  this._gaxModule.routingHeader.fromParams({
587
598
  name: request.name ?? '',
588
599
  });
589
- this.initialize();
600
+ this.initialize().catch(err => {
601
+ throw err;
602
+ });
590
603
  const wrappedCallback = callback
591
604
  ? (error, response, rawResponse, _) => {
592
605
  this._log.info('deleteEngine response %j', rawResponse);
@@ -636,7 +649,9 @@ class EngineServiceClient {
636
649
  this._gaxModule.routingHeader.fromParams({
637
650
  parent: request.parent ?? '',
638
651
  });
639
- this.initialize();
652
+ this.initialize().catch(err => {
653
+ throw err;
654
+ });
640
655
  const wrappedCallback = callback
641
656
  ? (error, values, nextPageRequest, rawResponse) => {
642
657
  this._log.info('listEngines values %j', values);
@@ -687,7 +702,9 @@ class EngineServiceClient {
687
702
  });
688
703
  const defaultCallSettings = this._defaults['listEngines'];
689
704
  const callSettings = defaultCallSettings.merge(options);
690
- this.initialize();
705
+ this.initialize().catch(err => {
706
+ throw err;
707
+ });
691
708
  this._log.info('listEngines stream %j', request);
692
709
  return this.descriptors.page.listEngines.createStream(this.innerApiCalls.listEngines, request, callSettings);
693
710
  }
@@ -730,7 +747,9 @@ class EngineServiceClient {
730
747
  });
731
748
  const defaultCallSettings = this._defaults['listEngines'];
732
749
  const callSettings = defaultCallSettings.merge(options);
733
- this.initialize();
750
+ this.initialize().catch(err => {
751
+ throw err;
752
+ });
734
753
  this._log.info('listEngines iterate %j', request);
735
754
  return this.descriptors.page.listEngines.asyncIterate(this.innerApiCalls['listEngines'], request, callSettings);
736
755
  }
@@ -1662,6 +1681,75 @@ class EngineServiceClient {
1662
1681
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1663
1682
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1664
1683
  }
1684
+ /**
1685
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1686
+ *
1687
+ * @param {string} project
1688
+ * @param {string} location
1689
+ * @param {string} collection
1690
+ * @param {string} data_store
1691
+ * @param {string} serving_config
1692
+ * @returns {string} Resource name string.
1693
+ */
1694
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1695
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1696
+ project: project,
1697
+ location: location,
1698
+ collection: collection,
1699
+ data_store: dataStore,
1700
+ serving_config: servingConfig,
1701
+ });
1702
+ }
1703
+ /**
1704
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1705
+ *
1706
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1707
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1708
+ * @returns {string} A string representing the project.
1709
+ */
1710
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1711
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1712
+ }
1713
+ /**
1714
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1715
+ *
1716
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1717
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1718
+ * @returns {string} A string representing the location.
1719
+ */
1720
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1721
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1722
+ }
1723
+ /**
1724
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1725
+ *
1726
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1727
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1728
+ * @returns {string} A string representing the collection.
1729
+ */
1730
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1731
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1732
+ }
1733
+ /**
1734
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1735
+ *
1736
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1737
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1738
+ * @returns {string} A string representing the data_store.
1739
+ */
1740
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1741
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1742
+ }
1743
+ /**
1744
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1745
+ *
1746
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1747
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1748
+ * @returns {string} A string representing the serving_config.
1749
+ */
1750
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1751
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1752
+ }
1665
1753
  /**
1666
1754
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1667
1755
  *
@@ -1869,6 +1957,75 @@ class EngineServiceClient {
1869
1957
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1870
1958
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1871
1959
  }
1960
+ /**
1961
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1962
+ *
1963
+ * @param {string} project
1964
+ * @param {string} location
1965
+ * @param {string} collection
1966
+ * @param {string} data_store
1967
+ * @param {string} sitemap
1968
+ * @returns {string} Resource name string.
1969
+ */
1970
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1971
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1972
+ project: project,
1973
+ location: location,
1974
+ collection: collection,
1975
+ data_store: dataStore,
1976
+ sitemap: sitemap,
1977
+ });
1978
+ }
1979
+ /**
1980
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1981
+ *
1982
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1983
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1984
+ * @returns {string} A string representing the project.
1985
+ */
1986
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1987
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1988
+ }
1989
+ /**
1990
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1991
+ *
1992
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1993
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1994
+ * @returns {string} A string representing the location.
1995
+ */
1996
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1997
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1998
+ }
1999
+ /**
2000
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2001
+ *
2002
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2003
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2004
+ * @returns {string} A string representing the collection.
2005
+ */
2006
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2007
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
2008
+ }
2009
+ /**
2010
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2011
+ *
2012
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2013
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2014
+ * @returns {string} A string representing the data_store.
2015
+ */
2016
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2017
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
2018
+ }
2019
+ /**
2020
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
2021
+ *
2022
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
2023
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
2024
+ * @returns {string} A string representing the sitemap.
2025
+ */
2026
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
2027
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
2028
+ }
1872
2029
  /**
1873
2030
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1874
2031
  *
@@ -2076,6 +2233,75 @@ class EngineServiceClient {
2076
2233
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
2077
2234
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
2078
2235
  }
2236
+ /**
2237
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
2238
+ *
2239
+ * @param {string} project
2240
+ * @param {string} location
2241
+ * @param {string} collection
2242
+ * @param {string} engine
2243
+ * @param {string} serving_config
2244
+ * @returns {string} Resource name string.
2245
+ */
2246
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
2247
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
2248
+ project: project,
2249
+ location: location,
2250
+ collection: collection,
2251
+ engine: engine,
2252
+ serving_config: servingConfig,
2253
+ });
2254
+ }
2255
+ /**
2256
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
2257
+ *
2258
+ * @param {string} projectLocationCollectionEngineServingConfigName
2259
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2260
+ * @returns {string} A string representing the project.
2261
+ */
2262
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2263
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
2264
+ }
2265
+ /**
2266
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
2267
+ *
2268
+ * @param {string} projectLocationCollectionEngineServingConfigName
2269
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2270
+ * @returns {string} A string representing the location.
2271
+ */
2272
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2273
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
2274
+ }
2275
+ /**
2276
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
2277
+ *
2278
+ * @param {string} projectLocationCollectionEngineServingConfigName
2279
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2280
+ * @returns {string} A string representing the collection.
2281
+ */
2282
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2283
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
2284
+ }
2285
+ /**
2286
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
2287
+ *
2288
+ * @param {string} projectLocationCollectionEngineServingConfigName
2289
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2290
+ * @returns {string} A string representing the engine.
2291
+ */
2292
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2293
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
2294
+ }
2295
+ /**
2296
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
2297
+ *
2298
+ * @param {string} projectLocationCollectionEngineServingConfigName
2299
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
2300
+ * @returns {string} A string representing the serving_config.
2301
+ */
2302
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
2303
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2304
+ }
2079
2305
  /**
2080
2306
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2081
2307
  *
@@ -2694,6 +2920,63 @@ class EngineServiceClient {
2694
2920
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2695
2921
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2696
2922
  }
2923
+ /**
2924
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2925
+ *
2926
+ * @param {string} project
2927
+ * @param {string} location
2928
+ * @param {string} data_store
2929
+ * @param {string} serving_config
2930
+ * @returns {string} Resource name string.
2931
+ */
2932
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2933
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2934
+ project: project,
2935
+ location: location,
2936
+ data_store: dataStore,
2937
+ serving_config: servingConfig,
2938
+ });
2939
+ }
2940
+ /**
2941
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2942
+ *
2943
+ * @param {string} projectLocationDataStoreServingConfigName
2944
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2945
+ * @returns {string} A string representing the project.
2946
+ */
2947
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2948
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2949
+ }
2950
+ /**
2951
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2952
+ *
2953
+ * @param {string} projectLocationDataStoreServingConfigName
2954
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2955
+ * @returns {string} A string representing the location.
2956
+ */
2957
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2958
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2959
+ }
2960
+ /**
2961
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2962
+ *
2963
+ * @param {string} projectLocationDataStoreServingConfigName
2964
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2965
+ * @returns {string} A string representing the data_store.
2966
+ */
2967
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2968
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2969
+ }
2970
+ /**
2971
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2972
+ *
2973
+ * @param {string} projectLocationDataStoreServingConfigName
2974
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2975
+ * @returns {string} A string representing the serving_config.
2976
+ */
2977
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2978
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2979
+ }
2697
2980
  /**
2698
2981
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2699
2982
  *
@@ -2865,6 +3148,63 @@ class EngineServiceClient {
2865
3148
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2866
3149
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2867
3150
  }
3151
+ /**
3152
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
3153
+ *
3154
+ * @param {string} project
3155
+ * @param {string} location
3156
+ * @param {string} data_store
3157
+ * @param {string} sitemap
3158
+ * @returns {string} Resource name string.
3159
+ */
3160
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
3161
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
3162
+ project: project,
3163
+ location: location,
3164
+ data_store: dataStore,
3165
+ sitemap: sitemap,
3166
+ });
3167
+ }
3168
+ /**
3169
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3170
+ *
3171
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3172
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3173
+ * @returns {string} A string representing the project.
3174
+ */
3175
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3176
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
3177
+ }
3178
+ /**
3179
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3180
+ *
3181
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3182
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3183
+ * @returns {string} A string representing the location.
3184
+ */
3185
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3186
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
3187
+ }
3188
+ /**
3189
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3190
+ *
3191
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3192
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3193
+ * @returns {string} A string representing the data_store.
3194
+ */
3195
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3196
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
3197
+ }
3198
+ /**
3199
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
3200
+ *
3201
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
3202
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
3203
+ * @returns {string} A string representing the sitemap.
3204
+ */
3205
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
3206
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
3207
+ }
2868
3208
  /**
2869
3209
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2870
3210
  *
@@ -24,10 +24,13 @@
24
24
  "../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
25
25
  "../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
26
26
  "../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
27
+ "../../protos/google/cloud/discoveryengine/v1/safety.proto",
27
28
  "../../protos/google/cloud/discoveryengine/v1/schema.proto",
28
29
  "../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
29
30
  "../../protos/google/cloud/discoveryengine/v1/search_service.proto",
30
31
  "../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
32
+ "../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
33
+ "../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
31
34
  "../../protos/google/cloud/discoveryengine/v1/session.proto",
32
35
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
33
36
  "../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
@@ -197,6 +197,11 @@
197
197
  "getSession"
198
198
  ]
199
199
  },
200
+ "StreamAnswerQuery": {
201
+ "methods": [
202
+ "streamAnswerQuery"
203
+ ]
204
+ },
200
205
  "ListConversations": {
201
206
  "methods": [
202
207
  "listConversations",
@@ -778,6 +783,30 @@
778
783
  }
779
784
  }
780
785
  },
786
+ "ServingConfigService": {
787
+ "clients": {
788
+ "grpc": {
789
+ "libraryClient": "ServingConfigServiceClient",
790
+ "rpcs": {
791
+ "UpdateServingConfig": {
792
+ "methods": [
793
+ "updateServingConfig"
794
+ ]
795
+ }
796
+ }
797
+ },
798
+ "grpc-fallback": {
799
+ "libraryClient": "ServingConfigServiceClient",
800
+ "rpcs": {
801
+ "UpdateServingConfig": {
802
+ "methods": [
803
+ "updateServingConfig"
804
+ ]
805
+ }
806
+ }
807
+ }
808
+ }
809
+ },
781
810
  "SiteSearchEngineService": {
782
811
  "clients": {
783
812
  "grpc": {
@@ -793,6 +822,11 @@
793
822
  "getTargetSite"
794
823
  ]
795
824
  },
825
+ "FetchSitemaps": {
826
+ "methods": [
827
+ "fetchSitemaps"
828
+ ]
829
+ },
796
830
  "CreateTargetSite": {
797
831
  "methods": [
798
832
  "createTargetSite"
@@ -813,6 +847,16 @@
813
847
  "deleteTargetSite"
814
848
  ]
815
849
  },
850
+ "CreateSitemap": {
851
+ "methods": [
852
+ "createSitemap"
853
+ ]
854
+ },
855
+ "DeleteSitemap": {
856
+ "methods": [
857
+ "deleteSitemap"
858
+ ]
859
+ },
816
860
  "EnableAdvancedSiteSearch": {
817
861
  "methods": [
818
862
  "enableAdvancedSiteSearch"
@@ -862,6 +906,11 @@
862
906
  "getTargetSite"
863
907
  ]
864
908
  },
909
+ "FetchSitemaps": {
910
+ "methods": [
911
+ "fetchSitemaps"
912
+ ]
913
+ },
865
914
  "CreateTargetSite": {
866
915
  "methods": [
867
916
  "createTargetSite"
@@ -882,6 +931,16 @@
882
931
  "deleteTargetSite"
883
932
  ]
884
933
  },
934
+ "CreateSitemap": {
935
+ "methods": [
936
+ "createSitemap"
937
+ ]
938
+ },
939
+ "DeleteSitemap": {
940
+ "methods": [
941
+ "deleteSitemap"
942
+ ]
943
+ },
885
944
  "EnableAdvancedSiteSearch": {
886
945
  "methods": [
887
946
  "enableAdvancedSiteSearch"