@google-cloud/discoveryengine 1.7.0 → 1.9.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 (229) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +33 -4
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +337 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/common.proto +34 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +1 -1
  6. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +1 -1
  7. package/build/protos/google/cloud/discoveryengine/v1/control.proto +214 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/control_service.proto +236 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +570 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +5 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +3 -3
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +92 -0
  15. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +7 -7
  16. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +5 -5
  17. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +1 -1
  18. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +149 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +58 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +5 -5
  21. package/build/protos/google/cloud/discoveryengine/v1/project.proto +103 -0
  22. package/build/protos/google/cloud/discoveryengine/v1/project_service.proto +90 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +131 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +21 -20
  26. package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
  27. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +6 -6
  28. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +24 -19
  29. package/build/protos/google/cloud/discoveryengine/v1/session.proto +97 -0
  30. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +4 -1
  31. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +1 -1
  32. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +29 -4
  33. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +19 -3
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +1 -1
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +10 -1
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +8 -1
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +1 -1
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +17 -1
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +1 -1
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +1 -1
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +217 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/control_service.proto +236 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -3
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +20 -4
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +87 -0
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +1 -1
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +3 -3
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +2 -1
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +13 -10
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +5 -5
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  54. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +1 -1
  55. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +31 -2
  56. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +4 -1
  57. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +5 -5
  58. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +2 -1
  59. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +3 -1
  60. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
  61. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +20 -1
  62. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +21 -20
  63. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +38 -3
  64. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +7 -7
  65. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +29 -32
  66. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +40 -1
  67. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +1 -1
  68. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +1 -1
  69. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +4 -1
  70. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +4 -1
  71. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +1 -1
  72. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +30 -4
  73. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +19 -3
  74. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +11 -2
  75. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +17 -1
  76. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +1 -1
  77. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +1 -1
  78. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +216 -0
  79. package/build/protos/google/cloud/discoveryengine/v1beta/control_service.proto +236 -0
  80. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -3
  81. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +20 -4
  82. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +87 -0
  83. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +1 -1
  84. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +3 -3
  85. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  86. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -1
  87. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +8 -9
  88. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +5 -5
  89. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +1 -1
  90. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +31 -2
  91. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +4 -1
  92. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +5 -5
  93. package/build/protos/google/cloud/discoveryengine/v1beta/project.proto +103 -0
  94. package/build/protos/google/cloud/discoveryengine/v1beta/project_service.proto +90 -0
  95. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +1 -1
  96. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +20 -1
  97. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +21 -20
  98. package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
  99. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +6 -6
  100. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +31 -25
  101. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +40 -1
  102. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +1 -1
  103. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +1 -1
  104. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +5 -2
  105. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +4 -1
  106. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +1 -1
  107. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +29 -4
  108. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +19 -3
  109. package/build/protos/protos.d.ts +52350 -38733
  110. package/build/protos/protos.js +136479 -103212
  111. package/build/protos/protos.json +9460 -5916
  112. package/build/src/index.d.ts +13 -1
  113. package/build/src/index.js +13 -1
  114. package/build/src/v1/completion_service_client.d.ts +549 -0
  115. package/build/src/v1/completion_service_client.js +771 -0
  116. package/build/src/v1/control_service_client.d.ts +1623 -0
  117. package/build/src/v1/control_service_client.js +2218 -0
  118. package/build/src/v1/control_service_client_config.json +63 -0
  119. package/build/src/v1/conversational_search_service_client.d.ts +893 -0
  120. package/build/src/v1/conversational_search_service_client.js +1040 -14
  121. package/build/src/v1/conversational_search_service_client_config.json +35 -0
  122. package/build/src/v1/data_store_service_client.d.ts +555 -6
  123. package/build/src/v1/data_store_service_client.js +775 -4
  124. package/build/src/v1/document_service_client.d.ts +557 -8
  125. package/build/src/v1/document_service_client.js +773 -2
  126. package/build/src/v1/engine_service_client.d.ts +549 -0
  127. package/build/src/v1/engine_service_client.js +771 -0
  128. package/build/src/v1/grounded_generation_service_client.d.ts +1439 -0
  129. package/build/src/v1/grounded_generation_service_client.js +2036 -0
  130. package/build/src/v1/grounded_generation_service_client_config.json +43 -0
  131. package/build/src/v1/index.d.ts +4 -0
  132. package/build/src/v1/index.js +9 -1
  133. package/build/src/v1/project_service_client.d.ts +1533 -0
  134. package/build/src/v1/project_service_client.js +2255 -0
  135. package/build/src/v1/project_service_client_config.json +43 -0
  136. package/build/src/v1/rank_service_client.d.ts +1449 -0
  137. package/build/src/v1/rank_service_client.js +2037 -0
  138. package/build/src/v1/rank_service_client_config.json +43 -0
  139. package/build/src/v1/recommendation_service_client.d.ts +568 -18
  140. package/build/src/v1/recommendation_service_client.js +756 -0
  141. package/build/src/v1/schema_service_client.d.ts +558 -9
  142. package/build/src/v1/schema_service_client.js +775 -4
  143. package/build/src/v1/search_service_client.d.ts +579 -21
  144. package/build/src/v1/search_service_client.js +776 -14
  145. package/build/src/v1/site_search_engine_service_client.d.ts +549 -0
  146. package/build/src/v1/site_search_engine_service_client.js +771 -0
  147. package/build/src/v1/user_event_service_client.d.ts +562 -2
  148. package/build/src/v1/user_event_service_client.js +771 -0
  149. package/build/src/v1alpha/acl_config_service_client.d.ts +237 -0
  150. package/build/src/v1alpha/acl_config_service_client.js +326 -0
  151. package/build/src/v1alpha/chunk_service_client.d.ts +237 -0
  152. package/build/src/v1alpha/chunk_service_client.js +326 -0
  153. package/build/src/v1alpha/completion_service_client.d.ts +237 -0
  154. package/build/src/v1alpha/completion_service_client.js +340 -0
  155. package/build/src/v1alpha/control_service_client.d.ts +2013 -0
  156. package/build/src/v1alpha/control_service_client.js +2757 -0
  157. package/build/src/v1alpha/control_service_client_config.json +63 -0
  158. package/build/src/v1alpha/conversational_search_service_client.d.ts +239 -2
  159. package/build/src/v1alpha/conversational_search_service_client.js +326 -0
  160. package/build/src/v1alpha/data_store_service_client.d.ts +243 -6
  161. package/build/src/v1alpha/data_store_service_client.js +344 -4
  162. package/build/src/v1alpha/document_service_client.d.ts +246 -9
  163. package/build/src/v1alpha/document_service_client.js +342 -2
  164. package/build/src/v1alpha/engine_service_client.d.ts +237 -0
  165. package/build/src/v1alpha/engine_service_client.js +340 -0
  166. package/build/src/v1alpha/estimate_billing_service_client.d.ts +237 -0
  167. package/build/src/v1alpha/estimate_billing_service_client.js +340 -0
  168. package/build/src/v1alpha/grounded_generation_service_client.d.ts +256 -1
  169. package/build/src/v1alpha/grounded_generation_service_client.js +326 -0
  170. package/build/src/v1alpha/index.d.ts +1 -0
  171. package/build/src/v1alpha/index.js +3 -1
  172. package/build/src/v1alpha/project_service_client.d.ts +239 -0
  173. package/build/src/v1alpha/project_service_client.js +340 -0
  174. package/build/src/v1alpha/project_service_client_config.json +21 -6
  175. package/build/src/v1alpha/rank_service_client.d.ts +255 -0
  176. package/build/src/v1alpha/rank_service_client.js +326 -0
  177. package/build/src/v1alpha/recommendation_service_client.d.ts +256 -18
  178. package/build/src/v1alpha/recommendation_service_client.js +326 -0
  179. package/build/src/v1alpha/schema_service_client.d.ts +247 -10
  180. package/build/src/v1alpha/schema_service_client.js +344 -4
  181. package/build/src/v1alpha/search_service_client.d.ts +267 -21
  182. package/build/src/v1alpha/search_service_client.js +346 -14
  183. package/build/src/v1alpha/search_tuning_service_client.d.ts +265 -0
  184. package/build/src/v1alpha/search_tuning_service_client.js +365 -1
  185. package/build/src/v1alpha/search_tuning_service_client_config.json +4 -0
  186. package/build/src/v1alpha/serving_config_service_client.d.ts +237 -0
  187. package/build/src/v1alpha/serving_config_service_client.js +326 -0
  188. package/build/src/v1alpha/site_search_engine_service_client.d.ts +237 -0
  189. package/build/src/v1alpha/site_search_engine_service_client.js +340 -0
  190. package/build/src/v1alpha/user_event_service_client.d.ts +250 -2
  191. package/build/src/v1alpha/user_event_service_client.js +340 -0
  192. package/build/src/v1beta/completion_service_client.d.ts +252 -0
  193. package/build/src/v1beta/completion_service_client.js +359 -0
  194. package/build/src/v1beta/control_service_client.d.ts +1860 -0
  195. package/build/src/v1beta/control_service_client.js +2545 -0
  196. package/build/src/v1beta/control_service_client_config.json +63 -0
  197. package/build/src/v1beta/conversational_search_service_client.d.ts +254 -2
  198. package/build/src/v1beta/conversational_search_service_client.js +348 -0
  199. package/build/src/v1beta/data_store_service_client.d.ts +258 -6
  200. package/build/src/v1beta/data_store_service_client.js +363 -4
  201. package/build/src/v1beta/document_service_client.d.ts +261 -10
  202. package/build/src/v1beta/document_service_client.js +361 -2
  203. package/build/src/v1beta/engine_service_client.d.ts +252 -0
  204. package/build/src/v1beta/engine_service_client.js +359 -0
  205. package/build/src/v1beta/grounded_generation_service_client.d.ts +271 -1
  206. package/build/src/v1beta/grounded_generation_service_client.js +348 -0
  207. package/build/src/v1beta/index.d.ts +2 -0
  208. package/build/src/v1beta/index.js +5 -1
  209. package/build/src/v1beta/project_service_client.d.ts +1770 -0
  210. package/build/src/v1beta/project_service_client.js +2576 -0
  211. package/build/src/v1beta/project_service_client_config.json +43 -0
  212. package/build/src/v1beta/rank_service_client.d.ts +270 -0
  213. package/build/src/v1beta/rank_service_client.js +348 -0
  214. package/build/src/v1beta/recommendation_service_client.d.ts +271 -18
  215. package/build/src/v1beta/recommendation_service_client.js +348 -0
  216. package/build/src/v1beta/schema_service_client.d.ts +261 -9
  217. package/build/src/v1beta/schema_service_client.js +363 -4
  218. package/build/src/v1beta/search_service_client.d.ts +282 -21
  219. package/build/src/v1beta/search_service_client.js +368 -14
  220. package/build/src/v1beta/search_tuning_service_client.d.ts +280 -0
  221. package/build/src/v1beta/search_tuning_service_client.js +384 -1
  222. package/build/src/v1beta/search_tuning_service_client_config.json +4 -0
  223. package/build/src/v1beta/serving_config_service_client.d.ts +237 -0
  224. package/build/src/v1beta/serving_config_service_client.js +326 -0
  225. package/build/src/v1beta/site_search_engine_service_client.d.ts +252 -0
  226. package/build/src/v1beta/site_search_engine_service_client.js +359 -0
  227. package/build/src/v1beta/user_event_service_client.d.ts +265 -2
  228. package/build/src/v1beta/user_event_service_client.js +359 -0
  229. package/package.json +2 -2
