@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
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as gax from 'google-gax';
3
2
  import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback, LocationsClient, LocationProtos } from 'google-gax';
4
3
  import { Transform } from 'stream';
@@ -707,6 +706,39 @@ export declare class EngineServiceClient {
707
706
  * @returns {string} A string representing the engine.
708
707
  */
709
708
  matchEngineFromEngineName(engineName: string): string | number;
709
+ /**
710
+ * Return a fully-qualified evaluation resource name string.
711
+ *
712
+ * @param {string} project
713
+ * @param {string} location
714
+ * @param {string} evaluation
715
+ * @returns {string} Resource name string.
716
+ */
717
+ evaluationPath(project: string, location: string, evaluation: string): string;
718
+ /**
719
+ * Parse the project from Evaluation resource.
720
+ *
721
+ * @param {string} evaluationName
722
+ * A fully-qualified path representing Evaluation resource.
723
+ * @returns {string} A string representing the project.
724
+ */
725
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
726
+ /**
727
+ * Parse the location from Evaluation resource.
728
+ *
729
+ * @param {string} evaluationName
730
+ * A fully-qualified path representing Evaluation resource.
731
+ * @returns {string} A string representing the location.
732
+ */
733
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
734
+ /**
735
+ * Parse the evaluation from Evaluation resource.
736
+ *
737
+ * @param {string} evaluationName
738
+ * A fully-qualified path representing Evaluation resource.
739
+ * @returns {string} A string representing the evaluation.
740
+ */
741
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
710
742
  /**
711
743
  * Return a fully-qualified project resource name string.
712
744
  *
@@ -824,6 +856,75 @@ export declare class EngineServiceClient {
824
856
  * @returns {string} A string representing the document.
825
857
  */
826
858
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
859
+ /**
860
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
861
+ *
862
+ * @param {string} project
863
+ * @param {string} location
864
+ * @param {string} collection
865
+ * @param {string} data_store
866
+ * @param {string} branch
867
+ * @param {string} document
868
+ * @param {string} chunk
869
+ * @returns {string} Resource name string.
870
+ */
871
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string, chunk: string): string;
872
+ /**
873
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
874
+ *
875
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
876
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
877
+ * @returns {string} A string representing the project.
878
+ */
879
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
880
+ /**
881
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
882
+ *
883
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
884
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
885
+ * @returns {string} A string representing the location.
886
+ */
887
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
888
+ /**
889
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
890
+ *
891
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
892
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
893
+ * @returns {string} A string representing the collection.
894
+ */
895
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
896
+ /**
897
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
898
+ *
899
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
900
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
901
+ * @returns {string} A string representing the data_store.
902
+ */
903
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
904
+ /**
905
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
906
+ *
907
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
908
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
909
+ * @returns {string} A string representing the branch.
910
+ */
911
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
912
+ /**
913
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
914
+ *
915
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
916
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
917
+ * @returns {string} A string representing the document.
918
+ */
919
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
920
+ /**
921
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
922
+ *
923
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
924
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
925
+ * @returns {string} A string representing the chunk.
926
+ */
927
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName: string): string | number;
827
928
  /**
828
929
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
829
930
  *
@@ -1673,6 +1774,66 @@ export declare class EngineServiceClient {
1673
1774
  * @returns {string} A string representing the document.
1674
1775
  */
1675
1776
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
1777
+ /**
1778
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1779
+ *
1780
+ * @param {string} project
1781
+ * @param {string} location
1782
+ * @param {string} data_store
1783
+ * @param {string} branch
1784
+ * @param {string} document
1785
+ * @param {string} chunk
1786
+ * @returns {string} Resource name string.
1787
+ */
1788
+ projectLocationDataStoreBranchDocumentChunkPath(project: string, location: string, dataStore: string, branch: string, document: string, chunk: string): string;
1789
+ /**
1790
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1791
+ *
1792
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1793
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1794
+ * @returns {string} A string representing the project.
1795
+ */
1796
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1797
+ /**
1798
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1799
+ *
1800
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1801
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1802
+ * @returns {string} A string representing the location.
1803
+ */
1804
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1805
+ /**
1806
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1807
+ *
1808
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1809
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1810
+ * @returns {string} A string representing the data_store.
1811
+ */
1812
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1813
+ /**
1814
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1815
+ *
1816
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1817
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1818
+ * @returns {string} A string representing the branch.
1819
+ */
1820
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1821
+ /**
1822
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1823
+ *
1824
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1825
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1826
+ * @returns {string} A string representing the document.
1827
+ */
1828
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1829
+ /**
1830
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
1831
+ *
1832
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1833
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1834
+ * @returns {string} A string representing the chunk.
1835
+ */
1836
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName: string): string | number;
1676
1837
  /**
1677
1838
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
1678
1839
  *
@@ -2084,6 +2245,81 @@ export declare class EngineServiceClient {
2084
2245
  * @returns {string} A string representing the target_site.
2085
2246
  */
