@google-cloud/discoveryengine 2.0.1 → 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 (85) hide show
  1. package/CHANGELOG.md +7 -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 +237 -0
  32. package/build/src/v1/completion_service_client.js +326 -0
  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 +326 -0
  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 +265 -5
  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 +237 -0
  42. package/build/src/v1/data_store_service_client.js +326 -0
  43. package/build/src/v1/data_store_service_proto_list.json +3 -0
  44. package/build/src/v1/document_service_client.d.ts +244 -1
  45. package/build/src/v1/document_service_client.js +326 -0
  46. package/build/src/v1/document_service_proto_list.json +3 -0
  47. package/build/src/v1/engine_service_client.d.ts +237 -0
  48. package/build/src/v1/engine_service_client.js +326 -0
  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 +326 -0
  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 +237 -0
  57. package/build/src/v1/project_service_client.js +326 -0
  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 +326 -0
  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 +128 -0
  64. package/build/src/v1/recommendation_service_proto_list.json +3 -0
  65. package/build/src/v1/schema_service_client.d.ts +237 -0
  66. package/build/src/v1/schema_service_client.js +326 -0
  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 +212 -20
  70. package/build/src/v1/search_service_proto_list.json +3 -0
  71. package/build/src/v1/search_tuning_service_client.d.ts +237 -0
  72. package/build/src/v1/search_tuning_service_client.js +326 -0
  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 +356 -3
  79. package/build/src/v1/site_search_engine_service_client.js +473 -0
  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 +258 -9
  83. package/build/src/v1/user_event_service_client.js +326 -0
  84. package/build/src/v1/user_event_service_proto_list.json +3 -0
  85. package/package.json +4 -4
