@google-cloud/discoveryengine 1.9.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +32 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +13 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +119 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/common.proto +0 -5
  6. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +31 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +38 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +35 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  10. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +37 -2
  11. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +108 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +200 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +3 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation.proto +232 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/evaluation_service.proto +252 -0
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +83 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query.proto +86 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_service.proto +264 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/sample_query_set_service.proto +258 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/chunk.proto +119 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +0 -5
  24. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +10 -2
  25. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  26. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +37 -2
  27. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation.proto +231 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/evaluation_service.proto +252 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +83 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query.proto +86 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_service.proto +264 -0
  32. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set.proto +64 -0
  33. package/build/protos/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +256 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +67 -8
  35. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +11 -5
  36. package/build/protos/protos.d.ts +31310 -20211
  37. package/build/protos/protos.js +86710 -60571
  38. package/build/protos/protos.json +7720 -5011
  39. package/build/src/v1/completion_service_client.d.ts +220 -0
  40. package/build/src/v1/completion_service_client.js +260 -0
  41. package/build/src/v1/completion_service_client_config.json +10 -0
  42. package/build/src/v1/control_service_client.d.ts +129 -1
  43. package/build/src/v1/control_service_client.js +176 -0
  44. package/build/src/v1/conversational_search_service_client.d.ts +147 -1
  45. package/build/src/v1/conversational_search_service_client.js +176 -0
  46. package/build/src/v1/data_store_service_client.d.ts +129 -1
  47. package/build/src/v1/data_store_service_client.js +176 -0
  48. package/build/src/v1/document_service_client.d.ts +131 -1
  49. package/build/src/v1/document_service_client.js +176 -0
  50. package/build/src/v1/engine_service_client.d.ts +129 -1
  51. package/build/src/v1/engine_service_client.js +176 -0
  52. package/build/src/v1/grounded_generation_service_client.d.ts +129 -0
  53. package/build/src/v1/grounded_generation_service_client.js +176 -0
  54. package/build/src/v1/project_service_client.d.ts +129 -0
  55. package/build/src/v1/project_service_client.js +176 -0
  56. package/build/src/v1/rank_service_client.d.ts +129 -0
  57. package/build/src/v1/rank_service_client.js +176 -0
  58. package/build/src/v1/recommendation_service_client.d.ts +129 -0
  59. package/build/src/v1/recommendation_service_client.js +176 -0
  60. package/build/src/v1/schema_service_client.d.ts +129 -1
  61. package/build/src/v1/schema_service_client.js +176 -0
  62. package/build/src/v1/search_service_client.d.ts +252 -1
  63. package/build/src/v1/search_service_client.js +258 -0
  64. package/build/src/v1/site_search_engine_service_client.d.ts +129 -1
  65. package/build/src/v1/site_search_engine_service_client.js +176 -0
  66. package/build/src/v1/user_event_service_client.d.ts +129 -0
  67. package/build/src/v1/user_event_service_client.js +176 -0
  68. package/build/src/v1alpha/acl_config_service_client.d.ts +108 -0
  69. package/build/src/v1alpha/acl_config_service_client.js +157 -0
  70. package/build/src/v1alpha/chunk_service_client.d.ts +108 -1
  71. package/build/src/v1alpha/chunk_service_client.js +157 -0
  72. package/build/src/v1alpha/completion_service_client.d.ts +108 -0
  73. package/build/src/v1alpha/completion_service_client.js +157 -0
  74. package/build/src/v1alpha/control_service_client.d.ts +108 -1
  75. package/build/src/v1alpha/control_service_client.js +157 -0
  76. package/build/src/v1alpha/conversational_search_service_client.d.ts +108 -1
  77. package/build/src/v1alpha/conversational_search_service_client.js +157 -0
  78. package/build/src/v1alpha/data_store_service_client.d.ts +108 -1
  79. package/build/src/v1alpha/data_store_service_client.js +157 -0
  80. package/build/src/v1alpha/document_service_client.d.ts +108 -1
  81. package/build/src/v1alpha/document_service_client.js +157 -0
  82. package/build/src/v1alpha/engine_service_client.d.ts +108 -1
  83. package/build/src/v1alpha/engine_service_client.js +157 -0
  84. package/build/src/v1alpha/estimate_billing_service_client.d.ts +108 -0
  85. package/build/src/v1alpha/estimate_billing_service_client.js +157 -0
  86. package/build/src/v1alpha/evaluation_service_client.d.ts +2349 -0
  87. package/build/src/v1alpha/evaluation_service_client.js +3288 -0
  88. package/build/src/v1alpha/evaluation_service_client_config.json +58 -0
  89. package/build/src/v1alpha/grounded_generation_service_client.d.ts +108 -0
  90. package/build/src/v1alpha/grounded_generation_service_client.js +157 -0
  91. package/build/src/v1alpha/index.d.ts +3 -0
  92. package/build/src/v1alpha/index.js +7 -1
  93. package/build/src/v1alpha/project_service_client.d.ts +108 -0
  94. package/build/src/v1alpha/project_service_client.js +157 -0
  95. package/build/src/v1alpha/rank_service_client.d.ts +108 -0
  96. package/build/src/v1alpha/rank_service_client.js +157 -0
  97. package/build/src/v1alpha/recommendation_service_client.d.ts +108 -0
  98. package/build/src/v1alpha/recommendation_service_client.js +157 -0
  99. package/build/src/v1alpha/sample_query_service_client.d.ts +2317 -0
  100. package/build/src/v1alpha/sample_query_service_client.js +3186 -0
  101. package/build/src/v1alpha/sample_query_service_client_config.json +68 -0
  102. package/build/src/v1alpha/sample_query_set_service_client.d.ts +2176 -0
  103. package/build/src/v1alpha/sample_query_set_service_client.js +2931 -0
  104. package/build/src/v1alpha/sample_query_set_service_client_config.json +63 -0
  105. package/build/src/v1alpha/schema_service_client.d.ts +108 -1
  106. package/build/src/v1alpha/schema_service_client.js +157 -0
  107. package/build/src/v1alpha/search_service_client.d.ts +108 -1
  108. package/build/src/v1alpha/search_service_client.js +157 -0
  109. package/build/src/v1alpha/search_tuning_service_client.d.ts +108 -0
  110. package/build/src/v1alpha/search_tuning_service_client.js +157 -0
  111. package/build/src/v1alpha/serving_config_service_client.d.ts +108 -1
  112. package/build/src/v1alpha/serving_config_service_client.js +157 -0
  113. package/build/src/v1alpha/site_search_engine_service_client.d.ts +108 -1
  114. package/build/src/v1alpha/site_search_engine_service_client.js +157 -0
  115. package/build/src/v1alpha/user_event_service_client.d.ts +108 -0
  116. package/build/src/v1alpha/user_event_service_client.js +157 -0
  117. package/build/src/v1beta/completion_service_client.d.ts +237 -0
  118. package/build/src/v1beta/completion_service_client.js +339 -0
  119. package/build/src/v1beta/control_service_client.d.ts +237 -1
  120. package/build/src/v1beta/control_service_client.js +333 -0
  121. package/build/src/v1beta/conversational_search_service_client.d.ts +237 -1
  122. package/build/src/v1beta/conversational_search_service_client.js +333 -0
  123. package/build/src/v1beta/data_store_service_client.d.ts +237 -1
  124. package/build/src/v1beta/data_store_service_client.js +339 -0
  125. package/build/src/v1beta/document_service_client.d.ts +237 -1
  126. package/build/src/v1beta/document_service_client.js +339 -0
  127. package/build/src/v1beta/engine_service_client.d.ts +237 -1
  128. package/build/src/v1beta/engine_service_client.js +339 -0
  129. package/build/src/v1beta/evaluation_service_client.d.ts +2325 -0
  130. package/build/src/v1beta/evaluation_service_client.js +3252 -0
  131. package/build/src/v1beta/evaluation_service_client_config.json +58 -0
  132. package/build/src/v1beta/grounded_generation_service_client.d.ts +237 -0
  133. package/build/src/v1beta/grounded_generation_service_client.js +333 -0
  134. package/build/src/v1beta/index.d.ts +3 -0
  135. package/build/src/v1beta/index.js +7 -1
  136. package/build/src/v1beta/project_service_client.d.ts +237 -0
  137. package/build/src/v1beta/project_service_client.js +339 -0
  138. package/build/src/v1beta/rank_service_client.d.ts +237 -0
  139. package/build/src/v1beta/rank_service_client.js +333 -0
  140. package/build/src/v1beta/recommendation_service_client.d.ts +237 -0
  141. package/build/src/v1beta/recommendation_service_client.js +333 -0
  142. package/build/src/v1beta/sample_query_service_client.d.ts +2293 -0
  143. package/build/src/v1beta/sample_query_service_client.js +3150 -0
  144. package/build/src/v1beta/sample_query_service_client_config.json +68 -0
  145. package/build/src/v1beta/sample_query_set_service_client.d.ts +2150 -0
  146. package/build/src/v1beta/sample_query_set_service_client.js +2895 -0
  147. package/build/src/v1beta/sample_query_set_service_client_config.json +63 -0
  148. package/build/src/v1beta/schema_service_client.d.ts +237 -1
  149. package/build/src/v1beta/schema_service_client.js +339 -0
  150. package/build/src/v1beta/search_service_client.d.ts +267 -13
  151. package/build/src/v1beta/search_service_client.js +353 -8
  152. package/build/src/v1beta/search_tuning_service_client.d.ts +237 -0
  153. package/build/src/v1beta/search_tuning_service_client.js +339 -0
  154. package/build/src/v1beta/serving_config_service_client.d.ts +237 -1
  155. package/build/src/v1beta/serving_config_service_client.js +333 -0
  156. package/build/src/v1beta/site_search_engine_service_client.d.ts +237 -1
  157. package/build/src/v1beta/site_search_engine_service_client.js +339 -0
  158. package/build/src/v1beta/user_event_service_client.d.ts +237 -0
  159. package/build/src/v1beta/user_event_service_client.js +339 -0
  160. package/package.json +1 -1