@@ -151,20 +151,32 @@ class ConversationalSearchServiceClient {
151
151
  // Create useful helper objects for these.
152
152
  this.pathTemplates = {
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
154
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
156
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
157
+ projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
156
158
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
159
+ projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
157
160
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
158
161
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
162
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
163
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
159
164
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
160
165
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
166
+ projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
161
167
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
162
168
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
169
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
170
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
163
171
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
164
172
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
173
+ projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
165
174
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
175
+ projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
166
176
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
167
177
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
178
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
179
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
168
180
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
169
181
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
170
182
  };
@@ -173,6 +185,7 @@ class ConversationalSearchServiceClient {
173
185
  // pages). Denote the keys used for pagination and results.
174
186
  this.descriptors.page = {
175
187
  listConversations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversations'),
188
+ listSessions: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'sessions'),
176
189
  };
177
190
  // Put together the default options sent with requests.
178
191
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.ConversationalSearchService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -215,6 +228,13 @@ class ConversationalSearchServiceClient {
215
228
  'updateConversation',
216
229
  'getConversation',
217
230
  'listConversations',
231
+ 'answerQuery',
232
+ 'getAnswer',
233
+ 'createSession',
234
+ 'deleteSession',
235
+ 'updateSession',
236
+ 'getSession',
237
+ 'listSessions',
218
238
  ];
219
239
  for (const methodName of conversationalSearchServiceStubMethods) {
220
240
  const callPromise = this.conversationalSearchServiceStub.then(stub => (...args) => {
@@ -397,6 +417,132 @@ class ConversationalSearchServiceClient {
397
417
  this.initialize();
398
418
  return this.innerApiCalls.getConversation(request, options, callback);
399
419
  }
420
+ answerQuery(request, optionsOrCallback, callback) {
421
+ var _a;
422
+ request = request || {};
423
+ let options;
424
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
425
+ callback = optionsOrCallback;
426
+ options = {};
427
+ }
428
+ else {
429
+ options = optionsOrCallback;
430
+ }
431
+ options = options || {};
432
+ options.otherArgs = options.otherArgs || {};
433
+ options.otherArgs.headers = options.otherArgs.headers || {};
434
+ options.otherArgs.headers['x-goog-request-params'] =
435
+ this._gaxModule.routingHeader.fromParams({
436
+ serving_config: (_a = request.servingConfig) !== null && _a !== void 0 ? _a : '',
437
+ });
438
+ this.initialize();
439
+ return this.innerApiCalls.answerQuery(request, options, callback);
440
+ }
441
+ getAnswer(request, optionsOrCallback, callback) {
442
+ var _a;
443
+ request = request || {};
444
+ let options;
445
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
446
+ callback = optionsOrCallback;
447
+ options = {};
448
+ }
449
+ else {
450
+ options = optionsOrCallback;
451
+ }
452
+ options = options || {};
453
+ options.otherArgs = options.otherArgs || {};
454
+ options.otherArgs.headers = options.otherArgs.headers || {};
455
+ options.otherArgs.headers['x-goog-request-params'] =
456
+ this._gaxModule.routingHeader.fromParams({
457
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
458
+ });
459
+ this.initialize();
460
+ return this.innerApiCalls.getAnswer(request, options, callback);
461
+ }
462
+ createSession(request, optionsOrCallback, callback) {
463
+ var _a;
464
+ request = request || {};
465
+ let options;
466
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
467
+ callback = optionsOrCallback;
468
+ options = {};
469
+ }
470
+ else {
471
+ options = optionsOrCallback;
472
+ }
473
+ options = options || {};
474
+ options.otherArgs = options.otherArgs || {};
475
+ options.otherArgs.headers = options.otherArgs.headers || {};
476
+ options.otherArgs.headers['x-goog-request-params'] =
477
+ this._gaxModule.routingHeader.fromParams({
478
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
479
+ });
480
+ this.initialize();
481
+ return this.innerApiCalls.createSession(request, options, callback);
482
+ }
483
+ deleteSession(request, optionsOrCallback, callback) {
484
+ var _a;
485
+ request = request || {};
486
+ let options;
487
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
488
+ callback = optionsOrCallback;
489
+ options = {};
490
+ }
491
+ else {
492
+ options = optionsOrCallback;
493
+ }
494
+ options = options || {};
495
+ options.otherArgs = options.otherArgs || {};
496
+ options.otherArgs.headers = options.otherArgs.headers || {};
497
+ options.otherArgs.headers['x-goog-request-params'] =
498
+ this._gaxModule.routingHeader.fromParams({
499
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
500
+ });
501
+ this.initialize();
502
+ return this.innerApiCalls.deleteSession(request, options, callback);
503
+ }
504
+ updateSession(request, optionsOrCallback, callback) {
505
+ var _a;
506
+ request = request || {};
507
+ let options;
508
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
509
+ callback = optionsOrCallback;
510
+ options = {};
511
+ }
512
+ else {
513
+ options = optionsOrCallback;
514
+ }
515
+ options = options || {};
516
+ options.otherArgs = options.otherArgs || {};
517
+ options.otherArgs.headers = options.otherArgs.headers || {};
518
+ options.otherArgs.headers['x-goog-request-params'] =
519
+ this._gaxModule.routingHeader.fromParams({
520
+ 'session.name': (_a = request.session.name) !== null && _a !== void 0 ? _a : '',
521
+ });
522
+ this.initialize();
523
+ return this.innerApiCalls.updateSession(request, options, callback);
524
+ }
525
+ getSession(request, optionsOrCallback, callback) {
526
+ var _a;
527
+ request = request || {};
528
+ let options;
529
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
530
+ callback = optionsOrCallback;
531
+ options = {};
532
+ }
533
+ else {
534
+ options = optionsOrCallback;
535
+ }
536
+ options = options || {};
537
+ options.otherArgs = options.otherArgs || {};
538
+ options.otherArgs.headers = options.otherArgs.headers || {};
539
+ options.otherArgs.headers['x-goog-request-params'] =
540
+ this._gaxModule.routingHeader.fromParams({
541
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
542
+ });
543
+ this.initialize();
544
+ return this.innerApiCalls.getSession(request, options, callback);
545
+ }
400
546
  listConversations(request, optionsOrCallback, callback) {
401
547
  var _a;
402
548
  request = request || {};
@@ -533,6 +679,142 @@ class ConversationalSearchServiceClient {
533
679
  this.initialize();
534
680
  return this.descriptors.page.listConversations.asyncIterate(this.innerApiCalls['listConversations'], request, callSettings);
535
681
  }
682
+ listSessions(request, optionsOrCallback, callback) {
683
+ var _a;
684
+ request = request || {};
685
+ let options;
686
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
687
+ callback = optionsOrCallback;
688
+ options = {};
689
+ }
690
+ else {
691
+ options = optionsOrCallback;
692
+ }
693
+ options = options || {};
694
+ options.otherArgs = options.otherArgs || {};
695
+ options.otherArgs.headers = options.otherArgs.headers || {};
696
+ options.otherArgs.headers['x-goog-request-params'] =
697
+ this._gaxModule.routingHeader.fromParams({
698
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
699
+ });
700
+ this.initialize();
701
+ return this.innerApiCalls.listSessions(request, options, callback);
702
+ }
703
+ /**
704
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
705
+ * @param {Object} request
706
+ * The request object that will be sent.
707
+ * @param {string} request.parent
708
+ * Required. The data store resource name. Format:
709
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
710
+ * @param {number} request.pageSize
711
+ * Maximum number of results to return. If unspecified, defaults
712
+ * to 50. Max allowed value is 1000.
713
+ * @param {string} request.pageToken
714
+ * A page token, received from a previous `ListSessions` call.
715
+ * Provide this to retrieve the subsequent page.
716
+ * @param {string} request.filter
717
+ * A filter to apply on the list results. The supported features are:
718
+ * user_pseudo_id, state.
719
+ *
720
+ * Example:
721
+ * "user_pseudo_id = some_id"
722
+ * @param {string} request.orderBy
723
+ * A comma-separated list of fields to order by, sorted in ascending order.
724
+ * Use "desc" after a field name for descending.
725
+ * Supported fields:
726
+ * * `update_time`
727
+ * * `create_time`
728
+ * * `session_name`
729
+ *
730
+ * Example:
731
+ * "update_time desc"
732
+ * "create_time"
733
+ * @param {object} [options]
734
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
735
+ * @returns {Stream}
736
+ * An object stream which emits an object representing {@link protos.google.cloud.discoveryengine.v1.Session|Session} on 'data' event.
737
+ * The client library will perform auto-pagination by default: it will call the API as many
738
+ * times as needed. Note that it can affect your quota.
739
+ * We recommend using `listSessionsAsync()`
740
+ * method described below for async iteration which you can stop as needed.
741
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
742
+ * for more details and examples.
743
+ */
744
+ listSessionsStream(request, options) {
745
+ var _a;
746
+ request = request || {};
747
+ options = options || {};
748
+ options.otherArgs = options.otherArgs || {};
749
+ options.otherArgs.headers = options.otherArgs.headers || {};
750
+ options.otherArgs.headers['x-goog-request-params'] =
751
+ this._gaxModule.routingHeader.fromParams({
752
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
753
+ });
754
+ const defaultCallSettings = this._defaults['listSessions'];
755
+ const callSettings = defaultCallSettings.merge(options);
756
+ this.initialize();
757
+ return this.descriptors.page.listSessions.createStream(this.innerApiCalls.listSessions, request, callSettings);
758
+ }
759
+ /**
760
+ * Equivalent to `listSessions`, but returns an iterable object.
761
+ *
762
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
763
+ * @param {Object} request
764
+ * The request object that will be sent.
765
+ * @param {string} request.parent
766
+ * Required. The data store resource name. Format:
767
+ * `projects/{project_number}/locations/{location_id}/collections/{collection}/dataStores/{data_store_id}`
768
+ * @param {number} request.pageSize
769
+ * Maximum number of results to return. If unspecified, defaults
770
+ * to 50. Max allowed value is 1000.
771
+ * @param {string} request.pageToken
772
+ * A page token, received from a previous `ListSessions` call.
773
+ * Provide this to retrieve the subsequent page.
774
+ * @param {string} request.filter
775
+ * A filter to apply on the list results. The supported features are:
776
+ * user_pseudo_id, state.
777
+ *
778
+ * Example:
779
+ * "user_pseudo_id = some_id"
780
+ * @param {string} request.orderBy
781
+ * A comma-separated list of fields to order by, sorted in ascending order.
782
+ * Use "desc" after a field name for descending.
783
+ * Supported fields:
784
+ * * `update_time`
785
+ * * `create_time`
786
+ * * `session_name`
787
+ *
788
+ * Example:
789
+ * "update_time desc"
790
+ * "create_time"
791
+ * @param {object} [options]
792
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
793
+ * @returns {Object}
794
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
795
+ * When you iterate the returned iterable, each element will be an object representing
796
+ * {@link protos.google.cloud.discoveryengine.v1.Session|Session}. The API will be called under the hood as needed, once per the page,
797
+ * so you can stop the iteration when you don't need more results.
798
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
799
+ * for more details and examples.
800
+ * @example <caption>include:samples/generated/v1/conversational_search_service.list_sessions.js</caption>
801
+ * region_tag:discoveryengine_v1_generated_ConversationalSearchService_ListSessions_async
802
+ */
803
+ listSessionsAsync(request, options) {
804
+ var _a;
805
+ request = request || {};
806
+ options = options || {};
807
+ options.otherArgs = options.otherArgs || {};
808
+ options.otherArgs.headers = options.otherArgs.headers || {};
809
+ options.otherArgs.headers['x-goog-request-params'] =
810
+ this._gaxModule.routingHeader.fromParams({
811
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
812
+ });
813
+ const defaultCallSettings = this._defaults['listSessions'];
814
+ const callSettings = defaultCallSettings.merge(options);
815
+ this.initialize();
816
+ return this.descriptors.page.listSessions.asyncIterate(this.innerApiCalls['listSessions'], request, callSettings);
817
+ }
536
818
  /**
537
819
  * Gets information about a location.
538
820
  *
@@ -648,6 +930,27 @@ class ConversationalSearchServiceClient {
648
930
  matchEngineFromEngineName(engineName) {
649
931
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
650
932
  }
933
+ /**
934
+ * Return a fully-qualified project resource name string.
935
+ *
936
+ * @param {string} project
937
+ * @returns {string} Resource name string.
938
+ */
939
+ projectPath(project) {
940
+ return this.pathTemplates.projectPathTemplate.render({
941
+ project: project,
942
+ });
943
+ }
944
+ /**
945
+ * Parse the project from Project resource.
946
+ *
947
+ * @param {string} projectName
948
+ * A fully-qualified path representing Project resource.
949
+ * @returns {string} A string representing the project.
950
+ */
951
+ matchProjectFromProjectName(projectName) {
952
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
953
+ }
651
954
  /**
652
955
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
653
956
  *
@@ -786,6 +1089,75 @@ class ConversationalSearchServiceClient {
786
1089
  matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
787
1090
  return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
788
1091
  }
1092
+ /**
1093
+ * Return a fully-qualified projectLocationCollectionDataStoreControl resource name string.
1094
+ *
1095
+ * @param {string} project
1096
+ * @param {string} location
1097
+ * @param {string} collection
1098
+ * @param {string} data_store
1099
+ * @param {string} control
1100
+ * @returns {string} Resource name string.
1101
+ */
1102
+ projectLocationCollectionDataStoreControlPath(project, location, collection, dataStore, control) {
1103
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.render({
1104
+ project: project,
1105
+ location: location,
1106
+ collection: collection,
1107
+ data_store: dataStore,
1108
+ control: control,
1109
+ });
1110
+ }
1111
+ /**
1112
+ * Parse the project from ProjectLocationCollectionDataStoreControl resource.
1113
+ *
1114
+ * @param {string} projectLocationCollectionDataStoreControlName
1115
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1116
+ * @returns {string} A string representing the project.
1117
+ */
1118
+ matchProjectFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1119
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).project;
1120
+ }
1121
+ /**
1122
+ * Parse the location from ProjectLocationCollectionDataStoreControl resource.
1123
+ *
1124
+ * @param {string} projectLocationCollectionDataStoreControlName
1125
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1126
+ * @returns {string} A string representing the location.
1127
+ */
1128
+ matchLocationFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1129
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).location;
1130
+ }
1131
+ /**
1132
+ * Parse the collection from ProjectLocationCollectionDataStoreControl resource.
1133
+ *
1134
+ * @param {string} projectLocationCollectionDataStoreControlName
1135
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1136
+ * @returns {string} A string representing the collection.
1137
+ */
1138
+ matchCollectionFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1139
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).collection;
1140
+ }
1141
+ /**
1142
+ * Parse the data_store from ProjectLocationCollectionDataStoreControl resource.
1143
+ *
1144
+ * @param {string} projectLocationCollectionDataStoreControlName
1145
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1146
+ * @returns {string} A string representing the data_store.
1147
+ */
1148
+ matchDataStoreFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1149
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).data_store;
1150
+ }
1151
+ /**
1152
+ * Parse the control from ProjectLocationCollectionDataStoreControl resource.
1153
+ *
1154
+ * @param {string} projectLocationCollectionDataStoreControlName
1155
+ * A fully-qualified path representing project_location_collection_data_store_control resource.
1156
+ * @returns {string} A string representing the control.
1157
+ */
1158
+ matchControlFromProjectLocationCollectionDataStoreControlName(projectLocationCollectionDataStoreControlName) {
1159
+ return this.pathTemplates.projectLocationCollectionDataStoreControlPathTemplate.match(projectLocationCollectionDataStoreControlName).control;
1160
+ }
789
1161
  /**
790
1162
  * Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
791
1163
  *
@@ -855,6 +1227,63 @@ class ConversationalSearchServiceClient {
855
1227
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
856
1228
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
857
1229
  }
1230
+ /**
1231
+ * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1232
+ *
1233
+ * @param {string} project
1234
+ * @param {string} location
1235
+ * @param {string} collection
1236
+ * @param {string} data_store
1237
+ * @returns {string} Resource name string.
1238
+ */
1239
+ projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
1240
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
1241
+ project: project,
1242
+ location: location,
1243
+ collection: collection,
1244
+ data_store: dataStore,
1245
+ });
1246
+ }
1247
+ /**
1248
+ * Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1249
+ *
1250
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1251
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1252
+ * @returns {string} A string representing the project.
1253
+ */
1254
+ matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1255
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
1256
+ }
1257
+ /**
1258
+ * Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1259
+ *
1260
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1261
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1262
+ * @returns {string} A string representing the location.
1263
+ */
1264
+ matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1265
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
1266
+ }
1267
+ /**
1268
+ * Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1269
+ *
1270
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1271
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1272
+ * @returns {string} A string representing the collection.
1273
+ */
1274
+ matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1275
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
1276
+ }
1277
+ /**
1278
+ * Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
1279
+ *
1280
+ * @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
1281
+ * A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
1282
+ * @returns {string} A string representing the data_store.
1283
+ */
1284
+ matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
1285
+ return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
1286
+ }
858
1287
  /**
859
1288
  * Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
860
1289
  *
@@ -970,28 +1399,178 @@ class ConversationalSearchServiceClient {
970
1399
  * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
971
1400
  * @returns {string} A string representing the collection.
972
1401
  */