@@ -182,12 +182,15 @@ class GroundedGenerationServiceClient {
182
182
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
183
183
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
184
184
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
185
+ projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
185
186
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
186
187
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
187
188
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
189
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
188
190
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
189
191
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
190
192
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
193
+ projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
191
194
  projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
192
195
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
193
196
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
@@ -198,9 +201,11 @@ class GroundedGenerationServiceClient {
198
201
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
199
202
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
200
203
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
204
+ projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
201
205
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
202
206
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
203
207
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
208
+ projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
204
209
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
205
210
  };
206
211
  // Some of the methods on this service provide streaming responses.
@@ -1197,6 +1202,75 @@ class GroundedGenerationServiceClient {
1197
1202
  matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
1198
1203
  return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
1199
1204
  }
1205
+ /**
1206
+ * Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
1207
+ *
1208
+ * @param {string} project
1209
+ * @param {string} location
1210
+ * @param {string} collection
1211
+ * @param {string} data_store
1212
+ * @param {string} serving_config
1213
+ * @returns {string} Resource name string.
1214
+ */
1215
+ projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
1216
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
1217
+ project: project,
1218
+ location: location,
1219
+ collection: collection,
1220
+ data_store: dataStore,
1221
+ serving_config: servingConfig,
1222
+ });
1223
+ }
1224
+ /**
1225
+ * Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
1226
+ *
1227
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1228
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1229
+ * @returns {string} A string representing the project.
1230
+ */
1231
+ matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1232
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
1233
+ }
1234
+ /**
1235
+ * Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
1236
+ *
1237
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1238
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1239
+ * @returns {string} A string representing the location.
1240
+ */
1241
+ matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1242
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
1243
+ }
1244
+ /**
1245
+ * Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
1246
+ *
1247
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1248
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1249
+ * @returns {string} A string representing the collection.
1250
+ */
1251
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1252
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1253
+ }
1254
+ /**
1255
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1256
+ *
1257
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1258
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1259
+ * @returns {string} A string representing the data_store.
1260
+ */
1261
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1262
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1263
+ }
1264
+ /**
1265
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1266
+ *
1267
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1268
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1269
+ * @returns {string} A string representing the serving_config.
1270
+ */
1271
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1272
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1273
+ }
1200
1274
  /**
1201
1275
  * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1202
1276
  *
@@ -1404,6 +1478,75 @@ class GroundedGenerationServiceClient {
1404
1478
  matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
1405
1479
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
1406
1480
  }
1481
+ /**
1482
+ * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
1483
+ *
1484
+ * @param {string} project
1485
+ * @param {string} location
1486
+ * @param {string} collection
1487
+ * @param {string} data_store
1488
+ * @param {string} sitemap
1489
+ * @returns {string} Resource name string.
1490
+ */
1491
+ projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
1492
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
1493
+ project: project,
1494
+ location: location,
1495
+ collection: collection,
1496
+ data_store: dataStore,
1497
+ sitemap: sitemap,
1498
+ });
1499
+ }
1500
+ /**
1501
+ * Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1502
+ *
1503
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1504
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1505
+ * @returns {string} A string representing the project.
1506
+ */
1507
+ matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1508
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
1509
+ }
1510
+ /**
1511
+ * Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1512
+ *
1513
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1514
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1515
+ * @returns {string} A string representing the location.
1516
+ */
1517
+ matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1518
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
1519
+ }
1520
+ /**
1521
+ * Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1522
+ *
1523
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1524
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1525
+ * @returns {string} A string representing the collection.
1526
+ */
1527
+ matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1528
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
1529
+ }
1530
+ /**
1531
+ * Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1532
+ *
1533
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1534
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1535
+ * @returns {string} A string representing the data_store.
1536
+ */
1537
+ matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1538
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
1539
+ }
1540
+ /**
1541
+ * Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
1542
+ *
1543
+ * @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
1544
+ * A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
1545
+ * @returns {string} A string representing the sitemap.
1546
+ */
1547
+ matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
1548
+ return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
1549
+ }
1407
1550
  /**
1408
1551
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
1409
1552
  *
@@ -1611,6 +1754,75 @@ class GroundedGenerationServiceClient {
1611
1754
  matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
1612
1755
  return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
1613
1756
  }
1757
+ /**
1758
+ * Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
1759
+ *
1760
+ * @param {string} project
1761
+ * @param {string} location
1762
+ * @param {string} collection
1763
+ * @param {string} engine
1764
+ * @param {string} serving_config
1765
+ * @returns {string} Resource name string.
1766
+ */
1767
+ projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
1768
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
1769
+ project: project,
1770
+ location: location,
1771
+ collection: collection,
1772
+ engine: engine,
1773
+ serving_config: servingConfig,
1774
+ });
1775
+ }
1776
+ /**
1777
+ * Parse the project from ProjectLocationCollectionEngineServingConfig resource.
1778
+ *
1779
+ * @param {string} projectLocationCollectionEngineServingConfigName
1780
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1781
+ * @returns {string} A string representing the project.
1782
+ */
1783
+ matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1784
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
1785
+ }
1786
+ /**
1787
+ * Parse the location from ProjectLocationCollectionEngineServingConfig resource.
1788
+ *
1789
+ * @param {string} projectLocationCollectionEngineServingConfigName
1790
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1791
+ * @returns {string} A string representing the location.
1792
+ */
1793
+ matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1794
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
1795
+ }
1796
+ /**
1797
+ * Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
1798
+ *
1799
+ * @param {string} projectLocationCollectionEngineServingConfigName
1800
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1801
+ * @returns {string} A string representing the collection.
1802
+ */
1803
+ matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1804
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
1805
+ }
1806
+ /**
1807
+ * Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
1808
+ *
1809
+ * @param {string} projectLocationCollectionEngineServingConfigName
1810
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1811
+ * @returns {string} A string representing the engine.
1812
+ */
1813
+ matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1814
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
1815
+ }
1816
+ /**
1817
+ * Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
1818
+ *
1819
+ * @param {string} projectLocationCollectionEngineServingConfigName
1820
+ * A fully-qualified path representing project_location_collection_engine_serving_config resource.
1821
+ * @returns {string} A string representing the serving_config.
1822
+ */
1823
+ matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1824
+ return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1825
+ }
1614
1826
  /**
1615
1827
  * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1616
1828
  *
@@ -2229,6 +2441,63 @@ class GroundedGenerationServiceClient {
2229
2441
  matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
2230
2442
  return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
2231
2443
  }
2444
+ /**
2445
+ * Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
2446
+ *
2447
+ * @param {string} project
2448
+ * @param {string} location
2449
+ * @param {string} data_store
2450
+ * @param {string} serving_config
2451
+ * @returns {string} Resource name string.
2452
+ */
2453
+ projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
2454
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
2455
+ project: project,
2456
+ location: location,
2457
+ data_store: dataStore,
2458
+ serving_config: servingConfig,
2459
+ });
2460
+ }
2461
+ /**
2462
+ * Parse the project from ProjectLocationDataStoreServingConfig resource.
2463
+ *
2464
+ * @param {string} projectLocationDataStoreServingConfigName
2465
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2466
+ * @returns {string} A string representing the project.
2467
+ */
2468
+ matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2469
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
2470
+ }
2471
+ /**
2472
+ * Parse the location from ProjectLocationDataStoreServingConfig resource.
2473
+ *
2474
+ * @param {string} projectLocationDataStoreServingConfigName
2475
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2476
+ * @returns {string} A string representing the location.
2477
+ */
2478
+ matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2479
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
2480
+ }
2481
+ /**
2482
+ * Parse the data_store from ProjectLocationDataStoreServingConfig resource.
2483
+ *
2484
+ * @param {string} projectLocationDataStoreServingConfigName
2485
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2486
+ * @returns {string} A string representing the data_store.
2487
+ */
2488
+ matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2489
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
2490
+ }
2491
+ /**
2492
+ * Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
2493
+ *
2494
+ * @param {string} projectLocationDataStoreServingConfigName
2495
+ * A fully-qualified path representing project_location_data_store_serving_config resource.
2496
+ * @returns {string} A string representing the serving_config.
2497
+ */
2498
+ matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2499
+ return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2500
+ }
2232
2501
  /**
2233
2502
  * Return a fully-qualified projectLocationDataStoreSession resource name string.
2234
2503
  *
@@ -2400,6 +2669,63 @@ class GroundedGenerationServiceClient {
2400
2669
  matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
2401
2670
  return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
2402
2671
  }
2672
+ /**
2673
+ * Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
2674
+ *
2675
+ * @param {string} project
2676
+ * @param {string} location
2677
+ * @param {string} data_store
2678
+ * @param {string} sitemap
2679
+ * @returns {string} Resource name string.
2680
+ */
2681
+ projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
2682
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
2683
+ project: project,
2684
+ location: location,
2685
+ data_store: dataStore,
2686
+ sitemap: sitemap,
2687
+ });
2688
+ }
2689
+ /**
2690
+ * Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2691
+ *
2692
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2693
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2694
+ * @returns {string} A string representing the project.
2695
+ */
2696
+ matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2697
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
2698
+ }
2699
+ /**
2700
+ * Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2701
+ *
2702
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2703
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2704
+ * @returns {string} A string representing the location.
2705
+ */
2706
+ matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2707
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
2708
+ }
2709
+ /**
2710
+ * Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2711
+ *
2712
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2713
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2714
+ * @returns {string} A string representing the data_store.
2715
+ */
2716
+ matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2717
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
2718
+ }
2719
+ /**
2720
+ * Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
2721
+ *
2722
+ * @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
2723
+ * A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
2724
+ * @returns {string} A string representing the sitemap.
2725
+ */
2726
+ matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
2727
+ return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
2728
+ }
2403
2729
  /**
2404
2730
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
2405
2731
  *
@@ -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",
@@ -11,5 +11,6 @@ export { RecommendationServiceClient } from './recommendation_service_client';
11
11
  export { SchemaServiceClient } from './schema_service_client';
12
12
  export { SearchServiceClient } from './search_service_client';
13
13
  export { SearchTuningServiceClient } from './search_tuning_service_client';
14
+ export { ServingConfigServiceClient } from './serving_config_service_client';
14
15
  export { SiteSearchEngineServiceClient } from './site_search_engine_service_client';
15
16
  export { UserEventServiceClient } from './user_event_service_client';
@@ -17,7 +17,7 @@
17
17
  // ** https://github.com/googleapis/gapic-generator-typescript **
18
18
  // ** All changes to this file may be overwritten. **
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
20
+ exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
21
21
  var completion_service_client_1 = require("./completion_service_client");
22
22
  Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
23
23
  var control_service_client_1 = require("./control_service_client");
@@ -44,6 +44,8 @@ var search_service_client_1 = require("./search_service_client");
44
44
  Object.defineProperty(exports, "SearchServiceClient", { enumerable: true, get: function () { return search_service_client_1.SearchServiceClient; } });
45
45
  var search_tuning_service_client_1 = require("./search_tuning_service_client");
46
46
  Object.defineProperty(exports, "SearchTuningServiceClient", { enumerable: true, get: function () { return search_tuning_service_client_1.SearchTuningServiceClient; } });
47
+ var serving_config_service_client_1 = require("./serving_config_service_client");
48
+ Object.defineProperty(exports, "ServingConfigServiceClient", { enumerable: true, get: function () { return serving_config_service_client_1.ServingConfigServiceClient; } });
47
49
  var site_search_engine_service_client_1 = require("./site_search_engine_service_client");
48
50
  Object.defineProperty(exports, "SiteSearchEngineServiceClient", { enumerable: true, get: function () { return site_search_engine_service_client_1.SiteSearchEngineServiceClient; } });
49
51
  var user_event_service_client_1 = require("./user_event_service_client");