@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
@@ -153,6 +153,7 @@ class UserEventServiceClient {
153
153
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
154
154
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
155
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
156
+ projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
156
157
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
157
158
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
158
159
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
@@ -167,6 +168,7 @@ class UserEventServiceClient {
167
168
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
168
169
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
169
170
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
171
+ projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
170
172
  projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
171
173
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
172
174
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
@@ -893,6 +895,99 @@ class UserEventServiceClient {
893
895
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
894
896
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
895
897
  }
898
+ /**
899
+ * Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
900
+ *
901
+ * @param {string} project
902
+ * @param {string} location
903
+ * @param {string} collection
904
+ * @param {string} data_store
905
+ * @param {string} branch
906
+ * @param {string} document
907
+ * @param {string} chunk
908
+ * @returns {string} Resource name string.
909
+ */
910
+ projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
911
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
912
+ project: project,
913
+ location: location,
914
+ collection: collection,
915
+ data_store: dataStore,
916
+ branch: branch,
917
+ document: document,
918
+ chunk: chunk,
919
+ });
920
+ }
921
+ /**
922
+ * Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
923
+ *
924
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
925
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
926
+ * @returns {string} A string representing the project.
927
+ */
928
+ matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
929
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
930
+ }
931
+ /**
932
+ * Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
933
+ *
934
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
935
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
936
+ * @returns {string} A string representing the location.
937
+ */
938
+ matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
939
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
940
+ }
941
+ /**
942
+ * Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
943
+ *
944
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
945
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
946
+ * @returns {string} A string representing the collection.
947
+ */
948
+ matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
949
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
950
+ }
951
+ /**
952
+ * Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
953
+ *
954
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
955
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
956
+ * @returns {string} A string representing the data_store.
957
+ */
958
+ matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
959
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
960
+ }
961
+ /**
962
+ * Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
963
+ *
964
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
965
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
966
+ * @returns {string} A string representing the branch.
967
+ */
968
+ matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
969
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
970
+ }
971
+ /**
972
+ * Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
973
+ *
974
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
975
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
976
+ * @returns {string} A string representing the document.
977
+ */
978
+ matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
979
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
980
+ }
981
+ /**
982
+ * Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
983
+ *
984
+ * @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
985
+ * A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
986
+ * @returns {string} A string representing the chunk.
987
+ */
988
+ matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
989
+ return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
990
+ }
896
991
  /**
897
992
  * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
898
993
  *
@@ -1835,6 +1930,87 @@ class UserEventServiceClient {
1835
1930
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1836
1931
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1837
1932
  }
1933
+ /**
1934
+ * Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
1935
+ *
1936
+ * @param {string} project
1937
+ * @param {string} location
1938
+ * @param {string} data_store
1939
+ * @param {string} branch
1940
+ * @param {string} document
1941
+ * @param {string} chunk
1942
+ * @returns {string} Resource name string.
1943
+ */
1944
+ projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
1945
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
1946
+ project: project,
1947
+ location: location,
1948
+ data_store: dataStore,
1949
+ branch: branch,
1950
+ document: document,
1951
+ chunk: chunk,
1952
+ });
1953
+ }
1954
+ /**
1955
+ * Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
1956
+ *
1957
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1958
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1959
+ * @returns {string} A string representing the project.
1960
+ */
1961
+ matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1962
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
1963
+ }
1964
+ /**
1965
+ * Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
1966
+ *
1967
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1968
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1969
+ * @returns {string} A string representing the location.
1970
+ */
1971
+ matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1972
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
1973
+ }
1974
+ /**
1975
+ * Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
1976
+ *
1977
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1978
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1979
+ * @returns {string} A string representing the data_store.
1980
+ */
1981
+ matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1982
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
1983
+ }
1984
+ /**
1985
+ * Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
1986
+ *
1987
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1988
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1989
+ * @returns {string} A string representing the branch.
1990
+ */
1991
+ matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
1992
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
1993
+ }
1994
+ /**
1995
+ * Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
1996
+ *
1997
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
1998
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
1999
+ * @returns {string} A string representing the document.
2000
+ */
2001
+ matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2002
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
2003
+ }
2004
+ /**
2005
+ * Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
2006
+ *
2007
+ * @param {string} projectLocationDataStoreBranchDocumentChunkName
2008
+ * A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
2009
+ * @returns {string} A string representing the chunk.
2010
+ */
2011
+ matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
2012
+ return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
2013
+ }
1838
2014
  /**
1839
2015
  * Return a fully-qualified projectLocationDataStoreControl resource name string.
1840
2016
  *
@@ -284,6 +284,39 @@ export declare class AclConfigServiceClient {
284
284
  * @returns {string} A string representing the engine.
285
285
  */
