@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
@@ -404,6 +404,39 @@ export declare class SearchTuningServiceClient {
|
|
404
404
|
* @returns {string} A string representing the engine.
|
405
405
|
*/
|
406
406
|
matchEngineFromEngineName(engineName: string): string | number;
|
407
|
+
/**
|
408
|
+
* Return a fully-qualified evaluation resource name string.
|
409
|
+
*
|
410
|
+
* @param {string} project
|
411
|
+
* @param {string} location
|
412
|
+
* @param {string} evaluation
|
413
|
+
* @returns {string} Resource name string.
|
414
|
+
*/
|
415
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
416
|
+
/**
|
417
|
+
* Parse the project from Evaluation resource.
|
418
|
+
*
|
419
|
+
* @param {string} evaluationName
|
420
|
+
* A fully-qualified path representing Evaluation resource.
|
421
|
+
* @returns {string} A string representing the project.
|
422
|
+
*/
|
423
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
424
|
+
/**
|
425
|
+
* Parse the location from Evaluation resource.
|
426
|
+
*
|
427
|
+
* @param {string} evaluationName
|
428
|
+
* A fully-qualified path representing Evaluation resource.
|
429
|
+
* @returns {string} A string representing the location.
|
430
|
+
*/
|
431
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
432
|
+
/**
|
433
|
+
* Parse the evaluation from Evaluation resource.
|
434
|
+
*
|
435
|
+
* @param {string} evaluationName
|
436
|
+
* A fully-qualified path representing Evaluation resource.
|
437
|
+
* @returns {string} A string representing the evaluation.
|
438
|
+
*/
|
439
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
407
440
|
/**
|
408
441
|
* Return a fully-qualified project resource name string.
|
409
442
|
*
|
@@ -521,6 +554,75 @@ export declare class SearchTuningServiceClient {
|
|
521
554
|
* @returns {string} A string representing the document.
|
522
555
|
*/
|
523
556
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
|
557
|
+
/**
|
558
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
559
|
+
*
|
560
|
+
* @param {string} project
|
561
|
+
* @param {string} location
|
562
|
+
* @param {string} collection
|
563
|
+
* @param {string} data_store
|
564
|
+
* @param {string} branch
|
565
|
+
* @param {string} document
|
566
|
+
* @param {string} chunk
|
567
|
+
* @returns {string} Resource name string.
|
568
|
+
*/
|
569
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
570
|
+
/**
|
571
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
572
|
+
*
|
573
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
574
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
575
|
+
* @returns {string} A string representing the project.
|
576
|
+
*/
|
577
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
578
|
+
/**
|
579
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
580
|
+
*
|
581
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
582
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
583
|
+
* @returns {string} A string representing the location.
|
584
|
+
*/
|
585
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
586
|
+
/**
|
587
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
588
|
+
*
|
589
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
590
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
591
|
+
* @returns {string} A string representing the collection.
|
592
|
+
*/
|
593
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
594
|
+
/**
|
595
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
596
|
+
*
|
597
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
598
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
599
|
+
* @returns {string} A string representing the data_store.
|
600
|
+
*/
|
601
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
602
|
+
/**
|
603
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
604
|
+
*
|
605
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
606
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
607
|
+
* @returns {string} A string representing the branch.
|
608
|
+
*/
|
609
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
610
|
+
/**
|
611
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
612
|
+
*
|
613
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
614
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
615
|
+
* @returns {string} A string representing the document.
|
616
|
+
*/
|
617
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
618
|
+
/**
|
619
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
620
|
+
*
|
621
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
622
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
623
|
+
* @returns {string} A string representing the chunk.
|
624
|
+
*/
|
625
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
524
626
|
/**
|
525
627
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
526
628
|
*
|
@@ -1370,6 +1472,66 @@ export declare class SearchTuningServiceClient {
|
|
1370
1472
|
* @returns {string} A string representing the document.
|
1371
1473
|
*/
|
1372
1474
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
|
1475
|
+
/**
|
1476
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1477
|
+
*
|
1478
|
+
* @param {string} project
|
1479
|
+
* @param {string} location
|
1480
|
+
* @param {string} data_store
|
1481
|
+
* @param {string} branch
|
1482
|
+
* @param {string} document
|
1483
|
+
* @param {string} chunk
|
1484
|
+
* @returns {string} Resource name string.
|
1485
|
+
*/
|
1486
|
+
projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
1487
|
+
/**
|
1488
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1489
|
+
*
|
1490
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1491
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1492
|
+
* @returns {string} A string representing the project.
|
1493
|
+
*/
|
1494
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1495
|
+
/**
|
1496
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1497
|
+
*
|
1498
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1499
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1500
|
+
* @returns {string} A string representing the location.
|
1501
|
+
*/
|
1502
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1503
|
+
/**
|
1504
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1505
|
+
*
|
1506
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1507
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1508
|
+
* @returns {string} A string representing the data_store.
|
1509
|
+
*/
|
1510
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1511
|
+
/**
|
1512
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1513
|
+
*
|
1514
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1515
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1516
|
+
* @returns {string} A string representing the branch.
|
1517
|
+
*/
|
1518
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1519
|
+
/**
|
1520
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1521
|
+
*
|
1522
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1523
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1524
|
+
* @returns {string} A string representing the document.
|
1525
|
+
*/
|
1526
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1527
|
+
/**
|
1528
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1529
|
+
*
|
1530
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1531
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1532
|
+
* @returns {string} A string representing the chunk.
|
1533
|
+
*/
|
1534
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1373
1535
|
/**
|
1374
1536
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1375
1537
|
*
|
@@ -1781,6 +1943,81 @@ export declare class SearchTuningServiceClient {
|
|
1781
1943
|
* @returns {string} A string representing the target_site.
|
1782
1944
|
*/
|
1783
1945
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
1946
|
+
/**
|
1947
|
+
* Return a fully-qualified sampleQuery resource name string.
|
1948
|
+
*
|
1949
|
+
* @param {string} project
|
1950
|
+
* @param {string} location
|
1951
|
+
* @param {string} sample_query_set
|
1952
|
+
* @param {string} sample_query
|
1953
|
+
* @returns {string} Resource name string.
|
1954
|
+
*/
|
1955
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
1956
|
+
/**
|
1957
|
+
* Parse the project from SampleQuery resource.
|
1958
|
+
*
|
1959
|
+
* @param {string} sampleQueryName
|
1960
|
+
* A fully-qualified path representing SampleQuery resource.
|
1961
|
+
* @returns {string} A string representing the project.
|
1962
|
+
*/
|
1963
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
1964
|
+
/**
|
1965
|
+
* Parse the location from SampleQuery resource.
|
1966
|
+
*
|
1967
|
+
* @param {string} sampleQueryName
|
1968
|
+
* A fully-qualified path representing SampleQuery resource.
|
1969
|
+
* @returns {string} A string representing the location.
|
1970
|
+
*/
|
1971
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
1972
|
+
/**
|
1973
|
+
* Parse the sample_query_set from SampleQuery resource.
|
1974
|
+
*
|
1975
|
+
* @param {string} sampleQueryName
|
1976
|
+
* A fully-qualified path representing SampleQuery resource.
|
1977
|
+
* @returns {string} A string representing the sample_query_set.
|
1978
|
+
*/
|
1979
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
1980
|
+
/**
|
1981
|
+
* Parse the sample_query from SampleQuery resource.
|
1982
|
+
*
|
1983
|
+
* @param {string} sampleQueryName
|
1984
|
+
* A fully-qualified path representing SampleQuery resource.
|
1985
|
+
* @returns {string} A string representing the sample_query.
|
1986
|
+
*/
|
1987
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
1988
|
+
/**
|
1989
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
1990
|
+
*
|
1991
|
+
* @param {string} project
|
1992
|
+
* @param {string} location
|
1993
|
+
* @param {string} sample_query_set
|
1994
|
+
* @returns {string} Resource name string.
|
1995
|
+
*/
|
1996
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
1997
|
+
/**
|
1998
|
+
* Parse the project from SampleQuerySet resource.
|
1999
|
+
*
|
2000
|
+
* @param {string} sampleQuerySetName
|
2001
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2002
|
+
* @returns {string} A string representing the project.
|
2003
|
+
*/
|
2004
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2005
|
+
/**
|
2006
|
+
* Parse the location from SampleQuerySet resource.
|
2007
|
+
*
|
2008
|
+
* @param {string} sampleQuerySetName
|
2009
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2010
|
+
* @returns {string} A string representing the location.
|
2011
|
+
*/
|
2012
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2013
|
+
/**
|
2014
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2015
|
+
*
|
2016
|
+
* @param {string} sampleQuerySetName
|
2017
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2018
|
+
* @returns {string} A string representing the sample_query_set.
|
2019
|
+
*/
|
2020
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1784
2021
|
/**
|
1785
2022
|
* Terminate the gRPC channel and close the client.
|
1786
2023
|
*
|
@@ -150,9 +150,11 @@ class SearchTuningServiceClient {
|
|
150
150
|
// Create useful helper objects for these.
|
151
151
|
this.pathTemplates = {
|
152
152
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
153
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
153
154
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
154
155
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
155
156
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
157
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
156
158
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
157
159
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
158
160
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -170,6 +172,7 @@ class SearchTuningServiceClient {
|
|
170
172
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
171
173
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
172
174
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
175
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
173
176
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
174
177
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
175
178
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -180,6 +183,8 @@ class SearchTuningServiceClient {
|
|
180
183
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
181
184
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
182
185
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
186
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
187
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
183
188
|
};
|
184
189
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
185
190
|
// This API contains "long-running operations", which return a
|
@@ -240,7 +245,13 @@ class SearchTuningServiceClient {
|
|
240
245
|
{
|
241
246
|
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
242
247
|
},
|
248
|
+
{
|
249
|
+
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
250
|
+
},
|
243
251
|
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
252
|
+
{
|
253
|
+
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
254
|
+
},
|
244
255
|
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
245
256
|
],
|
246
257
|
},
|
@@ -711,6 +722,54 @@ class SearchTuningServiceClient {
|
|
711
722
|
matchEngineFromEngineName(engineName) {
|
712
723
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
713
724
|
}
|
725
|
+
/**
|
726
|
+
* Return a fully-qualified evaluation resource name string.
|
727
|
+
*
|
728
|
+
* @param {string} project
|
729
|
+
* @param {string} location
|
730
|
+
* @param {string} evaluation
|
731
|
+
* @returns {string} Resource name string.
|
732
|
+
*/
|
733
|
+
evaluationPath(project, location, evaluation) {
|
734
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
735
|
+
project: project,
|
736
|
+
location: location,
|
737
|
+
evaluation: evaluation,
|
738
|
+
});
|
739
|
+
}
|
740
|
+
/**
|
741
|
+
* Parse the project from Evaluation resource.
|
742
|
+
*
|
743
|
+
* @param {string} evaluationName
|
744
|
+
* A fully-qualified path representing Evaluation resource.
|
745
|
+
* @returns {string} A string representing the project.
|
746
|
+
*/
|
747
|
+
matchProjectFromEvaluationName(evaluationName) {
|
748
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
749
|
+
.project;
|
750
|
+
}
|
751
|
+
/**
|
752
|
+
* Parse the location from Evaluation resource.
|
753
|
+
*
|
754
|
+
* @param {string} evaluationName
|
755
|
+
* A fully-qualified path representing Evaluation resource.
|
756
|
+
* @returns {string} A string representing the location.
|
757
|
+
*/
|
758
|
+
matchLocationFromEvaluationName(evaluationName) {
|
759
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
760
|
+
.location;
|
761
|
+
}
|
762
|
+
/**
|
763
|
+
* Parse the evaluation from Evaluation resource.
|
764
|
+
*
|
765
|
+
* @param {string} evaluationName
|
766
|
+
* A fully-qualified path representing Evaluation resource.
|
767
|
+
* @returns {string} A string representing the evaluation.
|
768
|
+
*/
|
769
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
770
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
771
|
+
.evaluation;
|
772
|
+
}
|
714
773
|
/**
|
715
774
|
* Return a fully-qualified project resource name string.
|
716
775
|
*
|
@@ -870,6 +929,99 @@ class SearchTuningServiceClient {
|
|
870
929
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
871
930
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
872
931
|
}
|
932
|
+
/**
|
933
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
934
|
+
*
|
935
|
+
* @param {string} project
|
936
|
+
* @param {string} location
|
937
|
+
* @param {string} collection
|
938
|
+
* @param {string} data_store
|
939
|
+
* @param {string} branch
|
940
|
+
* @param {string} document
|
941
|
+
* @param {string} chunk
|
942
|
+
* @returns {string} Resource name string.
|
943
|
+
*/
|
944
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
945
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
946
|
+
project: project,
|
947
|
+
location: location,
|
948
|
+
collection: collection,
|
949
|
+
data_store: dataStore,
|
950
|
+
branch: branch,
|
951
|
+
document: document,
|
952
|
+
chunk: chunk,
|
953
|
+
});
|
954
|
+
}
|
955
|
+
/**
|
956
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
957
|
+
*
|
958
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
959
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
960
|
+
* @returns {string} A string representing the project.
|
961
|
+
*/
|
962
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
963
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
964
|
+
}
|
965
|
+
/**
|
966
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
967
|
+
*
|
968
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
969
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
970
|
+
* @returns {string} A string representing the location.
|
971
|
+
*/
|
972
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
973
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
974
|
+
}
|
975
|
+
/**
|
976
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
977
|
+
*
|
978
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
979
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
980
|
+
* @returns {string} A string representing the collection.
|
981
|
+
*/
|
982
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
983
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
984
|
+
}
|
985
|
+
/**
|
986
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
987
|
+
*
|
988
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
989
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
990
|
+
* @returns {string} A string representing the data_store.
|
991
|
+
*/
|
992
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
993
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
994
|
+
}
|
995
|
+
/**
|
996
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
997
|
+
*
|
998
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
999
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1000
|
+
* @returns {string} A string representing the branch.
|
1001
|
+
*/
|
1002
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1003
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1004
|
+
}
|
1005
|
+
/**
|
1006
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1007
|
+
*
|
1008
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1009
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1010
|
+
* @returns {string} A string representing the document.
|
1011
|
+
*/
|
1012
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1013
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1014
|
+
}
|
1015
|
+
/**
|
1016
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1017
|
+
*
|
1018
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1019
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1020
|
+
* @returns {string} A string representing the chunk.
|
1021
|
+
*/
|
1022
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1023
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1024
|
+
}
|
873
1025
|
/**
|
874
1026
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
875
1027
|
*
|
@@ -2019,6 +2171,87 @@ class SearchTuningServiceClient {
|
|
2019
2171
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2020
2172
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2021
2173
|
}
|
2174
|
+
/**
|
2175
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2176
|
+
*
|
2177
|
+
* @param {string} project
|
2178
|
+
* @param {string} location
|
2179
|
+
* @param {string} data_store
|
2180
|
+
* @param {string} branch
|
2181
|
+
* @param {string} document
|
2182
|
+
* @param {string} chunk
|
2183
|
+
* @returns {string} Resource name string.
|
2184
|
+
*/
|
2185
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2186
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2187
|
+
project: project,
|
2188
|
+
location: location,
|
2189
|
+
data_store: dataStore,
|
2190
|
+
branch: branch,
|
2191
|
+
document: document,
|
2192
|
+
chunk: chunk,
|
2193
|
+
});
|
2194
|
+
}
|
2195
|
+
/**
|
2196
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2197
|
+
*
|
2198
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2199
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2200
|
+
* @returns {string} A string representing the project.
|
2201
|
+
*/
|
2202
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2203
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2204
|
+
}
|
2205
|
+
/**
|
2206
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2207
|
+
*
|
2208
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2209
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2210
|
+
* @returns {string} A string representing the location.
|
2211
|
+
*/
|
2212
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2213
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2214
|
+
}
|
2215
|
+
/**
|
2216
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2217
|
+
*
|
2218
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2219
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2220
|
+
* @returns {string} A string representing the data_store.
|
2221
|
+
*/
|
2222
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2223
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2224
|
+
}
|
2225
|
+
/**
|
2226
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2227
|
+
*
|
2228
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2229
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2230
|
+
* @returns {string} A string representing the branch.
|
2231
|
+
*/
|
2232
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2233
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2234
|
+
}
|
2235
|
+
/**
|
2236
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2237
|
+
*
|
2238
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2239
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2240
|
+
* @returns {string} A string representing the document.
|
2241
|
+
*/
|
2242
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2243
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2244
|
+
}
|
2245
|
+
/**
|
2246
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2247
|
+
*
|
2248
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2249
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2250
|
+
* @returns {string} A string representing the chunk.
|
2251
|
+
*/
|
2252
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2253
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2254
|
+
}
|
2022
2255
|
/**
|
2023
2256
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2024
2257
|
*
|
@@ -2577,6 +2810,112 @@ class SearchTuningServiceClient {
|
|
2577
2810
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2578
2811
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2579
2812
|
}
|
2813
|
+
/**
|
2814
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2815
|
+
*
|
2816
|
+
* @param {string} project
|
2817
|
+
* @param {string} location
|
2818
|
+
* @param {string} sample_query_set
|
2819
|
+
* @param {string} sample_query
|
2820
|
+
* @returns {string} Resource name string.
|
2821
|
+
*/
|
2822
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2823
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2824
|
+
project: project,
|
2825
|
+
location: location,
|
2826
|
+
sample_query_set: sampleQuerySet,
|
2827
|
+
sample_query: sampleQuery,
|
2828
|
+
});
|
2829
|
+
}
|
2830
|
+
/**
|
2831
|
+
* Parse the project from SampleQuery resource.
|
2832
|
+
*
|
2833
|
+
* @param {string} sampleQueryName
|
2834
|
+
* A fully-qualified path representing SampleQuery resource.
|
2835
|
+
* @returns {string} A string representing the project.
|
2836
|
+
*/
|
2837
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2838
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2839
|
+
.project;
|
2840
|
+
}
|
2841
|
+
/**
|
2842
|
+
* Parse the location from SampleQuery resource.
|
2843
|
+
*
|
2844
|
+
* @param {string} sampleQueryName
|
2845
|
+
* A fully-qualified path representing SampleQuery resource.
|
2846
|
+
* @returns {string} A string representing the location.
|
2847
|
+
*/
|
2848
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2849
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2850
|
+
.location;
|
2851
|
+
}
|
2852
|
+
/**
|
2853
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2854
|
+
*
|
2855
|
+
* @param {string} sampleQueryName
|
2856
|
+
* A fully-qualified path representing SampleQuery resource.
|
2857
|
+
* @returns {string} A string representing the sample_query_set.
|
2858
|
+
*/
|
2859
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2860
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2861
|
+
.sample_query_set;
|
2862
|
+
}
|
2863
|
+
/**
|
2864
|
+
* Parse the sample_query from SampleQuery resource.
|
2865
|
+
*
|
2866
|
+
* @param {string} sampleQueryName
|
2867
|
+
* A fully-qualified path representing SampleQuery resource.
|
2868
|
+
* @returns {string} A string representing the sample_query.
|
2869
|
+
*/
|
2870
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2871
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2872
|
+
.sample_query;
|
2873
|
+
}
|
2874
|
+
/**
|
2875
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2876
|
+
*
|
2877
|
+
* @param {string} project
|
2878
|
+
* @param {string} location
|
2879
|
+
* @param {string} sample_query_set
|
2880
|
+
* @returns {string} Resource name string.
|
2881
|
+
*/
|
2882
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2883
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2884
|
+
project: project,
|
2885
|
+
location: location,
|
2886
|
+
sample_query_set: sampleQuerySet,
|
2887
|
+
});
|
2888
|
+
}
|
2889
|
+
/**
|
2890
|
+
* Parse the project from SampleQuerySet resource.
|
2891
|
+
*
|
2892
|
+
* @param {string} sampleQuerySetName
|
2893
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2894
|
+
* @returns {string} A string representing the project.
|
2895
|
+
*/
|
2896
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2897
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2898
|
+
}
|
2899
|
+
/**
|
2900
|
+
* Parse the location from SampleQuerySet resource.
|
2901
|
+
*
|
2902
|
+
* @param {string} sampleQuerySetName
|
2903
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2904
|
+
* @returns {string} A string representing the location.
|
2905
|
+
*/
|
2906
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2907
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2908
|
+
}
|
2909
|
+
/**
|
2910
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2911
|
+
*
|
2912
|
+
* @param {string} sampleQuerySetName
|
2913
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2914
|
+
* @returns {string} A string representing the sample_query_set.
|
2915
|
+
*/
|
2916
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2917
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2918
|
+
}
|
2580
2919
|
/**
|
2581
2920
|
* Terminate the gRPC channel and close the client.
|
2582
2921
|
*
|