@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 DocumentServiceClient {
|
|
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}'),
|
@@ -198,9 +201,11 @@ class DocumentServiceClient {
|
|
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,
|
@@ -476,7 +481,9 @@ class DocumentServiceClient {
|
|
476
481
|
this._gaxModule.routingHeader.fromParams({
|
477
482
|
name: request.name ?? '',
|
478
483
|
});
|
479
|
-
this.initialize()
|
484
|
+
this.initialize().catch(err => {
|
485
|
+
throw err;
|
486
|
+
});
|
480
487
|
this._log.info('getDocument request %j', request);
|
481
488
|
const wrappedCallback = callback
|
482
489
|
? (error, response, options, rawResponse) => {
|
@@ -508,7 +515,9 @@ class DocumentServiceClient {
|
|
508
515
|
this._gaxModule.routingHeader.fromParams({
|
509
516
|
parent: request.parent ?? '',
|
510
517
|
});
|
511
|
-
this.initialize()
|
518
|
+
this.initialize().catch(err => {
|
519
|
+
throw err;
|
520
|
+
});
|
512
521
|
this._log.info('createDocument request %j', request);
|
513
522
|
const wrappedCallback = callback
|
514
523
|
? (error, response, options, rawResponse) => {
|
@@ -540,7 +549,9 @@ class DocumentServiceClient {
|
|
540
549
|
this._gaxModule.routingHeader.fromParams({
|
541
550
|
'document.name': request.document.name ?? '',
|
542
551
|
});
|
543
|
-
this.initialize()
|
552
|
+
this.initialize().catch(err => {
|
553
|
+
throw err;
|
554
|
+
});
|
544
555
|
this._log.info('updateDocument request %j', request);
|
545
556
|
const wrappedCallback = callback
|
546
557
|
? (error, response, options, rawResponse) => {
|
@@ -572,7 +583,9 @@ class DocumentServiceClient {
|
|
572
583
|
this._gaxModule.routingHeader.fromParams({
|
573
584
|
name: request.name ?? '',
|
574
585
|
});
|
575
|
-
this.initialize()
|
586
|
+
this.initialize().catch(err => {
|
587
|
+
throw err;
|
588
|
+
});
|
576
589
|
this._log.info('deleteDocument request %j', request);
|
577
590
|
const wrappedCallback = callback
|
578
591
|
? (error, response, options, rawResponse) => {
|
@@ -604,7 +617,9 @@ class DocumentServiceClient {
|
|
604
617
|
this._gaxModule.routingHeader.fromParams({
|
605
618
|
parent: request.parent ?? '',
|
606
619
|
});
|
607
|
-
this.initialize()
|
620
|
+
this.initialize().catch(err => {
|
621
|
+
throw err;
|
622
|
+
});
|
608
623
|
this._log.info('batchGetDocumentsMetadata request %j', request);
|
609
624
|
const wrappedCallback = callback
|
610
625
|
? (error, response, options, rawResponse) => {
|
@@ -636,7 +651,9 @@ class DocumentServiceClient {
|
|
636
651
|
this._gaxModule.routingHeader.fromParams({
|
637
652
|
parent: request.parent ?? '',
|
638
653
|
});
|
639
|
-
this.initialize()
|
654
|
+
this.initialize().catch(err => {
|
655
|
+
throw err;
|
656
|
+
});
|
640
657
|
const wrappedCallback = callback
|
641
658
|
? (error, response, rawResponse, _) => {
|
642
659
|
this._log.info('importDocuments response %j', rawResponse);
|
@@ -686,7 +703,9 @@ class DocumentServiceClient {
|
|
686
703
|
this._gaxModule.routingHeader.fromParams({
|
687
704
|
parent: request.parent ?? '',
|
688
705
|
});
|
689
|
-
this.initialize()
|
706
|
+
this.initialize().catch(err => {
|
707
|
+
throw err;
|
708
|
+
});
|
690
709
|
const wrappedCallback = callback
|
691
710
|
? (error, response, rawResponse, _) => {
|
692
711
|
this._log.info('purgeDocuments response %j', rawResponse);
|
@@ -736,7 +755,9 @@ class DocumentServiceClient {
|
|
736
755
|
this._gaxModule.routingHeader.fromParams({
|
737
756
|
parent: request.parent ?? '',
|
738
757
|
});
|
739
|
-
this.initialize()
|
758
|
+
this.initialize().catch(err => {
|
759
|
+
throw err;
|
760
|
+
});
|
740
761
|
const wrappedCallback = callback
|
741
762
|
? (error, values, nextPageRequest, rawResponse) => {
|
742
763
|
this._log.info('listDocuments values %j', values);
|
@@ -804,7 +825,9 @@ class DocumentServiceClient {
|
|
804
825
|
});
|
805
826
|
const defaultCallSettings = this._defaults['listDocuments'];
|
806
827
|
const callSettings = defaultCallSettings.merge(options);
|
807
|
-
this.initialize()
|
828
|
+
this.initialize().catch(err => {
|
829
|
+
throw err;
|
830
|
+
});
|
808
831
|
this._log.info('listDocuments stream %j', request);
|
809
832
|
return this.descriptors.page.listDocuments.createStream(this.innerApiCalls.listDocuments, request, callSettings);
|
810
833
|
}
|
@@ -864,7 +887,9 @@ class DocumentServiceClient {
|
|
864
887
|
});
|
865
888
|
const defaultCallSettings = this._defaults['listDocuments'];
|
866
889
|
const callSettings = defaultCallSettings.merge(options);
|
867
|
-
this.initialize()
|
890
|
+
this.initialize().catch(err => {
|
891
|
+
throw err;
|
892
|
+
});
|
868
893
|
this._log.info('listDocuments iterate %j', request);
|
869
894
|
return this.descriptors.page.listDocuments.asyncIterate(this.innerApiCalls['listDocuments'], request, callSettings);
|
870
895
|
}
|
@@ -1817,6 +1842,75 @@ class DocumentServiceClient {
|
|
1817
1842
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1818
1843
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1819
1844
|
}
|
1845
|
+
/**
|
1846
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1847
|
+
*
|
1848
|
+
* @param {string} project
|
1849
|
+
* @param {string} location
|
1850
|
+
* @param {string} collection
|
1851
|
+
* @param {string} data_store
|
1852
|
+
* @param {string} serving_config
|
1853
|
+
* @returns {string} Resource name string.
|
1854
|
+
*/
|
1855
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1856
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1857
|
+
project: project,
|
1858
|
+
location: location,
|
1859
|
+
collection: collection,
|
1860
|
+
data_store: dataStore,
|
1861
|
+
serving_config: servingConfig,
|
1862
|
+
});
|
1863
|
+
}
|
1864
|
+
/**
|
1865
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1866
|
+
*
|
1867
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1868
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1869
|
+
* @returns {string} A string representing the project.
|
1870
|
+
*/
|
1871
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1872
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1873
|
+
}
|
1874
|
+
/**
|
1875
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1876
|
+
*
|
1877
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1878
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1879
|
+
* @returns {string} A string representing the location.
|
1880
|
+
*/
|
1881
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1882
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1883
|
+
}
|
1884
|
+
/**
|
1885
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1886
|
+
*
|
1887
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1888
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1889
|
+
* @returns {string} A string representing the collection.
|
1890
|
+
*/
|
1891
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1892
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1893
|
+
}
|
1894
|
+
/**
|
1895
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1896
|
+
*
|
1897
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1898
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1899
|
+
* @returns {string} A string representing the data_store.
|
1900
|
+
*/
|
1901
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1902
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1903
|
+
}
|
1904
|
+
/**
|
1905
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1906
|
+
*
|
1907
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1908
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1909
|
+
* @returns {string} A string representing the serving_config.
|
1910
|
+
*/
|
1911
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1912
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1913
|
+
}
|
1820
1914
|
/**
|
1821
1915
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1822
1916
|
*
|
@@ -2024,6 +2118,75 @@ class DocumentServiceClient {
|
|
2024
2118
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
2025
2119
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
2026
2120
|
}
|
2121
|
+
/**
|
2122
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
2123
|
+
*
|
2124
|
+
* @param {string} project
|
2125
|
+
* @param {string} location
|
2126
|
+
* @param {string} collection
|
2127
|
+
* @param {string} data_store
|
2128
|
+
* @param {string} sitemap
|
2129
|
+
* @returns {string} Resource name string.
|
2130
|
+
*/
|
2131
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
2132
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2133
|
+
project: project,
|
2134
|
+
location: location,
|
2135
|
+
collection: collection,
|
2136
|
+
data_store: dataStore,
|
2137
|
+
sitemap: sitemap,
|
2138
|
+
});
|
2139
|
+
}
|
2140
|
+
/**
|
2141
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2142
|
+
*
|
2143
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2144
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2145
|
+
* @returns {string} A string representing the project.
|
2146
|
+
*/
|
2147
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2148
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
2149
|
+
}
|
2150
|
+
/**
|
2151
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2152
|
+
*
|
2153
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2154
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2155
|
+
* @returns {string} A string representing the location.
|
2156
|
+
*/
|
2157
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2158
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
2159
|
+
}
|
2160
|
+
/**
|
2161
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2162
|
+
*
|
2163
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2164
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2165
|
+
* @returns {string} A string representing the collection.
|
2166
|
+
*/
|
2167
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2168
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
2169
|
+
}
|
2170
|
+
/**
|
2171
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2172
|
+
*
|
2173
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2174
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2175
|
+
* @returns {string} A string representing the data_store.
|
2176
|
+
*/
|
2177
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2178
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
2179
|
+
}
|
2180
|
+
/**
|
2181
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
2182
|
+
*
|
2183
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
2184
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
2185
|
+
* @returns {string} A string representing the sitemap.
|
2186
|
+
*/
|
2187
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
2188
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
2189
|
+
}
|
2027
2190
|
/**
|
2028
2191
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
2029
2192
|
*
|
@@ -2231,6 +2394,75 @@ class DocumentServiceClient {
|
|
2231
2394
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
2232
2395
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
2233
2396
|
}
|
2397
|
+
/**
|
2398
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
2399
|
+
*
|
2400
|
+
* @param {string} project
|
2401
|
+
* @param {string} location
|
2402
|
+
* @param {string} collection
|
2403
|
+
* @param {string} engine
|
2404
|
+
* @param {string} serving_config
|
2405
|
+
* @returns {string} Resource name string.
|
2406
|
+
*/
|
2407
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
2408
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
2409
|
+
project: project,
|
2410
|
+
location: location,
|
2411
|
+
collection: collection,
|
2412
|
+
engine: engine,
|
2413
|
+
serving_config: servingConfig,
|
2414
|
+
});
|
2415
|
+
}
|
2416
|
+
/**
|
2417
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
2418
|
+
*
|
2419
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2420
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2421
|
+
* @returns {string} A string representing the project.
|
2422
|
+
*/
|
2423
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2424
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
2425
|
+
}
|
2426
|
+
/**
|
2427
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
2428
|
+
*
|
2429
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2430
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2431
|
+
* @returns {string} A string representing the location.
|
2432
|
+
*/
|
2433
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2434
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
2435
|
+
}
|
2436
|
+
/**
|
2437
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
2438
|
+
*
|
2439
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2440
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2441
|
+
* @returns {string} A string representing the collection.
|
2442
|
+
*/
|
2443
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2444
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
2445
|
+
}
|
2446
|
+
/**
|
2447
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
2448
|
+
*
|
2449
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2450
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2451
|
+
* @returns {string} A string representing the engine.
|
2452
|
+
*/
|
2453
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2454
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
2455
|
+
}
|
2456
|
+
/**
|
2457
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
2458
|
+
*
|
2459
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
2460
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
2461
|
+
* @returns {string} A string representing the serving_config.
|
2462
|
+
*/
|
2463
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
2464
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
2465
|
+
}
|
2234
2466
|
/**
|
2235
2467
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
2236
2468
|
*
|
@@ -2906,6 +3138,63 @@ class DocumentServiceClient {
|
|
2906
3138
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2907
3139
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2908
3140
|
}
|
3141
|
+
/**
|
3142
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
3143
|
+
*
|
3144
|
+
* @param {string} project
|
3145
|
+
* @param {string} location
|
3146
|
+
* @param {string} data_store
|
3147
|
+
* @param {string} serving_config
|
3148
|
+
* @returns {string} Resource name string.
|
3149
|
+
*/
|
3150
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
3151
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
3152
|
+
project: project,
|
3153
|
+
location: location,
|
3154
|
+
data_store: dataStore,
|
3155
|
+
serving_config: servingConfig,
|
3156
|
+
});
|
3157
|
+
}
|
3158
|
+
/**
|
3159
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
3160
|
+
*
|
3161
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3162
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3163
|
+
* @returns {string} A string representing the project.
|
3164
|
+
*/
|
3165
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3166
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
3167
|
+
}
|
3168
|
+
/**
|
3169
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
3170
|
+
*
|
3171
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3172
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3173
|
+
* @returns {string} A string representing the location.
|
3174
|
+
*/
|
3175
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3176
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
3177
|
+
}
|
3178
|
+
/**
|
3179
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
3180
|
+
*
|
3181
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3182
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3183
|
+
* @returns {string} A string representing the data_store.
|
3184
|
+
*/
|
3185
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3186
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
3187
|
+
}
|
3188
|
+
/**
|
3189
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
3190
|
+
*
|
3191
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
3192
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
3193
|
+
* @returns {string} A string representing the serving_config.
|
3194
|
+
*/
|
3195
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
3196
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
3197
|
+
}
|
2909
3198
|
/**
|
2910
3199
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2911
3200
|
*
|
@@ -3077,6 +3366,63 @@ class DocumentServiceClient {
|
|
3077
3366
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
3078
3367
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
3079
3368
|
}
|
3369
|
+
/**
|
3370
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
3371
|
+
*
|
3372
|
+
* @param {string} project
|
3373
|
+
* @param {string} location
|
3374
|
+
* @param {string} data_store
|
3375
|
+
* @param {string} sitemap
|
3376
|
+
* @returns {string} Resource name string.
|
3377
|
+
*/
|
3378
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
3379
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
3380
|
+
project: project,
|
3381
|
+
location: location,
|
3382
|
+
data_store: dataStore,
|
3383
|
+
sitemap: sitemap,
|
3384
|
+
});
|
3385
|
+
}
|
3386
|
+
/**
|
3387
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3388
|
+
*
|
3389
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3390
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3391
|
+
* @returns {string} A string representing the project.
|
3392
|
+
*/
|
3393
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3394
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
3395
|
+
}
|
3396
|
+
/**
|
3397
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3398
|
+
*
|
3399
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3400
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3401
|
+
* @returns {string} A string representing the location.
|
3402
|
+
*/
|
3403
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3404
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
3405
|
+
}
|
3406
|
+
/**
|
3407
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3408
|
+
*
|
3409
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3410
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3411
|
+
* @returns {string} A string representing the data_store.
|
3412
|
+
*/
|
3413
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3414
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
3415
|
+
}
|
3416
|
+
/**
|
3417
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
3418
|
+
*
|
3419
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
3420
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
3421
|
+
* @returns {string} A string representing the sitemap.
|
3422
|
+
*/
|
3423
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
3424
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
3425
|
+
}
|
3080
3426
|
/**
|
3081
3427
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
3082
3428
|
*
|
@@ -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",
|