@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 UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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);
|
@@ -1497,6 +1502,75 @@ class UserEventServiceClient {
|
|
1497
1502
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1498
1503
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1499
1504
|
}
|
1505
|
+
/**
|
1506
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1507
|
+
*
|
1508
|
+
* @param {string} project
|
1509
|
+
* @param {string} location
|
1510
|
+
* @param {string} collection
|
1511
|
+
* @param {string} data_store
|
1512
|
+
* @param {string} serving_config
|
1513
|
+
* @returns {string} Resource name string.
|
1514
|
+
*/
|
1515
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1516
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1517
|
+
project: project,
|
1518
|
+
location: location,
|
1519
|
+
collection: collection,
|
1520
|
+
data_store: dataStore,
|
1521
|
+
serving_config: servingConfig,
|
1522
|
+
});
|
1523
|
+
}
|
1524
|
+
/**
|
1525
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1526
|
+
*
|
1527
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1528
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1529
|
+
* @returns {string} A string representing the project.
|
1530
|
+
*/
|
1531
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1532
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1533
|
+
}
|
1534
|
+
/**
|
1535
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1536
|
+
*
|
1537
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1538
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1539
|
+
* @returns {string} A string representing the location.
|
1540
|
+
*/
|
1541
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1542
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1543
|
+
}
|
1544
|
+
/**
|
1545
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1546
|
+
*
|
1547
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1548
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1549
|
+
* @returns {string} A string representing the collection.
|
1550
|
+
*/
|
1551
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1552
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1553
|
+
}
|
1554
|
+
/**
|
1555
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1556
|
+
*
|
1557
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1558
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1559
|
+
* @returns {string} A string representing the data_store.
|
1560
|
+
*/
|
1561
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1562
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1563
|
+
}
|
1564
|
+
/**
|
1565
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1566
|
+
*
|
1567
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1568
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1569
|
+
* @returns {string} A string representing the serving_config.
|
1570
|
+
*/
|
1571
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1572
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1573
|
+
}
|
1500
1574
|
/**
|
1501
1575
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1502
1576
|
*
|
@@ -1704,6 +1778,75 @@ class UserEventServiceClient {
|
|
1704
1778
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1705
1779
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1706
1780
|
}
|
1781
|
+
/**
|
1782
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1783
|
+
*
|
1784
|
+
* @param {string} project
|
1785
|
+
* @param {string} location
|
1786
|
+
* @param {string} collection
|
1787
|
+
* @param {string} data_store
|
1788
|
+
* @param {string} sitemap
|
1789
|
+
* @returns {string} Resource name string.
|
1790
|
+
*/
|
1791
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1792
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1793
|
+
project: project,
|
1794
|
+
location: location,
|
1795
|
+
collection: collection,
|
1796
|
+
data_store: dataStore,
|
1797
|
+
sitemap: sitemap,
|
1798
|
+
});
|
1799
|
+
}
|
1800
|
+
/**
|
1801
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1802
|
+
*
|
1803
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1804
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1805
|
+
* @returns {string} A string representing the project.
|
1806
|
+
*/
|
1807
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1808
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1809
|
+
}
|
1810
|
+
/**
|
1811
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1812
|
+
*
|
1813
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1814
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1815
|
+
* @returns {string} A string representing the location.
|
1816
|
+
*/
|
1817
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1818
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1819
|
+
}
|
1820
|
+
/**
|
1821
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1822
|
+
*
|
1823
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1824
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1825
|
+
* @returns {string} A string representing the collection.
|
1826
|
+
*/
|
1827
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1828
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1829
|
+
}
|
1830
|
+
/**
|
1831
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1832
|
+
*
|
1833
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1834
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1835
|
+
* @returns {string} A string representing the data_store.
|
1836
|
+
*/
|
1837
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1838
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1839
|
+
}
|
1840
|
+
/**
|
1841
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1842
|
+
*
|
1843
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1844
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1845
|
+
* @returns {string} A string representing the sitemap.
|
1846
|
+
*/
|
1847
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1848
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1849
|
+
}
|
1707
1850
|
/**
|
1708
1851
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1709
1852
|
*
|
@@ -1911,6 +2054,75 @@ class UserEventServiceClient {
|
|
1911
2054
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1912
2055
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1913
2056
|
}
|
2057
|
+
/**
|
2058
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2059
|
+
*
|
2060
|
+
* @param {string} project
|
2061
|
+
* @param {string} location
|
2062
|
+
* @param {string} collection
|
2063
|
+
* @param {string} engine
|
2064
|
+
* @param {string} serving_config
|
2065
|
+
* @returns {string} Resource name string.
|
2066
|
+
*/
|
2067
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2068
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2069
|
+
project: project,
|
2070
|
+
location: location,
|
2071
|
+
collection: collection,
|
2072
|
+
engine: engine,
|
2073
|
+
serving_config: servingConfig,
|
2074
|
+
});
|
2075
|
+
}
|
2076
|
+
/**
|
2077
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2078
|
+
*
|
2079
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2080
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2081
|
+
* @returns {string} A string representing the project.
|
2082
|
+
*/
|
2083
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2084
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2085
|
+
}
|
2086
|
+
/**
|
2087
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2088
|
+
*
|
2089
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2090
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2091
|
+
* @returns {string} A string representing the location.
|
2092
|
+
*/
|
2093
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2094
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2095
|
+
}
|
2096
|
+
/**
|
2097
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2098
|
+
*
|
2099
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2100
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2101
|
+
* @returns {string} A string representing the collection.
|
2102
|
+
*/
|
2103
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2104
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2105
|
+
}
|
2106
|
+
/**
|
2107
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2108
|
+
*
|
2109
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2110
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2111
|
+
* @returns {string} A string representing the engine.
|
2112
|
+
*/
|
2113
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2114
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2115
|
+
}
|
2116
|
+
/**
|
2117
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2118
|
+
*
|
2119
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2120
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2121
|
+
* @returns {string} A string representing the serving_config.
|
2122
|
+
*/
|
2123
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2124
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2125
|
+
}
|
1914
2126
|
/**
|
1915
2127
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1916
2128
|
*
|
@@ -2529,6 +2741,63 @@ class UserEventServiceClient {
|
|
2529
2741
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2530
2742
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2531
2743
|
}
|
2744
|
+
/**
|
2745
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2746
|
+
*
|
2747
|
+
* @param {string} project
|
2748
|
+
* @param {string} location
|
2749
|
+
* @param {string} data_store
|
2750
|
+
* @param {string} serving_config
|
2751
|
+
* @returns {string} Resource name string.
|
2752
|
+
*/
|
2753
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2754
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2755
|
+
project: project,
|
2756
|
+
location: location,
|
2757
|
+
data_store: dataStore,
|
2758
|
+
serving_config: servingConfig,
|
2759
|
+
});
|
2760
|
+
}
|
2761
|
+
/**
|
2762
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2763
|
+
*
|
2764
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2765
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2766
|
+
* @returns {string} A string representing the project.
|
2767
|
+
*/
|
2768
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2769
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2770
|
+
}
|
2771
|
+
/**
|
2772
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2773
|
+
*
|
2774
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2775
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2776
|
+
* @returns {string} A string representing the location.
|
2777
|
+
*/
|
2778
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2779
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2780
|
+
}
|
2781
|
+
/**
|
2782
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2783
|
+
*
|
2784
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2785
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2786
|
+
* @returns {string} A string representing the data_store.
|
2787
|
+
*/
|
2788
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2789
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2790
|
+
}
|
2791
|
+
/**
|
2792
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2793
|
+
*
|
2794
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2795
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2796
|
+
* @returns {string} A string representing the serving_config.
|
2797
|
+
*/
|
2798
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2799
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2800
|
+
}
|
2532
2801
|
/**
|
2533
2802
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2534
2803
|
*
|
@@ -2700,6 +2969,63 @@ class UserEventServiceClient {
|
|
2700
2969
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2701
2970
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2702
2971
|
}
|
2972
|
+
/**
|
2973
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2974
|
+
*
|
2975
|
+
* @param {string} project
|
2976
|
+
* @param {string} location
|
2977
|
+
* @param {string} data_store
|
2978
|
+
* @param {string} sitemap
|
2979
|
+
* @returns {string} Resource name string.
|
2980
|
+
*/
|
2981
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2982
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2983
|
+
project: project,
|
2984
|
+
location: location,
|
2985
|
+
data_store: dataStore,
|
2986
|
+
sitemap: sitemap,
|
2987
|
+
});
|
2988
|
+
}
|
2989
|
+
/**
|
2990
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2991
|
+
*
|
2992
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2993
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2994
|
+
* @returns {string} A string representing the project.
|
2995
|
+
*/
|
2996
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2997
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2998
|
+
}
|
2999
|
+
/**
|
3000
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3001
|
+
*
|
3002
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3003
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3004
|
+
* @returns {string} A string representing the location.
|
3005
|
+
*/
|
3006
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3007
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3008
|
+
}
|
3009
|
+
/**
|
3010
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3011
|
+
*
|
3012
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3013
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3014
|
+
* @returns {string} A string representing the data_store.
|
3015
|
+
*/
|
3016
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3017
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3018
|
+
}
|
3019
|
+
/**
|
3020
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3021
|
+
*
|
3022
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3023
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3024
|
+
* @returns {string} A string representing the sitemap.
|
3025
|
+
*/
|
3026
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3027
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3028
|
+
}
|
2703
3029
|
/**
|
2704
3030
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2705
3031
|
*
|
@@ -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",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@google-cloud/discoveryengine",
|
3
|
-
"version": "2.0
|
3
|
+
"version": "2.1.0",
|
4
4
|
"description": "Discovery Engine API client for Node.js",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -41,9 +41,9 @@
|
|
41
41
|
"prepare": "npm run compile",
|
42
42
|
"prelint": "cd samples; npm link ../; npm i",
|
43
43
|
"postpack": "minifyProtoJson",
|
44
|
-
"samples-test": "
|
45
|
-
"system-test": "
|
46
|
-
"test": "
|
44
|
+
"samples-test": "echo 'removing sample tests because they take too long'",
|
45
|
+
"system-test": "echo 'removing system tests because they take too long'",
|
46
|
+
"test": "echo 'removing unit tests because they take too long'"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
49
|
"google-gax": "^5.0.1-rc.0"
|