@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
@@ -811,6 +811,39 @@ export declare class DocumentServiceClient {
|
|
811
811
|
* @returns {string} A string representing the engine.
|
812
812
|
*/
|
813
813
|
matchEngineFromEngineName(engineName: string): string | number;
|
814
|
+
/**
|
815
|
+
* Return a fully-qualified evaluation resource name string.
|
816
|
+
*
|
817
|
+
* @param {string} project
|
818
|
+
* @param {string} location
|
819
|
+
* @param {string} evaluation
|
820
|
+
* @returns {string} Resource name string.
|
821
|
+
*/
|
822
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
823
|
+
/**
|
824
|
+
* Parse the project from Evaluation resource.
|
825
|
+
*
|
826
|
+
* @param {string} evaluationName
|
827
|
+
* A fully-qualified path representing Evaluation resource.
|
828
|
+
* @returns {string} A string representing the project.
|
829
|
+
*/
|
830
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
831
|
+
/**
|
832
|
+
* Parse the location from Evaluation resource.
|
833
|
+
*
|
834
|
+
* @param {string} evaluationName
|
835
|
+
* A fully-qualified path representing Evaluation resource.
|
836
|
+
* @returns {string} A string representing the location.
|
837
|
+
*/
|
838
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
839
|
+
/**
|
840
|
+
* Parse the evaluation from Evaluation resource.
|
841
|
+
*
|
842
|
+
* @param {string} evaluationName
|
843
|
+
* A fully-qualified path representing Evaluation resource.
|
844
|
+
* @returns {string} A string representing the evaluation.
|
845
|
+
*/
|
846
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
814
847
|
/**
|
815
848
|
* Return a fully-qualified project resource name string.
|
816
849
|
*
|
@@ -979,6 +1012,75 @@ export declare class DocumentServiceClient {
|
|
979
1012
|
* @returns {string} A string representing the document.
|
980
1013
|
*/
|
981
1014
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
|
1015
|
+
/**
|
1016
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1017
|
+
*
|
1018
|
+
* @param {string} project
|
1019
|
+
* @param {string} location
|
1020
|
+
* @param {string} collection
|
1021
|
+
* @param {string} data_store
|
1022
|
+
* @param {string} branch
|
1023
|
+
* @param {string} document
|
1024
|
+
* @param {string} chunk
|
1025
|
+
* @returns {string} Resource name string.
|
1026
|
+
*/
|
1027
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
1028
|
+
/**
|
1029
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1030
|
+
*
|
1031
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1032
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1033
|
+
* @returns {string} A string representing the project.
|
1034
|
+
*/
|
1035
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1036
|
+
/**
|
1037
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1038
|
+
*
|
1039
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1040
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1041
|
+
* @returns {string} A string representing the location.
|
1042
|
+
*/
|
1043
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1044
|
+
/**
|
1045
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1046
|
+
*
|
1047
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1048
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1049
|
+
* @returns {string} A string representing the collection.
|
1050
|
+
*/
|
1051
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1052
|
+
/**
|
1053
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1054
|
+
*
|
1055
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1056
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1057
|
+
* @returns {string} A string representing the data_store.
|
1058
|
+
*/
|
1059
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1060
|
+
/**
|
1061
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1062
|
+
*
|
1063
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1064
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1065
|
+
* @returns {string} A string representing the branch.
|
1066
|
+
*/
|
1067
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1068
|
+
/**
|
1069
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1070
|
+
*
|
1071
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1072
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1073
|
+
* @returns {string} A string representing the document.
|
1074
|
+
*/
|
1075
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
1076
|
+
/**
|
1077
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1078
|
+
*
|
1079
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1080
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1081
|
+
* @returns {string} A string representing the chunk.
|
1082
|
+
*/
|
1083
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
982
1084
|
/**
|
983
1085
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
984
1086
|
*
|
@@ -1870,6 +1972,66 @@ export declare class DocumentServiceClient {
|
|
1870
1972
|
* @returns {string} A string representing the document.
|
1871
1973
|
*/
|
1872
1974
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
|
1975
|
+
/**
|
1976
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1977
|
+
*
|
1978
|
+
* @param {string} project
|
1979
|
+
* @param {string} location
|
1980
|
+
* @param {string} data_store
|
1981
|
+
* @param {string} branch
|
1982
|
+
* @param {string} document
|
1983
|
+
* @param {string} chunk
|
1984
|
+
* @returns {string} Resource name string.
|
1985
|
+
*/
|
1986
|
+
projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
1987
|
+
/**
|
1988
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1989
|
+
*
|
1990
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1991
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1992
|
+
* @returns {string} A string representing the project.
|
1993
|
+
*/
|
1994
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1995
|
+
/**
|
1996
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1997
|
+
*
|
1998
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1999
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2000
|
+
* @returns {string} A string representing the location.
|
2001
|
+
*/
|
2002
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
2003
|
+
/**
|
2004
|
+
* Parse the data_store 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 data_store.
|
2009
|
+
*/
|
2010
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
2011
|
+
/**
|
2012
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2013
|
+
*
|
2014
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2015
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2016
|
+
* @returns {string} A string representing the branch.
|
2017
|
+
*/
|
2018
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
2019
|
+
/**
|
2020
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2021
|
+
*
|
2022
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2023
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2024
|
+
* @returns {string} A string representing the document.
|
2025
|
+
*/
|
2026
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
2027
|
+
/**
|
2028
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2029
|
+
*
|
2030
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2031
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2032
|
+
* @returns {string} A string representing the chunk.
|
2033
|
+
*/
|
2034
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1873
2035
|
/**
|
1874
2036
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1875
2037
|
*
|
@@ -2281,6 +2443,81 @@ export declare class DocumentServiceClient {
|
|
2281
2443
|
* @returns {string} A string representing the target_site.
|
2282
2444
|
*/
|
2283
2445
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
2446
|
+
/**
|
2447
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2448
|
+
*
|
2449
|
+
* @param {string} project
|
2450
|
+
* @param {string} location
|
2451
|
+
* @param {string} sample_query_set
|
2452
|
+
* @param {string} sample_query
|
2453
|
+
* @returns {string} Resource name string.
|
2454
|
+
*/
|
2455
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
2456
|
+
/**
|
2457
|
+
* Parse the project from SampleQuery resource.
|
2458
|
+
*
|
2459
|
+
* @param {string} sampleQueryName
|
2460
|
+
* A fully-qualified path representing SampleQuery resource.
|
2461
|
+
* @returns {string} A string representing the project.
|
2462
|
+
*/
|
2463
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
2464
|
+
/**
|
2465
|
+
* Parse the location from SampleQuery resource.
|
2466
|
+
*
|
2467
|
+
* @param {string} sampleQueryName
|
2468
|
+
* A fully-qualified path representing SampleQuery resource.
|
2469
|
+
* @returns {string} A string representing the location.
|
2470
|
+
*/
|
2471
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
2472
|
+
/**
|
2473
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2474
|
+
*
|
2475
|
+
* @param {string} sampleQueryName
|
2476
|
+
* A fully-qualified path representing SampleQuery resource.
|
2477
|
+
* @returns {string} A string representing the sample_query_set.
|
2478
|
+
*/
|
2479
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
2480
|
+
/**
|
2481
|
+
* Parse the sample_query from SampleQuery resource.
|
2482
|
+
*
|
2483
|
+
* @param {string} sampleQueryName
|
2484
|
+
* A fully-qualified path representing SampleQuery resource.
|
2485
|
+
* @returns {string} A string representing the sample_query.
|
2486
|
+
*/
|
2487
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
2488
|
+
/**
|
2489
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2490
|
+
*
|
2491
|
+
* @param {string} project
|
2492
|
+
* @param {string} location
|
2493
|
+
* @param {string} sample_query_set
|
2494
|
+
* @returns {string} Resource name string.
|
2495
|
+
*/
|
2496
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
2497
|
+
/**
|
2498
|
+
* Parse the project from SampleQuerySet resource.
|
2499
|
+
*
|
2500
|
+
* @param {string} sampleQuerySetName
|
2501
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2502
|
+
* @returns {string} A string representing the project.
|
2503
|
+
*/
|
2504
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2505
|
+
/**
|
2506
|
+
* Parse the location from SampleQuerySet resource.
|
2507
|
+
*
|
2508
|
+
* @param {string} sampleQuerySetName
|
2509
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2510
|
+
* @returns {string} A string representing the location.
|
2511
|
+
*/
|
2512
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2513
|
+
/**
|
2514
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2515
|
+
*
|
2516
|
+
* @param {string} sampleQuerySetName
|
2517
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2518
|
+
* @returns {string} A string representing the sample_query_set.
|
2519
|
+
*/
|
2520
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2284
2521
|
/**
|
2285
2522
|
* Terminate the gRPC channel and close the client.
|
2286
2523
|
*
|
@@ -152,10 +152,12 @@ class DocumentServiceClient {
|
|
152
152
|
// Create useful helper objects for these.
|
153
153
|
this.pathTemplates = {
|
154
154
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
155
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
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
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
158
159
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
160
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
159
161
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
160
162
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
161
163
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -174,6 +176,7 @@ class DocumentServiceClient {
|
|
174
176
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
175
177
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
176
178
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
179
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
177
180
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
178
181
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
179
182
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -184,6 +187,8 @@ class DocumentServiceClient {
|
|
184
187
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
185
188
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
186
189
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
190
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
191
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
187
192
|
};
|
188
193
|
// Some of the methods on this service return "paged" results,
|
189
194
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -250,7 +255,13 @@ class DocumentServiceClient {
|
|
250
255
|
{
|
251
256
|
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
252
257
|
},
|
258
|
+
{
|
259
|
+
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
260
|
+
},
|
253
261
|
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
262
|
+
{
|
263
|
+
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
264
|
+
},
|
254
265
|
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
255
266
|
],
|
256
267
|
},
|
@@ -970,6 +981,54 @@ class DocumentServiceClient {
|
|
970
981
|
matchEngineFromEngineName(engineName) {
|
971
982
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
972
983
|
}
|
984
|
+
/**
|
985
|
+
* Return a fully-qualified evaluation resource name string.
|
986
|
+
*
|
987
|
+
* @param {string} project
|
988
|
+
* @param {string} location
|
989
|
+
* @param {string} evaluation
|
990
|
+
* @returns {string} Resource name string.
|
991
|
+
*/
|
992
|
+
evaluationPath(project, location, evaluation) {
|
993
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
994
|
+
project: project,
|
995
|
+
location: location,
|
996
|
+
evaluation: evaluation,
|
997
|
+
});
|
998
|
+
}
|
999
|
+
/**
|
1000
|
+
* Parse the project from Evaluation resource.
|
1001
|
+
*
|
1002
|
+
* @param {string} evaluationName
|
1003
|
+
* A fully-qualified path representing Evaluation resource.
|
1004
|
+
* @returns {string} A string representing the project.
|
1005
|
+
*/
|
1006
|
+
matchProjectFromEvaluationName(evaluationName) {
|
1007
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1008
|
+
.project;
|
1009
|
+
}
|
1010
|
+
/**
|
1011
|
+
* Parse the location from Evaluation resource.
|
1012
|
+
*
|
1013
|
+
* @param {string} evaluationName
|
1014
|
+
* A fully-qualified path representing Evaluation resource.
|
1015
|
+
* @returns {string} A string representing the location.
|
1016
|
+
*/
|
1017
|
+
matchLocationFromEvaluationName(evaluationName) {
|
1018
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1019
|
+
.location;
|
1020
|
+
}
|
1021
|
+
/**
|
1022
|
+
* Parse the evaluation from Evaluation resource.
|
1023
|
+
*
|
1024
|
+
* @param {string} evaluationName
|
1025
|
+
* A fully-qualified path representing Evaluation resource.
|
1026
|
+
* @returns {string} A string representing the evaluation.
|
1027
|
+
*/
|
1028
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
1029
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1030
|
+
.evaluation;
|
1031
|
+
}
|
973
1032
|
/**
|
974
1033
|
* Return a fully-qualified project resource name string.
|
975
1034
|
*
|
@@ -1198,6 +1257,99 @@ class DocumentServiceClient {
|
|
1198
1257
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1199
1258
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1200
1259
|
}
|
1260
|
+
/**
|
1261
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1262
|
+
*
|
1263
|
+
* @param {string} project
|
1264
|
+
* @param {string} location
|
1265
|
+
* @param {string} collection
|
1266
|
+
* @param {string} data_store
|
1267
|
+
* @param {string} branch
|
1268
|
+
* @param {string} document
|
1269
|
+
* @param {string} chunk
|
1270
|
+
* @returns {string} Resource name string.
|
1271
|
+
*/
|
1272
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1273
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1274
|
+
project: project,
|
1275
|
+
location: location,
|
1276
|
+
collection: collection,
|
1277
|
+
data_store: dataStore,
|
1278
|
+
branch: branch,
|
1279
|
+
document: document,
|
1280
|
+
chunk: chunk,
|
1281
|
+
});
|
1282
|
+
}
|
1283
|
+
/**
|
1284
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1285
|
+
*
|
1286
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1287
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1288
|
+
* @returns {string} A string representing the project.
|
1289
|
+
*/
|
1290
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1291
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1292
|
+
}
|
1293
|
+
/**
|
1294
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1295
|
+
*
|
1296
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1297
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1298
|
+
* @returns {string} A string representing the location.
|
1299
|
+
*/
|
1300
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1301
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1302
|
+
}
|
1303
|
+
/**
|
1304
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1305
|
+
*
|
1306
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1307
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1308
|
+
* @returns {string} A string representing the collection.
|
1309
|
+
*/
|
1310
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1311
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1312
|
+
}
|
1313
|
+
/**
|
1314
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1315
|
+
*
|
1316
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1317
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1318
|
+
* @returns {string} A string representing the data_store.
|
1319
|
+
*/
|
1320
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1321
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1322
|
+
}
|
1323
|
+
/**
|
1324
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1325
|
+
*
|
1326
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1327
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1328
|
+
* @returns {string} A string representing the branch.
|
1329
|
+
*/
|
1330
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1331
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1332
|
+
}
|
1333
|
+
/**
|
1334
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1335
|
+
*
|
1336
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1337
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1338
|
+
* @returns {string} A string representing the document.
|
1339
|
+
*/
|
1340
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1341
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1342
|
+
}
|
1343
|
+
/**
|
1344
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1345
|
+
*
|
1346
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1347
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1348
|
+
* @returns {string} A string representing the chunk.
|
1349
|
+
*/
|
1350
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1351
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1352
|
+
}
|
1201
1353
|
/**
|
1202
1354
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
1203
1355
|
*
|
@@ -2404,6 +2556,87 @@ class DocumentServiceClient {
|
|
2404
2556
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2405
2557
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2406
2558
|
}
|
2559
|
+
/**
|
2560
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2561
|
+
*
|
2562
|
+
* @param {string} project
|
2563
|
+
* @param {string} location
|
2564
|
+
* @param {string} data_store
|
2565
|
+
* @param {string} branch
|
2566
|
+
* @param {string} document
|
2567
|
+
* @param {string} chunk
|
2568
|
+
* @returns {string} Resource name string.
|
2569
|
+
*/
|
2570
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2571
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2572
|
+
project: project,
|
2573
|
+
location: location,
|
2574
|
+
data_store: dataStore,
|
2575
|
+
branch: branch,
|
2576
|
+
document: document,
|
2577
|
+
chunk: chunk,
|
2578
|
+
});
|
2579
|
+
}
|
2580
|
+
/**
|
2581
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2582
|
+
*
|
2583
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2584
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2585
|
+
* @returns {string} A string representing the project.
|
2586
|
+
*/
|
2587
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2588
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2589
|
+
}
|
2590
|
+
/**
|
2591
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2592
|
+
*
|
2593
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2594
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2595
|
+
* @returns {string} A string representing the location.
|
2596
|
+
*/
|
2597
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2598
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2599
|
+
}
|
2600
|
+
/**
|
2601
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2602
|
+
*
|
2603
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2604
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2605
|
+
* @returns {string} A string representing the data_store.
|
2606
|
+
*/
|
2607
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2608
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2609
|
+
}
|
2610
|
+
/**
|
2611
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2612
|
+
*
|
2613
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2614
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2615
|
+
* @returns {string} A string representing the branch.
|
2616
|
+
*/
|
2617
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2618
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2619
|
+
}
|
2620
|
+
/**
|
2621
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2622
|
+
*
|
2623
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2624
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2625
|
+
* @returns {string} A string representing the document.
|
2626
|
+
*/
|
2627
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2628
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2629
|
+
}
|
2630
|
+
/**
|
2631
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2632
|
+
*
|
2633
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2634
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2635
|
+
* @returns {string} A string representing the chunk.
|
2636
|
+
*/
|
2637
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2638
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2639
|
+
}
|
2407
2640
|
/**
|
2408
2641
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2409
2642
|
*
|
@@ -2962,6 +3195,112 @@ class DocumentServiceClient {
|
|
2962
3195
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2963
3196
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2964
3197
|
}
|
3198
|
+
/**
|
3199
|
+
* Return a fully-qualified sampleQuery resource name string.
|
3200
|
+
*
|
3201
|
+
* @param {string} project
|
3202
|
+
* @param {string} location
|
3203
|
+
* @param {string} sample_query_set
|
3204
|
+
* @param {string} sample_query
|
3205
|
+
* @returns {string} Resource name string.
|
3206
|
+
*/
|
3207
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
3208
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
3209
|
+
project: project,
|
3210
|
+
location: location,
|
3211
|
+
sample_query_set: sampleQuerySet,
|
3212
|
+
sample_query: sampleQuery,
|
3213
|
+
});
|
3214
|
+
}
|
3215
|
+
/**
|
3216
|
+
* Parse the project from SampleQuery resource.
|
3217
|
+
*
|
3218
|
+
* @param {string} sampleQueryName
|
3219
|
+
* A fully-qualified path representing SampleQuery resource.
|
3220
|
+
* @returns {string} A string representing the project.
|
3221
|
+
*/
|
3222
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
3223
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3224
|
+
.project;
|
3225
|
+
}
|
3226
|
+
/**
|
3227
|
+
* Parse the location from SampleQuery resource.
|
3228
|
+
*
|
3229
|
+
* @param {string} sampleQueryName
|
3230
|
+
* A fully-qualified path representing SampleQuery resource.
|
3231
|
+
* @returns {string} A string representing the location.
|
3232
|
+
*/
|
3233
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
3234
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3235
|
+
.location;
|
3236
|
+
}
|
3237
|
+
/**
|
3238
|
+
* Parse the sample_query_set from SampleQuery resource.
|
3239
|
+
*
|
3240
|
+
* @param {string} sampleQueryName
|
3241
|
+
* A fully-qualified path representing SampleQuery resource.
|
3242
|
+
* @returns {string} A string representing the sample_query_set.
|
3243
|
+
*/
|
3244
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3245
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3246
|
+
.sample_query_set;
|
3247
|
+
}
|
3248
|
+
/**
|
3249
|
+
* Parse the sample_query from SampleQuery resource.
|
3250
|
+
*
|
3251
|
+
* @param {string} sampleQueryName
|
3252
|
+
* A fully-qualified path representing SampleQuery resource.
|
3253
|
+
* @returns {string} A string representing the sample_query.
|
3254
|
+
*/
|
3255
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3256
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3257
|
+
.sample_query;
|
3258
|
+
}
|
3259
|
+
/**
|
3260
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
3261
|
+
*
|
3262
|
+
* @param {string} project
|
3263
|
+
* @param {string} location
|
3264
|
+
* @param {string} sample_query_set
|
3265
|
+
* @returns {string} Resource name string.
|
3266
|
+
*/
|
3267
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
3268
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
3269
|
+
project: project,
|
3270
|
+
location: location,
|
3271
|
+
sample_query_set: sampleQuerySet,
|
3272
|
+
});
|
3273
|
+
}
|
3274
|
+
/**
|
3275
|
+
* Parse the project from SampleQuerySet resource.
|
3276
|
+
*
|
3277
|
+
* @param {string} sampleQuerySetName
|
3278
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3279
|
+
* @returns {string} A string representing the project.
|
3280
|
+
*/
|
3281
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
3282
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
3283
|
+
}
|
3284
|
+
/**
|
3285
|
+
* Parse the location from SampleQuerySet resource.
|
3286
|
+
*
|
3287
|
+
* @param {string} sampleQuerySetName
|
3288
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3289
|
+
* @returns {string} A string representing the location.
|
3290
|
+
*/
|
3291
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
3292
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
3293
|
+
}
|
3294
|
+
/**
|
3295
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
3296
|
+
*
|
3297
|
+
* @param {string} sampleQuerySetName
|
3298
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
3299
|
+
* @returns {string} A string representing the sample_query_set.
|
3300
|
+
*/
|
3301
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
3302
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
3303
|
+
}
|
2965
3304
|
/**
|
2966
3305
|
* Terminate the gRPC channel and close the client.
|
2967
3306
|
*
|