@google-cloud/discoveryengine 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -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 +238 -1
- package/build/src/v1/completion_service_client.js +341 -5
- 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 +347 -7
- 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 +316 -22
- 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 +238 -1
- package/build/src/v1/data_store_service_client.js +347 -7
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +245 -2
- package/build/src/v1/document_service_client.js +356 -10
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +238 -1
- package/build/src/v1/engine_service_client.js +347 -7
- 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 +335 -3
- 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 +238 -1
- package/build/src/v1/project_service_client.js +329 -1
- 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 +329 -1
- 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 +131 -1
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +238 -1
- package/build/src/v1/schema_service_client.js +347 -7
- 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 +230 -26
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +238 -1
- package/build/src/v1/search_tuning_service_client.js +332 -2
- 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 +357 -4
- package/build/src/v1/site_search_engine_service_client.js +521 -16
- 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 +259 -10
- package/build/src/v1/user_event_service_client.js +338 -4
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/build/src/v1alpha/acl_config_service_client.js +6 -2
- package/build/src/v1alpha/chunk_service_client.js +12 -4
- package/build/src/v1alpha/completion_service_client.d.ts +1 -1
- package/build/src/v1alpha/completion_service_client.js +15 -5
- package/build/src/v1alpha/control_service_client.js +21 -7
- package/build/src/v1alpha/conversational_search_service_client.js +51 -17
- package/build/src/v1alpha/data_store_service_client.d.ts +1 -1
- package/build/src/v1alpha/data_store_service_client.js +27 -9
- package/build/src/v1alpha/document_service_client.d.ts +1 -1
- package/build/src/v1alpha/document_service_client.js +33 -11
- package/build/src/v1alpha/engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/engine_service_client.js +30 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1 -1
- package/build/src/v1alpha/estimate_billing_service_client.js +3 -1
- package/build/src/v1alpha/evaluation_service_client.d.ts +1 -1
- package/build/src/v1alpha/evaluation_service_client.js +24 -8
- package/build/src/v1alpha/grounded_generation_service_client.js +3 -1
- package/build/src/v1alpha/project_service_client.d.ts +1 -1
- package/build/src/v1alpha/project_service_client.js +9 -3
- package/build/src/v1alpha/rank_service_client.js +3 -1
- package/build/src/v1alpha/recommendation_service_client.js +3 -1
- package/build/src/v1alpha/sample_query_service_client.d.ts +1 -1
- package/build/src/v1alpha/sample_query_service_client.js +24 -8
- package/build/src/v1alpha/sample_query_set_service_client.js +21 -7
- package/build/src/v1alpha/schema_service_client.d.ts +1 -1
- package/build/src/v1alpha/schema_service_client.js +21 -7
- package/build/src/v1alpha/search_service_client.js +9 -3
- package/build/src/v1alpha/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1alpha/search_tuning_service_client.js +6 -2
- package/build/src/v1alpha/serving_config_service_client.js +15 -5
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1alpha/site_search_engine_service_client.js +54 -18
- package/build/src/v1alpha/user_event_service_client.d.ts +1 -1
- package/build/src/v1alpha/user_event_service_client.js +12 -4
- package/build/src/v1beta/completion_service_client.d.ts +1 -1
- package/build/src/v1beta/completion_service_client.js +18 -6
- package/build/src/v1beta/control_service_client.js +21 -7
- package/build/src/v1beta/conversational_search_service_client.js +51 -17
- package/build/src/v1beta/data_store_service_client.d.ts +1 -1
- package/build/src/v1beta/data_store_service_client.js +21 -7
- package/build/src/v1beta/document_service_client.d.ts +1 -1
- package/build/src/v1beta/document_service_client.js +30 -10
- package/build/src/v1beta/engine_service_client.d.ts +1 -1
- package/build/src/v1beta/engine_service_client.js +30 -10
- package/build/src/v1beta/evaluation_service_client.d.ts +1 -1
- package/build/src/v1beta/evaluation_service_client.js +24 -8
- package/build/src/v1beta/grounded_generation_service_client.js +9 -3
- package/build/src/v1beta/project_service_client.d.ts +1 -1
- package/build/src/v1beta/project_service_client.js +3 -1
- package/build/src/v1beta/rank_service_client.js +3 -1
- package/build/src/v1beta/recommendation_service_client.js +3 -1
- package/build/src/v1beta/sample_query_service_client.d.ts +1 -1
- package/build/src/v1beta/sample_query_service_client.js +24 -8
- package/build/src/v1beta/sample_query_set_service_client.js +21 -7
- package/build/src/v1beta/schema_service_client.d.ts +1 -1
- package/build/src/v1beta/schema_service_client.js +21 -7
- package/build/src/v1beta/search_service_client.js +18 -6
- package/build/src/v1beta/search_tuning_service_client.d.ts +1 -1
- package/build/src/v1beta/search_tuning_service_client.js +6 -2
- package/build/src/v1beta/serving_config_service_client.js +15 -5
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1 -1
- package/build/src/v1beta/site_search_engine_service_client.js +57 -19
- package/build/src/v1beta/user_event_service_client.d.ts +1 -1
- package/build/src/v1beta/user_event_service_client.js +12 -4
- package/package.json +5 -5
@@ -180,12 +180,15 @@ class ProjectServiceClient {
|
|
180
180
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
181
181
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
182
182
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
183
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
183
184
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
184
185
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
185
186
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
187
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
186
188
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
187
189
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
188
190
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
191
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
189
192
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
190
193
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
191
194
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -196,9 +199,11 @@ class ProjectServiceClient {
|
|
196
199
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
197
200
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
198
201
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
202
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
199
203
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
200
204
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
201
205
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
206
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
202
207
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
203
208
|
};
|
204
209
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
@@ -454,7 +459,9 @@ class ProjectServiceClient {
|
|
454
459
|
this._gaxModule.routingHeader.fromParams({
|
455
460
|
name: request.name ?? '',
|
456
461
|
});
|
457
|
-
this.initialize()
|
462
|
+
this.initialize().catch(err => {
|
463
|
+
throw err;
|
464
|
+
});
|
458
465
|
const wrappedCallback = callback
|
459
466
|
? (error, response, rawResponse, _) => {
|
460
467
|
this._log.info('provisionProject response %j', rawResponse);
|
@@ -1367,6 +1374,75 @@ class ProjectServiceClient {
|
|
1367
1374
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1368
1375
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1369
1376
|
}
|
1377
|
+
/**
|
1378
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1379
|
+
*
|
1380
|
+
* @param {string} project
|
1381
|
+
* @param {string} location
|
1382
|
+
* @param {string} collection
|
1383
|
+
* @param {string} data_store
|
1384
|
+
* @param {string} serving_config
|
1385
|
+
* @returns {string} Resource name string.
|
1386
|
+
*/
|
1387
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1388
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1389
|
+
project: project,
|
1390
|
+
location: location,
|
1391
|
+
collection: collection,
|
1392
|
+
data_store: dataStore,
|
1393
|
+
serving_config: servingConfig,
|
1394
|
+
});
|
1395
|
+
}
|
1396
|
+
/**
|
1397
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1398
|
+
*
|
1399
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1400
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1401
|
+
* @returns {string} A string representing the project.
|
1402
|
+
*/
|
1403
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1404
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1405
|
+
}
|
1406
|
+
/**
|
1407
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1408
|
+
*
|
1409
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1410
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1411
|
+
* @returns {string} A string representing the location.
|
1412
|
+
*/
|
1413
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1414
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1415
|
+
}
|
1416
|
+
/**
|
1417
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1418
|
+
*
|
1419
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1420
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1421
|
+
* @returns {string} A string representing the collection.
|
1422
|
+
*/
|
1423
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1424
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1425
|
+
}
|
1426
|
+
/**
|
1427
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1428
|
+
*
|
1429
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1430
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1431
|
+
* @returns {string} A string representing the data_store.
|
1432
|
+
*/
|
1433
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1434
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1435
|
+
}
|
1436
|
+
/**
|
1437
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1438
|
+
*
|
1439
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1440
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1441
|
+
* @returns {string} A string representing the serving_config.
|
1442
|
+
*/
|
1443
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1444
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1445
|
+
}
|
1370
1446
|
/**
|
1371
1447
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1372
1448
|
*
|
@@ -1574,6 +1650,75 @@ class ProjectServiceClient {
|
|
1574
1650
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1575
1651
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1576
1652
|
}
|
1653
|
+
/**
|
1654
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1655
|
+
*
|
1656
|
+
* @param {string} project
|
1657
|
+
* @param {string} location
|
1658
|
+
* @param {string} collection
|
1659
|
+
* @param {string} data_store
|
1660
|
+
* @param {string} sitemap
|
1661
|
+
* @returns {string} Resource name string.
|
1662
|
+
*/
|
1663
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1664
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1665
|
+
project: project,
|
1666
|
+
location: location,
|
1667
|
+
collection: collection,
|
1668
|
+
data_store: dataStore,
|
1669
|
+
sitemap: sitemap,
|
1670
|
+
});
|
1671
|
+
}
|
1672
|
+
/**
|
1673
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1674
|
+
*
|
1675
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1676
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1677
|
+
* @returns {string} A string representing the project.
|
1678
|
+
*/
|
1679
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1680
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1681
|
+
}
|
1682
|
+
/**
|
1683
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1684
|
+
*
|
1685
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1686
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1687
|
+
* @returns {string} A string representing the location.
|
1688
|
+
*/
|
1689
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1690
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1691
|
+
}
|
1692
|
+
/**
|
1693
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1694
|
+
*
|
1695
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1696
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1697
|
+
* @returns {string} A string representing the collection.
|
1698
|
+
*/
|
1699
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1700
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1701
|
+
}
|
1702
|
+
/**
|
1703
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1704
|
+
*
|
1705
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1706
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1707
|
+
* @returns {string} A string representing the data_store.
|
1708
|
+
*/
|
1709
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1710
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1711
|
+
}
|
1712
|
+
/**
|
1713
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1714
|
+
*
|
1715
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1716
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1717
|
+
* @returns {string} A string representing the sitemap.
|
1718
|
+
*/
|
1719
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1720
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1721
|
+
}
|
1577
1722
|
/**
|
1578
1723
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1579
1724
|
*
|
@@ -1781,6 +1926,75 @@ class ProjectServiceClient {
|
|
1781
1926
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1782
1927
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1783
1928
|
}
|
1929
|
+
/**
|
1930
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1931
|
+
*
|
1932
|
+
* @param {string} project
|
1933
|
+
* @param {string} location
|
1934
|
+
* @param {string} collection
|
1935
|
+
* @param {string} engine
|
1936
|
+
* @param {string} serving_config
|
1937
|
+
* @returns {string} Resource name string.
|
1938
|
+
*/
|
1939
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1940
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1941
|
+
project: project,
|
1942
|
+
location: location,
|
1943
|
+
collection: collection,
|
1944
|
+
engine: engine,
|
1945
|
+
serving_config: servingConfig,
|
1946
|
+
});
|
1947
|
+
}
|
1948
|
+
/**
|
1949
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1950
|
+
*
|
1951
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1952
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1953
|
+
* @returns {string} A string representing the project.
|
1954
|
+
*/
|
1955
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1956
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1957
|
+
}
|
1958
|
+
/**
|
1959
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1960
|
+
*
|
1961
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1962
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1963
|
+
* @returns {string} A string representing the location.
|
1964
|
+
*/
|
1965
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1966
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1967
|
+
}
|
1968
|
+
/**
|
1969
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1970
|
+
*
|
1971
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1972
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1973
|
+
* @returns {string} A string representing the collection.
|
1974
|
+
*/
|
1975
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1976
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1977
|
+
}
|
1978
|
+
/**
|
1979
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1980
|
+
*
|
1981
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1982
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1983
|
+
* @returns {string} A string representing the engine.
|
1984
|
+
*/
|
1985
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1986
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1987
|
+
}
|
1988
|
+
/**
|
1989
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1990
|
+
*
|
1991
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1992
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1993
|
+
* @returns {string} A string representing the serving_config.
|
1994
|
+
*/
|
1995
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1996
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1997
|
+
}
|
1784
1998
|
/**
|
1785
1999
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1786
2000
|
*
|
@@ -2399,6 +2613,63 @@ class ProjectServiceClient {
|
|
2399
2613
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2400
2614
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2401
2615
|
}
|
2616
|
+
/**
|
2617
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2618
|
+
*
|
2619
|
+
* @param {string} project
|
2620
|
+
* @param {string} location
|
2621
|
+
* @param {string} data_store
|
2622
|
+
* @param {string} serving_config
|
2623
|
+
* @returns {string} Resource name string.
|
2624
|
+
*/
|
2625
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2626
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2627
|
+
project: project,
|
2628
|
+
location: location,
|
2629
|
+
data_store: dataStore,
|
2630
|
+
serving_config: servingConfig,
|
2631
|
+
});
|
2632
|
+
}
|
2633
|
+
/**
|
2634
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2635
|
+
*
|
2636
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2637
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2638
|
+
* @returns {string} A string representing the project.
|
2639
|
+
*/
|
2640
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2641
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2642
|
+
}
|
2643
|
+
/**
|
2644
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2645
|
+
*
|
2646
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2647
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2648
|
+
* @returns {string} A string representing the location.
|
2649
|
+
*/
|
2650
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2651
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2652
|
+
}
|
2653
|
+
/**
|
2654
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2655
|
+
*
|
2656
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2657
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2658
|
+
* @returns {string} A string representing the data_store.
|
2659
|
+
*/
|
2660
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2661
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2662
|
+
}
|
2663
|
+
/**
|
2664
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2665
|
+
*
|
2666
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2667
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2668
|
+
* @returns {string} A string representing the serving_config.
|
2669
|
+
*/
|
2670
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2671
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2672
|
+
}
|
2402
2673
|
/**
|
2403
2674
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2404
2675
|
*
|
@@ -2570,6 +2841,63 @@ class ProjectServiceClient {
|
|
2570
2841
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2571
2842
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2572
2843
|
}
|
2844
|
+
/**
|
2845
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2846
|
+
*
|
2847
|
+
* @param {string} project
|
2848
|
+
* @param {string} location
|
2849
|
+
* @param {string} data_store
|
2850
|
+
* @param {string} sitemap
|
2851
|
+
* @returns {string} Resource name string.
|
2852
|
+
*/
|
2853
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2854
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2855
|
+
project: project,
|
2856
|
+
location: location,
|
2857
|
+
data_store: dataStore,
|
2858
|
+
sitemap: sitemap,
|
2859
|
+
});
|
2860
|
+
}
|
2861
|
+
/**
|
2862
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2863
|
+
*
|
2864
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2865
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2866
|
+
* @returns {string} A string representing the project.
|
2867
|
+
*/
|
2868
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2869
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2870
|
+
}
|
2871
|
+
/**
|
2872
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2873
|
+
*
|
2874
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2875
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2876
|
+
* @returns {string} A string representing the location.
|
2877
|
+
*/
|
2878
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2879
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2880
|
+
}
|
2881
|
+
/**
|
2882
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2883
|
+
*
|
2884
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2885
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2886
|
+
* @returns {string} A string representing the data_store.
|
2887
|
+
*/
|
2888
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2889
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2890
|
+
}
|
2891
|
+
/**
|
2892
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2893
|
+
*
|
2894
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2895
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2896
|
+
* @returns {string} A string representing the sitemap.
|
2897
|
+
*/
|
2898
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2899
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2900
|
+
}
|
2573
2901
|
/**
|
2574
2902
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2575
2903
|
*
|
@@ -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",
|