2086
2247
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
2248
+ /**
2249
+ * Return a fully-qualified sampleQuery resource name string.
2250
+ *
2251
+ * @param {string} project
2252
+ * @param {string} location
2253
+ * @param {string} sample_query_set
2254
+ * @param {string} sample_query
2255
+ * @returns {string} Resource name string.
2256
+ */
2257
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
2258
+ /**
2259
+ * Parse the project from SampleQuery resource.
2260
+ *
2261
+ * @param {string} sampleQueryName
2262
+ * A fully-qualified path representing SampleQuery resource.
2263
+ * @returns {string} A string representing the project.
2264
+ */
2265
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
2266
+ /**
2267
+ * Parse the location from SampleQuery resource.
2268
+ *
2269
+ * @param {string} sampleQueryName
2270
+ * A fully-qualified path representing SampleQuery resource.
2271
+ * @returns {string} A string representing the location.
2272
+ */
2273
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
2274
+ /**
2275
+ * Parse the sample_query_set from SampleQuery resource.
2276
+ *
2277
+ * @param {string} sampleQueryName
2278
+ * A fully-qualified path representing SampleQuery resource.
2279
+ * @returns {string} A string representing the sample_query_set.
2280
+ */
2281
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
2282
+ /**
2283
+ * Parse the sample_query from SampleQuery resource.
2284
+ *
2285
+ * @param {string} sampleQueryName
2286
+ * A fully-qualified path representing SampleQuery resource.
2287
+ * @returns {string} A string representing the sample_query.
2288
+ */
2289
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
2290
+ /**
2291
+ * Return a fully-qualified sampleQuerySet resource name string.
2292
+ *
2293
+ * @param {string} project
2294
+ * @param {string} location
2295
+ * @param {string} sample_query_set
2296
+ * @returns {string} Resource name string.
2297
+ */
2298
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
2299
+ /**
2300
+ * Parse the project from SampleQuerySet resource.
2301
+ *
2302
+ * @param {string} sampleQuerySetName
2303
+ * A fully-qualified path representing SampleQuerySet resource.
2304
+ * @returns {string} A string representing the project.
2305
+ */
2306
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2307
+ /**
2308
+ * Parse the location from SampleQuerySet resource.
2309
+ *
2310
+ * @param {string} sampleQuerySetName
2311
+ * A fully-qualified path representing SampleQuerySet resource.
2312
+ * @returns {string} A string representing the location.
2313
+ */
2314
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2315
+ /**
2316
+ * Parse the sample_query_set from SampleQuerySet resource.
2317
+ *
2318
+ * @param {string} sampleQuerySetName
2319
+ * A fully-qualified path representing SampleQuerySet resource.
2320
+ * @returns {string} A string representing the sample_query_set.
2321
+ */
2322
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2087
2323
  /**
2088
2324
  * Terminate the gRPC channel and close the client.
2089
2325
  *
@@ -152,9 +152,11 @@ class EngineServiceClient {
152
152
  this.pathTemplates = {
153
153
  collectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}'),
154
154
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
155
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
155
156
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
156
157
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
157
158
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
159
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
158
160
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
159
161
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
160
162
  projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -172,6 +174,7 @@ class EngineServiceClient {
172
174
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
173
175
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
174
176
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
177
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
175
178
  projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
176
179
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
177
180
  projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
@@ -182,6 +185,8 @@ class EngineServiceClient {
182
185
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
183
186
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
184
187
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
188
+ sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
189
+ sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
185
190
  };
186
191
  // Some of the methods on this service return "paged" results,
187
192
  // (e.g. 50 results at a time, with tokens to get subsequent
@@ -248,7 +253,13 @@ class EngineServiceClient {
248
253
  {
249
254
  get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
250
255
  },
256
+ {
257
+ get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
258
+ },
251
259
  { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
260
+ {
261
+ get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
262
+ },
252
263
  { get: '/v1beta/{name=projects/*/operations/*}' },
253
264
  ],
254
265
  },
@@ -1024,6 +1035,54 @@ class EngineServiceClient {
1024
1035
  matchEngineFromEngineName(engineName) {
1025
1036
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
1026
1037
  }
1038
+ /**
1039
+ * Return a fully-qualified evaluation resource name string.
1040
+ *
1041
+ * @param {string} project
1042
+ * @param {string} location
1043
+ * @param {string} evaluation
1044
+ * @returns {string} Resource name string.
1045
+ */
1046
+ evaluationPath(project, location, evaluation) {
1047
+ return this.pathTemplates.evaluationPathTemplate.render({
1048
+ project: project,
1049
+ location: location,
1050
+ evaluation: evaluation,
1051
+ });
1052
+ }
1053
+ /**
1054
+ * Parse the project from Evaluation resource.
1055
+ *
1056
+ * @param {string} evaluationName
1057
+ * A fully-qualified path representing Evaluation resource.
1058
+ * @returns {string} A string representing the project.
1059
+ */
1060
+ matchProjectFromEvaluationName(evaluationName) {
1061
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1062
+ .project;
1063
+ }
1064
+ /**
1065
+ * Parse the location from Evaluation resource.
1066
+ *
1067
+ * @param {string} evaluationName
1068
+ * A fully-qualified path representing Evaluation resource.
1069
+ * @returns {string} A string representing the location.
1070
+ */
1071
+ matchLocationFromEvaluationName(evaluationName) {
1072
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1073
+ .location;
1074
+ }
1075
+ /**
1076
+ * Parse the evaluation from Evaluation resource.
1077
+ *
1078
+ * @param {string} evaluationName
1079
+ * A fully-qualified path representing Evaluation resource.
1080
+ * @returns {string} A string representing the evaluation.
1081
+ */
1082
+ matchEvaluationFromEvaluationName(evaluationName) {
1083
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
1084
+ .evaluation;
1085
+ }
1027
1086
  /**
1028
1087
  * Return a fully-qualified project resource name string.
1029
1088
  *
@@ -1183,6 +1242,99 @@ class EngineServiceClient {
1183
1242
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
1184
1243
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
1185
1244
  }
1245
+ /**
1246
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
1247
+ *
1248
+ * @param {string} project
1249
+ * @param {string} location
1250
+ * @param {string} collection
1251
+ * @param {string} data_store
1252
+ * @param {string} branch
1253
+ * @param {string} document
1254
+ * @param {string} chunk
1255
+ * @returns {string} Resource name string.
1256
+ */
1257
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
1258
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
1259
+ project: project,
1260
+ location: location,
1261
+ collection: collection,
1262
+ data_store: dataStore,
1263
+ branch: branch,
1264
+ document: document,
1265
+ chunk: chunk,
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1270
+ *
1271
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1272
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1273
+ * @returns {string} A string representing the project.
1274
+ */
1275
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1276
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
1277
+ }
1278
+ /**
1279
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1280
+ *
1281
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1282
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1283
+ * @returns {string} A string representing the location.
1284
+ */
1285
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1286
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
1287
+ }
1288
+ /**
1289
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1290
+ *
1291
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1292
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1293
+ * @returns {string} A string representing the collection.
1294
+ */
1295
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1296
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
1297
+ }
1298
+ /**
1299
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1300
+ *
1301
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1302
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1303
+ * @returns {string} A string representing the data_store.
1304
+ */
1305
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1306
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
1307
+ }
1308
+ /**
1309
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1310
+ *
1311
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1312
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1313
+ * @returns {string} A string representing the branch.
1314
+ */
1315
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1316
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
1317
+ }
1318
+ /**
1319
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1320
+ *
1321
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1322
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1323
+ * @returns {string} A string representing the document.
1324
+ */
1325
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1326
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
1327
+ }
1328
+ /**
1329
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
1330
+ *
1331
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
1332
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
1333
+ * @returns {string} A string representing the chunk.
1334
+ */
1335
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
1336
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
1337
+ }
1186
1338
  /**
1187
1339
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1188
1340
  *
@@ -2332,6 +2484,87 @@ class EngineServiceClient {
2332
2484
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
2333
2485
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
2334
2486
  }
2487
+ /**
2488
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
2489
+ *
2490
+ * @param {string} project
2491
+ * @param {string} location
2492
+ * @param {string} data_store
2493
+ * @param {string} branch
2494
+ * @param {string} document
2495
+ * @param {string} chunk
2496
+ * @returns {string} Resource name string.
2497
+ */
2498
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
2499
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
2500
+ project: project,
2501
+ location: location,
2502
+ data_store: dataStore,
2503
+ branch: branch,
2504
+ document: document,
2505
+ chunk: chunk,
2506
+ });
2507
+ }
2508
+ /**
2509
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
2510
+ *
2511
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2512
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2513
+ * @returns {string} A string representing the project.
2514
+ */
2515
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2516
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
2517
+ }
2518
+ /**
2519
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
2520
+ *
2521
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2522
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2523
+ * @returns {string} A string representing the location.
2524
+ */
2525
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2526
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
2527
+ }
2528
+ /**
2529
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
2530
+ *
2531
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2532
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2533
+ * @returns {string} A string representing the data_store.
2534
+ */
2535
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2536
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
2537
+ }
2538
+ /**
2539
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
2540
+ *
2541
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2542
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2543
+ * @returns {string} A string representing the branch.
2544
+ */
2545
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2546
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
2547
+ }
2548
+ /**
2549
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
2550
+ *
2551
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2552
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2553
+ * @returns {string} A string representing the document.
2554
+ */
2555
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2556
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2557
+ }
2558
+ /**
2559
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2560
+ *
2561
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2562
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2563
+ * @returns {string} A string representing the chunk.
2564
+ */
2565
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2566
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2567
+ }
2335
2568
  /**
2336
2569
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
2337
2570
  *
@@ -2890,6 +3123,112 @@ class EngineServiceClient {
2890
3123
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2891
3124
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2892
3125
  }
3126
+ /**
3127
+ * Return a fully-qualified sampleQuery resource name string.
3128
+ *
3129
+ * @param {string} project
3130
+ * @param {string} location
3131
+ * @param {string} sample_query_set
3132
+ * @param {string} sample_query
3133
+ * @returns {string} Resource name string.
3134
+ */
3135
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
3136
+ return this.pathTemplates.sampleQueryPathTemplate.render({
3137
+ project: project,
3138
+ location: location,
3139
+ sample_query_set: sampleQuerySet,
3140
+ sample_query: sampleQuery,
3141
+ });
3142
+ }
3143
+ /**
3144
+ * Parse the project from SampleQuery resource.
3145
+ *
3146
+ * @param {string} sampleQueryName
3147
+ * A fully-qualified path representing SampleQuery resource.
3148
+ * @returns {string} A string representing the project.
3149
+ */
3150
+ matchProjectFromSampleQueryName(sampleQueryName) {
3151
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3152
+ .project;
3153
+ }
3154
+ /**
3155
+ * Parse the location from SampleQuery resource.
3156
+ *
3157
+ * @param {string} sampleQueryName
3158
+ * A fully-qualified path representing SampleQuery resource.
3159
+ * @returns {string} A string representing the location.
3160
+ */
3161
+ matchLocationFromSampleQueryName(sampleQueryName) {
3162
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3163
+ .location;
3164
+ }
3165
+ /**
3166
+ * Parse the sample_query_set from SampleQuery resource.
3167
+ *
3168
+ * @param {string} sampleQueryName
3169
+ * A fully-qualified path representing SampleQuery resource.
3170
+ * @returns {string} A string representing the sample_query_set.
3171
+ */
3172
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
3173
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3174
+ .sample_query_set;
3175
+ }
3176
+ /**
3177
+ * Parse the sample_query from SampleQuery resource.
3178
+ *
3179
+ * @param {string} sampleQueryName
3180
+ * A fully-qualified path representing SampleQuery resource.
3181
+ * @returns {string} A string representing the sample_query.
3182
+ */
3183
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
3184
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
3185
+ .sample_query;
3186
+ }
3187
+ /**
3188
+ * Return a fully-qualified sampleQuerySet resource name string.
3189
+ *
3190
+ * @param {string} project
3191
+ * @param {string} location
3192
+ * @param {string} sample_query_set
3193
+ * @returns {string} Resource name string.
3194
+ */
3195
+ sampleQuerySetPath(project, location, sampleQuerySet) {
3196
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
3197
+ project: project,
3198
+ location: location,
3199
+ sample_query_set: sampleQuerySet,
3200
+ });
3201
+ }
3202
+ /**
3203
+ * Parse the project from SampleQuerySet resource.
3204
+ *
3205
+ * @param {string} sampleQuerySetName
3206
+ * A fully-qualified path representing SampleQuerySet resource.
3207
+ * @returns {string} A string representing the project.
3208
+ */
3209
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
3210
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
3211
+ }
3212
+ /**
3213
+ * Parse the location from SampleQuerySet resource.
3214
+ *
3215
+ * @param {string} sampleQuerySetName
3216
+ * A fully-qualified path representing SampleQuerySet resource.
3217
+ * @returns {string} A string representing the location.
3218
+ */
3219
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
3220
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
3221
+ }
3222
+ /**
3223
+ * Parse the sample_query_set from SampleQuerySet resource.
3224
+ *
3225
+ * @param {string} sampleQuerySetName
3226
+ * A fully-qualified path representing SampleQuerySet resource.
3227
+ * @returns {string} A string representing the sample_query_set.
3228
+ */
3229
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
3230
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
3231
+ }
2893
3232
  /**
2894
3233
  * Terminate the gRPC channel and close the client.
2895
3234
  *