973
- matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
974
- return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1402
+ matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1403
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
1404
+ }
1405
+ /**
1406
+ * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1407
+ *
1408
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1409
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1410
+ * @returns {string} A string representing the data_store.
1411
+ */
1412
+ matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1413
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1414
+ }
1415
+ /**
1416
+ * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1417
+ *
1418
+ * @param {string} projectLocationCollectionDataStoreServingConfigName
1419
+ * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
1420
+ * @returns {string} A string representing the serving_config.
1421
+ */
1422
+ matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1423
+ return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1424
+ }
1425
+ /**
1426
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1427
+ *
1428
+ * @param {string} project
1429
+ * @param {string} location
1430
+ * @param {string} collection
1431
+ * @param {string} data_store
1432
+ * @param {string} session
1433
+ * @returns {string} Resource name string.
1434
+ */
1435
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1436
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1437
+ project: project,
1438
+ location: location,
1439
+ collection: collection,
1440
+ data_store: dataStore,
1441
+ session: session,
1442
+ });
1443
+ }
1444
+ /**
1445
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1446
+ *
1447
+ * @param {string} projectLocationCollectionDataStoreSessionName
1448
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1449
+ * @returns {string} A string representing the project.
1450
+ */
1451
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1452
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1453
+ }
1454
+ /**
1455
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1456
+ *
1457
+ * @param {string} projectLocationCollectionDataStoreSessionName
1458
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1459
+ * @returns {string} A string representing the location.
1460
+ */
1461
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1462
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1463
+ }
1464
+ /**
1465
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1466
+ *
1467
+ * @param {string} projectLocationCollectionDataStoreSessionName
1468
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1469
+ * @returns {string} A string representing the collection.
1470
+ */
1471
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1472
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1473
+ }
1474
+ /**
1475
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1476
+ *
1477
+ * @param {string} projectLocationCollectionDataStoreSessionName
1478
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1479
+ * @returns {string} A string representing the data_store.
1480
+ */
1481
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1482
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1483
+ }
1484
+ /**
1485
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1486
+ *
1487
+ * @param {string} projectLocationCollectionDataStoreSessionName
1488
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1489
+ * @returns {string} A string representing the session.
1490
+ */
1491
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1492
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1493
+ }
1494
+ /**
1495
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1496
+ *
1497
+ * @param {string} project
1498
+ * @param {string} location
1499
+ * @param {string} collection
1500
+ * @param {string} data_store
1501
+ * @param {string} session
1502
+ * @param {string} answer
1503
+ * @returns {string} Resource name string.
1504
+ */
1505
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1506
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1507
+ project: project,
1508
+ location: location,
1509
+ collection: collection,
1510
+ data_store: dataStore,
1511
+ session: session,
1512
+ answer: answer,
1513
+ });
1514
+ }
1515
+ /**
1516
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1517
+ *
1518
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1519
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1520
+ * @returns {string} A string representing the project.
1521
+ */
1522
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1523
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1524
+ }
1525
+ /**
1526
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1527
+ *
1528
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1529
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1530
+ * @returns {string} A string representing the location.
1531
+ */
1532
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1533
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1534
+ }
1535
+ /**
1536
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1537
+ *
1538
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1539
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1540
+ * @returns {string} A string representing the collection.
1541
+ */
1542
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1543
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1544
+ }
1545
+ /**
1546
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1547
+ *
1548
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1549
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1550
+ * @returns {string} A string representing the data_store.
1551
+ */
1552
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1553
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
975
1554
  }
