@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
@@ -458,6 +458,39 @@ export declare class UserEventServiceClient {
|
|
458
458
|
* @returns {string} A string representing the engine.
|
459
459
|
*/
|
460
460
|
matchEngineFromEngineName(engineName: string): string | number;
|
461
|
+
/**
|
462
|
+
* Return a fully-qualified evaluation resource name string.
|
463
|
+
*
|
464
|
+
* @param {string} project
|
465
|
+
* @param {string} location
|
466
|
+
* @param {string} evaluation
|
467
|
+
* @returns {string} Resource name string.
|
468
|
+
*/
|
469
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
470
|
+
/**
|
471
|
+
* Parse the project from Evaluation resource.
|
472
|
+
*
|
473
|
+
* @param {string} evaluationName
|
474
|
+
* A fully-qualified path representing Evaluation resource.
|
475
|
+
* @returns {string} A string representing the project.
|
476
|
+
*/
|
477
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
478
|
+
/**
|
479
|
+
* Parse the location from Evaluation resource.
|
480
|
+
*
|
481
|
+
* @param {string} evaluationName
|
482
|
+
* A fully-qualified path representing Evaluation resource.
|
483
|
+
* @returns {string} A string representing the location.
|
484
|
+
*/
|
485
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
486
|
+
/**
|
487
|
+
* Parse the evaluation from Evaluation resource.
|
488
|
+
*
|
489
|
+
* @param {string} evaluationName
|
490
|
+
* A fully-qualified path representing Evaluation resource.
|
491
|
+
* @returns {string} A string representing the evaluation.
|
492
|
+
*/
|
493
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
461
494
|
/**
|
462
495
|
* Return a fully-qualified project resource name string.
|
463
496
|
*
|
@@ -575,6 +608,75 @@ export declare class UserEventServiceClient {
|
|
575
608
|
* @returns {string} A string representing the document.
|
576
609
|
*/
|
577
610
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
|
611
|
+
/**
|
612
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
613
|
+
*
|
614
|
+
* @param {string} project
|
615
|
+
* @param {string} location
|
616
|
+
* @param {string} collection
|
617
|
+
* @param {string} data_store
|
618
|
+
* @param {string} branch
|
619
|
+
* @param {string} document
|
620
|
+
* @param {string} chunk
|
621
|
+
* @returns {string} Resource name string.
|
622
|
+
*/
|
623
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
624
|
+
/**
|
625
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
626
|
+
*
|
627
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
628
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
629
|
+
* @returns {string} A string representing the project.
|
630
|
+
*/
|
631
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
632
|
+
/**
|
633
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
634
|
+
*
|
635
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
636
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
637
|
+
* @returns {string} A string representing the location.
|
638
|
+
*/
|
639
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
640
|
+
/**
|
641
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
642
|
+
*
|
643
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
644
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
645
|
+
* @returns {string} A string representing the collection.
|
646
|
+
*/
|
647
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
648
|
+
/**
|
649
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
650
|
+
*
|
651
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
652
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
653
|
+
* @returns {string} A string representing the data_store.
|
654
|
+
*/
|
655
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
656
|
+
/**
|
657
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
658
|
+
*
|
659
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
660
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
661
|
+
* @returns {string} A string representing the branch.
|
662
|
+
*/
|
663
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
664
|
+
/**
|
665
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
666
|
+
*
|
667
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
668
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
669
|
+
* @returns {string} A string representing the document.
|
670
|
+
*/
|
671
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
672
|
+
/**
|
673
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
674
|
+
*
|
675
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
676
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
677
|
+
* @returns {string} A string representing the chunk.
|
678
|
+
*/
|
679
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
578
680
|
/**
|
579
681
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
580
682
|
*
|
@@ -1424,6 +1526,66 @@ export declare class UserEventServiceClient {
|
|
1424
1526
|
* @returns {string} A string representing the document.
|
1425
1527
|
*/
|
1426
1528
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
|
1529
|
+
/**
|
1530
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1531
|
+
*
|
1532
|
+
* @param {string} project
|
1533
|
+
* @param {string} location
|
1534
|
+
* @param {string} data_store
|
1535
|
+
* @param {string} branch
|
1536
|
+
* @param {string} document
|
1537
|
+
* @param {string} chunk
|
1538
|
+
* @returns {string} Resource name string.
|
1539
|
+
*/
|
1540
|
+
projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
1541
|
+
/**
|
1542
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1543
|
+
*
|
1544
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1545
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1546
|
+
* @returns {string} A string representing the project.
|
1547
|
+
*/
|
1548
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1549
|
+
/**
|
1550
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1551
|
+
*
|
1552
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1553
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1554
|
+
* @returns {string} A string representing the location.
|
1555
|
+
*/
|
1556
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1557
|
+
/**
|
1558
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1559
|
+
*
|
1560
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1561
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1562
|
+
* @returns {string} A string representing the data_store.
|
1563
|
+
*/
|
1564
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1565
|
+
/**
|
1566
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1567
|
+
*
|
1568
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1569
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1570
|
+
* @returns {string} A string representing the branch.
|
1571
|
+
*/
|
1572
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1573
|
+
/**
|
1574
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1575
|
+
*
|
1576
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1577
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1578
|
+
* @returns {string} A string representing the document.
|
1579
|
+
*/
|
1580
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1581
|
+
/**
|
1582
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1583
|
+
*
|
1584
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1585
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1586
|
+
* @returns {string} A string representing the chunk.
|
1587
|
+
*/
|
1588
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1427
1589
|
/**
|
1428
1590
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1429
1591
|
*
|
@@ -1835,6 +1997,81 @@ export declare class UserEventServiceClient {
|
|
1835
1997
|
* @returns {string} A string representing the target_site.
|
1836
1998
|
*/
|
1837
1999
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
2000
|
+
/**
|
2001
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2002
|
+
*
|
2003
|
+
* @param {string} project
|
2004
|
+
* @param {string} location
|
2005
|
+
* @param {string} sample_query_set
|
2006
|
+
* @param {string} sample_query
|
2007
|
+
* @returns {string} Resource name string.
|
2008
|
+
*/
|
2009
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
2010
|
+
/**
|
2011
|
+
* Parse the project from SampleQuery resource.
|
2012
|
+
*
|
2013
|
+
* @param {string} sampleQueryName
|
2014
|
+
* A fully-qualified path representing SampleQuery resource.
|
2015
|
+
* @returns {string} A string representing the project.
|
2016
|
+
*/
|
2017
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
2018
|
+
/**
|
2019
|
+
* Parse the location from SampleQuery resource.
|
2020
|
+
*
|
2021
|
+
* @param {string} sampleQueryName
|
2022
|
+
* A fully-qualified path representing SampleQuery resource.
|
2023
|
+
* @returns {string} A string representing the location.
|
2024
|
+
*/
|
2025
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
2026
|
+
/**
|
2027
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2028
|
+
*
|
2029
|
+
* @param {string} sampleQueryName
|
2030
|
+
* A fully-qualified path representing SampleQuery resource.
|
2031
|
+
* @returns {string} A string representing the sample_query_set.
|
2032
|
+
*/
|
2033
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
2034
|
+
/**
|
2035
|
+
* Parse the sample_query from SampleQuery resource.
|
2036
|
+
*
|
2037
|
+
* @param {string} sampleQueryName
|
2038
|
+
* A fully-qualified path representing SampleQuery resource.
|
2039
|
+
* @returns {string} A string representing the sample_query.
|
2040
|
+
*/
|
2041
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
2042
|
+
/**
|
2043
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2044
|
+
*
|
2045
|
+
* @param {string} project
|
2046
|
+
* @param {string} location
|
2047
|
+
* @param {string} sample_query_set
|
2048
|
+
* @returns {string} Resource name string.
|
2049
|
+
*/
|
2050
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
2051
|
+
/**
|
2052
|
+
* Parse the project from SampleQuerySet resource.
|
2053
|
+
*
|
2054
|
+
* @param {string} sampleQuerySetName
|
2055
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2056
|
+
* @returns {string} A string representing the project.
|
2057
|
+
*/
|
2058
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2059
|
+
/**
|
2060
|
+
* Parse the location from SampleQuerySet resource.
|
2061
|
+
*
|
2062
|
+
* @param {string} sampleQuerySetName
|
2063
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2064
|
+
* @returns {string} A string representing the location.
|
2065
|
+
*/
|
2066
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
2067
|
+
/**
|
2068
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2069
|
+
*
|
2070
|
+
* @param {string} sampleQuerySetName
|
2071
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2072
|
+
* @returns {string} A string representing the sample_query_set.
|
2073
|
+
*/
|
2074
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1838
2075
|
/**
|
1839
2076
|
* Terminate the gRPC channel and close the client.
|
1840
2077
|
*
|
@@ -150,9 +150,11 @@ class UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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
|
},
|
@@ -733,6 +744,54 @@ class UserEventServiceClient {
|
|
733
744
|
matchEngineFromEngineName(engineName) {
|
734
745
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
735
746
|
}
|
747
|
+
/**
|
748
|
+
* Return a fully-qualified evaluation resource name string.
|
749
|
+
*
|
750
|
+
* @param {string} project
|
751
|
+
* @param {string} location
|
752
|
+
* @param {string} evaluation
|
753
|
+
* @returns {string} Resource name string.
|
754
|
+
*/
|
755
|
+
evaluationPath(project, location, evaluation) {
|
756
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
757
|
+
project: project,
|
758
|
+
location: location,
|
759
|
+
evaluation: evaluation,
|
760
|
+
});
|
761
|
+
}
|
762
|
+
/**
|
763
|
+
* Parse the project from Evaluation resource.
|
764
|
+
*
|
765
|
+
* @param {string} evaluationName
|
766
|
+
* A fully-qualified path representing Evaluation resource.
|
767
|
+
* @returns {string} A string representing the project.
|
768
|
+
*/
|
769
|
+
matchProjectFromEvaluationName(evaluationName) {
|
770
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
771
|
+
.project;
|
772
|
+
}
|
773
|
+
/**
|
774
|
+
* Parse the location from Evaluation resource.
|
775
|
+
*
|
776
|
+
* @param {string} evaluationName
|
777
|
+
* A fully-qualified path representing Evaluation resource.
|
778
|
+
* @returns {string} A string representing the location.
|
779
|
+
*/
|
780
|
+
matchLocationFromEvaluationName(evaluationName) {
|
781
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
782
|
+
.location;
|
783
|
+
}
|
784
|
+
/**
|
785
|
+
* Parse the evaluation from Evaluation resource.
|
786
|
+
*
|
787
|
+
* @param {string} evaluationName
|
788
|
+
* A fully-qualified path representing Evaluation resource.
|
789
|
+
* @returns {string} A string representing the evaluation.
|
790
|
+
*/
|
791
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
792
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
793
|
+
.evaluation;
|
794
|
+
}
|
736
795
|
/**
|
737
796
|
* Return a fully-qualified project resource name string.
|
738
797
|
*
|
@@ -892,6 +951,99 @@ class UserEventServiceClient {
|
|
892
951
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
893
952
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
894
953
|
}
|
954
|
+
/**
|
955
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
956
|
+
*
|
957
|
+
* @param {string} project
|
958
|
+
* @param {string} location
|
959
|
+
* @param {string} collection
|
960
|
+
* @param {string} data_store
|
961
|
+
* @param {string} branch
|
962
|
+
* @param {string} document
|
963
|
+
* @param {string} chunk
|
964
|
+
* @returns {string} Resource name string.
|
965
|
+
*/
|
966
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
967
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
968
|
+
project: project,
|
969
|
+
location: location,
|
970
|
+
collection: collection,
|
971
|
+
data_store: dataStore,
|
972
|
+
branch: branch,
|
973
|
+
document: document,
|
974
|
+
chunk: chunk,
|
975
|
+
});
|
976
|
+
}
|
977
|
+
/**
|
978
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
979
|
+
*
|
980
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
981
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
982
|
+
* @returns {string} A string representing the project.
|
983
|
+
*/
|
984
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
985
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
986
|
+
}
|
987
|
+
/**
|
988
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
989
|
+
*
|
990
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
991
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
992
|
+
* @returns {string} A string representing the location.
|
993
|
+
*/
|
994
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
995
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
996
|
+
}
|
997
|
+
/**
|
998
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
999
|
+
*
|
1000
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1001
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1002
|
+
* @returns {string} A string representing the collection.
|
1003
|
+
*/
|
1004
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1005
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1006
|
+
}
|
1007
|
+
/**
|
1008
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1009
|
+
*
|
1010
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1011
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1012
|
+
* @returns {string} A string representing the data_store.
|
1013
|
+
*/
|
1014
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1015
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1016
|
+
}
|
1017
|
+
/**
|
1018
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1019
|
+
*
|
1020
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1021
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1022
|
+
* @returns {string} A string representing the branch.
|
1023
|
+
*/
|
1024
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1025
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1026
|
+
}
|
1027
|
+
/**
|
1028
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1029
|
+
*
|
1030
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1031
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1032
|
+
* @returns {string} A string representing the document.
|
1033
|
+
*/
|
1034
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1035
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1036
|
+
}
|
1037
|
+
/**
|
1038
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1039
|
+
*
|
1040
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1041
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1042
|
+
* @returns {string} A string representing the chunk.
|
1043
|
+
*/
|
1044
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1045
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1046
|
+
}
|
895
1047
|
/**
|
896
1048
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
897
1049
|
*
|
@@ -2041,6 +2193,87 @@ class UserEventServiceClient {
|
|
2041
2193
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
2042
2194
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
2043
2195
|
}
|
2196
|
+
/**
|
2197
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2198
|
+
*
|
2199
|
+
* @param {string} project
|
2200
|
+
* @param {string} location
|
2201
|
+
* @param {string} data_store
|
2202
|
+
* @param {string} branch
|
2203
|
+
* @param {string} document
|
2204
|
+
* @param {string} chunk
|
2205
|
+
* @returns {string} Resource name string.
|
2206
|
+
*/
|
2207
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2208
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2209
|
+
project: project,
|
2210
|
+
location: location,
|
2211
|
+
data_store: dataStore,
|
2212
|
+
branch: branch,
|
2213
|
+
document: document,
|
2214
|
+
chunk: chunk,
|
2215
|
+
});
|
2216
|
+
}
|
2217
|
+
/**
|
2218
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2219
|
+
*
|
2220
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2221
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2222
|
+
* @returns {string} A string representing the project.
|
2223
|
+
*/
|
2224
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2225
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2226
|
+
}
|
2227
|
+
/**
|
2228
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2229
|
+
*
|
2230
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2231
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2232
|
+
* @returns {string} A string representing the location.
|
2233
|
+
*/
|
2234
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2235
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2236
|
+
}
|
2237
|
+
/**
|
2238
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2239
|
+
*
|
2240
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2241
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2242
|
+
* @returns {string} A string representing the data_store.
|
2243
|
+
*/
|
2244
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2245
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2246
|
+
}
|
2247
|
+
/**
|
2248
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2249
|
+
*
|
2250
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2251
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2252
|
+
* @returns {string} A string representing the branch.
|
2253
|
+
*/
|
2254
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2255
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2256
|
+
}
|
2257
|
+
/**
|
2258
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2259
|
+
*
|
2260
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2261
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2262
|
+
* @returns {string} A string representing the document.
|
2263
|
+
*/
|
2264
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2265
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2266
|
+
}
|
2267
|
+
/**
|
2268
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2269
|
+
*
|
2270
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2271
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2272
|
+
* @returns {string} A string representing the chunk.
|
2273
|
+
*/
|
2274
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2275
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2276
|
+
}
|
2044
2277
|
/**
|
2045
2278
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2046
2279
|
*
|
@@ -2599,6 +2832,112 @@ class UserEventServiceClient {
|
|
2599
2832
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2600
2833
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2601
2834
|
}
|
2835
|
+
/**
|
2836
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2837
|
+
*
|
2838
|
+
* @param {string} project
|
2839
|
+
* @param {string} location
|
2840
|
+
* @param {string} sample_query_set
|
2841
|
+
* @param {string} sample_query
|
2842
|
+
* @returns {string} Resource name string.
|
2843
|
+
*/
|
2844
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2845
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2846
|
+
project: project,
|
2847
|
+
location: location,
|
2848
|
+
sample_query_set: sampleQuerySet,
|
2849
|
+
sample_query: sampleQuery,
|
2850
|
+
});
|
2851
|
+
}
|
2852
|
+
/**
|
2853
|
+
* Parse the project from SampleQuery resource.
|
2854
|
+
*
|
2855
|
+
* @param {string} sampleQueryName
|
2856
|
+
* A fully-qualified path representing SampleQuery resource.
|
2857
|
+
* @returns {string} A string representing the project.
|
2858
|
+
*/
|
2859
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2860
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2861
|
+
.project;
|
2862
|
+
}
|
2863
|
+
/**
|
2864
|
+
* Parse the location from SampleQuery resource.
|
2865
|
+
*
|
2866
|
+
* @param {string} sampleQueryName
|
2867
|
+
* A fully-qualified path representing SampleQuery resource.
|
2868
|
+
* @returns {string} A string representing the location.
|
2869
|
+
*/
|
2870
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2871
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2872
|
+
.location;
|
2873
|
+
}
|
2874
|
+
/**
|
2875
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2876
|
+
*
|
2877
|
+
* @param {string} sampleQueryName
|
2878
|
+
* A fully-qualified path representing SampleQuery resource.
|
2879
|
+
* @returns {string} A string representing the sample_query_set.
|
2880
|
+
*/
|
2881
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2882
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2883
|
+
.sample_query_set;
|
2884
|
+
}
|
2885
|
+
/**
|
2886
|
+
* Parse the sample_query from SampleQuery resource.
|
2887
|
+
*
|
2888
|
+
* @param {string} sampleQueryName
|
2889
|
+
* A fully-qualified path representing SampleQuery resource.
|
2890
|
+
* @returns {string} A string representing the sample_query.
|
2891
|
+
*/
|
2892
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2893
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2894
|
+
.sample_query;
|
2895
|
+
}
|
2896
|
+
/**
|
2897
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2898
|
+
*
|
2899
|
+
* @param {string} project
|
2900
|
+
* @param {string} location
|
2901
|
+
* @param {string} sample_query_set
|
2902
|
+
* @returns {string} Resource name string.
|
2903
|
+
*/
|
2904
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2905
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2906
|
+
project: project,
|
2907
|
+
location: location,
|
2908
|
+
sample_query_set: sampleQuerySet,
|
2909
|
+
});
|
2910
|
+
}
|
2911
|
+
/**
|
2912
|
+
* Parse the project from SampleQuerySet resource.
|
2913
|
+
*
|
2914
|
+
* @param {string} sampleQuerySetName
|
2915
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2916
|
+
* @returns {string} A string representing the project.
|
2917
|
+
*/
|
2918
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2919
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2920
|
+
}
|
2921
|
+
/**
|
2922
|
+
* Parse the location from SampleQuerySet resource.
|
2923
|
+
*
|
2924
|
+
* @param {string} sampleQuerySetName
|
2925
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2926
|
+
* @returns {string} A string representing the location.
|
2927
|
+
*/
|
2928
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2929
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2930
|
+
}
|
2931
|
+
/**
|
2932
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2933
|
+
*
|
2934
|
+
* @param {string} sampleQuerySetName
|
2935
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2936
|
+
* @returns {string} A string representing the sample_query_set.
|
2937
|
+
*/
|
2938
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2939
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2940
|
+
}
|
2602
2941
|
/**
|
2603
2942
|
* Terminate the gRPC channel and close the client.
|
2604
2943
|
*
|