@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
@@ -181,12 +181,15 @@ class DataStoreServiceClient {
|
|
181
181
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
182
182
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
183
183
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
184
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
184
185
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
185
186
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
186
187
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
188
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
187
189
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
188
190
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
189
191
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
192
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
190
193
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
191
194
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
192
195
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -197,9 +200,11 @@ class DataStoreServiceClient {
|
|
197
200
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
198
201
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
199
202
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
203
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
200
204
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
201
205
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
202
206
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
207
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
203
208
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
204
209
|
};
|
205
210
|
// Some of the methods on this service return "paged" results,
|
@@ -473,7 +478,9 @@ class DataStoreServiceClient {
|
|
473
478
|
this._gaxModule.routingHeader.fromParams({
|
474
479
|
name: request.name ?? '',
|
475
480
|
});
|
476
|
-
this.initialize()
|
481
|
+
this.initialize().catch(err => {
|
482
|
+
throw err;
|
483
|
+
});
|
477
484
|
this._log.info('getDataStore request %j', request);
|
478
485
|
const wrappedCallback = callback
|
479
486
|
? (error, response, options, rawResponse) => {
|
@@ -505,7 +512,9 @@ class DataStoreServiceClient {
|
|
505
512
|
this._gaxModule.routingHeader.fromParams({
|
506
513
|
'data_store.name': request.dataStore.name ?? '',
|
507
514
|
});
|
508
|
-
this.initialize()
|
515
|
+
this.initialize().catch(err => {
|
516
|
+
throw err;
|
517
|
+
});
|
509
518
|
this._log.info('updateDataStore request %j', request);
|
510
519
|
const wrappedCallback = callback
|
511
520
|
? (error, response, options, rawResponse) => {
|
@@ -537,7 +546,9 @@ class DataStoreServiceClient {
|
|
537
546
|
this._gaxModule.routingHeader.fromParams({
|
538
547
|
parent: request.parent ?? '',
|
539
548
|
});
|
540
|
-
this.initialize()
|
549
|
+
this.initialize().catch(err => {
|
550
|
+
throw err;
|
551
|
+
});
|
541
552
|
const wrappedCallback = callback
|
542
553
|
? (error, response, rawResponse, _) => {
|
543
554
|
this._log.info('createDataStore response %j', rawResponse);
|
@@ -587,7 +598,9 @@ class DataStoreServiceClient {
|
|
587
598
|
this._gaxModule.routingHeader.fromParams({
|
588
599
|
name: request.name ?? '',
|
589
600
|
});
|
590
|
-
this.initialize()
|
601
|
+
this.initialize().catch(err => {
|
602
|
+
throw err;
|
603
|
+
});
|
591
604
|
const wrappedCallback = callback
|
592
605
|
? (error, response, rawResponse, _) => {
|
593
606
|
this._log.info('deleteDataStore response %j', rawResponse);
|
@@ -637,7 +650,9 @@ class DataStoreServiceClient {
|
|
637
650
|
this._gaxModule.routingHeader.fromParams({
|
638
651
|
parent: request.parent ?? '',
|
639
652
|
});
|
640
|
-
this.initialize()
|
653
|
+
this.initialize().catch(err => {
|
654
|
+
throw err;
|
655
|
+
});
|
641
656
|
const wrappedCallback = callback
|
642
657
|
? (error, values, nextPageRequest, rawResponse) => {
|
643
658
|
this._log.info('listDataStores values %j', values);
|
@@ -706,7 +721,9 @@ class DataStoreServiceClient {
|
|
706
721
|
});
|
707
722
|
const defaultCallSettings = this._defaults['listDataStores'];
|
708
723
|
const callSettings = defaultCallSettings.merge(options);
|
709
|
-
this.initialize()
|
724
|
+
this.initialize().catch(err => {
|
725
|
+
throw err;
|
726
|
+
});
|
710
727
|
this._log.info('listDataStores stream %j', request);
|
711
728
|
return this.descriptors.page.listDataStores.createStream(this.innerApiCalls.listDataStores, request, callSettings);
|
712
729
|
}
|
@@ -767,7 +784,9 @@ class DataStoreServiceClient {
|
|
767
784
|
});
|
768
785
|
const defaultCallSettings = this._defaults['listDataStores'];
|
769
786
|
const callSettings = defaultCallSettings.merge(options);
|
770
|
-
this.initialize()
|
787
|
+
this.initialize().catch(err => {
|
788
|
+
throw err;
|
789
|
+
});
|
771
790
|
this._log.info('listDataStores iterate %j', request);
|
772
791
|
return this.descriptors.page.listDataStores.asyncIterate(this.innerApiCalls['listDataStores'], request, callSettings);
|
773
792
|
}
|
@@ -1699,6 +1718,75 @@ class DataStoreServiceClient {
|
|
1699
1718
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1700
1719
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1701
1720
|
}
|
1721
|
+
/**
|
1722
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1723
|
+
*
|
1724
|
+
* @param {string} project
|
1725
|
+
* @param {string} location
|
1726
|
+
* @param {string} collection
|
1727
|
+
* @param {string} data_store
|
1728
|
+
* @param {string} serving_config
|
1729
|
+
* @returns {string} Resource name string.
|
1730
|
+
*/
|
1731
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1732
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1733
|
+
project: project,
|
1734
|
+
location: location,
|
1735
|
+
collection: collection,
|
1736
|
+
data_store: dataStore,
|
1737
|
+
serving_config: servingConfig,
|
1738
|
+
});
|
1739
|
+
}
|
1740
|
+
/**
|
1741
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1742
|
+
*
|
1743
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1744
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1745
|
+
* @returns {string} A string representing the project.
|
1746
|
+
*/
|
1747
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1748
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1749
|
+
}
|
1750
|
+
/**
|
1751
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1752
|
+
*
|
1753
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1754
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1755
|
+
* @returns {string} A string representing the location.
|
1756
|
+
*/
|
1757
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1758
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1759
|
+
}
|
1760
|
+
/**
|
1761
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1762
|
+
*
|
1763
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1764
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1765
|
+
* @returns {string} A string representing the collection.
|
1766
|
+
*/
|
1767
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1768
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1769
|
+
}
|
1770
|
+
/**
|
1771
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1772
|
+
*
|
1773
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1774
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1775
|
+
* @returns {string} A string representing the data_store.
|
1776
|
+
*/
|
1777
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1778
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1779
|
+
}
|
1780
|
+
/**
|
1781
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1782
|
+
*
|
1783
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1784
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1785
|
+
* @returns {string} A string representing the serving_config.
|
1786
|
+
*/
|
1787
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1788
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1789
|
+
}
|
1702
1790
|
/**
|
1703
1791
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1704
1792
|
*
|
@@ -1906,6 +1994,75 @@ class DataStoreServiceClient {
|
|
1906
1994
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1907
1995
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1908
1996
|
}
|
1997
|
+
/**
|
1998
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1999
|
+
*
|
2000
|
+
* @param {string} project
|
2001
|
+
* @param {string} location
|
2002
|
+
* @param {string} collection
|
2003
|
+
* @param {string} data_store
|
2004
|
+
* @param {string} sitemap
|
2005
|
+
* @returns {string} Resource name string.
|
2006
|
+
*/
|
2007
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
2008
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2009
|
+
project: project,
|
2010
|
+
location: location,
|
2011
|
+
collection: collection,
|
2012
|
+
data_store: dataStore,
|
2013
|
+
sitemap: sitemap,
|
2014
|
+
});
|
2015
|
+
}
|
2016
|
+
/**
|
2017
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2018
|
+
*
|
2019
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2020
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2021
|
+
* @returns {string} A string representing the project.
|
2022
|
+
*/
|
2023
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2024
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
2025
|
+
}
|
2026
|
+
/**
|
2027
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2028
|
+
*
|
2029
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2030
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2031
|
+
* @returns {string} A string representing the location.
|
2032
|
+
*/
|
2033
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2034
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
2035
|
+
}
|
2036
|
+
/**
|
2037
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2038
|
+
*
|
2039
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2040
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2041
|
+
* @returns {string} A string representing the collection.
|
2042
|
+
*/
|
2043
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2044
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
2045
|
+
}
|
2046
|
+
/**
|
2047
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2048
|
+
*
|
2049
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2050
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2051
|
+
* @returns {string} A string representing the data_store.
|
2052
|
+
*/
|
2053
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2054
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
2055
|
+
}
|
2056
|
+
/**
|
2057
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2058
|
+
*
|
2059
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2060
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2061
|
+
* @returns {string} A string representing the sitemap.
|
2062
|
+
*/
|
2063
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2064
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
2065
|
+
}
|
1909
2066
|
/**
|
1910
2067
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1911
2068
|
*
|
@@ -2113,6 +2270,75 @@ class DataStoreServiceClient {
|
|
2113
2270
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
2114
2271
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
2115
2272
|
}
|
2273
|
+
/**
|
2274
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2275
|
+
*
|
2276
|
+
* @param {string} project
|
2277
|
+
* @param {string} location
|
2278
|
+
* @param {string} collection
|
2279
|
+
* @param {string} engine
|
2280
|
+
* @param {string} serving_config
|
2281
|
+
* @returns {string} Resource name string.
|
2282
|
+
*/
|
2283
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2284
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2285
|
+
project: project,
|
2286
|
+
location: location,
|
2287
|
+
collection: collection,
|
2288
|
+
engine: engine,
|
2289
|
+
serving_config: servingConfig,
|
2290
|
+
});
|
2291
|
+
}
|
2292
|
+
/**
|
2293
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2294
|
+
*
|
2295
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2296
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2297
|
+
* @returns {string} A string representing the project.
|
2298
|
+
*/
|
2299
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2300
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2301
|
+
}
|
2302
|
+
/**
|
2303
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2304
|
+
*
|
2305
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2306
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2307
|
+
* @returns {string} A string representing the location.
|
2308
|
+
*/
|
2309
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2310
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2311
|
+
}
|
2312
|
+
/**
|
2313
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2314
|
+
*
|
2315
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2316
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2317
|
+
* @returns {string} A string representing the collection.
|
2318
|
+
*/
|
2319
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2320
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2321
|
+
}
|
2322
|
+
/**
|
2323
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2324
|
+
*
|
2325
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2326
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2327
|
+
* @returns {string} A string representing the engine.
|
2328
|
+
*/
|
2329
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2330
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2331
|
+
}
|
2332
|
+
/**
|
2333
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2334
|
+
*
|
2335
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2336
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2337
|
+
* @returns {string} A string representing the serving_config.
|
2338
|
+
*/
|
2339
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2340
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2341
|
+
}
|
2116
2342
|
/**
|
2117
2343
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
2118
2344
|
*
|
@@ -2731,6 +2957,63 @@ class DataStoreServiceClient {
|
|
2731
2957
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2732
2958
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2733
2959
|
}
|
2960
|
+
/**
|
2961
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2962
|
+
*
|
2963
|
+
* @param {string} project
|
2964
|
+
* @param {string} location
|
2965
|
+
* @param {string} data_store
|
2966
|
+
* @param {string} serving_config
|
2967
|
+
* @returns {string} Resource name string.
|
2968
|
+
*/
|
2969
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2970
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2971
|
+
project: project,
|
2972
|
+
location: location,
|
2973
|
+
data_store: dataStore,
|
2974
|
+
serving_config: servingConfig,
|
2975
|
+
});
|
2976
|
+
}
|
2977
|
+
/**
|
2978
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2979
|
+
*
|
2980
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2981
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2982
|
+
* @returns {string} A string representing the project.
|
2983
|
+
*/
|
2984
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2985
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2986
|
+
}
|
2987
|
+
/**
|
2988
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2989
|
+
*
|
2990
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2991
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2992
|
+
* @returns {string} A string representing the location.
|
2993
|
+
*/
|
2994
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2995
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2996
|
+
}
|
2997
|
+
/**
|
2998
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2999
|
+
*
|
3000
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3001
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3002
|
+
* @returns {string} A string representing the data_store.
|
3003
|
+
*/
|
3004
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3005
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
3006
|
+
}
|
3007
|
+
/**
|
3008
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
3009
|
+
*
|
3010
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3011
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3012
|
+
* @returns {string} A string representing the serving_config.
|
3013
|
+
*/
|
3014
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3015
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3016
|
+
}
|
2734
3017
|
/**
|
2735
3018
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2736
3019
|
*
|
@@ -2902,6 +3185,63 @@ class DataStoreServiceClient {
|
|
2902
3185
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2903
3186
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2904
3187
|
}
|
3188
|
+
/**
|
3189
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
3190
|
+
*
|
3191
|
+
* @param {string} project
|
3192
|
+
* @param {string} location
|
3193
|
+
* @param {string} data_store
|
3194
|
+
* @param {string} sitemap
|
3195
|
+
* @returns {string} Resource name string.
|
3196
|
+
*/
|
3197
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
3198
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
3199
|
+
project: project,
|
3200
|
+
location: location,
|
3201
|
+
data_store: dataStore,
|
3202
|
+
sitemap: sitemap,
|
3203
|
+
});
|
3204
|
+
}
|
3205
|
+
/**
|
3206
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3207
|
+
*
|
3208
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3209
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3210
|
+
* @returns {string} A string representing the project.
|
3211
|
+
*/
|
3212
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3213
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
3214
|
+
}
|
3215
|
+
/**
|
3216
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3217
|
+
*
|
3218
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3219
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3220
|
+
* @returns {string} A string representing the location.
|
3221
|
+
*/
|
3222
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3223
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3224
|
+
}
|
3225
|
+
/**
|
3226
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3227
|
+
*
|
3228
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3229
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3230
|
+
* @returns {string} A string representing the data_store.
|
3231
|
+
*/
|
3232
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3233
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3234
|
+
}
|
3235
|
+
/**
|
3236
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3237
|
+
*
|
3238
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3239
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3240
|
+
* @returns {string} A string representing the sitemap.
|
3241
|
+
*/
|
3242
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3243
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3244
|
+
}
|
2905
3245
|
/**
|
2906
3246
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2907
3247
|
*
|
@@ -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",
|