@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.
- package/CHANGELOG.md +7 -0
- package/README.md +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
- package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
- package/build/protos/protos.d.ts +5356 -981
- package/build/protos/protos.js +32266 -20956
- package/build/protos/protos.json +1391 -74
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/completion_service_client.d.ts +237 -0
- package/build/src/v1/completion_service_client.js +326 -0
- package/build/src/v1/completion_service_proto_list.json +3 -0
- package/build/src/v1/control_service_client.d.ts +237 -0
- package/build/src/v1/control_service_client.js +326 -0
- package/build/src/v1/control_service_proto_list.json +3 -0
- package/build/src/v1/conversational_search_service_client.d.ts +213 -6
- package/build/src/v1/conversational_search_service_client.js +265 -5
- package/build/src/v1/conversational_search_service_client_config.json +5 -0
- package/build/src/v1/conversational_search_service_proto_list.json +3 -0
- package/build/src/v1/data_store_service_client.d.ts +237 -0
- package/build/src/v1/data_store_service_client.js +326 -0
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +244 -1
- package/build/src/v1/document_service_client.js +326 -0
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +237 -0
- package/build/src/v1/engine_service_client.js +326 -0
- package/build/src/v1/engine_service_proto_list.json +3 -0
- package/build/src/v1/gapic_metadata.json +59 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +238 -3
- package/build/src/v1/grounded_generation_service_client.js +326 -0
- package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +237 -0
- package/build/src/v1/project_service_client.js +326 -0
- package/build/src/v1/project_service_proto_list.json +3 -0
- package/build/src/v1/rank_service_client.d.ts +238 -1
- package/build/src/v1/rank_service_client.js +326 -0
- package/build/src/v1/rank_service_proto_list.json +3 -0
- package/build/src/v1/recommendation_service_client.d.ts +95 -2
- package/build/src/v1/recommendation_service_client.js +128 -0
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +237 -0
- package/build/src/v1/schema_service_client.js +326 -0
- package/build/src/v1/schema_service_proto_list.json +3 -0
- package/build/src/v1/search_service_client.d.ts +219 -30
- package/build/src/v1/search_service_client.js +212 -20
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1/search_tuning_service_client.js +326 -0
- package/build/src/v1/search_tuning_service_proto_list.json +3 -0
- package/build/src/v1/serving_config_service_client.d.ts +1851 -0
- package/build/src/v1/serving_config_service_client.js +2653 -0
- package/build/src/v1/serving_config_service_client_config.json +30 -0
- package/build/src/v1/serving_config_service_proto_list.json +39 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +356 -3
- package/build/src/v1/site_search_engine_service_client.js +473 -0
- package/build/src/v1/site_search_engine_service_client_config.json +12 -0
- package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
- package/build/src/v1/user_event_service_client.d.ts +258 -9
- package/build/src/v1/user_event_service_client.js +326 -0
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/package.json +4 -4
@@ -179,12 +179,15 @@ class SearchTuningServiceClient {
|
|
179
179
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
180
180
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
181
181
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
182
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
182
183
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
183
184
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
184
185
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
186
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
185
187
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
188
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
187
189
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
190
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
188
191
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
189
192
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
190
193
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -195,9 +198,11 @@ class SearchTuningServiceClient {
|
|
195
198
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
196
199
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
197
200
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
201
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
198
202
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
199
203
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
200
204
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
205
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
201
206
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
202
207
|
};
|
203
208
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
@@ -1406,6 +1411,75 @@ class SearchTuningServiceClient {
|
|
1406
1411
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1407
1412
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1408
1413
|
}
|
1414
|
+
/**
|
1415
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1416
|
+
*
|
1417
|
+
* @param {string} project
|
1418
|
+
* @param {string} location
|
1419
|
+
* @param {string} collection
|
1420
|
+
* @param {string} data_store
|
1421
|
+
* @param {string} serving_config
|
1422
|
+
* @returns {string} Resource name string.
|
1423
|
+
*/
|
1424
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1425
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1426
|
+
project: project,
|
1427
|
+
location: location,
|
1428
|
+
collection: collection,
|
1429
|
+
data_store: dataStore,
|
1430
|
+
serving_config: servingConfig,
|
1431
|
+
});
|
1432
|
+
}
|
1433
|
+
/**
|
1434
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1435
|
+
*
|
1436
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1437
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1438
|
+
* @returns {string} A string representing the project.
|
1439
|
+
*/
|
1440
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1441
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1442
|
+
}
|
1443
|
+
/**
|
1444
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1445
|
+
*
|
1446
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1447
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1448
|
+
* @returns {string} A string representing the location.
|
1449
|
+
*/
|
1450
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1451
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1452
|
+
}
|
1453
|
+
/**
|
1454
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1455
|
+
*
|
1456
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1457
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1458
|
+
* @returns {string} A string representing the collection.
|
1459
|
+
*/
|
1460
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1461
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1462
|
+
}
|
1463
|
+
/**
|
1464
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1465
|
+
*
|
1466
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1467
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1468
|
+
* @returns {string} A string representing the data_store.
|
1469
|
+
*/
|
1470
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1471
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1472
|
+
}
|
1473
|
+
/**
|
1474
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1475
|
+
*
|
1476
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1477
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1478
|
+
* @returns {string} A string representing the serving_config.
|
1479
|
+
*/
|
1480
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1481
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1482
|
+
}
|
1409
1483
|
/**
|
1410
1484
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1411
1485
|
*
|
@@ -1613,6 +1687,75 @@ class SearchTuningServiceClient {
|
|
1613
1687
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1614
1688
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1615
1689
|
}
|
1690
|
+
/**
|
1691
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1692
|
+
*
|
1693
|
+
* @param {string} project
|
1694
|
+
* @param {string} location
|
1695
|
+
* @param {string} collection
|
1696
|
+
* @param {string} data_store
|
1697
|
+
* @param {string} sitemap
|
1698
|
+
* @returns {string} Resource name string.
|
1699
|
+
*/
|
1700
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1701
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1702
|
+
project: project,
|
1703
|
+
location: location,
|
1704
|
+
collection: collection,
|
1705
|
+
data_store: dataStore,
|
1706
|
+
sitemap: sitemap,
|
1707
|
+
});
|
1708
|
+
}
|
1709
|
+
/**
|
1710
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1711
|
+
*
|
1712
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1713
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1714
|
+
* @returns {string} A string representing the project.
|
1715
|
+
*/
|
1716
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1717
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1718
|
+
}
|
1719
|
+
/**
|
1720
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1721
|
+
*
|
1722
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1723
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1724
|
+
* @returns {string} A string representing the location.
|
1725
|
+
*/
|
1726
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1727
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1728
|
+
}
|
1729
|
+
/**
|
1730
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1731
|
+
*
|
1732
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1733
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1734
|
+
* @returns {string} A string representing the collection.
|
1735
|
+
*/
|
1736
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1737
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1738
|
+
}
|
1739
|
+
/**
|
1740
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1741
|
+
*
|
1742
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1743
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1744
|
+
* @returns {string} A string representing the data_store.
|
1745
|
+
*/
|
1746
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1747
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1748
|
+
}
|
1749
|
+
/**
|
1750
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1751
|
+
*
|
1752
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1753
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1754
|
+
* @returns {string} A string representing the sitemap.
|
1755
|
+
*/
|
1756
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1757
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1758
|
+
}
|
1616
1759
|
/**
|
1617
1760
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1618
1761
|
*
|
@@ -1820,6 +1963,75 @@ class SearchTuningServiceClient {
|
|
1820
1963
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1821
1964
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1822
1965
|
}
|
1966
|
+
/**
|
1967
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1968
|
+
*
|
1969
|
+
* @param {string} project
|
1970
|
+
* @param {string} location
|
1971
|
+
* @param {string} collection
|
1972
|
+
* @param {string} engine
|
1973
|
+
* @param {string} serving_config
|
1974
|
+
* @returns {string} Resource name string.
|
1975
|
+
*/
|
1976
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1977
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1978
|
+
project: project,
|
1979
|
+
location: location,
|
1980
|
+
collection: collection,
|
1981
|
+
engine: engine,
|
1982
|
+
serving_config: servingConfig,
|
1983
|
+
});
|
1984
|
+
}
|
1985
|
+
/**
|
1986
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1987
|
+
*
|
1988
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1989
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1990
|
+
* @returns {string} A string representing the project.
|
1991
|
+
*/
|
1992
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1993
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1994
|
+
}
|
1995
|
+
/**
|
1996
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1997
|
+
*
|
1998
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1999
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2000
|
+
* @returns {string} A string representing the location.
|
2001
|
+
*/
|
2002
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2003
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2004
|
+
}
|
2005
|
+
/**
|
2006
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2007
|
+
*
|
2008
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2009
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2010
|
+
* @returns {string} A string representing the collection.
|
2011
|
+
*/
|
2012
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2013
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2014
|
+
}
|
2015
|
+
/**
|
2016
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2017
|
+
*
|
2018
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2019
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2020
|
+
* @returns {string} A string representing the engine.
|
2021
|
+
*/
|
2022
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2023
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2024
|
+
}
|
2025
|
+
/**
|
2026
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2027
|
+
*
|
2028
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2029
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2030
|
+
* @returns {string} A string representing the serving_config.
|
2031
|
+
*/
|
2032
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2033
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2034
|
+
}
|
1823
2035
|
/**
|
1824
2036
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1825
2037
|
*
|
@@ -2438,6 +2650,63 @@ class SearchTuningServiceClient {
|
|
2438
2650
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2439
2651
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2440
2652
|
}
|
2653
|
+
/**
|
2654
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2655
|
+
*
|
2656
|
+
* @param {string} project
|
2657
|
+
* @param {string} location
|
2658
|
+
* @param {string} data_store
|
2659
|
+
* @param {string} serving_config
|
2660
|
+
* @returns {string} Resource name string.
|
2661
|
+
*/
|
2662
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2663
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2664
|
+
project: project,
|
2665
|
+
location: location,
|
2666
|
+
data_store: dataStore,
|
2667
|
+
serving_config: servingConfig,
|
2668
|
+
});
|
2669
|
+
}
|
2670
|
+
/**
|
2671
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2672
|
+
*
|
2673
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2674
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2675
|
+
* @returns {string} A string representing the project.
|
2676
|
+
*/
|
2677
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2678
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2679
|
+
}
|
2680
|
+
/**
|
2681
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2682
|
+
*
|
2683
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2684
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2685
|
+
* @returns {string} A string representing the location.
|
2686
|
+
*/
|
2687
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2688
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2689
|
+
}
|
2690
|
+
/**
|
2691
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2692
|
+
*
|
2693
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2694
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2695
|
+
* @returns {string} A string representing the data_store.
|
2696
|
+
*/
|
2697
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2698
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2699
|
+
}
|
2700
|
+
/**
|
2701
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2702
|
+
*
|
2703
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2704
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2705
|
+
* @returns {string} A string representing the serving_config.
|
2706
|
+
*/
|
2707
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2708
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2709
|
+
}
|
2441
2710
|
/**
|
2442
2711
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2443
2712
|
*
|
@@ -2609,6 +2878,63 @@ class SearchTuningServiceClient {
|
|
2609
2878
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2610
2879
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2611
2880
|
}
|
2881
|
+
/**
|
2882
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2883
|
+
*
|
2884
|
+
* @param {string} project
|
2885
|
+
* @param {string} location
|
2886
|
+
* @param {string} data_store
|
2887
|
+
* @param {string} sitemap
|
2888
|
+
* @returns {string} Resource name string.
|
2889
|
+
*/
|
2890
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2891
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2892
|
+
project: project,
|
2893
|
+
location: location,
|
2894
|
+
data_store: dataStore,
|
2895
|
+
sitemap: sitemap,
|
2896
|
+
});
|
2897
|
+
}
|
2898
|
+
/**
|
2899
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2900
|
+
*
|
2901
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2902
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2903
|
+
* @returns {string} A string representing the project.
|
2904
|
+
*/
|
2905
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2906
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2907
|
+
}
|
2908
|
+
/**
|
2909
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2910
|
+
*
|
2911
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2912
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2913
|
+
* @returns {string} A string representing the location.
|
2914
|
+
*/
|
2915
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2916
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2917
|
+
}
|
2918
|
+
/**
|
2919
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2920
|
+
*
|
2921
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2922
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2923
|
+
* @returns {string} A string representing the data_store.
|
2924
|
+
*/
|
2925
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2926
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2927
|
+
}
|
2928
|
+
/**
|
2929
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2930
|
+
*
|
2931
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2932
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2933
|
+
* @returns {string} A string representing the sitemap.
|
2934
|
+
*/
|
2935
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2936
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2937
|
+
}
|
2612
2938
|
/**
|
2613
2939
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2614
2940
|
*
|
@@ -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",
|