286
286
  matchEngineFromEngineName(engineName: string): string | number;
287
+ /**
288
+ * Return a fully-qualified evaluation resource name string.
289
+ *
290
+ * @param {string} project
291
+ * @param {string} location
292
+ * @param {string} evaluation
293
+ * @returns {string} Resource name string.
294
+ */
295
+ evaluationPath(project: string, location: string, evaluation: string): string;
296
+ /**
297
+ * Parse the project from Evaluation resource.
298
+ *
299
+ * @param {string} evaluationName
300
+ * A fully-qualified path representing Evaluation resource.
301
+ * @returns {string} A string representing the project.
302
+ */
303
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
304
+ /**
305
+ * Parse the location from Evaluation resource.
306
+ *
307
+ * @param {string} evaluationName
308
+ * A fully-qualified path representing Evaluation resource.
309
+ * @returns {string} A string representing the location.
310
+ */
311
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
312
+ /**
313
+ * Parse the evaluation from Evaluation resource.
314
+ *
315
+ * @param {string} evaluationName
316
+ * A fully-qualified path representing Evaluation resource.
317
+ * @returns {string} A string representing the evaluation.
318
+ */
319
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
287
320
  /**
288
321
  * Return a fully-qualified project resource name string.
289
322
  *
@@ -1790,6 +1823,81 @@ export declare class AclConfigServiceClient {
1790
1823
  * @returns {string} A string representing the target_site.
1791
1824
  */