@@ -485,6 +485,39 @@ export declare class CompletionServiceClient {
485
485
  * @returns {string} A string representing the engine.
486
486
  */
487
487
  matchEngineFromEngineName(engineName: string): string | number;
488
+ /**
489
+ * Return a fully-qualified evaluation resource name string.
490
+ *
491
+ * @param {string} project
492
+ * @param {string} location
493
+ * @param {string} evaluation
494
+ * @returns {string} Resource name string.
495
+ */
496
+ evaluationPath(project: string, location: string, evaluation: string): string;
497
+ /**
498
+ * Parse the project from Evaluation resource.
499
+ *
500
+ * @param {string} evaluationName
501
+ * A fully-qualified path representing Evaluation resource.
502
+ * @returns {string} A string representing the project.
503
+ */
504
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
505
+ /**
506
+ * Parse the location from Evaluation resource.
507
+ *
508
+ * @param {string} evaluationName
509
+ * A fully-qualified path representing Evaluation resource.
510
+ * @returns {string} A string representing the location.
511
+ */
512
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
513
+ /**
514
+ * Parse the evaluation from Evaluation resource.
515
+ *
516
+ * @param {string} evaluationName
517
+ * A fully-qualified path representing Evaluation resource.
518
+ * @returns {string} A string representing the evaluation.
519
+ */
520
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
488
521
  /**
489
522
  * Return a fully-qualified project resource name string.
490
523
  *
@@ -602,6 +635,75 @@ export declare class CompletionServiceClient {
602
635
  * @returns {string} A string representing the document.
603
636
  */
604
637
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
638
+ /**
639
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
640
+ *
641
+ * @param {string} project
642
+ * @param {string} location
643
+ * @param {string} collection
644
+ * @param {string} data_store
645
+ * @param {string} branch
646
+ * @param {string} document
647
+ * @param {string} chunk
648
+ * @returns {string} Resource name string.
649
+ */
650
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
651
+ /**
652
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
653
+ *
654
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
655
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
656
+ * @returns {string} A string representing the project.
657
+ */
658
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
659
+ /**
660
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
661
+ *
662
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
663
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
664
+ * @returns {string} A string representing the location.
665
+ */
666
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
667
+ /**
668
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
669
+ *
670
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
671
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
672
+ * @returns {string} A string representing the collection.
673
+ */
674
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
675
+ /**
676
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
677
+ *
678
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
679
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
680
+ * @returns {string} A string representing the data_store.
681
+ */
682
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
683
+ /**
684
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
685
+ *
686
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
687
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
688
+ * @returns {string} A string representing the branch.
689
+ */
690
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
691
+ /**
692
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
693
+ *
694
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
695
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
696
+ * @returns {string} A string representing the document.
697
+ */
698
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
699
+ /**
700
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
701
+ *
702
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
703
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
704
+ * @returns {string} A string representing the chunk.
705
+ */
706
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
605
707
  /**
606
708
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
607
709
  *
@@ -1451,6 +1553,66 @@ export declare class CompletionServiceClient {
1451
1553
  * @returns {string} A string representing the document.
1452
1554
  */
1453
1555
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
1556
+ /**
1557
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1558
+ *
1559
+ * @param {string} project
1560
+ * @param {string} location
1561
+ * @param {string} data_store
1562
+ * @param {string} branch
1563
+ * @param {string} document
1564
+ * @param {string} chunk
1565
+ * @returns {string} Resource name string.
1566
+ */
1567
+ projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
1568
+ /**
1569
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1570
+ *
1571
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1572
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1573
+ * @returns {string} A string representing the project.
1574
+ */
1575
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1576
+ /**
1577
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1578
+ *
1579
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1580
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1581
+ * @returns {string} A string representing the location.
1582
+ */
1583
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1584
+ /**
1585
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1586
+ *
1587
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1588
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1589
+ * @returns {string} A string representing the data_store.
1590
+ */
1591
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1592
+ /**
1593
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1594
+ *
1595
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1596
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1597
+ * @returns {string} A string representing the branch.
1598
+ */
1599
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1600
+ /**
1601
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1602
+ *
1603
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1604
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1605
+ * @returns {string} A string representing the document.
1606
+ */
1607
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1608
+ /**
1609
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1610
+ *
1611
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1612
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1613
+ * @returns {string} A string representing the chunk.
1614
+ */
1615
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1454
1616
  /**
1455
1617
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
1456
1618
  *
@@ -1862,6 +2024,81 @@ export declare class CompletionServiceClient {
1862
2024
  * @returns {string} A string representing the target_site.
1863
2025
  */
1864
2026
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
2027
+ /**
2028
+ * Return a fully-qualified sampleQuery resource name string.
2029
+ *
2030
+ * @param {string} project
2031
+ * @param {string} location
2032
+ * @param {string} sample_query_set
2033
+ * @param {string} sample_query
2034
+ * @returns {string} Resource name string.
2035
+ */
2036
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
2037
+ /**
2038
+ * Parse the project from SampleQuery resource.
2039
+ *
2040
+ * @param {string} sampleQueryName
2041
+ * A fully-qualified path representing SampleQuery resource.
2042
+ * @returns {string} A string representing the project.
2043
+ */
2044
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
2045
+ /**
2046
+ * Parse the location from SampleQuery resource.
2047
+ *
2048
+ * @param {string} sampleQueryName
2049
+ * A fully-qualified path representing SampleQuery resource.
2050
+ * @returns {string} A string representing the location.
2051
+ */
2052
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
2053
+ /**
2054
+ * Parse the sample_query_set from SampleQuery resource.
2055
+ *
2056
+ * @param {string} sampleQueryName
2057
+ * A fully-qualified path representing SampleQuery resource.
2058
+ * @returns {string} A string representing the sample_query_set.
2059
+ */
2060
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
2061
+ /**
2062
+ * Parse the sample_query from SampleQuery resource.
2063
+ *
2064
+ * @param {string} sampleQueryName
2065
+ * A fully-qualified path representing SampleQuery resource.
2066
+ * @returns {string} A string representing the sample_query.
2067
+ */
2068
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
2069
+ /**
2070
+ * Return a fully-qualified sampleQuerySet resource name string.
2071
+ *
2072
+ * @param {string} project
2073
+ * @param {string} location
2074
+ * @param {string} sample_query_set
2075
+ * @returns {string} Resource name string.
2076
+ */
2077
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
2078
+ /**
2079
+ * Parse the project from SampleQuerySet resource.
2080
+ *
2081
+ * @param {string} sampleQuerySetName
2082
+ * A fully-qualified path representing SampleQuerySet resource.
2083
+ * @returns {string} A string representing the project.
2084
+ */
2085
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2086
+ /**
2087
+ * Parse the location from SampleQuerySet resource.
2088
+ *
2089
+ * @param {string} sampleQuerySetName
2090
+ * A fully-qualified path representing SampleQuerySet resource.
2091
+ * @returns {string} A string representing the location.
2092
+ */
2093
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2094
+ /**
2095
+ * Parse the sample_query_set from SampleQuerySet resource.
2096
+ *
2097
+ * @param {string} sampleQuerySetName
2098
+ * A fully-qualified path representing SampleQuerySet resource.
2099
+ * @returns {string} A string representing the sample_query_set.
2100
+ */
2101
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1865
2102
  /**
1866
2103
  * Terminate the gRPC channel and close the client.
1867
2104
  *
@@ -150,9 +150,11 @@ class CompletionServiceClient {
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 CompletionServiceClient {
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 CompletionServiceClient {
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 CompletionServiceClient {
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
  },
@@ -753,6 +764,54 @@ class CompletionServiceClient {
753
764
  matchEngineFromEngineName(engineName) {
754
765
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
755
766
  }
767
+ /**
768
+ * Return a fully-qualified evaluation resource name string.
769
+ *
770
+ * @param {string} project
771
+ * @param {string} location
772
+ * @param {string} evaluation
773
+ * @returns {string} Resource name string.
774
+ */
775
+ evaluationPath(project, location, evaluation) {
776
+ return this.pathTemplates.evaluationPathTemplate.render({
777
+ project: project,
778
+ location: location,
779
+ evaluation: evaluation,
780
+ });
781
+ }
782
+ /**
783
+ * Parse the project from Evaluation resource.
784
+ *
785
+ * @param {string} evaluationName
786
+ * A fully-qualified path representing Evaluation resource.
787
+ * @returns {string} A string representing the project.
788
+ */
789
+ matchProjectFromEvaluationName(evaluationName) {
790
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
791
+ .project;
792
+ }
793
+ /**
794
+ * Parse the location from Evaluation resource.
795
+ *
796
+ * @param {string} evaluationName
797
+ * A fully-qualified path representing Evaluation resource.
798
+ * @returns {string} A string representing the location.
799
+ */
800
+ matchLocationFromEvaluationName(evaluationName) {
801
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
802
+ .location;
803
+ }
804
+ /**
805
+ * Parse the evaluation from Evaluation resource.
806
+ *
807
+ * @param {string} evaluationName
808
+ * A fully-qualified path representing Evaluation resource.
809
+ * @returns {string} A string representing the evaluation.
810
+ */
811
+ matchEvaluationFromEvaluationName(evaluationName) {
812
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
813
+ .evaluation;
814
+ }
756
815
  /**
757
816
  * Return a fully-qualified project resource name string.
758
817
  *
@@ -912,6 +971,99 @@ class CompletionServiceClient {
912
971
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
913
972
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
914
973
  }
974
+ /**
975
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
976
+ *
977
+ * @param {string} project
978
+ * @param {string} location
979
+ * @param {string} collection
980
+ * @param {string} data_store
981
+ * @param {string} branch
982
+ * @param {string} document
983
+ * @param {string} chunk
984
+ * @returns {string} Resource name string.
985
+ */
986
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
987
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
988
+ project: project,
989
+ location: location,
990
+ collection: collection,
991
+ data_store: dataStore,
992
+ branch: branch,
993
+ document: document,
994
+ chunk: chunk,
995
+ });
996
+ }
997
+ /**
998
+ * Parse the project 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 project.
1003
+ */
1004
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1005
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1006
+ }
1007
+ /**
1008
+ * Parse the location 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 location.
1013
+ */
1014
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1015
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1016
+ }
1017
+ /**
1018
+ * Parse the collection 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 collection.
1023
+ */
1024
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1025
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1026
+ }
1027
+ /**
1028
+ * Parse the data_store 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 data_store.
1033
+ */
1034
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1035
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1036
+ }
1037
+ /**
1038
+ * Parse the branch 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 branch.
1043
+ */
1044
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1045
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1046
+ }
1047
+ /**
1048
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1049
+ *
1050
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1051
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1052
+ * @returns {string} A string representing the document.
1053
+ */
1054
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1055
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1056
+ }
1057
+ /**
1058
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1059
+ *
1060
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1061
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1062
+ * @returns {string} A string representing the chunk.
1063
+ */
1064
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1065
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1066
+ }
915
1067
  /**
916
1068
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
917
1069
  *
@@ -2061,6 +2213,87 @@ class CompletionServiceClient {
2061
2213
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2062
2214
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2063
2215
  }
2216
+ /**
2217
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2218
+ *
2219
+ * @param {string} project
2220
+ * @param {string} location
2221
+ * @param {string} data_store
2222
+ * @param {string} branch
2223
+ * @param {string} document
2224
+ * @param {string} chunk
2225
+ * @returns {string} Resource name string.
2226
+ */
2227
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2228
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2229
+ project: project,
2230
+ location: location,
2231
+ data_store: dataStore,
2232
+ branch: branch,
2233
+ document: document,
2234
+ chunk: chunk,
2235
+ });
2236
+ }
2237
+ /**
2238
+ * Parse the project 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 project.
2243
+ */
2244
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2245
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2246
+ }
2247
+ /**
2248
+ * Parse the location 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 location.
2253
+ */
2254
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2255
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2256
+ }
2257
+ /**
2258
+ * Parse the data_store 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 data_store.
2263
+ */
2264
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2265
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2266
+ }
2267
+ /**
2268
+ * Parse the branch 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 branch.
2273
+ */
2274
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2275
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2276
+ }
2277
+ /**
2278
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2279
+ *
2280
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2281
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2282
+ * @returns {string} A string representing the document.
2283
+ */
2284
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2285
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2286
+ }
2287
+ /**
2288
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2289
+ *
2290
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2291
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2292
+ * @returns {string} A string representing the chunk.
2293
+ */
2294
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2295
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2296
+ }
2064
2297
  /**
2065
2298
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2066
2299
  *
@@ -2619,6 +2852,112 @@ class CompletionServiceClient {
2619
2852
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2620
2853
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2621
2854
  }
2855
+ /**
2856
+ * Return a fully-qualified sampleQuery resource name string.
2857
+ *
2858
+ * @param {string} project
2859
+ * @param {string} location
2860
+ * @param {string} sample_query_set
2861
+ * @param {string} sample_query
2862
+ * @returns {string} Resource name string.
2863
+ */
2864
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
2865
+ return this.pathTemplates.sampleQueryPathTemplate.render({
2866
+ project: project,
2867
+ location: location,
2868
+ sample_query_set: sampleQuerySet,
2869
+ sample_query: sampleQuery,
2870
+ });
2871
+ }
2872
+ /**
2873
+ * Parse the project from SampleQuery resource.
2874
+ *
2875
+ * @param {string} sampleQueryName
2876
+ * A fully-qualified path representing SampleQuery resource.
2877
+ * @returns {string} A string representing the project.
2878
+ */
2879
+ matchProjectFromSampleQueryName(sampleQueryName) {
2880
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2881
+ .project;
2882
+ }
2883
+ /**
2884
+ * Parse the location from SampleQuery resource.
2885
+ *
2886
+ * @param {string} sampleQueryName
2887
+ * A fully-qualified path representing SampleQuery resource.
2888
+ * @returns {string} A string representing the location.
2889
+ */
2890
+ matchLocationFromSampleQueryName(sampleQueryName) {
2891
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2892
+ .location;
2893
+ }
2894
+ /**
2895
+ * Parse the sample_query_set from SampleQuery resource.
2896
+ *
2897
+ * @param {string} sampleQueryName
2898
+ * A fully-qualified path representing SampleQuery resource.
2899
+ * @returns {string} A string representing the sample_query_set.
2900
+ */
2901
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
2902
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2903
+ .sample_query_set;
2904
+ }
2905
+ /**
2906
+ * Parse the sample_query from SampleQuery resource.
2907
+ *
2908
+ * @param {string} sampleQueryName
2909
+ * A fully-qualified path representing SampleQuery resource.
2910
+ * @returns {string} A string representing the sample_query.
2911
+ */
2912
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
2913
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2914
+ .sample_query;
2915
+ }
2916
+ /**
2917
+ * Return a fully-qualified sampleQuerySet resource name string.
2918
+ *
2919
+ * @param {string} project
2920
+ * @param {string} location
2921
+ * @param {string} sample_query_set
2922
+ * @returns {string} Resource name string.
2923
+ */
2924
+ sampleQuerySetPath(project, location, sampleQuerySet) {
2925
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
2926
+ project: project,
2927
+ location: location,
2928
+ sample_query_set: sampleQuerySet,
2929
+ });
2930
+ }
2931
+ /**
2932
+ * Parse the project from SampleQuerySet resource.
2933
+ *
2934
+ * @param {string} sampleQuerySetName
2935
+ * A fully-qualified path representing SampleQuerySet resource.
2936
+ * @returns {string} A string representing the project.
2937
+ */
2938
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
2939
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
2940
+ }
2941
+ /**
2942
+ * Parse the location from SampleQuerySet resource.
2943
+ *
2944
+ * @param {string} sampleQuerySetName
2945
+ * A fully-qualified path representing SampleQuerySet resource.
2946
+ * @returns {string} A string representing the location.
2947
+ */
2948
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
2949
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
2950
+ }
2951
+ /**
2952
+ * Parse the sample_query_set from SampleQuerySet resource.
2953
+ *
2954
+ * @param {string} sampleQuerySetName
2955
+ * A fully-qualified path representing SampleQuerySet resource.
2956
+ * @returns {string} A string representing the sample_query_set.
2957
+ */
2958
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
2959
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
2960
+ }
2622
2961
  /**
2623
2962
  * Terminate the gRPC channel and close the client.
2624
2963
  *