@google-cloud/discoveryengine 1.10.0 → 1.12.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 +20 -0
- package/README.md +33 -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/answer.proto +14 -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/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +29 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
- 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 +191 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -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 +370 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
- package/build/protos/protos.d.ts +32735 -21073
- package/build/protos/protos.js +80768 -53241
- package/build/protos/protos.json +5309 -2481
- 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 +328 -0
- package/build/src/v1beta/completion_service_client.js +423 -0
- package/build/src/v1beta/completion_service_client_config.json +10 -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 +255 -0
- package/build/src/v1beta/conversational_search_service_client.js +333 -0
- package/build/src/v1beta/data_store_service_client.d.ts +246 -0
- package/build/src/v1beta/data_store_service_client.js +339 -0
- package/build/src/v1beta/document_service_client.d.ts +239 -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 +414 -12
- package/build/src/v1beta/search_service_client.js +451 -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 +312 -0
- package/build/src/v1beta/user_event_service_client.js +381 -0
- package/build/src/v1beta/user_event_service_client_config.json +5 -0
- package/package.json +1 -1
@@ -383,6 +383,39 @@ export declare class ProjectServiceClient {
|
|
383
383
|
* @returns {string} A string representing the engine.
|
384
384
|
*/
|
385
385
|
matchEngineFromEngineName(engineName: string): string | number;
|
386
|
+
/**
|
387
|
+
* Return a fully-qualified evaluation resource name string.
|
388
|
+
*
|
389
|
+
* @param {string} project
|
390
|
+
* @param {string} location
|
391
|
+
* @param {string} evaluation
|
392
|
+
* @returns {string} Resource name string.
|
393
|
+
*/
|
394
|
+
evaluationPath(project: string, location: string, evaluation: string): string;
|
395
|
+
/**
|
396
|
+
* Parse the project from Evaluation resource.
|
397
|
+
*
|
398
|
+
* @param {string} evaluationName
|
399
|
+
* A fully-qualified path representing Evaluation resource.
|
400
|
+
* @returns {string} A string representing the project.
|
401
|
+
*/
|
402
|
+
matchProjectFromEvaluationName(evaluationName: string): string | number;
|
403
|
+
/**
|
404
|
+
* Parse the location from Evaluation resource.
|
405
|
+
*
|
406
|
+
* @param {string} evaluationName
|
407
|
+
* A fully-qualified path representing Evaluation resource.
|
408
|
+
* @returns {string} A string representing the location.
|
409
|
+
*/
|
410
|
+
matchLocationFromEvaluationName(evaluationName: string): string | number;
|
411
|
+
/**
|
412
|
+
* Parse the evaluation from Evaluation resource.
|
413
|
+
*
|
414
|
+
* @param {string} evaluationName
|
415
|
+
* A fully-qualified path representing Evaluation resource.
|
416
|
+
* @returns {string} A string representing the evaluation.
|
417
|
+
*/
|
418
|
+
matchEvaluationFromEvaluationName(evaluationName: string): string | number;
|
386
419
|
/**
|
387
420
|
* Return a fully-qualified project resource name string.
|
388
421
|
*
|
@@ -500,6 +533,75 @@ export declare class ProjectServiceClient {
|
|
500
533
|
* @returns {string} A string representing the document.
|
501
534
|
*/
|
502
535
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
|
536
|
+
/**
|
537
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
538
|
+
*
|
539
|
+
* @param {string} project
|
540
|
+
* @param {string} location
|
541
|
+
* @param {string} collection
|
542
|
+
* @param {string} data_store
|
543
|
+
* @param {string} branch
|
544
|
+
* @param {string} document
|
545
|
+
* @param {string} chunk
|
546
|
+
* @returns {string} Resource name string.
|
547
|
+
*/
|
548
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
549
|
+
/**
|
550
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
551
|
+
*
|
552
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
553
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
554
|
+
* @returns {string} A string representing the project.
|
555
|
+
*/
|
556
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
557
|
+
/**
|
558
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
559
|
+
*
|
560
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
561
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
562
|
+
* @returns {string} A string representing the location.
|
563
|
+
*/
|
564
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
565
|
+
/**
|
566
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
567
|
+
*
|
568
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
569
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
570
|
+
* @returns {string} A string representing the collection.
|
571
|
+
*/
|
572
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
573
|
+
/**
|
574
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
575
|
+
*
|
576
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
577
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
578
|
+
* @returns {string} A string representing the data_store.
|
579
|
+
*/
|
580
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
581
|
+
/**
|
582
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
583
|
+
*
|
584
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
585
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
586
|
+
* @returns {string} A string representing the branch.
|
587
|
+
*/
|
588
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
589
|
+
/**
|
590
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
591
|
+
*
|
592
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
593
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
594
|
+
* @returns {string} A string representing the document.
|
595
|
+
*/
|
596
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
597
|
+
/**
|
598
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
599
|
+
*
|
600
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
601
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
602
|
+
* @returns {string} A string representing the chunk.
|
603
|
+
*/
|
604
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
|
503
605
|
/**
|
504
606
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
505
607
|
*
|
@@ -1349,6 +1451,66 @@ export declare class ProjectServiceClient {
|
|
1349
1451
|
* @returns {string} A string representing the document.
|
1350
1452
|
*/
|
1351
1453
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
|
1454
|
+
/**
|
1455
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1456
|
+
*
|
1457
|
+
* @param {string} project
|
1458
|
+
* @param {string} location
|
1459
|
+
* @param {string} data_store
|
1460
|
+
* @param {string} branch
|
1461
|
+
* @param {string} document
|
1462
|
+
* @param {string} chunk
|
1463
|
+
* @returns {string} Resource name string.
|
1464
|
+
*/
|
1465
|
+
projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
|
1466
|
+
/**
|
1467
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1468
|
+
*
|
1469
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1470
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1471
|
+
* @returns {string} A string representing the project.
|
1472
|
+
*/
|
1473
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1474
|
+
/**
|
1475
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1476
|
+
*
|
1477
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1478
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1479
|
+
* @returns {string} A string representing the location.
|
1480
|
+
*/
|
1481
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1482
|
+
/**
|
1483
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1484
|
+
*
|
1485
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1486
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1487
|
+
* @returns {string} A string representing the data_store.
|
1488
|
+
*/
|
1489
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1490
|
+
/**
|
1491
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1492
|
+
*
|
1493
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1494
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1495
|
+
* @returns {string} A string representing the branch.
|
1496
|
+
*/
|
1497
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1498
|
+
/**
|
1499
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1500
|
+
*
|
1501
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1502
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1503
|
+
* @returns {string} A string representing the document.
|
1504
|
+
*/
|
1505
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1506
|
+
/**
|
1507
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1508
|
+
*
|
1509
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1510
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1511
|
+
* @returns {string} A string representing the chunk.
|
1512
|
+
*/
|
1513
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
|
1352
1514
|
/**
|
1353
1515
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
1354
1516
|
*
|
@@ -1760,6 +1922,81 @@ export declare class ProjectServiceClient {
|
|
1760
1922
|
* @returns {string} A string representing the target_site.
|
1761
1923
|
*/
|
1762
1924
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
|
1925
|
+
/**
|
1926
|
+
* Return a fully-qualified sampleQuery resource name string.
|
1927
|
+
*
|
1928
|
+
* @param {string} project
|
1929
|
+
* @param {string} location
|
1930
|
+
* @param {string} sample_query_set
|
1931
|
+
* @param {string} sample_query
|
1932
|
+
* @returns {string} Resource name string.
|
1933
|
+
*/
|
1934
|
+
sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
|
1935
|
+
/**
|
1936
|
+
* Parse the project from SampleQuery resource.
|
1937
|
+
*
|
1938
|
+
* @param {string} sampleQueryName
|
1939
|
+
* A fully-qualified path representing SampleQuery resource.
|
1940
|
+
* @returns {string} A string representing the project.
|
1941
|
+
*/
|
1942
|
+
matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
|
1943
|
+
/**
|
1944
|
+
* Parse the location from SampleQuery resource.
|
1945
|
+
*
|
1946
|
+
* @param {string} sampleQueryName
|
1947
|
+
* A fully-qualified path representing SampleQuery resource.
|
1948
|
+
* @returns {string} A string representing the location.
|
1949
|
+
*/
|
1950
|
+
matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
|
1951
|
+
/**
|
1952
|
+
* Parse the sample_query_set from SampleQuery resource.
|
1953
|
+
*
|
1954
|
+
* @param {string} sampleQueryName
|
1955
|
+
* A fully-qualified path representing SampleQuery resource.
|
1956
|
+
* @returns {string} A string representing the sample_query_set.
|
1957
|
+
*/
|
1958
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
|
1959
|
+
/**
|
1960
|
+
* Parse the sample_query from SampleQuery resource.
|
1961
|
+
*
|
1962
|
+
* @param {string} sampleQueryName
|
1963
|
+
* A fully-qualified path representing SampleQuery resource.
|
1964
|
+
* @returns {string} A string representing the sample_query.
|
1965
|
+
*/
|
1966
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
|
1967
|
+
/**
|
1968
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
1969
|
+
*
|
1970
|
+
* @param {string} project
|
1971
|
+
* @param {string} location
|
1972
|
+
* @param {string} sample_query_set
|
1973
|
+
* @returns {string} Resource name string.
|
1974
|
+
*/
|
1975
|
+
sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
|
1976
|
+
/**
|
1977
|
+
* Parse the project from SampleQuerySet resource.
|
1978
|
+
*
|
1979
|
+
* @param {string} sampleQuerySetName
|
1980
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1981
|
+
* @returns {string} A string representing the project.
|
1982
|
+
*/
|
1983
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1984
|
+
/**
|
1985
|
+
* Parse the location from SampleQuerySet resource.
|
1986
|
+
*
|
1987
|
+
* @param {string} sampleQuerySetName
|
1988
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1989
|
+
* @returns {string} A string representing the location.
|
1990
|
+
*/
|
1991
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1992
|
+
/**
|
1993
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
1994
|
+
*
|
1995
|
+
* @param {string} sampleQuerySetName
|
1996
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
1997
|
+
* @returns {string} A string representing the sample_query_set.
|
1998
|
+
*/
|
1999
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
|
1763
2000
|
/**
|
1764
2001
|
* Terminate the gRPC channel and close the client.
|
1765
2002
|
*
|
@@ -151,9 +151,11 @@ class ProjectServiceClient {
|
|
151
151
|
// Create useful helper objects for these.
|
152
152
|
this.pathTemplates = {
|
153
153
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
154
|
+
evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
|
154
155
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
155
156
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
156
157
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
158
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
157
159
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
158
160
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
159
161
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -171,6 +173,7 @@ class ProjectServiceClient {
|
|
171
173
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
172
174
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
173
175
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
176
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
174
177
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
175
178
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
176
179
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
@@ -181,6 +184,8 @@ class ProjectServiceClient {
|
|
181
184
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
182
185
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
183
186
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
187
|
+
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
188
|
+
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
184
189
|
};
|
185
190
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
186
191
|
// This API contains "long-running operations", which return a
|
@@ -241,7 +246,13 @@ class ProjectServiceClient {
|
|
241
246
|
{
|
242
247
|
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
243
248
|
},
|
249
|
+
{
|
250
|
+
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
251
|
+
},
|
244
252
|
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
253
|
+
{
|
254
|
+
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
255
|
+
},
|
245
256
|
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
246
257
|
],
|
247
258
|
},
|
@@ -688,6 +699,54 @@ class ProjectServiceClient {
|
|
688
699
|
matchEngineFromEngineName(engineName) {
|
689
700
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
690
701
|
}
|
702
|
+
/**
|
703
|
+
* Return a fully-qualified evaluation resource name string.
|
704
|
+
*
|
705
|
+
* @param {string} project
|
706
|
+
* @param {string} location
|
707
|
+
* @param {string} evaluation
|
708
|
+
* @returns {string} Resource name string.
|
709
|
+
*/
|
710
|
+
evaluationPath(project, location, evaluation) {
|
711
|
+
return this.pathTemplates.evaluationPathTemplate.render({
|
712
|
+
project: project,
|
713
|
+
location: location,
|
714
|
+
evaluation: evaluation,
|
715
|
+
});
|
716
|
+
}
|
717
|
+
/**
|
718
|
+
* Parse the project from Evaluation resource.
|
719
|
+
*
|
720
|
+
* @param {string} evaluationName
|
721
|
+
* A fully-qualified path representing Evaluation resource.
|
722
|
+
* @returns {string} A string representing the project.
|
723
|
+
*/
|
724
|
+
matchProjectFromEvaluationName(evaluationName) {
|
725
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
726
|
+
.project;
|
727
|
+
}
|
728
|
+
/**
|
729
|
+
* Parse the location from Evaluation resource.
|
730
|
+
*
|
731
|
+
* @param {string} evaluationName
|
732
|
+
* A fully-qualified path representing Evaluation resource.
|
733
|
+
* @returns {string} A string representing the location.
|
734
|
+
*/
|
735
|
+
matchLocationFromEvaluationName(evaluationName) {
|
736
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
737
|
+
.location;
|
738
|
+
}
|
739
|
+
/**
|
740
|
+
* Parse the evaluation from Evaluation resource.
|
741
|
+
*
|
742
|
+
* @param {string} evaluationName
|
743
|
+
* A fully-qualified path representing Evaluation resource.
|
744
|
+
* @returns {string} A string representing the evaluation.
|
745
|
+
*/
|
746
|
+
matchEvaluationFromEvaluationName(evaluationName) {
|
747
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
748
|
+
.evaluation;
|
749
|
+
}
|
691
750
|
/**
|
692
751
|
* Return a fully-qualified project resource name string.
|
693
752
|
*
|
@@ -847,6 +906,99 @@ class ProjectServiceClient {
|
|
847
906
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
848
907
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
849
908
|
}
|
909
|
+
/**
|
910
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
911
|
+
*
|
912
|
+
* @param {string} project
|
913
|
+
* @param {string} location
|
914
|
+
* @param {string} collection
|
915
|
+
* @param {string} data_store
|
916
|
+
* @param {string} branch
|
917
|
+
* @param {string} document
|
918
|
+
* @param {string} chunk
|
919
|
+
* @returns {string} Resource name string.
|
920
|
+
*/
|
921
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
922
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
923
|
+
project: project,
|
924
|
+
location: location,
|
925
|
+
collection: collection,
|
926
|
+
data_store: dataStore,
|
927
|
+
branch: branch,
|
928
|
+
document: document,
|
929
|
+
chunk: chunk,
|
930
|
+
});
|
931
|
+
}
|
932
|
+
/**
|
933
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
934
|
+
*
|
935
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
936
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
937
|
+
* @returns {string} A string representing the project.
|
938
|
+
*/
|
939
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
940
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
941
|
+
}
|
942
|
+
/**
|
943
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
944
|
+
*
|
945
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
946
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
947
|
+
* @returns {string} A string representing the location.
|
948
|
+
*/
|
949
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
950
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
951
|
+
}
|
952
|
+
/**
|
953
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
954
|
+
*
|
955
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
956
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
957
|
+
* @returns {string} A string representing the collection.
|
958
|
+
*/
|
959
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
960
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
961
|
+
}
|
962
|
+
/**
|
963
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
964
|
+
*
|
965
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
966
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
967
|
+
* @returns {string} A string representing the data_store.
|
968
|
+
*/
|
969
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
970
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
971
|
+
}
|
972
|
+
/**
|
973
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
974
|
+
*
|
975
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
976
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
977
|
+
* @returns {string} A string representing the branch.
|
978
|
+
*/
|
979
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
980
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
981
|
+
}
|
982
|
+
/**
|
983
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
984
|
+
*
|
985
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
986
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
987
|
+
* @returns {string} A string representing the document.
|
988
|
+
*/
|
989
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
990
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
991
|
+
}
|
992
|
+
/**
|
993
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
994
|
+
*
|
995
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
996
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
997
|
+
* @returns {string} A string representing the chunk.
|
998
|
+
*/
|
999
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1000
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1001
|
+
}
|
850
1002
|
/**
|
851
1003
|
* Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
|
852
1004
|
*
|
@@ -1996,6 +2148,87 @@ class ProjectServiceClient {
|
|
1996
2148
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1997
2149
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1998
2150
|
}
|
2151
|
+
/**
|
2152
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
2153
|
+
*
|
2154
|
+
* @param {string} project
|
2155
|
+
* @param {string} location
|
2156
|
+
* @param {string} data_store
|
2157
|
+
* @param {string} branch
|
2158
|
+
* @param {string} document
|
2159
|
+
* @param {string} chunk
|
2160
|
+
* @returns {string} Resource name string.
|
2161
|
+
*/
|
2162
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
2163
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
2164
|
+
project: project,
|
2165
|
+
location: location,
|
2166
|
+
data_store: dataStore,
|
2167
|
+
branch: branch,
|
2168
|
+
document: document,
|
2169
|
+
chunk: chunk,
|
2170
|
+
});
|
2171
|
+
}
|
2172
|
+
/**
|
2173
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2174
|
+
*
|
2175
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2176
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2177
|
+
* @returns {string} A string representing the project.
|
2178
|
+
*/
|
2179
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2180
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
2181
|
+
}
|
2182
|
+
/**
|
2183
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2184
|
+
*
|
2185
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2186
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2187
|
+
* @returns {string} A string representing the location.
|
2188
|
+
*/
|
2189
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2190
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
2191
|
+
}
|
2192
|
+
/**
|
2193
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2194
|
+
*
|
2195
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2196
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2197
|
+
* @returns {string} A string representing the data_store.
|
2198
|
+
*/
|
2199
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2200
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
2201
|
+
}
|
2202
|
+
/**
|
2203
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2204
|
+
*
|
2205
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2206
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2207
|
+
* @returns {string} A string representing the branch.
|
2208
|
+
*/
|
2209
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2210
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
2211
|
+
}
|
2212
|
+
/**
|
2213
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2214
|
+
*
|
2215
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2216
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2217
|
+
* @returns {string} A string representing the document.
|
2218
|
+
*/
|
2219
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2220
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
2221
|
+
}
|
2222
|
+
/**
|
2223
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
2224
|
+
*
|
2225
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
2226
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
2227
|
+
* @returns {string} A string representing the chunk.
|
2228
|
+
*/
|
2229
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
2230
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
2231
|
+
}
|
1999
2232
|
/**
|
2000
2233
|
* Return a fully-qualified projectLocationDataStoreControl resource name string.
|
2001
2234
|
*
|
@@ -2554,6 +2787,112 @@ class ProjectServiceClient {
|
|
2554
2787
|
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
2555
2788
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
2556
2789
|
}
|
2790
|
+
/**
|
2791
|
+
* Return a fully-qualified sampleQuery resource name string.
|
2792
|
+
*
|
2793
|
+
* @param {string} project
|
2794
|
+
* @param {string} location
|
2795
|
+
* @param {string} sample_query_set
|
2796
|
+
* @param {string} sample_query
|
2797
|
+
* @returns {string} Resource name string.
|
2798
|
+
*/
|
2799
|
+
sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
|
2800
|
+
return this.pathTemplates.sampleQueryPathTemplate.render({
|
2801
|
+
project: project,
|
2802
|
+
location: location,
|
2803
|
+
sample_query_set: sampleQuerySet,
|
2804
|
+
sample_query: sampleQuery,
|
2805
|
+
});
|
2806
|
+
}
|
2807
|
+
/**
|
2808
|
+
* Parse the project from SampleQuery resource.
|
2809
|
+
*
|
2810
|
+
* @param {string} sampleQueryName
|
2811
|
+
* A fully-qualified path representing SampleQuery resource.
|
2812
|
+
* @returns {string} A string representing the project.
|
2813
|
+
*/
|
2814
|
+
matchProjectFromSampleQueryName(sampleQueryName) {
|
2815
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2816
|
+
.project;
|
2817
|
+
}
|
2818
|
+
/**
|
2819
|
+
* Parse the location from SampleQuery resource.
|
2820
|
+
*
|
2821
|
+
* @param {string} sampleQueryName
|
2822
|
+
* A fully-qualified path representing SampleQuery resource.
|
2823
|
+
* @returns {string} A string representing the location.
|
2824
|
+
*/
|
2825
|
+
matchLocationFromSampleQueryName(sampleQueryName) {
|
2826
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2827
|
+
.location;
|
2828
|
+
}
|
2829
|
+
/**
|
2830
|
+
* Parse the sample_query_set from SampleQuery resource.
|
2831
|
+
*
|
2832
|
+
* @param {string} sampleQueryName
|
2833
|
+
* A fully-qualified path representing SampleQuery resource.
|
2834
|
+
* @returns {string} A string representing the sample_query_set.
|
2835
|
+
*/
|
2836
|
+
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
2837
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2838
|
+
.sample_query_set;
|
2839
|
+
}
|
2840
|
+
/**
|
2841
|
+
* Parse the sample_query from SampleQuery resource.
|
2842
|
+
*
|
2843
|
+
* @param {string} sampleQueryName
|
2844
|
+
* A fully-qualified path representing SampleQuery resource.
|
2845
|
+
* @returns {string} A string representing the sample_query.
|
2846
|
+
*/
|
2847
|
+
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
2848
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
2849
|
+
.sample_query;
|
2850
|
+
}
|
2851
|
+
/**
|
2852
|
+
* Return a fully-qualified sampleQuerySet resource name string.
|
2853
|
+
*
|
2854
|
+
* @param {string} project
|
2855
|
+
* @param {string} location
|
2856
|
+
* @param {string} sample_query_set
|
2857
|
+
* @returns {string} Resource name string.
|
2858
|
+
*/
|
2859
|
+
sampleQuerySetPath(project, location, sampleQuerySet) {
|
2860
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.render({
|
2861
|
+
project: project,
|
2862
|
+
location: location,
|
2863
|
+
sample_query_set: sampleQuerySet,
|
2864
|
+
});
|
2865
|
+
}
|
2866
|
+
/**
|
2867
|
+
* Parse the project from SampleQuerySet resource.
|
2868
|
+
*
|
2869
|
+
* @param {string} sampleQuerySetName
|
2870
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2871
|
+
* @returns {string} A string representing the project.
|
2872
|
+
*/
|
2873
|
+
matchProjectFromSampleQuerySetName(sampleQuerySetName) {
|
2874
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
|
2875
|
+
}
|
2876
|
+
/**
|
2877
|
+
* Parse the location from SampleQuerySet resource.
|
2878
|
+
*
|
2879
|
+
* @param {string} sampleQuerySetName
|
2880
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2881
|
+
* @returns {string} A string representing the location.
|
2882
|
+
*/
|
2883
|
+
matchLocationFromSampleQuerySetName(sampleQuerySetName) {
|
2884
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
|
2885
|
+
}
|
2886
|
+
/**
|
2887
|
+
* Parse the sample_query_set from SampleQuerySet resource.
|
2888
|
+
*
|
2889
|
+
* @param {string} sampleQuerySetName
|
2890
|
+
* A fully-qualified path representing SampleQuerySet resource.
|
2891
|
+
* @returns {string} A string representing the sample_query_set.
|
2892
|
+
*/
|
2893
|
+
matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
|
2894
|
+
return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
|
2895
|
+
}
|
2557
2896
|
/**
|
2558
2897
|
* Terminate the gRPC channel and close the client.
|
2559
2898
|
*
|