1792
1825
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
1826
+ /**
1827
+ * Return a fully-qualified sampleQuery resource name string.
1828
+ *
1829
+ * @param {string} project
1830
+ * @param {string} location
1831
+ * @param {string} sample_query_set
1832
+ * @param {string} sample_query
1833
+ * @returns {string} Resource name string.
1834
+ */
1835
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
1836
+ /**
1837
+ * Parse the project from SampleQuery resource.
1838
+ *
1839
+ * @param {string} sampleQueryName
1840
+ * A fully-qualified path representing SampleQuery resource.
1841
+ * @returns {string} A string representing the project.
1842
+ */
1843
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
1844
+ /**
1845
+ * Parse the location from SampleQuery resource.
1846
+ *
1847
+ * @param {string} sampleQueryName
1848
+ * A fully-qualified path representing SampleQuery resource.
1849
+ * @returns {string} A string representing the location.
1850
+ */
1851
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
1852
+ /**
1853
+ * Parse the sample_query_set from SampleQuery resource.
1854
+ *
1855
+ * @param {string} sampleQueryName
1856
+ * A fully-qualified path representing SampleQuery resource.
1857
+ * @returns {string} A string representing the sample_query_set.
1858
+ */
1859
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
1860
+ /**
1861
+ * Parse the sample_query from SampleQuery resource.
1862
+ *
1863
+ * @param {string} sampleQueryName
1864
+ * A fully-qualified path representing SampleQuery resource.
1865
+ * @returns {string} A string representing the sample_query.
1866
+ */
1867
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
1868
+ /**
1869
+ * Return a fully-qualified sampleQuerySet resource name string.
1870
+ *
1871
+ * @param {string} project
1872
+ * @param {string} location
1873
+ * @param {string} sample_query_set
1874
+ * @returns {string} Resource name string.
1875
+ */
1876
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
1877
+ /**
1878
+ * Parse the project from SampleQuerySet resource.
1879
+ *
1880
+ * @param {string} sampleQuerySetName
1881
+ * A fully-qualified path representing SampleQuerySet resource.
1882
+ * @returns {string} A string representing the project.
1883
+ */
1884
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1885
+ /**
1886
+ * Parse the location from SampleQuerySet resource.
1887
+ *
1888
+ * @param {string} sampleQuerySetName
1889
+ * A fully-qualified path representing SampleQuerySet resource.
1890
+ * @returns {string} A string representing the location.
1891
+ */
1892
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1893
+ /**
1894
+ * Parse the sample_query_set from SampleQuerySet resource.
1895
+ *
1896
+ * @param {string} sampleQuerySetName
1897
+ * A fully-qualified path representing SampleQuerySet resource.
1898
+ * @returns {string} A string representing the sample_query_set.
1899
+ */
1900
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1793
1901
  /**
1794
1902
  * Terminate the gRPC channel and close the client.
1795
1903
  *
@@ -151,6 +151,7 @@ class AclConfigServiceClient {
151
151
  this.pathTemplates = {
152
152
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ evaluationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/evaluations/{evaluation}'),
154
155
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
155
156
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -183,6 +184,8 @@ class AclConfigServiceClient {
183
184
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
184
185
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
185
186
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
187
+ sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
188
+ sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
186
189
  };
187
190
  // Put together the default options sent with requests.
188
191
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.AclConfigService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -487,6 +490,54 @@ class AclConfigServiceClient {
487
490
  matchEngineFromEngineName(engineName) {
488
491
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
489
492
  }
493
+ /**
494
+ * Return a fully-qualified evaluation resource name string.
495
+ *
496
+ * @param {string} project
497
+ * @param {string} location
498
+ * @param {string} evaluation
499
+ * @returns {string} Resource name string.
500
+ */
501
+ evaluationPath(project, location, evaluation) {
502
+ return this.pathTemplates.evaluationPathTemplate.render({
503
+ project: project,
504
+ location: location,
505
+ evaluation: evaluation,
506
+ });
507
+ }
508
+ /**
509
+ * Parse the project from Evaluation resource.
510
+ *
511
+ * @param {string} evaluationName
512
+ * A fully-qualified path representing Evaluation resource.
513
+ * @returns {string} A string representing the project.
514
+ */
515
+ matchProjectFromEvaluationName(evaluationName) {
516
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
517
+ .project;
518
+ }
519
+ /**
520
+ * Parse the location from Evaluation resource.
521
+ *
522
+ * @param {string} evaluationName
523
+ * A fully-qualified path representing Evaluation resource.
524
+ * @returns {string} A string representing the location.
525
+ */
526
+ matchLocationFromEvaluationName(evaluationName) {
527
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
528
+ .location;
529
+ }
530
+ /**
531
+ * Parse the evaluation from Evaluation resource.
532
+ *
533
+ * @param {string} evaluationName
534
+ * A fully-qualified path representing Evaluation resource.
535
+ * @returns {string} A string representing the evaluation.
536
+ */
537
+ matchEvaluationFromEvaluationName(evaluationName) {
538
+ return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
539
+ .evaluation;
540
+ }
490
541
  /**
491
542
  * Return a fully-qualified project resource name string.
492
543
  *
@@ -2527,6 +2578,112 @@ class AclConfigServiceClient {
2527
2578
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
2528
2579
  return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
2529
2580
  }
2581
+ /**
2582
+ * Return a fully-qualified sampleQuery resource name string.
2583
+ *
2584
+ * @param {string} project
2585
+ * @param {string} location
2586
+ * @param {string} sample_query_set
2587
+ * @param {string} sample_query
2588
+ * @returns {string} Resource name string.
2589
+ */
2590
+ sampleQueryPath(project, location, sampleQuerySet, sampleQuery) {
2591
+ return this.pathTemplates.sampleQueryPathTemplate.render({
2592
+ project: project,
2593
+ location: location,
2594
+ sample_query_set: sampleQuerySet,
2595
+ sample_query: sampleQuery,
2596
+ });
2597
+ }
2598
+ /**
2599
+ * Parse the project from SampleQuery resource.
2600
+ *
2601
+ * @param {string} sampleQueryName
2602
+ * A fully-qualified path representing SampleQuery resource.
2603
+ * @returns {string} A string representing the project.
2604
+ */
2605
+ matchProjectFromSampleQueryName(sampleQueryName) {
2606
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2607
+ .project;
2608
+ }
2609
+ /**
2610
+ * Parse the location from SampleQuery resource.
2611
+ *
2612
+ * @param {string} sampleQueryName
2613
+ * A fully-qualified path representing SampleQuery resource.
2614
+ * @returns {string} A string representing the location.
2615
+ */
2616
+ matchLocationFromSampleQueryName(sampleQueryName) {
2617
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2618
+ .location;
2619
+ }
2620
+ /**
2621
+ * Parse the sample_query_set from SampleQuery resource.
2622
+ *
2623
+ * @param {string} sampleQueryName
2624
+ * A fully-qualified path representing SampleQuery resource.
2625
+ * @returns {string} A string representing the sample_query_set.
2626
+ */
2627
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
2628
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2629
+ .sample_query_set;
2630
+ }
2631
+ /**
2632
+ * Parse the sample_query from SampleQuery resource.
2633
+ *
2634
+ * @param {string} sampleQueryName
2635
+ * A fully-qualified path representing SampleQuery resource.
2636
+ * @returns {string} A string representing the sample_query.
2637
+ */
2638
+ matchSampleQueryFromSampleQueryName(sampleQueryName) {
2639
+ return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
2640
+ .sample_query;
2641
+ }
2642
+ /**
2643
+ * Return a fully-qualified sampleQuerySet resource name string.
2644
+ *
2645
+ * @param {string} project
2646
+ * @param {string} location
2647
+ * @param {string} sample_query_set
2648
+ * @returns {string} Resource name string.
2649
+ */
2650
+ sampleQuerySetPath(project, location, sampleQuerySet) {
2651
+ return this.pathTemplates.sampleQuerySetPathTemplate.render({
2652
+ project: project,
2653
+ location: location,
2654
+ sample_query_set: sampleQuerySet,
2655
+ });
2656
+ }
2657
+ /**
2658
+ * Parse the project from SampleQuerySet resource.
2659
+ *
2660
+ * @param {string} sampleQuerySetName
2661
+ * A fully-qualified path representing SampleQuerySet resource.
2662
+ * @returns {string} A string representing the project.
2663
+ */
2664
+ matchProjectFromSampleQuerySetName(sampleQuerySetName) {
2665
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).project;
2666
+ }
2667
+ /**
2668
+ * Parse the location from SampleQuerySet resource.
2669
+ *
2670
+ * @param {string} sampleQuerySetName
2671
+ * A fully-qualified path representing SampleQuerySet resource.
2672
+ * @returns {string} A string representing the location.
2673
+ */
2674
+ matchLocationFromSampleQuerySetName(sampleQuerySetName) {
2675
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).location;
2676
+ }
2677
+ /**
2678
+ * Parse the sample_query_set from SampleQuerySet resource.
2679
+ *
2680
+ * @param {string} sampleQuerySetName
2681
+ * A fully-qualified path representing SampleQuerySet resource.
2682
+ * @returns {string} A string representing the sample_query_set.
2683
+ */
2684
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName) {
2685
+ return this.pathTemplates.sampleQuerySetPathTemplate.match(sampleQuerySetName).sample_query_set;
2686
+ }
2530
2687
  /**
2531
2688
  * Terminate the gRPC channel and close the client.
2532
2689
  *
@@ -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, PaginationCallback, LocationsClient, LocationProtos } from 'google-gax';
4
3
  import { Transform } from 'stream';
@@ -401,6 +400,39 @@ export declare class ChunkServiceClient {
401
400
  * @returns {string} A string representing the engine.
402
401
  */
