@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
@@ -178,12 +178,15 @@ class RankServiceClient {
|
|
178
178
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
179
179
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
180
180
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
181
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
181
182
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
182
183
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
183
184
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
185
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
184
186
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
185
187
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
186
188
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
189
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
187
190
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
191
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
189
192
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -194,9 +197,11 @@ class RankServiceClient {
|
|
194
197
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
195
198
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
196
199
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
200
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
197
201
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
198
202
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
199
203
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
204
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
200
205
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
201
206
|
rankingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/rankingConfigs/{ranking_config}'),
|
202
207
|
};
|
@@ -1044,6 +1049,75 @@ class RankServiceClient {
|
|
1044
1049
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1045
1050
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1046
1051
|
}
|
1052
|
+
/**
|
1053
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1054
|
+
*
|
1055
|
+
* @param {string} project
|
1056
|
+
* @param {string} location
|
1057
|
+
* @param {string} collection
|
1058
|
+
* @param {string} data_store
|
1059
|
+
* @param {string} serving_config
|
1060
|
+
* @returns {string} Resource name string.
|
1061
|
+
*/
|
1062
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1063
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1064
|
+
project: project,
|
1065
|
+
location: location,
|
1066
|
+
collection: collection,
|
1067
|
+
data_store: dataStore,
|
1068
|
+
serving_config: servingConfig,
|
1069
|
+
});
|
1070
|
+
}
|
1071
|
+
/**
|
1072
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1073
|
+
*
|
1074
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1075
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1076
|
+
* @returns {string} A string representing the project.
|
1077
|
+
*/
|
1078
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1079
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1080
|
+
}
|
1081
|
+
/**
|
1082
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1083
|
+
*
|
1084
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1085
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1086
|
+
* @returns {string} A string representing the location.
|
1087
|
+
*/
|
1088
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1089
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1090
|
+
}
|
1091
|
+
/**
|
1092
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1093
|
+
*
|
1094
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1095
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1096
|
+
* @returns {string} A string representing the collection.
|
1097
|
+
*/
|
1098
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1099
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1100
|
+
}
|
1101
|
+
/**
|
1102
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1103
|
+
*
|
1104
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1105
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1106
|
+
* @returns {string} A string representing the data_store.
|
1107
|
+
*/
|
1108
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1109
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1110
|
+
}
|
1111
|
+
/**
|
1112
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1113
|
+
*
|
1114
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1115
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1116
|
+
* @returns {string} A string representing the serving_config.
|
1117
|
+
*/
|
1118
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1119
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1120
|
+
}
|
1047
1121
|
/**
|
1048
1122
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1049
1123
|
*
|
@@ -1251,6 +1325,75 @@ class RankServiceClient {
|
|
1251
1325
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1252
1326
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1253
1327
|
}
|
1328
|
+
/**
|
1329
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1330
|
+
*
|
1331
|
+
* @param {string} project
|
1332
|
+
* @param {string} location
|
1333
|
+
* @param {string} collection
|
1334
|
+
* @param {string} data_store
|
1335
|
+
* @param {string} sitemap
|
1336
|
+
* @returns {string} Resource name string.
|
1337
|
+
*/
|
1338
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1339
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1340
|
+
project: project,
|
1341
|
+
location: location,
|
1342
|
+
collection: collection,
|
1343
|
+
data_store: dataStore,
|
1344
|
+
sitemap: sitemap,
|
1345
|
+
});
|
1346
|
+
}
|
1347
|
+
/**
|
1348
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1349
|
+
*
|
1350
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1351
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1352
|
+
* @returns {string} A string representing the project.
|
1353
|
+
*/
|
1354
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1355
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1356
|
+
}
|
1357
|
+
/**
|
1358
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1359
|
+
*
|
1360
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1361
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1362
|
+
* @returns {string} A string representing the location.
|
1363
|
+
*/
|
1364
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1365
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1366
|
+
}
|
1367
|
+
/**
|
1368
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1369
|
+
*
|
1370
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1371
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1372
|
+
* @returns {string} A string representing the collection.
|
1373
|
+
*/
|
1374
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1375
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1376
|
+
}
|
1377
|
+
/**
|
1378
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1379
|
+
*
|
1380
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1381
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1382
|
+
* @returns {string} A string representing the data_store.
|
1383
|
+
*/
|
1384
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1385
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1386
|
+
}
|
1387
|
+
/**
|
1388
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1389
|
+
*
|
1390
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1391
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1392
|
+
* @returns {string} A string representing the sitemap.
|
1393
|
+
*/
|
1394
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1395
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1396
|
+
}
|
1254
1397
|
/**
|
1255
1398
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1256
1399
|
*
|
@@ -1458,6 +1601,75 @@ class RankServiceClient {
|
|
1458
1601
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1459
1602
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1460
1603
|
}
|
1604
|
+
/**
|
1605
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1606
|
+
*
|
1607
|
+
* @param {string} project
|
1608
|
+
* @param {string} location
|
1609
|
+
* @param {string} collection
|
1610
|
+
* @param {string} engine
|
1611
|
+
* @param {string} serving_config
|
1612
|
+
* @returns {string} Resource name string.
|
1613
|
+
*/
|
1614
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1615
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1616
|
+
project: project,
|
1617
|
+
location: location,
|
1618
|
+
collection: collection,
|
1619
|
+
engine: engine,
|
1620
|
+
serving_config: servingConfig,
|
1621
|
+
});
|
1622
|
+
}
|
1623
|
+
/**
|
1624
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1625
|
+
*
|
1626
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1627
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1628
|
+
* @returns {string} A string representing the project.
|
1629
|
+
*/
|
1630
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1631
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1632
|
+
}
|
1633
|
+
/**
|
1634
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1635
|
+
*
|
1636
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1637
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1638
|
+
* @returns {string} A string representing the location.
|
1639
|
+
*/
|
1640
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1641
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1642
|
+
}
|
1643
|
+
/**
|
1644
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1645
|
+
*
|
1646
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1647
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1648
|
+
* @returns {string} A string representing the collection.
|
1649
|
+
*/
|
1650
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1651
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1652
|
+
}
|
1653
|
+
/**
|
1654
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1655
|
+
*
|
1656
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1657
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1658
|
+
* @returns {string} A string representing the engine.
|
1659
|
+
*/
|
1660
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1661
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1662
|
+
}
|
1663
|
+
/**
|
1664
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1665
|
+
*
|
1666
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1667
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1668
|
+
* @returns {string} A string representing the serving_config.
|
1669
|
+
*/
|
1670
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1671
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1672
|
+
}
|
1461
1673
|
/**
|
1462
1674
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1463
1675
|
*
|
@@ -2076,6 +2288,63 @@ class RankServiceClient {
|
|
2076
2288
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2077
2289
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2078
2290
|
}
|
2291
|
+
/**
|
2292
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2293
|
+
*
|
2294
|
+
* @param {string} project
|
2295
|
+
* @param {string} location
|
2296
|
+
* @param {string} data_store
|
2297
|
+
* @param {string} serving_config
|
2298
|
+
* @returns {string} Resource name string.
|
2299
|
+
*/
|
2300
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2301
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2302
|
+
project: project,
|
2303
|
+
location: location,
|
2304
|
+
data_store: dataStore,
|
2305
|
+
serving_config: servingConfig,
|
2306
|
+
});
|
2307
|
+
}
|
2308
|
+
/**
|
2309
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2310
|
+
*
|
2311
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2312
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2313
|
+
* @returns {string} A string representing the project.
|
2314
|
+
*/
|
2315
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2316
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2317
|
+
}
|
2318
|
+
/**
|
2319
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2320
|
+
*
|
2321
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2322
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2323
|
+
* @returns {string} A string representing the location.
|
2324
|
+
*/
|
2325
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2326
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2327
|
+
}
|
2328
|
+
/**
|
2329
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2330
|
+
*
|
2331
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2332
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2333
|
+
* @returns {string} A string representing the data_store.
|
2334
|
+
*/
|
2335
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2336
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2337
|
+
}
|
2338
|
+
/**
|
2339
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2340
|
+
*
|
2341
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2342
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2343
|
+
* @returns {string} A string representing the serving_config.
|
2344
|
+
*/
|
2345
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2346
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2347
|
+
}
|
2079
2348
|
/**
|
2080
2349
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2081
2350
|
*
|
@@ -2247,6 +2516,63 @@ class RankServiceClient {
|
|
2247
2516
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2248
2517
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2249
2518
|
}
|
2519
|
+
/**
|
2520
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2521
|
+
*
|
2522
|
+
* @param {string} project
|
2523
|
+
* @param {string} location
|
2524
|
+
* @param {string} data_store
|
2525
|
+
* @param {string} sitemap
|
2526
|
+
* @returns {string} Resource name string.
|
2527
|
+
*/
|
2528
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2529
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2530
|
+
project: project,
|
2531
|
+
location: location,
|
2532
|
+
data_store: dataStore,
|
2533
|
+
sitemap: sitemap,
|
2534
|
+
});
|
2535
|
+
}
|
2536
|
+
/**
|
2537
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2538
|
+
*
|
2539
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2540
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2541
|
+
* @returns {string} A string representing the project.
|
2542
|
+
*/
|
2543
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2544
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2545
|
+
}
|
2546
|
+
/**
|
2547
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2548
|
+
*
|
2549
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2550
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2551
|
+
* @returns {string} A string representing the location.
|
2552
|
+
*/
|
2553
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2554
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2555
|
+
}
|
2556
|
+
/**
|
2557
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2558
|
+
*
|
2559
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2560
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2561
|
+
* @returns {string} A string representing the data_store.
|
2562
|
+
*/
|
2563
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2564
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2565
|
+
}
|
2566
|
+
/**
|
2567
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2568
|
+
*
|
2569
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2570
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2571
|
+
* @returns {string} A string representing the sitemap.
|
2572
|
+
*/
|
2573
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2574
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2575
|
+
}
|
2250
2576
|
/**
|
2251
2577
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2252
2578
|
*
|
@@ -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",
|
@@ -171,9 +171,9 @@ export declare class RecommendationServiceClient {
|
|
171
171
|
* attribute-based expressions are expected instead of the above described
|
172
172
|
* tag-based syntax. Examples:
|
173
173
|
*
|
174
|
-
* * (
|
174
|
+
* * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie"))
|
175
175
|
* * (available: true) AND
|
176
|
-
* (
|
176
|
+
* (language: ANY("en", "es")) OR (categories: ANY("Movie"))
|
177
177
|
*
|
178
178
|
* If your filter blocks all results, the API returns generic
|
179
179
|
* (unfiltered) popular Documents. If you only want results strictly matching
|
@@ -981,6 +981,57 @@ export declare class RecommendationServiceClient {
|
|
981
981
|
* @returns {string} A string representing the data_store.
|
982
982
|
*/
|
983
983
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName: string): string | number;
|
984
|
+
/**
|
985
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
986
|
+
*
|
987
|
+
* @param {string} project
|
988
|
+
* @param {string} location
|
989
|
+
* @param {string} collection
|
990
|
+
* @param {string} data_store
|
991
|
+
* @param {string} sitemap
|
992
|
+
* @returns {string} Resource name string.
|
993
|
+
*/
|
994
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project: string, location: string, collection: string, dataStore: string, sitemap: string): string;
|
995
|
+
/**
|
996
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
997
|
+
*
|
998
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
999
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1000
|
+
* @returns {string} A string representing the project.
|
1001
|
+
*/
|
1002
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1003
|
+
/**
|
1004
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1005
|
+
*
|
1006
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1007
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1008
|
+
* @returns {string} A string representing the location.
|
1009
|
+
*/
|
1010
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1011
|
+
/**
|
1012
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1013
|
+
*
|
1014
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1015
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1016
|
+
* @returns {string} A string representing the collection.
|
1017
|
+
*/
|
1018
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1019
|
+
/**
|
1020
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1021
|
+
*
|
1022
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1023
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1024
|
+
* @returns {string} A string representing the data_store.
|
1025
|
+
*/
|
1026
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1027
|
+
/**
|
1028
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1029
|
+
*
|
1030
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1031
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1032
|
+
* @returns {string} A string representing the sitemap.
|
1033
|
+
*/
|
1034
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName: string): string | number;
|
984
1035
|
/**
|
985
1036
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
986
1037
|
*
|
@@ -1809,6 +1860,48 @@ export declare class RecommendationServiceClient {
|
|
1809
1860
|
* @returns {string} A string representing the data_store.
|
1810
1861
|
*/
|
1811
1862
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName: string): string | number;
|
1863
|
+
/**
|
1864
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
1865
|
+
*
|
1866
|
+
* @param {string} project
|
1867
|
+
* @param {string} location
|
1868
|
+
* @param {string} data_store
|
1869
|
+
* @param {string} sitemap
|
1870
|
+
* @returns {string} Resource name string.
|
1871
|
+
*/
|
1872
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project: string, location: string, dataStore: string, sitemap: string): string;
|
1873
|
+
/**
|
1874
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1875
|
+
*
|
1876
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1877
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1878
|
+
* @returns {string} A string representing the project.
|
1879
|
+
*/
|
1880
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1881
|
+
/**
|
1882
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1883
|
+
*
|
1884
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1885
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1886
|
+
* @returns {string} A string representing the location.
|
1887
|
+
*/
|
1888
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1889
|
+
/**
|
1890
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1891
|
+
*
|
1892
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1893
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1894
|
+
* @returns {string} A string representing the data_store.
|
1895
|
+
*/
|
1896
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1897
|
+
/**
|
1898
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
1899
|
+
*
|
1900
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
1901
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
1902
|
+
* @returns {string} A string representing the sitemap.
|
1903
|
+
*/
|
1904
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName: string): string | number;
|
1812
1905
|
/**
|
1813
1906
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1814
1907
|
*
|