976
1555
  /**
977
- * Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
1556
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
978
1557
  *
979
- * @param {string} projectLocationCollectionDataStoreServingConfigName
980
- * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
981
- * @returns {string} A string representing the data_store.
1558
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1559
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1560
+ * @returns {string} A string representing the session.
982
1561
  */
983
- matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
984
- return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
1562
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1563
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
985
1564
  }
986
1565
  /**
987
- * Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
1566
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
988
1567
  *
989
- * @param {string} projectLocationCollectionDataStoreServingConfigName
990
- * A fully-qualified path representing project_location_collection_data_store_serving_config resource.
991
- * @returns {string} A string representing the serving_config.
1568
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1569
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1570
+ * @returns {string} A string representing the answer.
992
1571
  */
993
- matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
994
- return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1572
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1573
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
995
1574
  }
996
1575
  /**
997
1576
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -1119,6 +1698,75 @@ class ConversationalSearchServiceClient {
1119
1698
  matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
1120
1699
  return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
1121
1700
  }
1701
+ /**
1702
+ * Return a fully-qualified projectLocationCollectionEngineControl resource name string.
1703
+ *
1704
+ * @param {string} project
1705
+ * @param {string} location
1706
+ * @param {string} collection
1707
+ * @param {string} engine
1708
+ * @param {string} control
1709
+ * @returns {string} Resource name string.
1710
+ */
1711
+ projectLocationCollectionEngineControlPath(project, location, collection, engine, control) {
1712
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.render({
1713
+ project: project,
1714
+ location: location,
1715
+ collection: collection,
1716
+ engine: engine,
1717
+ control: control,
1718
+ });
1719
+ }
1720
+ /**
1721
+ * Parse the project from ProjectLocationCollectionEngineControl resource.
1722
+ *
1723
+ * @param {string} projectLocationCollectionEngineControlName
1724
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1725
+ * @returns {string} A string representing the project.
1726
+ */
1727
+ matchProjectFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1728
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).project;
1729
+ }
1730
+ /**
1731
+ * Parse the location from ProjectLocationCollectionEngineControl resource.
1732
+ *
1733
+ * @param {string} projectLocationCollectionEngineControlName
1734
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1735
+ * @returns {string} A string representing the location.
1736
+ */
1737
+ matchLocationFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1738
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).location;
1739
+ }
1740
+ /**
1741
+ * Parse the collection from ProjectLocationCollectionEngineControl resource.
1742
+ *
1743
+ * @param {string} projectLocationCollectionEngineControlName
1744
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1745
+ * @returns {string} A string representing the collection.
1746
+ */
1747
+ matchCollectionFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1748
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).collection;
1749
+ }
1750
+ /**
1751
+ * Parse the engine from ProjectLocationCollectionEngineControl resource.
1752
+ *
1753
+ * @param {string} projectLocationCollectionEngineControlName
1754
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1755
+ * @returns {string} A string representing the engine.
1756
+ */
1757
+ matchEngineFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1758
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).engine;
1759
+ }
1760
+ /**
1761
+ * Parse the control from ProjectLocationCollectionEngineControl resource.
1762
+ *
1763
+ * @param {string} projectLocationCollectionEngineControlName
1764
+ * A fully-qualified path representing project_location_collection_engine_control resource.
1765
+ * @returns {string} A string representing the control.
1766
+ */
1767
+ matchControlFromProjectLocationCollectionEngineControlName(projectLocationCollectionEngineControlName) {
1768
+ return this.pathTemplates.projectLocationCollectionEngineControlPathTemplate.match(projectLocationCollectionEngineControlName).control;
1769
+ }
1122
1770
  /**
1123
1771
  * Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
1124
1772
  *
@@ -1257,6 +1905,156 @@ class ConversationalSearchServiceClient {
1257
1905
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1258
1906
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1259
1907
  }
1908
+ /**
1909
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1910
+ *
1911
+ * @param {string} project
1912
+ * @param {string} location
1913
+ * @param {string} collection
1914
+ * @param {string} engine
1915
+ * @param {string} session
1916
+ * @returns {string} Resource name string.
1917
+ */
1918
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1919
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1920
+ project: project,
1921
+ location: location,
1922
+ collection: collection,
1923
+ engine: engine,
1924
+ session: session,
1925
+ });
1926
+ }
1927
+ /**
1928
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1929
+ *
1930
+ * @param {string} projectLocationCollectionEngineSessionName
1931
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1932
+ * @returns {string} A string representing the project.
1933
+ */
1934
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1935
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1936
+ }
1937
+ /**
1938
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1939
+ *
1940
+ * @param {string} projectLocationCollectionEngineSessionName
1941
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1942
+ * @returns {string} A string representing the location.
1943
+ */
1944
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1945
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1946
+ }
1947
+ /**
1948
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1949
+ *
1950
+ * @param {string} projectLocationCollectionEngineSessionName
1951
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1952
+ * @returns {string} A string representing the collection.
1953
+ */
1954
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1955
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1956
+ }
1957
+ /**
1958
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1959
+ *
1960
+ * @param {string} projectLocationCollectionEngineSessionName
1961
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1962
+ * @returns {string} A string representing the engine.
1963
+ */
1964
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1965
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1966
+ }
1967
+ /**
1968
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1969
+ *
1970
+ * @param {string} projectLocationCollectionEngineSessionName
1971
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1972
+ * @returns {string} A string representing the session.
1973
+ */
1974
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1975
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1976
+ }
1977
+ /**
1978
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1979
+ *
1980
+ * @param {string} project
1981
+ * @param {string} location
1982
+ * @param {string} collection
1983
+ * @param {string} engine
1984
+ * @param {string} session
1985
+ * @param {string} answer
1986
+ * @returns {string} Resource name string.
1987
+ */
1988
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1989
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1990
+ project: project,
1991
+ location: location,
1992
+ collection: collection,
1993
+ engine: engine,
1994
+ session: session,
1995
+ answer: answer,
1996
+ });
1997
+ }
1998
+ /**
1999
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2000
+ *
2001
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2002
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2003
+ * @returns {string} A string representing the project.
2004
+ */
2005
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2006
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2007
+ }
2008
+ /**
2009
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2010
+ *
2011
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2012
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2013
+ * @returns {string} A string representing the location.
2014
+ */
2015
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2016
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2017
+ }
2018
+ /**
2019
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2020
+ *
2021
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2022
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2023
+ * @returns {string} A string representing the collection.
2024
+ */
2025
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2026
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2027
+ }
2028
+ /**
2029
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2030
+ *
2031
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2032
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2033
+ * @returns {string} A string representing the engine.
2034
+ */
2035
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2036
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2037
+ }
2038
+ /**
2039
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2040
+ *
2041
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2042
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2043
+ * @returns {string} A string representing the session.
2044
+ */
2045
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2046
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2047
+ }
2048
+ /**
2049
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2050
+ *
2051
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2052
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2053
+ * @returns {string} A string representing the answer.
2054
+ */
2055
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2056
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2057
+ }
1260
2058
  /**
1261
2059
  * Return a fully-qualified projectLocationDataStore resource name string.
1262
2060
  *
@@ -1371,6 +2169,63 @@ class ConversationalSearchServiceClient {
1371
2169
  matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
1372
2170
  return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
1373
2171
  }
2172
+ /**
2173
+ * Return a fully-qualified projectLocationDataStoreControl resource name string.
2174
+ *
2175
+ * @param {string} project
2176
+ * @param {string} location
2177
+ * @param {string} data_store
2178
+ * @param {string} control
2179
+ * @returns {string} Resource name string.
2180
+ */
2181
+ projectLocationDataStoreControlPath(project, location, dataStore, control) {
2182
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.render({
2183
+ project: project,
2184
+ location: location,
2185
+ data_store: dataStore,
2186
+ control: control,
2187
+ });
2188
+ }
2189
+ /**
2190
+ * Parse the project from ProjectLocationDataStoreControl resource.
2191
+ *
2192
+ * @param {string} projectLocationDataStoreControlName
2193
+ * A fully-qualified path representing project_location_data_store_control resource.
2194
+ * @returns {string} A string representing the project.
2195
+ */
2196
+ matchProjectFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2197
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).project;
2198
+ }
2199
+ /**
2200
+ * Parse the location from ProjectLocationDataStoreControl resource.
2201
+ *
2202
+ * @param {string} projectLocationDataStoreControlName
2203
+ * A fully-qualified path representing project_location_data_store_control resource.
2204
+ * @returns {string} A string representing the location.
2205
+ */
2206
+ matchLocationFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2207
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).location;
2208
+ }
2209
+ /**
2210
+ * Parse the data_store from ProjectLocationDataStoreControl resource.
2211
+ *
2212
+ * @param {string} projectLocationDataStoreControlName
2213
+ * A fully-qualified path representing project_location_data_store_control resource.
2214
+ * @returns {string} A string representing the data_store.
2215
+ */
2216
+ matchDataStoreFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2217
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).data_store;
2218
+ }
2219
+ /**
2220
+ * Parse the control from ProjectLocationDataStoreControl resource.
2221
+ *
2222
+ * @param {string} projectLocationDataStoreControlName
2223
+ * A fully-qualified path representing project_location_data_store_control resource.
2224
+ * @returns {string} A string representing the control.
2225
+ */
2226
+ matchControlFromProjectLocationDataStoreControlName(projectLocationDataStoreControlName) {
2227
+ return this.pathTemplates.projectLocationDataStoreControlPathTemplate.match(projectLocationDataStoreControlName).control;
2228
+ }
1374
2229
  /**
1375
2230
  * Return a fully-qualified projectLocationDataStoreConversation resource name string.
1376
2231
  *
@@ -1428,6 +2283,51 @@ class ConversationalSearchServiceClient {
1428
2283
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
1429
2284
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
1430
2285
  }
2286
+ /**
2287
+ * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2288
+ *
2289
+ * @param {string} project
2290
+ * @param {string} location
2291
+ * @param {string} data_store
2292
+ * @returns {string} Resource name string.
2293
+ */
2294
+ projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
2295
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
2296
+ project: project,
2297
+ location: location,
2298
+ data_store: dataStore,
2299
+ });
2300
+ }
2301
+ /**
2302
+ * Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
2303
+ *
2304
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2305
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2306
+ * @returns {string} A string representing the project.
2307
+ */
2308
+ matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2309
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
2310
+ }
2311
+ /**
2312
+ * Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
2313
+ *
2314
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2315
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2316
+ * @returns {string} A string representing the location.
2317
+ */
2318
+ matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2319
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
2320
+ }
2321
+ /**
2322
+ * Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
2323
+ *
2324
+ * @param {string} projectLocationDataStoreDocumentProcessingConfigName
2325
+ * A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
2326
+ * @returns {string} A string representing the data_store.
2327
+ */
2328
+ matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
2329
+ return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
2330
+ }
1431
2331
  /**
1432
2332
  * Return a fully-qualified projectLocationDataStoreSchema resource name string.
1433
2333
  *
@@ -1542,6 +2442,132 @@ class ConversationalSearchServiceClient {
1542
2442
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1543
2443
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1544
2444
  }
2445
+ /**
2446
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2447
+ *
2448
+ * @param {string} project
2449
+ * @param {string} location
2450
+ * @param {string} data_store
2451
+ * @param {string} session
2452
+ * @returns {string} Resource name string.
2453
+ */
2454
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2455
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2456
+ project: project,
2457
+ location: location,
2458
+ data_store: dataStore,
2459
+ session: session,
2460
+ });
2461
+ }
2462
+ /**
2463
+ * Parse the project from ProjectLocationDataStoreSession resource.
2464
+ *
2465
+ * @param {string} projectLocationDataStoreSessionName
2466
+ * A fully-qualified path representing project_location_data_store_session resource.
2467
+ * @returns {string} A string representing the project.
2468
+ */
2469
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2470
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2471
+ }
2472
+ /**
2473
+ * Parse the location from ProjectLocationDataStoreSession resource.
2474
+ *
2475
+ * @param {string} projectLocationDataStoreSessionName
2476
+ * A fully-qualified path representing project_location_data_store_session resource.
2477
+ * @returns {string} A string representing the location.
2478
+ */
2479
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2480
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2481
+ }
2482
+ /**
2483
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2484
+ *
2485
+ * @param {string} projectLocationDataStoreSessionName
2486
+ * A fully-qualified path representing project_location_data_store_session resource.
2487
+ * @returns {string} A string representing the data_store.
2488
+ */
2489
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2490
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2491
+ }
2492
+ /**
2493
+ * Parse the session from ProjectLocationDataStoreSession resource.
2494
+ *
2495
+ * @param {string} projectLocationDataStoreSessionName
2496
+ * A fully-qualified path representing project_location_data_store_session resource.
2497
+ * @returns {string} A string representing the session.
2498
+ */
2499
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2500
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2501
+ }
2502
+ /**
2503
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2504
+ *
2505
+ * @param {string} project
2506
+ * @param {string} location
2507
+ * @param {string} data_store
2508
+ * @param {string} session
2509
+ * @param {string} answer
2510
+ * @returns {string} Resource name string.
2511
+ */
2512
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2513
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2514
+ project: project,
2515
+ location: location,
2516
+ data_store: dataStore,
2517
+ session: session,
2518
+ answer: answer,
2519
+ });
2520
+ }
2521
+ /**
2522
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2523
+ *
2524
+ * @param {string} projectLocationDataStoreSessionAnswerName
2525
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2526
+ * @returns {string} A string representing the project.
2527
+ */
2528
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2529
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2530
+ }
2531
+ /**
2532
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2533
+ *
2534
+ * @param {string} projectLocationDataStoreSessionAnswerName
2535
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2536
+ * @returns {string} A string representing the location.
2537
+ */
2538
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2539
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2540
+ }
2541
+ /**
2542
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2543
+ *
2544
+ * @param {string} projectLocationDataStoreSessionAnswerName
2545
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2546
+ * @returns {string} A string representing the data_store.
2547
+ */
2548
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2549
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2550
+ }
2551
+ /**
2552
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2553
+ *
2554
+ * @param {string} projectLocationDataStoreSessionAnswerName
2555
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2556
+ * @returns {string} A string representing the session.
2557
+ */
2558
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2559
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2560
+ }
2561
+ /**
2562
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2563
+ *
2564
+ * @param {string} projectLocationDataStoreSessionAnswerName
2565
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2566
+ * @returns {string} A string representing the answer.
2567
+ */
2568
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2569
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2570
+ }
1545
2571
  /**
1546
2572
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1547
2573
  *