403
402
  matchEngineFromEngineName(engineName: string): string | number;
403
+ /**
404
+ * Return a fully-qualified evaluation resource name string.
405
+ *
406
+ * @param {string} project
407
+ * @param {string} location
408
+ * @param {string} evaluation
409
+ * @returns {string} Resource name string.
410
+ */
411
+ evaluationPath(project: string, location: string, evaluation: string): string;
412
+ /**
413
+ * Parse the project from Evaluation resource.
414
+ *
415
+ * @param {string} evaluationName
416
+ * A fully-qualified path representing Evaluation resource.
417
+ * @returns {string} A string representing the project.
418
+ */
419
+ matchProjectFromEvaluationName(evaluationName: string): string | number;
420
+ /**
421
+ * Parse the location from Evaluation resource.
422
+ *
423
+ * @param {string} evaluationName
424
+ * A fully-qualified path representing Evaluation resource.
425
+ * @returns {string} A string representing the location.
426
+ */
427
+ matchLocationFromEvaluationName(evaluationName: string): string | number;
428
+ /**
429
+ * Parse the evaluation from Evaluation resource.
430
+ *
431
+ * @param {string} evaluationName
432
+ * A fully-qualified path representing Evaluation resource.
433
+ * @returns {string} A string representing the evaluation.
434
+ */
435
+ matchEvaluationFromEvaluationName(evaluationName: string): string | number;
404
436
  /**
405
437
  * Return a fully-qualified project resource name string.
406
438
  *
@@ -1907,6 +1939,81 @@ export declare class ChunkServiceClient {
1907
1939
  * @returns {string} A string representing the target_site.
1908
1940
  */
