@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 ControlServiceClient {
|
|
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 ControlServiceClient {
|
|
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 return "paged" results,
|
@@ -342,7 +347,9 @@ class ControlServiceClient {
|
|
342
347
|
this._gaxModule.routingHeader.fromParams({
|
343
348
|
parent: request.parent ?? '',
|
344
349
|
});
|
345
|
-
this.initialize()
|
350
|
+
this.initialize().catch(err => {
|
351
|
+
throw err;
|
352
|
+
});
|
346
353
|
this._log.info('createControl request %j', request);
|
347
354
|
const wrappedCallback = callback
|
348
355
|
? (error, response, options, rawResponse) => {
|
@@ -374,7 +381,9 @@ class ControlServiceClient {
|
|
374
381
|
this._gaxModule.routingHeader.fromParams({
|
375
382
|
name: request.name ?? '',
|
376
383
|
});
|
377
|
-
this.initialize()
|
384
|
+
this.initialize().catch(err => {
|
385
|
+
throw err;
|
386
|
+
});
|
378
387
|
this._log.info('deleteControl request %j', request);
|
379
388
|
const wrappedCallback = callback
|
380
389
|
? (error, response, options, rawResponse) => {
|
@@ -406,7 +415,9 @@ class ControlServiceClient {
|
|
406
415
|
this._gaxModule.routingHeader.fromParams({
|
407
416
|
'control.name': request.control.name ?? '',
|
408
417
|
});
|
409
|
-
this.initialize()
|
418
|
+
this.initialize().catch(err => {
|
419
|
+
throw err;
|
420
|
+
});
|
410
421
|
this._log.info('updateControl request %j', request);
|
411
422
|
const wrappedCallback = callback
|
412
423
|
? (error, response, options, rawResponse) => {
|
@@ -438,7 +449,9 @@ class ControlServiceClient {
|
|
438
449
|
this._gaxModule.routingHeader.fromParams({
|
439
450
|
name: request.name ?? '',
|
440
451
|
});
|
441
|
-
this.initialize()
|
452
|
+
this.initialize().catch(err => {
|
453
|
+
throw err;
|
454
|
+
});
|
442
455
|
this._log.info('getControl request %j', request);
|
443
456
|
const wrappedCallback = callback
|
444
457
|
? (error, response, options, rawResponse) => {
|
@@ -470,7 +483,9 @@ class ControlServiceClient {
|
|
470
483
|
this._gaxModule.routingHeader.fromParams({
|
471
484
|
parent: request.parent ?? '',
|
472
485
|
});
|
473
|
-
this.initialize()
|
486
|
+
this.initialize().catch(err => {
|
487
|
+
throw err;
|
488
|
+
});
|
474
489
|
const wrappedCallback = callback
|
475
490
|
? (error, values, nextPageRequest, rawResponse) => {
|
476
491
|
this._log.info('listControls values %j', values);
|
@@ -528,7 +543,9 @@ class ControlServiceClient {
|
|
528
543
|
});
|
529
544
|
const defaultCallSettings = this._defaults['listControls'];
|
530
545
|
const callSettings = defaultCallSettings.merge(options);
|
531
|
-
this.initialize()
|
546
|
+
this.initialize().catch(err => {
|
547
|
+
throw err;
|
548
|
+
});
|
532
549
|
this._log.info('listControls stream %j', request);
|
533
550
|
return this.descriptors.page.listControls.createStream(this.innerApiCalls.listControls, request, callSettings);
|
534
551
|
}
|
@@ -578,7 +595,9 @@ class ControlServiceClient {
|
|
578
595
|
});
|
579
596
|
const defaultCallSettings = this._defaults['listControls'];
|
580
597
|
const callSettings = defaultCallSettings.merge(options);
|
581
|
-
this.initialize()
|
598
|
+
this.initialize().catch(err => {
|
599
|
+
throw err;
|
600
|
+
});
|
582
601
|
this._log.info('listControls iterate %j', request);
|
583
602
|
return this.descriptors.page.listControls.asyncIterate(this.innerApiCalls['listControls'], request, callSettings);
|
584
603
|
}
|
@@ -1315,6 +1334,75 @@ class ControlServiceClient {
|
|
1315
1334
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1316
1335
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1317
1336
|
}
|
1337
|
+
/**
|
1338
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1339
|
+
*
|
1340
|
+
* @param {string} project
|
1341
|
+
* @param {string} location
|
1342
|
+
* @param {string} collection
|
1343
|
+
* @param {string} data_store
|
1344
|
+
* @param {string} serving_config
|
1345
|
+
* @returns {string} Resource name string.
|
1346
|
+
*/
|
1347
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1348
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1349
|
+
project: project,
|
1350
|
+
location: location,
|
1351
|
+
collection: collection,
|
1352
|
+
data_store: dataStore,
|
1353
|
+
serving_config: servingConfig,
|
1354
|
+
});
|
1355
|
+
}
|
1356
|
+
/**
|
1357
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1358
|
+
*
|
1359
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1360
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1361
|
+
* @returns {string} A string representing the project.
|
1362
|
+
*/
|
1363
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1364
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1365
|
+
}
|
1366
|
+
/**
|
1367
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1368
|
+
*
|
1369
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1370
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1371
|
+
* @returns {string} A string representing the location.
|
1372
|
+
*/
|
1373
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1374
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1375
|
+
}
|
1376
|
+
/**
|
1377
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1378
|
+
*
|
1379
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1380
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1381
|
+
* @returns {string} A string representing the collection.
|
1382
|
+
*/
|
1383
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1384
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1385
|
+
}
|
1386
|
+
/**
|
1387
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1388
|
+
*
|
1389
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1390
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1391
|
+
* @returns {string} A string representing the data_store.
|
1392
|
+
*/
|
1393
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1394
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1395
|
+
}
|
1396
|
+
/**
|
1397
|
+
* Parse the serving_config 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 serving_config.
|
1402
|
+
*/
|
1403
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1404
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1405
|
+
}
|
1318
1406
|
/**
|
1319
1407
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1320
1408
|
*
|
@@ -1522,6 +1610,75 @@ class ControlServiceClient {
|
|
1522
1610
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1523
1611
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1524
1612
|
}
|
1613
|
+
/**
|
1614
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1615
|
+
*
|
1616
|
+
* @param {string} project
|
1617
|
+
* @param {string} location
|
1618
|
+
* @param {string} collection
|
1619
|
+
* @param {string} data_store
|
1620
|
+
* @param {string} sitemap
|
1621
|
+
* @returns {string} Resource name string.
|
1622
|
+
*/
|
1623
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1624
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1625
|
+
project: project,
|
1626
|
+
location: location,
|
1627
|
+
collection: collection,
|
1628
|
+
data_store: dataStore,
|
1629
|
+
sitemap: sitemap,
|
1630
|
+
});
|
1631
|
+
}
|
1632
|
+
/**
|
1633
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1634
|
+
*
|
1635
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1636
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1637
|
+
* @returns {string} A string representing the project.
|
1638
|
+
*/
|
1639
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1640
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1641
|
+
}
|
1642
|
+
/**
|
1643
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1644
|
+
*
|
1645
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1646
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1647
|
+
* @returns {string} A string representing the location.
|
1648
|
+
*/
|
1649
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1650
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1651
|
+
}
|
1652
|
+
/**
|
1653
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1654
|
+
*
|
1655
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1656
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1657
|
+
* @returns {string} A string representing the collection.
|
1658
|
+
*/
|
1659
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1660
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1661
|
+
}
|
1662
|
+
/**
|
1663
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1664
|
+
*
|
1665
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1666
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1667
|
+
* @returns {string} A string representing the data_store.
|
1668
|
+
*/
|
1669
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1670
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1671
|
+
}
|
1672
|
+
/**
|
1673
|
+
* Parse the sitemap 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 sitemap.
|
1678
|
+
*/
|
1679
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1680
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1681
|
+
}
|
1525
1682
|
/**
|
1526
1683
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1527
1684
|
*
|
@@ -1729,6 +1886,75 @@ class ControlServiceClient {
|
|
1729
1886
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1730
1887
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1731
1888
|
}
|
1889
|
+
/**
|
1890
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1891
|
+
*
|
1892
|
+
* @param {string} project
|
1893
|
+
* @param {string} location
|
1894
|
+
* @param {string} collection
|
1895
|
+
* @param {string} engine
|
1896
|
+
* @param {string} serving_config
|
1897
|
+
* @returns {string} Resource name string.
|
1898
|
+
*/
|
1899
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1900
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1901
|
+
project: project,
|
1902
|
+
location: location,
|
1903
|
+
collection: collection,
|
1904
|
+
engine: engine,
|
1905
|
+
serving_config: servingConfig,
|
1906
|
+
});
|
1907
|
+
}
|
1908
|
+
/**
|
1909
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1910
|
+
*
|
1911
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1912
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1913
|
+
* @returns {string} A string representing the project.
|
1914
|
+
*/
|
1915
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1916
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1917
|
+
}
|
1918
|
+
/**
|
1919
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1920
|
+
*
|
1921
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1922
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1923
|
+
* @returns {string} A string representing the location.
|
1924
|
+
*/
|
1925
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1926
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1927
|
+
}
|
1928
|
+
/**
|
1929
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1930
|
+
*
|
1931
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1932
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1933
|
+
* @returns {string} A string representing the collection.
|
1934
|
+
*/
|
1935
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1936
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1937
|
+
}
|
1938
|
+
/**
|
1939
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1940
|
+
*
|
1941
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1942
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1943
|
+
* @returns {string} A string representing the engine.
|
1944
|
+
*/
|
1945
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1946
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1947
|
+
}
|
1948
|
+
/**
|
1949
|
+
* Parse the serving_config 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 serving_config.
|
1954
|
+
*/
|
1955
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1956
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1957
|
+
}
|
1732
1958
|
/**
|
1733
1959
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1734
1960
|
*
|
@@ -2347,6 +2573,63 @@ class ControlServiceClient {
|
|
2347
2573
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2348
2574
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2349
2575
|
}
|
2576
|
+
/**
|
2577
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2578
|
+
*
|
2579
|
+
* @param {string} project
|
2580
|
+
* @param {string} location
|
2581
|
+
* @param {string} data_store
|
2582
|
+
* @param {string} serving_config
|
2583
|
+
* @returns {string} Resource name string.
|
2584
|
+
*/
|
2585
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2586
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2587
|
+
project: project,
|
2588
|
+
location: location,
|
2589
|
+
data_store: dataStore,
|
2590
|
+
serving_config: servingConfig,
|
2591
|
+
});
|
2592
|
+
}
|
2593
|
+
/**
|
2594
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2595
|
+
*
|
2596
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2597
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2598
|
+
* @returns {string} A string representing the project.
|
2599
|
+
*/
|
2600
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2601
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2602
|
+
}
|
2603
|
+
/**
|
2604
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2605
|
+
*
|
2606
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2607
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2608
|
+
* @returns {string} A string representing the location.
|
2609
|
+
*/
|
2610
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2611
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2612
|
+
}
|
2613
|
+
/**
|
2614
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2615
|
+
*
|
2616
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2617
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2618
|
+
* @returns {string} A string representing the data_store.
|
2619
|
+
*/
|
2620
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2621
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2622
|
+
}
|
2623
|
+
/**
|
2624
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2625
|
+
*
|
2626
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2627
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2628
|
+
* @returns {string} A string representing the serving_config.
|
2629
|
+
*/
|
2630
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2631
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2632
|
+
}
|
2350
2633
|
/**
|
2351
2634
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2352
2635
|
*
|
@@ -2518,6 +2801,63 @@ class ControlServiceClient {
|
|
2518
2801
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2519
2802
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2520
2803
|
}
|
2804
|
+
/**
|
2805
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2806
|
+
*
|
2807
|
+
* @param {string} project
|
2808
|
+
* @param {string} location
|
2809
|
+
* @param {string} data_store
|
2810
|
+
* @param {string} sitemap
|
2811
|
+
* @returns {string} Resource name string.
|
2812
|
+
*/
|
2813
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2814
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2815
|
+
project: project,
|
2816
|
+
location: location,
|
2817
|
+
data_store: dataStore,
|
2818
|
+
sitemap: sitemap,
|
2819
|
+
});
|
2820
|
+
}
|
2821
|
+
/**
|
2822
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2823
|
+
*
|
2824
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2825
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2826
|
+
* @returns {string} A string representing the project.
|
2827
|
+
*/
|
2828
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2829
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2830
|
+
}
|
2831
|
+
/**
|
2832
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2833
|
+
*
|
2834
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2835
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2836
|
+
* @returns {string} A string representing the location.
|
2837
|
+
*/
|
2838
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2839
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2840
|
+
}
|
2841
|
+
/**
|
2842
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2843
|
+
*
|
2844
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2845
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2846
|
+
* @returns {string} A string representing the data_store.
|
2847
|
+
*/
|
2848
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2849
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2850
|
+
}
|
2851
|
+
/**
|
2852
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2853
|
+
*
|
2854
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2855
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2856
|
+
* @returns {string} A string representing the sitemap.
|
2857
|
+
*/
|
2858
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2859
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2860
|
+
}
|
2521
2861
|
/**
|
2522
2862
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2523
2863
|
*
|
@@ -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",
|