@google-cloud/discoveryengine 1.10.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 +12 -0
- package/README.md +30 -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 +28997 -20222
- package/build/protos/protos.js +74749 -54453
- package/build/protos/protos.json +6933 -4764
- 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 -0
- 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 -0
- package/build/src/v1alpha/control_service_client.js +157 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -0
- package/build/src/v1alpha/conversational_search_service_client.js +157 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +108 -0
- package/build/src/v1alpha/data_store_service_client.js +157 -0
- package/build/src/v1alpha/document_service_client.d.ts +108 -0
- package/build/src/v1alpha/document_service_client.js +157 -0
- package/build/src/v1alpha/engine_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1alpha/schema_service_client.js +157 -0
- package/build/src/v1alpha/search_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1alpha/serving_config_service_client.js +157 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -0
- 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 -0
- package/build/src/v1beta/control_service_client.js +333 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +237 -0
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +237 -0
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +237 -0
- package/build/src/v1beta/document_service_client.js +339 -0
- package/build/src/v1beta/engine_service_client.d.ts +237 -0
- 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 -0
- package/build/src/v1beta/schema_service_client.js +339 -0
- package/build/src/v1beta/search_service_client.d.ts +267 -12
- 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 -0
- package/build/src/v1beta/serving_config_service_client.js +333 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -0
- 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
@@ -509,6 +509,39 @@ export declare class CompletionServiceClient {
|
|
509
509
|
* @returns {string} A string representing the engine.
|
510
510
|
*/
|
511
511
|
matchEngineFromEngineName(engineName: string): string | number;
|
512
|
+
/**
|
513
|
+
* Return a fully-qualified evaluation resource name string.
|
514
|
+
*
|
515
|
+
* @param {string} project
|
516
|
+
* @param {string} location
|
517
|
+
* @param {string} evaluation
|
518
|
+
* @returns {string} Resource name string.
|
519
|
+
*/
|
520
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
521
|
+
/**
|
522
|
+
* Parse the project from Evaluation resource.
|
523
|
+
*
|
524
|
+
* @param {string} evaluationName
|
525
|
+
* A fully-qualified path representing Evaluation resource.
|
526
|
+
* @returns {string} A string representing the project.
|
527
|
+
*/
|
528
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
529
|
+
/**
|
530
|
+
* Parse the location from Evaluation resource.
|
531
|
+
*
|
532
|
+
* @param {string} evaluationName
|
533
|
+
* A fully-qualified path representing Evaluation resource.
|
534
|
+
* @returns {string} A string representing the location.
|
535
|
+
*/
|
536
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
537
|
+
/**
|
538
|
+
* Parse the evaluation from Evaluation resource.
|
539
|
+
*
|
540
|
+
* @param {string} evaluationName
|
541
|
+
* A fully-qualified path representing Evaluation resource.
|
542
|
+
* @returns {string} A string representing the evaluation.
|
543
|
+
*/
|
544
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
512
545
|
/**
|
513
546
|
* Return a fully-qualified project resource name string.
|
514
547
|
*
|
@@ -2015,6 +2048,81 @@ export declare class CompletionServiceClient {
|
|
2015
2048
|
* @returns {string} A string representing the target_site.
|
2016
2049
|
*/
|
2017
2050
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
2051
|
+
/**
|
2052
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2053
|
+
*
|
2054
|
+
* @param {string} project
|
2055
|
+
* @param {string} location
|
2056
|
+
* @param {string} sample_query_set
|
2057
|
+
* @param {string} sample_query
|
2058
|
+
* @returns {string} Resource name string.
|
2059
|
+
*/
|
2060
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
2061
|
+
/**
|
2062
|
+
* Parse the project from SampleQuery resource.
|
2063
|
+
*
|
2064
|
+
* @param {string} sampleQueryName
|
2065
|
+
* A fully-qualified path representing SampleQuery resource.
|
2066
|
+
* @returns {string} A string representing the project.
|
2067
|
+
*/
|
2068
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
2069
|
+
/**
|
2070
|
+
* Parse the location from SampleQuery resource.
|
2071
|
+
*
|
2072
|
+
* @param {string} sampleQueryName
|
2073
|
+
* A fully-qualified path representing SampleQuery resource.
|
2074
|
+
* @returns {string} A string representing the location.
|
2075
|
+
*/
|
2076
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
2077
|
+
/**
|
2078
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2079
|
+
*
|
2080
|
+
* @param {string} sampleQueryName
|
2081
|
+
* A fully-qualified path representing SampleQuery resource.
|
2082
|
+
* @returns {string} A string representing the sample_query_set.
|
2083
|
+
*/
|
2084
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
2085
|
+
/**
|
2086
|
+
* Parse the sample_query from SampleQuery resource.
|
2087
|
+
*
|
2088
|
+
* @param {string} sampleQueryName
|
2089
|
+
* A fully-qualified path representing SampleQuery resource.
|
2090
|
+
* @returns {string} A string representing the sample_query.
|
2091
|
+
*/
|
2092
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
2093
|
+
/**
|
2094
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2095
|
+
*
|
2096
|
+
* @param {string} project
|
2097
|
+
* @param {string} location
|
2098
|
+
* @param {string} sample_query_set
|
2099
|
+
* @returns {string} Resource name string.
|
2100
|
+
*/
|
2101
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
2102
|
+
/**
|
2103
|
+
* Parse the project from SampleQuerySet resource.
|
2104
|
+
*
|
2105
|
+
* @param {string} sampleQuerySetName
|
2106
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2107
|
+
* @returns {string} A string representing the project.
|
2108
|
+
*/
|
2109
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2110
|
+
/**
|
2111
|
+
* Parse the location from SampleQuerySet resource.
|
2112
|
+
*
|
2113
|
+
* @param {string} sampleQuerySetName
|
2114
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2115
|
+
* @returns {string} A string representing the location.
|
2116
|
+
*/
|
2117
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2118
|
+
/**
|
2119
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2120
|
+
*
|
2121
|
+
* @param {string} sampleQuerySetName
|
2122
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2123
|
+
* @returns {string} A string representing the sample_query_set.
|
2124
|
+
*/
|
2125
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2018
2126
|
/**
|
2019
2127
|
* Terminate the gRPC channel and close the client.
|
2020
2128
|
*
|
@@ -151,6 +151,7 @@ class CompletionServiceClient {
|
|
151
151
|
this.pathTemplates = {
|
152
152
|
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
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
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
155
156
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
156
157
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
@@ -183,6 +184,8 @@ class CompletionServiceClient {
|
|
183
184
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
184
185
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
185
186
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
187
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
188
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
186
189
|
};
|
187
190
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
188
191
|
// This API contains "long-running operations", which return a
|
@@ -797,6 +800,54 @@ class CompletionServiceClient {
|
|
797
800
|
matchEngineFromEngineName(engineName) {
|
798
801
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
799
802
|
}
|
803
|
+
/**
|
804
|
+
* Return a fully-qualified evaluation resource name string.
|
805
|
+
*
|
806
|
+
* @param {string} project
|
807
|
+
* @param {string} location
|
808
|
+
* @param {string} evaluation
|
809
|
+
* @returns {string} Resource name string.
|
810
|
+
*/
|
811
|
+
evaluationPath(project, location, evaluation) {
|
812
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
813
|
+
project: project,
|
814
|
+
location: location,
|
815
|
+
evaluation: evaluation,
|
816
|
+
});
|
817
|
+
}
|
818
|
+
/**
|
819
|
+
* Parse the project from Evaluation resource.
|
820
|
+
*
|
821
|
+
* @param {string} evaluationName
|
822
|
+
* A fully-qualified path representing Evaluation resource.
|
823
|
+
* @returns {string} A string representing the project.
|
824
|
+
*/
|
825
|
+
matchProjectFromEvaluationName(evaluationName) {
|
826
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
827
|
+
.project;
|
828
|
+
}
|
829
|
+
/**
|
830
|
+
* Parse the location from Evaluation resource.
|
831
|
+
*
|
832
|
+
* @param {string} evaluationName
|
833
|
+
* A fully-qualified path representing Evaluation resource.
|
834
|
+
* @returns {string} A string representing the location.
|
835
|
+
*/
|
836
|
+
matchLocationFromEvaluationName(evaluationName) {
|
837
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
838
|
+
.location;
|
839
|
+
}
|
840
|
+
/**
|
841
|
+
* Parse the evaluation from Evaluation resource.
|
842
|
+
*
|
843
|
+
* @param {string} evaluationName
|
844
|
+
* A fully-qualified path representing Evaluation resource.
|
845
|
+
* @returns {string} A string representing the evaluation.
|
846
|
+
*/
|
847
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
848
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
849
|
+
.evaluation;
|
850
|
+
}
|
800
851
|
/**
|
801
852
|
* Return a fully-qualified project resource name string.
|
802
853
|
*
|
@@ -2837,6 +2888,112 @@ class CompletionServiceClient {
|
|
2837
2888
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2838
2889
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2839
2890
|
}
|
2891
|
+
/**
|
2892
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2893
|
+
*
|
2894
|
+
* @param {string} project
|
2895
|
+
* @param {string} location
|
2896
|
+
* @param {string} sample_query_set
|
2897
|
+
* @param {string} sample_query
|
2898
|
+
* @returns {string} Resource name string.
|
2899
|
+
*/
|
2900
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2901
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2902
|
+
project: project,
|
2903
|
+
location: location,
|
2904
|
+
sample_query_set: sampleQuerySet,
|
2905
|
+
sample_query: sampleQuery,
|
2906
|
+
});
|
2907
|
+
}
|
2908
|
+
/**
|
2909
|
+
* Parse the project from SampleQuery resource.
|
2910
|
+
*
|
2911
|
+
* @param {string} sampleQueryName
|
2912
|
+
* A fully-qualified path representing SampleQuery resource.
|
2913
|
+
* @returns {string} A string representing the project.
|
2914
|
+
*/
|
2915
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2916
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2917
|
+
.project;
|
2918
|
+
}
|
2919
|
+
/**
|
2920
|
+
* Parse the location from SampleQuery resource.
|
2921
|
+
*
|
2922
|
+
* @param {string} sampleQueryName
|
2923
|
+
* A fully-qualified path representing SampleQuery resource.
|
2924
|
+
* @returns {string} A string representing the location.
|
2925
|
+
*/
|
2926
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2927
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2928
|
+
.location;
|
2929
|
+
}
|
2930
|
+
/**
|
2931
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2932
|
+
*
|
2933
|
+
* @param {string} sampleQueryName
|
2934
|
+
* A fully-qualified path representing SampleQuery resource.
|
2935
|
+
* @returns {string} A string representing the sample_query_set.
|
2936
|
+
*/
|
2937
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2938
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2939
|
+
.sample_query_set;
|
2940
|
+
}
|
2941
|
+
/**
|
2942
|
+
* Parse the sample_query from SampleQuery resource.
|
2943
|
+
*
|
2944
|
+
* @param {string} sampleQueryName
|
2945
|
+
* A fully-qualified path representing SampleQuery resource.
|
2946
|
+
* @returns {string} A string representing the sample_query.
|
2947
|
+
*/
|
2948
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2949
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2950
|
+
.sample_query;
|
2951
|
+
}
|
2952
|
+
/**
|
2953
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2954
|
+
*
|
2955
|
+
* @param {string} project
|
2956
|
+
* @param {string} location
|
2957
|
+
* @param {string} sample_query_set
|
2958
|
+
* @returns {string} Resource name string.
|
2959
|
+
*/
|
2960
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2961
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2962
|
+
project: project,
|
2963
|
+
location: location,
|
2964
|
+
sample_query_set: sampleQuerySet,
|
2965
|
+
});
|
2966
|
+
}
|
2967
|
+
/**
|
2968
|
+
* Parse the project from SampleQuerySet resource.
|
2969
|
+
*
|
2970
|
+
* @param {string} sampleQuerySetName
|
2971
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2972
|
+
* @returns {string} A string representing the project.
|
2973
|
+
*/
|
2974
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2975
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2976
|
+
}
|
2977
|
+
/**
|
2978
|
+
* Parse the location from SampleQuerySet resource.
|
2979
|
+
*
|
2980
|
+
* @param {string} sampleQuerySetName
|
2981
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2982
|
+
* @returns {string} A string representing the location.
|
2983
|
+
*/
|
2984
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2985
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2986
|
+
}
|
2987
|
+
/**
|
2988
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2989
|
+
*
|
2990
|
+
* @param {string} sampleQuerySetName
|
2991
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2992
|
+
* @returns {string} A string representing the sample_query_set.
|
2993
|
+
*/
|
2994
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2995
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2996
|
+
}
|
2840
2997
|
/**
|
2841
2998
|
* Terminate the gRPC channel and close the client.
|
2842
2999
|
*
|
@@ -472,6 +472,39 @@ export declare class ControlServiceClient {
|
|
472
472
|
* @returns {string} A string representing the engine.
|
473
473
|
*/
|
474
474
|
matchEngineFromEngineName(engineName: string): string | number;
|
475
|
+
/**
|
476
|
+
* Return a fully-qualified evaluation resource name string.
|
477
|
+
*
|
478
|
+
* @param {string} project
|
479
|
+
* @param {string} location
|
480
|
+
* @param {string} evaluation
|
481
|
+
* @returns {string} Resource name string.
|
482
|
+
*/
|
483
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
484
|
+
/**
|
485
|
+
* Parse the project from Evaluation resource.
|
486
|
+
*
|
487
|
+
* @param {string} evaluationName
|
488
|
+
* A fully-qualified path representing Evaluation resource.
|
489
|
+
* @returns {string} A string representing the project.
|
490
|
+
*/
|
491
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
492
|
+
/**
|
493
|
+
* Parse the location from Evaluation resource.
|
494
|
+
*
|
495
|
+
* @param {string} evaluationName
|
496
|
+
* A fully-qualified path representing Evaluation resource.
|
497
|
+
* @returns {string} A string representing the location.
|
498
|
+
*/
|
499
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
500
|
+
/**
|
501
|
+
* Parse the evaluation from Evaluation resource.
|
502
|
+
*
|
503
|
+
* @param {string} evaluationName
|
504
|
+
* A fully-qualified path representing Evaluation resource.
|
505
|
+
* @returns {string} A string representing the evaluation.
|
506
|
+
*/
|
507
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
475
508
|
/**
|
476
509
|
* Return a fully-qualified location resource name string.
|
477
510
|
*
|
@@ -2002,6 +2035,81 @@ export declare class ControlServiceClient {
|
|
2002
2035
|
* @returns {string} A string representing the target_site.
|
2003
2036
|
*/
|
2004
2037
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
2038
|
+
/**
|
2039
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2040
|
+
*
|
2041
|
+
* @param {string} project
|
2042
|
+
* @param {string} location
|
2043
|
+
* @param {string} sample_query_set
|
2044
|
+
* @param {string} sample_query
|
2045
|
+
* @returns {string} Resource name string.
|
2046
|
+
*/
|
2047
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
2048
|
+
/**
|
2049
|
+
* Parse the project from SampleQuery resource.
|
2050
|
+
*
|
2051
|
+
* @param {string} sampleQueryName
|
2052
|
+
* A fully-qualified path representing SampleQuery resource.
|
2053
|
+
* @returns {string} A string representing the project.
|
2054
|
+
*/
|
2055
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
2056
|
+
/**
|
2057
|
+
* Parse the location from SampleQuery resource.
|
2058
|
+
*
|
2059
|
+
* @param {string} sampleQueryName
|
2060
|
+
* A fully-qualified path representing SampleQuery resource.
|
2061
|
+
* @returns {string} A string representing the location.
|
2062
|
+
*/
|
2063
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
2064
|
+
/**
|
2065
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2066
|
+
*
|
2067
|
+
* @param {string} sampleQueryName
|
2068
|
+
* A fully-qualified path representing SampleQuery resource.
|
2069
|
+
* @returns {string} A string representing the sample_query_set.
|
2070
|
+
*/
|
2071
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
2072
|
+
/**
|
2073
|
+
* Parse the sample_query from SampleQuery resource.
|
2074
|
+
*
|
2075
|
+
* @param {string} sampleQueryName
|
2076
|
+
* A fully-qualified path representing SampleQuery resource.
|
2077
|
+
* @returns {string} A string representing the sample_query.
|
2078
|
+
*/
|
2079
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
2080
|
+
/**
|
2081
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2082
|
+
*
|
2083
|
+
* @param {string} project
|
2084
|
+
* @param {string} location
|
2085
|
+
* @param {string} sample_query_set
|
2086
|
+
* @returns {string} Resource name string.
|
2087
|
+
*/
|
2088
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
2089
|
+
/**
|
2090
|
+
* Parse the project from SampleQuerySet resource.
|
2091
|
+
*
|
2092
|
+
* @param {string} sampleQuerySetName
|
2093
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2094
|
+
* @returns {string} A string representing the project.
|
2095
|
+
*/
|
2096
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2097
|
+
/**
|
2098
|
+
* Parse the location from SampleQuerySet resource.
|
2099
|
+
*
|
2100
|
+
* @param {string} sampleQuerySetName
|
2101
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2102
|
+
* @returns {string} A string representing the location.
|
2103
|
+
*/
|
2104
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2105
|
+
/**
|
2106
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2107
|
+
*
|
2108
|
+
* @param {string} sampleQuerySetName
|
2109
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2110
|
+
* @returns {string} A string representing the sample_query_set.
|
2111
|
+
*/
|
2112
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2005
2113
|
/**
|
2006
2114
|
* Terminate the gRPC channel and close the client.
|
2007
2115
|
*
|
@@ -154,6 +154,7 @@ class ControlServiceClient {
|
|
154
154
|
this.pathTemplates = {
|
155
155
|
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
156
156
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
157
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
157
158
|
locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
|
158
159
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
159
160
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
@@ -187,6 +188,8 @@ class ControlServiceClient {
|
|
187
188
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
188
189
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
189
190
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
191
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
192
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
190
193
|
};
|
191
194
|
// Some of the methods on this service return "paged" results,
|
192
195
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -663,6 +666,54 @@ class ControlServiceClient {
|
|
663
666
|
matchEngineFromEngineName(engineName) {
|
664
667
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
665
668
|
}
|
669
|
+
/**
|
670
|
+
* Return a fully-qualified evaluation resource name string.
|
671
|
+
*
|
672
|
+
* @param {string} project
|
673
|
+
* @param {string} location
|
674
|
+
* @param {string} evaluation
|
675
|
+
* @returns {string} Resource name string.
|
676
|
+
*/
|
677
|
+
evaluationPath(project, location, evaluation) {
|
678
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
679
|
+
project: project,
|
680
|
+
location: location,
|
681
|
+
evaluation: evaluation,
|
682
|
+
});
|
683
|
+
}
|
684
|
+
/**
|
685
|
+
* Parse the project from Evaluation resource.
|
686
|
+
*
|
687
|
+
* @param {string} evaluationName
|
688
|
+
* A fully-qualified path representing Evaluation resource.
|
689
|
+
* @returns {string} A string representing the project.
|
690
|
+
*/
|
691
|
+
matchProjectFromEvaluationName(evaluationName) {
|
692
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
693
|
+
.project;
|
694
|
+
}
|
695
|
+
/**
|
696
|
+
* Parse the location from Evaluation resource.
|
697
|
+
*
|
698
|
+
* @param {string} evaluationName
|
699
|
+
* A fully-qualified path representing Evaluation resource.
|
700
|
+
* @returns {string} A string representing the location.
|
701
|
+
*/
|
702
|
+
matchLocationFromEvaluationName(evaluationName) {
|
703
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
704
|
+
.location;
|
705
|
+
}
|
706
|
+
/**
|
707
|
+
* Parse the evaluation from Evaluation resource.
|
708
|
+
*
|
709
|
+
* @param {string} evaluationName
|
710
|
+
* A fully-qualified path representing Evaluation resource.
|
711
|
+
* @returns {string} A string representing the evaluation.
|
712
|
+
*/
|
713
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
714
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
715
|
+
.evaluation;
|
716
|
+
}
|
666
717
|
/**
|
667
718
|
* Return a fully-qualified location resource name string.
|
668
719
|
*
|
@@ -2736,6 +2787,112 @@ class ControlServiceClient {
|
|
2736
2787
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2737
2788
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2738
2789
|
}
|
2790
|
+
/**
|
2791
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2792
|
+
*
|
2793
|
+
* @param {string} project
|
2794
|
+
* @param {string} location
|
2795
|
+
* @param {string} sample_query_set
|
2796
|
+
* @param {string} sample_query
|
2797
|
+
* @returns {string} Resource name string.
|
2798
|
+
*/
|
2799
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2800
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2801
|
+
project: project,
|
2802
|
+
location: location,
|
2803
|
+
sample_query_set: sampleQuerySet,
|
2804
|
+
sample_query: sampleQuery,
|
2805
|
+
});
|
2806
|
+
}
|
2807
|
+
/**
|
2808
|
+
* Parse the project from SampleQuery resource.
|
2809
|
+
*
|
2810
|
+
* @param {string} sampleQueryName
|
2811
|
+
* A fully-qualified path representing SampleQuery resource.
|
2812
|
+
* @returns {string} A string representing the project.
|
2813
|
+
*/
|
2814
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2815
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2816
|
+
.project;
|
2817
|
+
}
|
2818
|
+
/**
|
2819
|
+
* Parse the location from SampleQuery resource.
|
2820
|
+
*
|
2821
|
+
* @param {string} sampleQueryName
|
2822
|
+
* A fully-qualified path representing SampleQuery resource.
|
2823
|
+
* @returns {string} A string representing the location.
|
2824
|
+
*/
|
2825
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2826
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2827
|
+
.location;
|
2828
|
+
}
|
2829
|
+
/**
|
2830
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2831
|
+
*
|
2832
|
+
* @param {string} sampleQueryName
|
2833
|
+
* A fully-qualified path representing SampleQuery resource.
|
2834
|
+
* @returns {string} A string representing the sample_query_set.
|
2835
|
+
*/
|
2836
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2837
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2838
|
+
.sample_query_set;
|
2839
|
+
}
|
2840
|
+
/**
|
2841
|
+
* Parse the sample_query from SampleQuery resource.
|
2842
|
+
*
|
2843
|
+
* @param {string} sampleQueryName
|
2844
|
+
* A fully-qualified path representing SampleQuery resource.
|
2845
|
+
* @returns {string} A string representing the sample_query.
|
2846
|
+
*/
|
2847
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2848
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2849
|
+
.sample_query;
|
2850
|
+
}
|
2851
|
+
/**
|
2852
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2853
|
+
*
|
2854
|
+
* @param {string} project
|
2855
|
+
* @param {string} location
|
2856
|
+
* @param {string} sample_query_set
|
2857
|
+
* @returns {string} Resource name string.
|
2858
|
+
*/
|
2859
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2860
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2861
|
+
project: project,
|
2862
|
+
location: location,
|
2863
|
+
sample_query_set: sampleQuerySet,
|
2864
|
+
});
|
2865
|
+
}
|
2866
|
+
/**
|
2867
|
+
* Parse the project from SampleQuerySet resource.
|
2868
|
+
*
|
2869
|
+
* @param {string} sampleQuerySetName
|
2870
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2871
|
+
* @returns {string} A string representing the project.
|
2872
|
+
*/
|
2873
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2874
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2875
|
+
}
|
2876
|
+
/**
|
2877
|
+
* Parse the location from SampleQuerySet resource.
|
2878
|
+
*
|
2879
|
+
* @param {string} sampleQuerySetName
|
2880
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2881
|
+
* @returns {string} A string representing the location.
|
2882
|
+
*/
|
2883
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2884
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2885
|
+
}
|
2886
|
+
/**
|
2887
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2888
|
+
*
|
2889
|
+
* @param {string} sampleQuerySetName
|
2890
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2891
|
+
* @returns {string} A string representing the sample_query_set.
|
2892
|
+
*/
|
2893
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2894
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2895
|
+
}
|
2739
2896
|
/**
|
2740
2897
|
* Terminate the gRPC channel and close the client.
|
2741
2898
|
*
|