1909
1941
  matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName: string): string | number;
1942
+ /**
1943
+ * Return a fully-qualified sampleQuery resource name string.
1944
+ *
1945
+ * @param {string} project
1946
+ * @param {string} location
1947
+ * @param {string} sample_query_set
1948
+ * @param {string} sample_query
1949
+ * @returns {string} Resource name string.
1950
+ */
1951
+ sampleQueryPath(project: string, location: string, sampleQuerySet: string, sampleQuery: string): string;
1952
+ /**
1953
+ * Parse the project from SampleQuery resource.
1954
+ *
1955
+ * @param {string} sampleQueryName
1956
+ * A fully-qualified path representing SampleQuery resource.
1957
+ * @returns {string} A string representing the project.
1958
+ */
1959
+ matchProjectFromSampleQueryName(sampleQueryName: string): string | number;
1960
+ /**
1961
+ * Parse the location from SampleQuery resource.
1962
+ *
1963
+ * @param {string} sampleQueryName
1964
+ * A fully-qualified path representing SampleQuery resource.
1965
+ * @returns {string} A string representing the location.
1966
+ */
1967
+ matchLocationFromSampleQueryName(sampleQueryName: string): string | number;
1968
+ /**
1969
+ * Parse the sample_query_set from SampleQuery resource.
1970
+ *
1971
+ * @param {string} sampleQueryName
1972
+ * A fully-qualified path representing SampleQuery resource.
1973
+ * @returns {string} A string representing the sample_query_set.
1974
+ */
1975
+ matchSampleQuerySetFromSampleQueryName(sampleQueryName: string): string | number;
1976
+ /**
1977
+ * Parse the sample_query from SampleQuery resource.
1978
+ *
1979
+ * @param {string} sampleQueryName
1980
+ * A fully-qualified path representing SampleQuery resource.
1981
+ * @returns {string} A string representing the sample_query.
1982
+ */
1983
+ matchSampleQueryFromSampleQueryName(sampleQueryName: string): string | number;
1984
+ /**
1985
+ * Return a fully-qualified sampleQuerySet resource name string.
1986
+ *
1987
+ * @param {string} project
1988
+ * @param {string} location
1989
+ * @param {string} sample_query_set
1990
+ * @returns {string} Resource name string.
1991
+ */
1992
+ sampleQuerySetPath(project: string, location: string, sampleQuerySet: string): string;
1993
+ /**
1994
+ * Parse the project from SampleQuerySet resource.
1995
+ *
1996
+ * @param {string} sampleQuerySetName
1997
+ * A fully-qualified path representing SampleQuerySet resource.
1998
+ * @returns {string} A string representing the project.
1999
+ */
2000
+ matchProjectFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2001
+ /**
2002
+ * Parse the location from SampleQuerySet resource.
2003
+ *
2004
+ * @param {string} sampleQuerySetName
2005
+ * A fully-qualified path representing SampleQuerySet resource.
2006
+ * @returns {string} A string representing the location.
2007
+ */
2008
+ matchLocationFromSampleQuerySetName(sampleQuerySetName: string): string | number;
2009
+ /**
2010
+ * Parse the sample_query_set from SampleQuerySet resource.
2011
+ *
2012
+ * @param {string} sampleQuerySetName
2013
+ * A fully-qualified path representing SampleQuerySet resource.
2014
+ * @returns {string} A string representing the sample_query_set.
2015
+ */
2016
+ matchSampleQuerySetFromSampleQuerySetName(sampleQuerySetName: string): string | number;
1910
2017
  /**
1911
2018
  * Terminate the gRPC channel and close the client.
1912
2019
  *