@google-cloud/discoveryengine 1.9.0 → 1.11.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 +19 -0
- package/README.md +32 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
- package/build/protos/protos.d.ts +31310 -20211
- package/build/protos/protos.js +86710 -60571
- package/build/protos/protos.json +7720 -5011
- package/build/src/v1/completion_service_client.d.ts +220 -0
- package/build/src/v1/completion_service_client.js +260 -0
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/control_service_client.d.ts +129 -1
- package/build/src/v1/control_service_client.js +176 -0
- package/build/src/v1/conversational_search_service_client.d.ts +147 -1
- package/build/src/v1/conversational_search_service_client.js +176 -0
- package/build/src/v1/data_store_service_client.d.ts +129 -1
- package/build/src/v1/data_store_service_client.js +176 -0
- package/build/src/v1/document_service_client.d.ts +131 -1
- package/build/src/v1/document_service_client.js +176 -0
- package/build/src/v1/engine_service_client.d.ts +129 -1
- package/build/src/v1/engine_service_client.js +176 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
- package/build/src/v1/grounded_generation_service_client.js +176 -0
- package/build/src/v1/project_service_client.d.ts +129 -0
- package/build/src/v1/project_service_client.js +176 -0
- package/build/src/v1/rank_service_client.d.ts +129 -0
- package/build/src/v1/rank_service_client.js +176 -0
- package/build/src/v1/recommendation_service_client.d.ts +129 -0
- package/build/src/v1/recommendation_service_client.js +176 -0
- package/build/src/v1/schema_service_client.d.ts +129 -1
- package/build/src/v1/schema_service_client.js +176 -0
- package/build/src/v1/search_service_client.d.ts +252 -1
- package/build/src/v1/search_service_client.js +258 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
- package/build/src/v1/site_search_engine_service_client.js +176 -0
- package/build/src/v1/user_event_service_client.d.ts +129 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
- package/build/src/v1alpha/acl_config_service_client.js +157 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +108 -1
- package/build/src/v1alpha/chunk_service_client.js +157 -0
- package/build/src/v1alpha/completion_service_client.d.ts +108 -0
- package/build/src/v1alpha/completion_service_client.js +157 -0
- package/build/src/v1alpha/control_service_client.d.ts +108 -1
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -1
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -1
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -1
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -1
- package/build/src/v1alpha/engine_service_client.js +157 -0
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
- package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
- package/build/src/v1alpha/evaluation_service_client.js +3288 -0
- package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
- package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
- package/build/src/v1alpha/index.d.ts +3 -0
- package/build/src/v1alpha/index.js +7 -1
- package/build/src/v1alpha/project_service_client.d.ts +108 -0
- package/build/src/v1alpha/project_service_client.js +157 -0
- package/build/src/v1alpha/rank_service_client.d.ts +108 -0
- package/build/src/v1alpha/rank_service_client.js +157 -0
- package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
- package/build/src/v1alpha/recommendation_service_client.js +157 -0
- package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
- package/build/src/v1alpha/sample_query_service_client.js +3186 -0
- package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
- package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
- package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1alpha/schema_service_client.d.ts +108 -1
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -1
- package/build/src/v1alpha/search_service_client.js +157 -0
- package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
- package/build/src/v1alpha/search_tuning_service_client.js +157 -0
- package/build/src/v1alpha/serving_config_service_client.d.ts +108 -1
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -1
- package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
- package/build/src/v1alpha/user_event_service_client.js +157 -0
- package/build/src/v1beta/completion_service_client.d.ts +237 -0
- package/build/src/v1beta/completion_service_client.js +339 -0
- package/build/src/v1beta/control_service_client.d.ts +237 -1
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -1
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -1
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -1
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -1
- package/build/src/v1beta/engine_service_client.js +339 -0
- package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
- package/build/src/v1beta/evaluation_service_client.js +3252 -0
- package/build/src/v1beta/evaluation_service_client_config.json +58 -0
- package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
- package/build/src/v1beta/grounded_generation_service_client.js +333 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +7 -1
- package/build/src/v1beta/project_service_client.d.ts +237 -0
- package/build/src/v1beta/project_service_client.js +339 -0
- package/build/src/v1beta/rank_service_client.d.ts +237 -0
- package/build/src/v1beta/rank_service_client.js +333 -0
- package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
- package/build/src/v1beta/recommendation_service_client.js +333 -0
- package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
- package/build/src/v1beta/sample_query_service_client.js +3150 -0
- package/build/src/v1beta/sample_query_service_client_config.json +68 -0
- package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
- package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
- package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
- package/build/src/v1beta/schema_service_client.d.ts +237 -1
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -13
- package/build/src/v1beta/search_service_client.js +353 -8
- package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
- package/build/src/v1beta/search_tuning_service_client.js +339 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +237 -1
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -1
- package/build/src/v1beta/site_search_engine_service_client.js +339 -0
- package/build/src/v1beta/user_event_service_client.d.ts +237 -0
- package/build/src/v1beta/user_event_service_client.js +339 -0
- package/package.json +1 -1
@@ -151,10 +151,12 @@ class GroundedGenerationServiceClient {
|
|
151
151
|
// Create useful helper objects for these.
|
152
152
|
this.pathTemplates = {
|
153
153
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
154
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
154
155
|
groundingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/groundingConfigs/{grounding_config}'),
|
155
156
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
156
157
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
157
158
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
159
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
158
160
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
159
161
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
160
162
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -172,6 +174,7 @@ class GroundedGenerationServiceClient {
|
|
172
174
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
173
175
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
174
176
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
177
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
175
178
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
176
179
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
177
180
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -182,6 +185,8 @@ class GroundedGenerationServiceClient {
|
|
182
185
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
183
186
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
184
187
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
188
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
189
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
185
190
|
};
|
186
191
|
// Put together the default options sent with requests.
|
187
192
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.GroundedGenerationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -430,6 +435,54 @@ class GroundedGenerationServiceClient {
|
|
430
435
|
matchEngineFromEngineName(engineName) {
|
431
436
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
432
437
|
}
|
438
|
+
/**
|
439
|
+
* Return a fully-qualified evaluation resource name string.
|
440
|
+
*
|
441
|
+
* @param {string} project
|
442
|
+
* @param {string} location
|
443
|
+
* @param {string} evaluation
|
444
|
+
* @returns {string} Resource name string.
|
445
|
+
*/
|
446
|
+
evaluationPath(project, location, evaluation) {
|
447
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
448
|
+
project: project,
|
449
|
+
location: location,
|
450
|
+
evaluation: evaluation,
|
451
|
+
});
|
452
|
+
}
|
453
|
+
/**
|
454
|
+
* Parse the project from Evaluation resource.
|
455
|
+
*
|
456
|
+
* @param {string} evaluationName
|
457
|
+
* A fully-qualified path representing Evaluation resource.
|
458
|
+
* @returns {string} A string representing the project.
|
459
|
+
*/
|
460
|
+
matchProjectFromEvaluationName(evaluationName) {
|
461
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
462
|
+
.project;
|
463
|
+
}
|
464
|
+
/**
|
465
|
+
* Parse the location from Evaluation resource.
|
466
|
+
*
|
467
|
+
* @param {string} evaluationName
|
468
|
+
* A fully-qualified path representing Evaluation resource.
|
469
|
+
* @returns {string} A string representing the location.
|
470
|
+
*/
|
471
|
+
matchLocationFromEvaluationName(evaluationName) {
|
472
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
473
|
+
.location;
|
474
|
+
}
|
475
|
+
/**
|
476
|
+
* Parse the evaluation from Evaluation resource.
|
477
|
+
*
|
478
|
+
* @param {string} evaluationName
|
479
|
+
* A fully-qualified path representing Evaluation resource.
|
480
|
+
* @returns {string} A string representing the evaluation.
|
481
|
+
*/
|
482
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
483
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
484
|
+
.evaluation;
|
485
|
+
}
|
433
486
|
/**
|
434
487
|
* Return a fully-qualified groundingConfig resource name string.
|
435
488
|
*
|
@@ -634,6 +687,99 @@ class GroundedGenerationServiceClient {
|
|
634
687
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
635
688
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
636
689
|
}
|
690
|
+
/**
|
691
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
692
|
+
*
|
693
|
+
* @param {string} project
|
694
|
+
* @param {string} location
|
695
|
+
* @param {string} collection
|
696
|
+
* @param {string} data_store
|
697
|
+
* @param {string} branch
|
698
|
+
* @param {string} document
|
699
|
+
* @param {string} chunk
|
700
|
+
* @returns {string} Resource name string.
|
701
|
+
*/
|
702
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
703
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
704
|
+
project: project,
|
705
|
+
location: location,
|
706
|
+
collection: collection,
|
707
|
+
data_store: dataStore,
|
708
|
+
branch: branch,
|
709
|
+
document: document,
|
710
|
+
chunk: chunk,
|
711
|
+
});
|
712
|
+
}
|
713
|
+
/**
|
714
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
715
|
+
*
|
716
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
717
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
718
|
+
* @returns {string} A string representing the project.
|
719
|
+
*/
|
720
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
721
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
722
|
+
}
|
723
|
+
/**
|
724
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
725
|
+
*
|
726
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
727
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
728
|
+
* @returns {string} A string representing the location.
|
729
|
+
*/
|
730
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
731
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
732
|
+
}
|
733
|
+
/**
|
734
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
735
|
+
*
|
736
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
737
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
738
|
+
* @returns {string} A string representing the collection.
|
739
|
+
*/
|
740
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
741
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
742
|
+
}
|
743
|
+
/**
|
744
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
745
|
+
*
|
746
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
747
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
748
|
+
* @returns {string} A string representing the data_store.
|
749
|
+
*/
|
750
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
751
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
752
|
+
}
|
753
|
+
/**
|
754
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
755
|
+
*
|
756
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
757
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
758
|
+
* @returns {string} A string representing the branch.
|
759
|
+
*/
|
760
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
761
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
762
|
+
}
|
763
|
+
/**
|
764
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
765
|
+
*
|
766
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
767
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
768
|
+
* @returns {string} A string representing the document.
|
769
|
+
*/
|
770
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
771
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
772
|
+
}
|
773
|
+
/**
|
774
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
775
|
+
*
|
776
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
777
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
778
|
+
* @returns {string} A string representing the chunk.
|
779
|
+
*/
|
780
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
781
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
782
|
+
}
|
637
783
|
/**
|
638
784
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
639
785
|
*
|
@@ -1783,6 +1929,87 @@ class GroundedGenerationServiceClient {
|
|
1783
1929
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1784
1930
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1785
1931
|
}
|
1932
|
+
/**
|
1933
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1934
|
+
*
|
1935
|
+
* @param {string} project
|
1936
|
+
* @param {string} location
|
1937
|
+
* @param {string} data_store
|
1938
|
+
* @param {string} branch
|
1939
|
+
* @param {string} document
|
1940
|
+
* @param {string} chunk
|
1941
|
+
* @returns {string} Resource name string.
|
1942
|
+
*/
|
1943
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1944
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1945
|
+
project: project,
|
1946
|
+
location: location,
|
1947
|
+
data_store: dataStore,
|
1948
|
+
branch: branch,
|
1949
|
+
document: document,
|
1950
|
+
chunk: chunk,
|
1951
|
+
});
|
1952
|
+
}
|
1953
|
+
/**
|
1954
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1955
|
+
*
|
1956
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1957
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1958
|
+
* @returns {string} A string representing the project.
|
1959
|
+
*/
|
1960
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1961
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1962
|
+
}
|
1963
|
+
/**
|
1964
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1965
|
+
*
|
1966
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1967
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1968
|
+
* @returns {string} A string representing the location.
|
1969
|
+
*/
|
1970
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1971
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1972
|
+
}
|
1973
|
+
/**
|
1974
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1975
|
+
*
|
1976
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1977
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1978
|
+
* @returns {string} A string representing the data_store.
|
1979
|
+
*/
|
1980
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1981
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1982
|
+
}
|
1983
|
+
/**
|
1984
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1985
|
+
*
|
1986
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1987
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1988
|
+
* @returns {string} A string representing the branch.
|
1989
|
+
*/
|
1990
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1991
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1992
|
+
}
|
1993
|
+
/**
|
1994
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1995
|
+
*
|
1996
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1997
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1998
|
+
* @returns {string} A string representing the document.
|
1999
|
+
*/
|
2000
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2001
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2002
|
+
}
|
2003
|
+
/**
|
2004
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2005
|
+
*
|
2006
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2007
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2008
|
+
* @returns {string} A string representing the chunk.
|
2009
|
+
*/
|
2010
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2011
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2012
|
+
}
|
1786
2013
|
/**
|
1787
2014
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1788
2015
|
*
|
@@ -2341,6 +2568,112 @@ class GroundedGenerationServiceClient {
|
|
2341
2568
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2342
2569
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2343
2570
|
}
|
2571
|
+
/**
|
2572
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2573
|
+
*
|
2574
|
+
* @param {string} project
|
2575
|
+
* @param {string} location
|
2576
|
+
* @param {string} sample_query_set
|
2577
|
+
* @param {string} sample_query
|
2578
|
+
* @returns {string} Resource name string.
|
2579
|
+
*/
|
2580
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2581
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2582
|
+
project: project,
|
2583
|
+
location: location,
|
2584
|
+
sample_query_set: sampleQuerySet,
|
2585
|
+
sample_query: sampleQuery,
|
2586
|
+
});
|
2587
|
+
}
|
2588
|
+
/**
|
2589
|
+
* Parse the project from SampleQuery resource.
|
2590
|
+
*
|
2591
|
+
* @param {string} sampleQueryName
|
2592
|
+
* A fully-qualified path representing SampleQuery resource.
|
2593
|
+
* @returns {string} A string representing the project.
|
2594
|
+
*/
|
2595
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2596
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2597
|
+
.project;
|
2598
|
+
}
|
2599
|
+
/**
|
2600
|
+
* Parse the location from SampleQuery resource.
|
2601
|
+
*
|
2602
|
+
* @param {string} sampleQueryName
|
2603
|
+
* A fully-qualified path representing SampleQuery resource.
|
2604
|
+
* @returns {string} A string representing the location.
|
2605
|
+
*/
|
2606
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2607
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2608
|
+
.location;
|
2609
|
+
}
|
2610
|
+
/**
|
2611
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2612
|
+
*
|
2613
|
+
* @param {string} sampleQueryName
|
2614
|
+
* A fully-qualified path representing SampleQuery resource.
|
2615
|
+
* @returns {string} A string representing the sample_query_set.
|
2616
|
+
*/
|
2617
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2618
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2619
|
+
.sample_query_set;
|
2620
|
+
}
|
2621
|
+
/**
|
2622
|
+
* Parse the sample_query from SampleQuery resource.
|
2623
|
+
*
|
2624
|
+
* @param {string} sampleQueryName
|
2625
|
+
* A fully-qualified path representing SampleQuery resource.
|
2626
|
+
* @returns {string} A string representing the sample_query.
|
2627
|
+
*/
|
2628
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2629
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2630
|
+
.sample_query;
|
2631
|
+
}
|
2632
|
+
/**
|
2633
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2634
|
+
*
|
2635
|
+
* @param {string} project
|
2636
|
+
* @param {string} location
|
2637
|
+
* @param {string} sample_query_set
|
2638
|
+
* @returns {string} Resource name string.
|
2639
|
+
*/
|
2640
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2641
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2642
|
+
project: project,
|
2643
|
+
location: location,
|
2644
|
+
sample_query_set: sampleQuerySet,
|
2645
|
+
});
|
2646
|
+
}
|
2647
|
+
/**
|
2648
|
+
* Parse the project from SampleQuerySet resource.
|
2649
|
+
*
|
2650
|
+
* @param {string} sampleQuerySetName
|
2651
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2652
|
+
* @returns {string} A string representing the project.
|
2653
|
+
*/
|
2654
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2655
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2656
|
+
}
|
2657
|
+
/**
|
2658
|
+
* Parse the location from SampleQuerySet resource.
|
2659
|
+
*
|
2660
|
+
* @param {string} sampleQuerySetName
|
2661
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2662
|
+
* @returns {string} A string representing the location.
|
2663
|
+
*/
|
2664
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2665
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2666
|
+
}
|
2667
|
+
/**
|
2668
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2669
|
+
*
|
2670
|
+
* @param {string} sampleQuerySetName
|
2671
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2672
|
+
* @returns {string} A string representing the sample_query_set.
|
2673
|
+
*/
|
2674
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2675
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2676
|
+
}
|
2344
2677
|
/**
|
2345
2678
|
* Terminate the gRPC channel and close the client.
|
2346
2679
|
*
|
@@ -4,10 +4,13 @@ export { ConversationalSearchServiceClient } from './conversational_search_servi
|
|
4
4
|
export { DataStoreServiceClient } from './data_store_service_client';
|
5
5
|
export { DocumentServiceClient } from './document_service_client';
|
6
6
|
export { EngineServiceClient } from './engine_service_client';
|
7
|
+
export { EvaluationServiceClient } from './evaluation_service_client';
|
7
8
|
export { GroundedGenerationServiceClient } from './grounded_generation_service_client';
|
8
9
|
export { ProjectServiceClient } from './project_service_client';
|
9
10
|
export { RankServiceClient } from './rank_service_client';
|
10
11
|
export { RecommendationServiceClient } from './recommendation_service_client';
|
12
|
+
export { SampleQueryServiceClient } from './sample_query_service_client';
|
13
|
+
export { SampleQuerySetServiceClient } from './sample_query_set_service_client';
|
11
14
|
export { SchemaServiceClient } from './schema_service_client';
|
12
15
|
export { SearchServiceClient } from './search_service_client';
|
13
16
|
export { SearchTuningServiceClient } from './search_tuning_service_client';
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
|
20
|
+
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.SampleQuerySetServiceClient = exports.SampleQueryServiceClient = exports.RecommendationServiceClient = exports.RankServiceClient = exports.ProjectServiceClient = exports.GroundedGenerationServiceClient = exports.EvaluationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.ControlServiceClient = exports.CompletionServiceClient = void 0;
|
21
21
|
var completion_service_client_1 = require("./completion_service_client");
|
22
22
|
Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
|
23
23
|
var control_service_client_1 = require("./control_service_client");
|
@@ -30,6 +30,8 @@ var document_service_client_1 = require("./document_service_client");
|
|
30
30
|
Object.defineProperty(exports, "DocumentServiceClient", { enumerable: true, get: function () { return document_service_client_1.DocumentServiceClient; } });
|
31
31
|
var engine_service_client_1 = require("./engine_service_client");
|
32
32
|
Object.defineProperty(exports, "EngineServiceClient", { enumerable: true, get: function () { return engine_service_client_1.EngineServiceClient; } });
|
33
|
+
var evaluation_service_client_1 = require("./evaluation_service_client");
|
34
|
+
Object.defineProperty(exports, "EvaluationServiceClient", { enumerable: true, get: function () { return evaluation_service_client_1.EvaluationServiceClient; } });
|
33
35
|
var grounded_generation_service_client_1 = require("./grounded_generation_service_client");
|
34
36
|
Object.defineProperty(exports, "GroundedGenerationServiceClient", { enumerable: true, get: function () { return grounded_generation_service_client_1.GroundedGenerationServiceClient; } });
|
35
37
|
var project_service_client_1 = require("./project_service_client");
|
@@ -38,6 +40,10 @@ var rank_service_client_1 = require("./rank_service_client");
|
|
38
40
|
Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
|
39
41
|
var recommendation_service_client_1 = require("./recommendation_service_client");
|
40
42
|
Object.defineProperty(exports, "RecommendationServiceClient", { enumerable: true, get: function () { return recommendation_service_client_1.RecommendationServiceClient; } });
|
43
|
+
var sample_query_service_client_1 = require("./sample_query_service_client");
|
44
|
+
Object.defineProperty(exports, "SampleQueryServiceClient", { enumerable: true, get: function () { return sample_query_service_client_1.SampleQueryServiceClient; } });
|
45
|
+
var sample_query_set_service_client_1 = require("./sample_query_set_service_client");
|
46
|
+
Object.defineProperty(exports, "SampleQuerySetServiceClient", { enumerable: true, get: function () { return sample_query_set_service_client_1.SampleQuerySetServiceClient; } });
|
41
47
|
var schema_service_client_1 = require("./schema_service_client");
|
42
48
|
Object.defineProperty(exports, "SchemaServiceClient", { enumerable: true, get: function () { return schema_service_client_1.SchemaServiceClient; } });
|
43
49
|
var search_service_client_1 = require("./search_service_client");
|