@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
@@ -182,12 +182,15 @@ class GroundedGenerationServiceClient {
|
|
182
182
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
183
183
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
184
184
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
185
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
185
186
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
186
187
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
187
188
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
189
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
188
190
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
189
191
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
190
192
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
193
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
191
194
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
192
195
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
193
196
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -198,9 +201,11 @@ class GroundedGenerationServiceClient {
|
|
198
201
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
199
202
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
200
203
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
204
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
201
205
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
202
206
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
203
207
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
208
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
204
209
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
205
210
|
};
|
206
211
|
// Some of the methods on this service provide streaming responses.
|
@@ -347,7 +352,9 @@ class GroundedGenerationServiceClient {
|
|
347
352
|
this._gaxModule.routingHeader.fromParams({
|
348
353
|
location: request.location ?? '',
|
349
354
|
});
|
350
|
-
this.initialize()
|
355
|
+
this.initialize().catch(err => {
|
356
|
+
throw err;
|
357
|
+
});
|
351
358
|
this._log.info('generateGroundedContent request %j', request);
|
352
359
|
const wrappedCallback = callback
|
353
360
|
? (error, response, options, rawResponse) => {
|
@@ -379,7 +386,9 @@ class GroundedGenerationServiceClient {
|
|
379
386
|
this._gaxModule.routingHeader.fromParams({
|
380
387
|
grounding_config: request.groundingConfig ?? '',
|
381
388
|
});
|
382
|
-
this.initialize()
|
389
|
+
this.initialize().catch(err => {
|
390
|
+
throw err;
|
391
|
+
});
|
383
392
|
this._log.info('checkGrounding request %j', request);
|
384
393
|
const wrappedCallback = callback
|
385
394
|
? (error, response, options, rawResponse) => {
|
@@ -409,7 +418,9 @@ class GroundedGenerationServiceClient {
|
|
409
418
|
* region_tag:discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async
|
410
419
|
*/
|
411
420
|
streamGenerateGroundedContent(options) {
|
412
|
-
this.initialize()
|
421
|
+
this.initialize().catch(err => {
|
422
|
+
throw err;
|
423
|
+
});
|
413
424
|
this._log.info('streamGenerateGroundedContent stream %j', options);
|
414
425
|
return this.innerApiCalls.streamGenerateGroundedContent(null, options);
|
415
426
|
}
|
@@ -1191,6 +1202,75 @@ class GroundedGenerationServiceClient {
|
|
1191
1202
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1192
1203
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1193
1204
|
}
|
1205
|
+
/**
|
1206
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1207
|
+
*
|
1208
|
+
* @param {string} project
|
1209
|
+
* @param {string} location
|
1210
|
+
* @param {string} collection
|
1211
|
+
* @param {string} data_store
|
1212
|
+
* @param {string} serving_config
|
1213
|
+
* @returns {string} Resource name string.
|
1214
|
+
*/
|
1215
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1216
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1217
|
+
project: project,
|
1218
|
+
location: location,
|
1219
|
+
collection: collection,
|
1220
|
+
data_store: dataStore,
|
1221
|
+
serving_config: servingConfig,
|
1222
|
+
});
|
1223
|
+
}
|
1224
|
+
/**
|
1225
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1226
|
+
*
|
1227
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1228
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1229
|
+
* @returns {string} A string representing the project.
|
1230
|
+
*/
|
1231
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1232
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1233
|
+
}
|
1234
|
+
/**
|
1235
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1236
|
+
*
|
1237
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1238
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1239
|
+
* @returns {string} A string representing the location.
|
1240
|
+
*/
|
1241
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1242
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1243
|
+
}
|
1244
|
+
/**
|
1245
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1246
|
+
*
|
1247
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1248
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1249
|
+
* @returns {string} A string representing the collection.
|
1250
|
+
*/
|
1251
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1252
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1253
|
+
}
|
1254
|
+
/**
|
1255
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1256
|
+
*
|
1257
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1258
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1259
|
+
* @returns {string} A string representing the data_store.
|
1260
|
+
*/
|
1261
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1262
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1263
|
+
}
|
1264
|
+
/**
|
1265
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1266
|
+
*
|
1267
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1268
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1269
|
+
* @returns {string} A string representing the serving_config.
|
1270
|
+
*/
|
1271
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1272
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1273
|
+
}
|
1194
1274
|
/**
|
1195
1275
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1196
1276
|
*
|
@@ -1398,6 +1478,75 @@ class GroundedGenerationServiceClient {
|
|
1398
1478
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1399
1479
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1400
1480
|
}
|
1481
|
+
/**
|
1482
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1483
|
+
*
|
1484
|
+
* @param {string} project
|
1485
|
+
* @param {string} location
|
1486
|
+
* @param {string} collection
|
1487
|
+
* @param {string} data_store
|
1488
|
+
* @param {string} sitemap
|
1489
|
+
* @returns {string} Resource name string.
|
1490
|
+
*/
|
1491
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1492
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1493
|
+
project: project,
|
1494
|
+
location: location,
|
1495
|
+
collection: collection,
|
1496
|
+
data_store: dataStore,
|
1497
|
+
sitemap: sitemap,
|
1498
|
+
});
|
1499
|
+
}
|
1500
|
+
/**
|
1501
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1502
|
+
*
|
1503
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1504
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1505
|
+
* @returns {string} A string representing the project.
|
1506
|
+
*/
|
1507
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1508
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1509
|
+
}
|
1510
|
+
/**
|
1511
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1512
|
+
*
|
1513
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1514
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1515
|
+
* @returns {string} A string representing the location.
|
1516
|
+
*/
|
1517
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1518
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1519
|
+
}
|
1520
|
+
/**
|
1521
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1522
|
+
*
|
1523
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1524
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1525
|
+
* @returns {string} A string representing the collection.
|
1526
|
+
*/
|
1527
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1528
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1529
|
+
}
|
1530
|
+
/**
|
1531
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1532
|
+
*
|
1533
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1534
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1535
|
+
* @returns {string} A string representing the data_store.
|
1536
|
+
*/
|
1537
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1538
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1539
|
+
}
|
1540
|
+
/**
|
1541
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1542
|
+
*
|
1543
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1544
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1545
|
+
* @returns {string} A string representing the sitemap.
|
1546
|
+
*/
|
1547
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1548
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1549
|
+
}
|
1401
1550
|
/**
|
1402
1551
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1403
1552
|
*
|
@@ -1605,6 +1754,75 @@ class GroundedGenerationServiceClient {
|
|
1605
1754
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1606
1755
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1607
1756
|
}
|
1757
|
+
/**
|
1758
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1759
|
+
*
|
1760
|
+
* @param {string} project
|
1761
|
+
* @param {string} location
|
1762
|
+
* @param {string} collection
|
1763
|
+
* @param {string} engine
|
1764
|
+
* @param {string} serving_config
|
1765
|
+
* @returns {string} Resource name string.
|
1766
|
+
*/
|
1767
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1768
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1769
|
+
project: project,
|
1770
|
+
location: location,
|
1771
|
+
collection: collection,
|
1772
|
+
engine: engine,
|
1773
|
+
serving_config: servingConfig,
|
1774
|
+
});
|
1775
|
+
}
|
1776
|
+
/**
|
1777
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1778
|
+
*
|
1779
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1780
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1781
|
+
* @returns {string} A string representing the project.
|
1782
|
+
*/
|
1783
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1784
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1785
|
+
}
|
1786
|
+
/**
|
1787
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1788
|
+
*
|
1789
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1790
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1791
|
+
* @returns {string} A string representing the location.
|
1792
|
+
*/
|
1793
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1794
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1795
|
+
}
|
1796
|
+
/**
|
1797
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1798
|
+
*
|
1799
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1800
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1801
|
+
* @returns {string} A string representing the collection.
|
1802
|
+
*/
|
1803
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1804
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1805
|
+
}
|
1806
|
+
/**
|
1807
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1808
|
+
*
|
1809
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1810
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1811
|
+
* @returns {string} A string representing the engine.
|
1812
|
+
*/
|
1813
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1814
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1815
|
+
}
|
1816
|
+
/**
|
1817
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1818
|
+
*
|
1819
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1820
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1821
|
+
* @returns {string} A string representing the serving_config.
|
1822
|
+
*/
|
1823
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1824
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1825
|
+
}
|
1608
1826
|
/**
|
1609
1827
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1610
1828
|
*
|
@@ -2223,6 +2441,63 @@ class GroundedGenerationServiceClient {
|
|
2223
2441
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2224
2442
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2225
2443
|
}
|
2444
|
+
/**
|
2445
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2446
|
+
*
|
2447
|
+
* @param {string} project
|
2448
|
+
* @param {string} location
|
2449
|
+
* @param {string} data_store
|
2450
|
+
* @param {string} serving_config
|
2451
|
+
* @returns {string} Resource name string.
|
2452
|
+
*/
|
2453
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2454
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2455
|
+
project: project,
|
2456
|
+
location: location,
|
2457
|
+
data_store: dataStore,
|
2458
|
+
serving_config: servingConfig,
|
2459
|
+
});
|
2460
|
+
}
|
2461
|
+
/**
|
2462
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2463
|
+
*
|
2464
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2465
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2466
|
+
* @returns {string} A string representing the project.
|
2467
|
+
*/
|
2468
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2469
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2470
|
+
}
|
2471
|
+
/**
|
2472
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2473
|
+
*
|
2474
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2475
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2476
|
+
* @returns {string} A string representing the location.
|
2477
|
+
*/
|
2478
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2479
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2480
|
+
}
|
2481
|
+
/**
|
2482
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2483
|
+
*
|
2484
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2485
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2486
|
+
* @returns {string} A string representing the data_store.
|
2487
|
+
*/
|
2488
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2489
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2490
|
+
}
|
2491
|
+
/**
|
2492
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2493
|
+
*
|
2494
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2495
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2496
|
+
* @returns {string} A string representing the serving_config.
|
2497
|
+
*/
|
2498
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2499
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2500
|
+
}
|
2226
2501
|
/**
|
2227
2502
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2228
2503
|
*
|
@@ -2394,6 +2669,63 @@ class GroundedGenerationServiceClient {
|
|
2394
2669
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2395
2670
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2396
2671
|
}
|
2672
|
+
/**
|
2673
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2674
|
+
*
|
2675
|
+
* @param {string} project
|
2676
|
+
* @param {string} location
|
2677
|
+
* @param {string} data_store
|
2678
|
+
* @param {string} sitemap
|
2679
|
+
* @returns {string} Resource name string.
|
2680
|
+
*/
|
2681
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2682
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2683
|
+
project: project,
|
2684
|
+
location: location,
|
2685
|
+
data_store: dataStore,
|
2686
|
+
sitemap: sitemap,
|
2687
|
+
});
|
2688
|
+
}
|
2689
|
+
/**
|
2690
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2691
|
+
*
|
2692
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2693
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2694
|
+
* @returns {string} A string representing the project.
|
2695
|
+
*/
|
2696
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2697
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2698
|
+
}
|
2699
|
+
/**
|
2700
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2701
|
+
*
|
2702
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2703
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2704
|
+
* @returns {string} A string representing the location.
|
2705
|
+
*/
|
2706
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2707
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2708
|
+
}
|
2709
|
+
/**
|
2710
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2711
|
+
*
|
2712
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2713
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2714
|
+
* @returns {string} A string representing the data_store.
|
2715
|
+
*/
|
2716
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2717
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2718
|
+
}
|
2719
|
+
/**
|
2720
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2721
|
+
*
|
2722
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2723
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2724
|
+
* @returns {string} A string representing the sitemap.
|
2725
|
+
*/
|
2726
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2727
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2728
|
+
}
|
2397
2729
|
/**
|
2398
2730
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2399
2731
|
*
|
@@ -24,10 +24,13 @@
|
|
24
24
|
"../../protos/google/cloud/discoveryengine/v1/purge_config.proto",
|
25
25
|
"../../protos/google/cloud/discoveryengine/v1/rank_service.proto",
|
26
26
|
"../../protos/google/cloud/discoveryengine/v1/recommendation_service.proto",
|
27
|
+
"../../protos/google/cloud/discoveryengine/v1/safety.proto",
|
27
28
|
"../../protos/google/cloud/discoveryengine/v1/schema.proto",
|
28
29
|
"../../protos/google/cloud/discoveryengine/v1/schema_service.proto",
|
29
30
|
"../../protos/google/cloud/discoveryengine/v1/search_service.proto",
|
30
31
|
"../../protos/google/cloud/discoveryengine/v1/search_tuning_service.proto",
|
32
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config.proto",
|
33
|
+
"../../protos/google/cloud/discoveryengine/v1/serving_config_service.proto",
|
31
34
|
"../../protos/google/cloud/discoveryengine/v1/session.proto",
|
32
35
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine.proto",
|
33
36
|
"../../protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto",
|
package/build/src/v1/index.d.ts
CHANGED
@@ -11,5 +11,6 @@ export { RecommendationServiceClient } from './recommendation_service_client';
|
|
11
11
|
export { SchemaServiceClient } from './schema_service_client';
|
12
12
|
export { SearchServiceClient } from './search_service_client';
|
13
13
|
export { SearchTuningServiceClient } from './search_tuning_service_client';
|
14
|
+
export { ServingConfigServiceClient } from './serving_config_service_client';
|
14
15
|
export { SiteSearchEngineServiceClient } from './site_search_engine_service_client';
|
15
16
|
export { UserEventServiceClient } from './user_event_service_client';
|
package/build/src/v1/index.js
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
|
20
|
+
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
|
21
21
|
var completion_service_client_1 = require("./completion_service_client");
|
22
22
|
Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
|
23
23
|
var control_service_client_1 = require("./control_service_client");
|
@@ -44,6 +44,8 @@ var search_service_client_1 = require("./search_service_client");
|
|
44
44
|
Object.defineProperty(exports, "SearchServiceClient", { enumerable: true, get: function () { return search_service_client_1.SearchServiceClient; } });
|
45
45
|
var search_tuning_service_client_1 = require("./search_tuning_service_client");
|
46
46
|
Object.defineProperty(exports, "SearchTuningServiceClient", { enumerable: true, get: function () { return search_tuning_service_client_1.SearchTuningServiceClient; } });
|
47
|
+
var serving_config_service_client_1 = require("./serving_config_service_client");
|
48
|
+
Object.defineProperty(exports, "ServingConfigServiceClient", { enumerable: true, get: function () { return serving_config_service_client_1.ServingConfigServiceClient; } });
|
47
49
|
var site_search_engine_service_client_1 = require("./site_search_engine_service_client");
|
48
50
|
Object.defineProperty(exports, "SiteSearchEngineServiceClient", { enumerable: true, get: function () { return site_search_engine_service_client_1.SiteSearchEngineServiceClient; } });
|
49
51
|
var user_event_service_client_1 = require("./user_event_service_client");
|