@google-cloud/discoveryengine 2.2.0 → 2.4.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 (249) hide show
  1. package/README.md +30 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +18 -3
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
  15. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
  16. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +14 -14
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
  22. package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
  24. package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
  32. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
  33. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
  34. package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
  35. package/build/protos/protos.d.ts +21218 -11675
  36. package/build/protos/protos.js +92642 -66407
  37. package/build/protos/protos.json +5854 -2801
  38. package/build/src/index.d.ts +16 -1
  39. package/build/src/index.js +12 -2
  40. package/build/src/v1/assistant_service_client.d.ts +2058 -0
  41. package/build/src/v1/assistant_service_client.js +2957 -0
  42. package/build/src/v1/assistant_service_client_config.json +43 -0
  43. package/build/src/v1/assistant_service_proto_list.json +48 -0
  44. package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
  45. package/build/src/v1/cmek_config_service_client.js +3426 -0
  46. package/build/src/v1/cmek_config_service_client_config.json +42 -0
  47. package/build/src/v1/cmek_config_service_proto_list.json +48 -0
  48. package/build/src/v1/completion_service_client.d.ts +345 -144
  49. package/build/src/v1/completion_service_client.js +482 -198
  50. package/build/src/v1/completion_service_proto_list.json +10 -1
  51. package/build/src/v1/control_service_client.d.ts +345 -144
  52. package/build/src/v1/control_service_client.js +498 -196
  53. package/build/src/v1/control_service_proto_list.json +10 -1
  54. package/build/src/v1/conversational_search_service_client.d.ts +392 -155
  55. package/build/src/v1/conversational_search_service_client.js +572 -204
  56. package/build/src/v1/conversational_search_service_proto_list.json +10 -1
  57. package/build/src/v1/data_store_service_client.d.ts +351 -144
  58. package/build/src/v1/data_store_service_client.js +488 -198
  59. package/build/src/v1/data_store_service_proto_list.json +10 -1
  60. package/build/src/v1/document_service_client.d.ts +345 -144
  61. package/build/src/v1/document_service_client.js +506 -198
  62. package/build/src/v1/document_service_proto_list.json +10 -1
  63. package/build/src/v1/engine_service_client.d.ts +345 -144
  64. package/build/src/v1/engine_service_client.js +488 -198
  65. package/build/src/v1/engine_service_proto_list.json +10 -1
  66. package/build/src/v1/gapic_metadata.json +270 -0
  67. package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
  68. package/build/src/v1/grounded_generation_service_client.js +486 -196
  69. package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
  70. package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
  71. package/build/src/v1/identity_mapping_store_service_client.js +3601 -0
  72. package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
  73. package/build/src/v1/identity_mapping_store_service_proto_list.json +48 -0
  74. package/build/src/v1/index.d.ts +5 -0
  75. package/build/src/v1/index.js +11 -1
  76. package/build/src/v1/project_service_client.d.ts +345 -144
  77. package/build/src/v1/project_service_client.js +476 -198
  78. package/build/src/v1/project_service_proto_list.json +10 -1
  79. package/build/src/v1/rank_service_client.d.ts +345 -144
  80. package/build/src/v1/rank_service_client.js +480 -196
  81. package/build/src/v1/rank_service_proto_list.json +10 -1
  82. package/build/src/v1/recommendation_service_client.d.ts +345 -144
  83. package/build/src/v1/recommendation_service_client.js +480 -196
  84. package/build/src/v1/recommendation_service_proto_list.json +10 -1
  85. package/build/src/v1/schema_service_client.d.ts +345 -144
  86. package/build/src/v1/schema_service_client.js +482 -198
  87. package/build/src/v1/schema_service_proto_list.json +10 -1
  88. package/build/src/v1/search_service_client.d.ts +393 -228
  89. package/build/src/v1/search_service_client.js +506 -252
  90. package/build/src/v1/search_service_proto_list.json +10 -1
  91. package/build/src/v1/search_tuning_service_client.d.ts +345 -144
  92. package/build/src/v1/search_tuning_service_client.js +482 -198
  93. package/build/src/v1/search_tuning_service_proto_list.json +10 -1
  94. package/build/src/v1/serving_config_service_client.d.ts +345 -144
  95. package/build/src/v1/serving_config_service_client.js +480 -196
  96. package/build/src/v1/serving_config_service_proto_list.json +10 -1
  97. package/build/src/v1/session_service_client.d.ts +2326 -0
  98. package/build/src/v1/session_service_client.js +3218 -0
  99. package/build/src/v1/session_service_client_config.json +63 -0
  100. package/build/src/v1/session_service_proto_list.json +48 -0
  101. package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
  102. package/build/src/v1/site_search_engine_service_client.js +494 -198
  103. package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
  104. package/build/src/v1/user_event_service_client.d.ts +345 -144
  105. package/build/src/v1/user_event_service_client.js +488 -198
  106. package/build/src/v1/user_event_service_proto_list.json +10 -1
  107. package/build/src/v1/user_license_service_client.d.ts +2367 -0
  108. package/build/src/v1/user_license_service_client.js +3346 -0
  109. package/build/src/v1/user_license_service_client_config.json +34 -0
  110. package/build/src/v1/user_license_service_proto_list.json +48 -0
  111. package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
  112. package/build/src/v1alpha/acl_config_service_client.js +208 -196
  113. package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
  114. package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
  115. package/build/src/v1alpha/chunk_service_client.js +202 -196
  116. package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
  117. package/build/src/v1alpha/completion_service_client.d.ts +144 -144
  118. package/build/src/v1alpha/completion_service_client.js +203 -197
  119. package/build/src/v1alpha/completion_service_proto_list.json +1 -0
  120. package/build/src/v1alpha/control_service_client.d.ts +144 -144
  121. package/build/src/v1alpha/control_service_client.js +220 -196
  122. package/build/src/v1alpha/control_service_proto_list.json +1 -0
  123. package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
  124. package/build/src/v1alpha/conversational_search_service_client.js +310 -210
  125. package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
  126. package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
  127. package/build/src/v1alpha/data_store_service_client.js +221 -197
  128. package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
  129. package/build/src/v1alpha/document_service_client.d.ts +144 -144
  130. package/build/src/v1alpha/document_service_client.js +233 -197
  131. package/build/src/v1alpha/document_service_proto_list.json +1 -0
  132. package/build/src/v1alpha/engine_service_client.d.ts +144 -144
  133. package/build/src/v1alpha/engine_service_client.js +221 -197
  134. package/build/src/v1alpha/engine_service_proto_list.json +1 -0
  135. package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
  136. package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
  137. package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
  138. package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
  139. package/build/src/v1alpha/evaluation_service_client.js +203 -197
  140. package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
  141. package/build/src/v1alpha/gapic_metadata.json +82 -0
  142. package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
  143. package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
  144. package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
  145. package/build/src/v1alpha/index.d.ts +1 -0
  146. package/build/src/v1alpha/index.js +3 -1
  147. package/build/src/v1alpha/project_service_client.d.ts +144 -144
  148. package/build/src/v1alpha/project_service_client.js +209 -197
  149. package/build/src/v1alpha/project_service_proto_list.json +1 -0
  150. package/build/src/v1alpha/rank_service_client.d.ts +144 -144
  151. package/build/src/v1alpha/rank_service_client.js +202 -196
  152. package/build/src/v1alpha/rank_service_proto_list.json +1 -0
  153. package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
  154. package/build/src/v1alpha/recommendation_service_client.js +202 -196
  155. package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
  156. package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
  157. package/build/src/v1alpha/sample_query_service_client.js +221 -197
  158. package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
  159. package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
  160. package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
  161. package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
  162. package/build/src/v1alpha/schema_service_client.d.ts +144 -144
  163. package/build/src/v1alpha/schema_service_client.js +203 -197
  164. package/build/src/v1alpha/schema_service_proto_list.json +1 -0
  165. package/build/src/v1alpha/search_service_client.d.ts +168 -186
  166. package/build/src/v1alpha/search_service_client.js +212 -224
  167. package/build/src/v1alpha/search_service_proto_list.json +1 -0
  168. package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
  169. package/build/src/v1alpha/search_tuning_service_client.js +203 -197
  170. package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
  171. package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
  172. package/build/src/v1alpha/serving_config_service_client.js +208 -196
  173. package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
  174. package/build/src/v1alpha/session_service_client.d.ts +2331 -0
  175. package/build/src/v1alpha/session_service_client.js +3161 -0
  176. package/build/src/v1alpha/session_service_client_config.json +68 -0
  177. package/build/src/v1alpha/session_service_proto_list.json +49 -0
  178. package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
  179. package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
  180. package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
  181. package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
  182. package/build/src/v1alpha/user_event_service_client.js +209 -197
  183. package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
  184. package/build/src/v1beta/completion_service_client.d.ts +144 -144
  185. package/build/src/v1beta/completion_service_client.js +209 -197
  186. package/build/src/v1beta/completion_service_proto_list.json +1 -0
  187. package/build/src/v1beta/control_service_client.d.ts +144 -144
  188. package/build/src/v1beta/control_service_client.js +220 -196
  189. package/build/src/v1beta/control_service_proto_list.json +1 -0
  190. package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
  191. package/build/src/v1beta/conversational_search_service_client.js +308 -208
  192. package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
  193. package/build/src/v1beta/data_store_service_client.d.ts +144 -144
  194. package/build/src/v1beta/data_store_service_client.js +209 -197
  195. package/build/src/v1beta/data_store_service_proto_list.json +1 -0
  196. package/build/src/v1beta/document_service_client.d.ts +144 -144
  197. package/build/src/v1beta/document_service_client.js +227 -197
  198. package/build/src/v1beta/document_service_proto_list.json +1 -0
  199. package/build/src/v1beta/engine_service_client.d.ts +144 -144
  200. package/build/src/v1beta/engine_service_client.js +221 -197
  201. package/build/src/v1beta/engine_service_proto_list.json +1 -0
  202. package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
  203. package/build/src/v1beta/evaluation_service_client.js +203 -197
  204. package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
  205. package/build/src/v1beta/gapic_metadata.json +68 -0
  206. package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
  207. package/build/src/v1beta/grounded_generation_service_client.js +208 -196
  208. package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
  209. package/build/src/v1beta/index.d.ts +1 -0
  210. package/build/src/v1beta/index.js +3 -1
  211. package/build/src/v1beta/project_service_client.d.ts +144 -144
  212. package/build/src/v1beta/project_service_client.js +197 -197
  213. package/build/src/v1beta/project_service_proto_list.json +1 -0
  214. package/build/src/v1beta/rank_service_client.d.ts +144 -144
  215. package/build/src/v1beta/rank_service_client.js +202 -196
  216. package/build/src/v1beta/rank_service_proto_list.json +1 -0
  217. package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
  218. package/build/src/v1beta/recommendation_service_client.js +202 -196
  219. package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
  220. package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
  221. package/build/src/v1beta/sample_query_service_client.js +221 -197
  222. package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
  223. package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
  224. package/build/src/v1beta/sample_query_set_service_client.js +220 -196
  225. package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
  226. package/build/src/v1beta/schema_service_client.d.ts +144 -144
  227. package/build/src/v1beta/schema_service_client.js +203 -197
  228. package/build/src/v1beta/schema_service_proto_list.json +1 -0
  229. package/build/src/v1beta/search_service_client.d.ts +192 -228
  230. package/build/src/v1beta/search_service_client.js +228 -252
  231. package/build/src/v1beta/search_service_proto_list.json +1 -0
  232. package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
  233. package/build/src/v1beta/search_tuning_service_client.js +203 -197
  234. package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
  235. package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
  236. package/build/src/v1beta/serving_config_service_client.js +208 -196
  237. package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
  238. package/build/src/v1beta/session_service_client.d.ts +2266 -0
  239. package/build/src/v1beta/session_service_client.js +3136 -0
  240. package/build/src/v1beta/session_service_client_config.json +63 -0
  241. package/build/src/v1beta/session_service_proto_list.json +45 -0
  242. package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
  243. package/build/src/v1beta/site_search_engine_service_client.js +215 -197
  244. package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
  245. package/build/src/v1beta/user_event_service_client.d.ts +144 -144
  246. package/build/src/v1beta/user_event_service_client.js +209 -197
  247. package/build/src/v1beta/user_event_service_proto_list.json +1 -0
  248. package/package.json +7 -7
  249. package/CHANGELOG.md +0 -274
@@ -176,15 +176,15 @@ class GroundedGenerationServiceClient {
176
176
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
177
177
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
178
178
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
179
- projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
180
179
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
180
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
181
181
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
182
182
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
183
183
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
184
184
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
185
185
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
186
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
187
186
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
187
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
188
188
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
189
189
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
190
190
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -194,8 +194,8 @@ class GroundedGenerationServiceClient {
194
194
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
195
195
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
196
196
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
197
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
198
197
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
198
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
199
199
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
200
200
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
201
201
  sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
@@ -339,6 +339,12 @@ class GroundedGenerationServiceClient {
339
339
  ?.then(([response, options, rawResponse]) => {
340
340
  this._log.info('checkGrounding response %j', response);
341
341
  return [response, options, rawResponse];
342
+ }).catch((error) => {
343
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
344
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
345
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
346
+ }
347
+ throw error;
342
348
  });
343
349
  }
344
350
  /**
@@ -1234,154 +1240,154 @@ class GroundedGenerationServiceClient {
1234
1240
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1235
1241
  }
1236
1242
  /**
1237
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1243
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1238
1244
  *
1239
1245
  * @param {string} project
1240
1246
  * @param {string} location
1241
1247
  * @param {string} collection
1242
1248
  * @param {string} data_store
1243
1249
  * @param {string} session
1250
+ * @param {string} answer
1244
1251
  * @returns {string} Resource name string.
1245
1252
  */
1246
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1247
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1253
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1254
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1248
1255
  project: project,
1249
1256
  location: location,
1250
1257
  collection: collection,
1251
1258
  data_store: dataStore,
1252
1259
  session: session,
1260
+ answer: answer,
1253
1261
  });
1254
1262
  }
1255
1263
  /**
1256
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1264
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1257
1265
  *
1258
- * @param {string} projectLocationCollectionDataStoreSessionName
1259
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1266
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1267
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1260
1268
  * @returns {string} A string representing the project.
1261
1269
  */
1262
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1263
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1270
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1271
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1264
1272
  }
1265
1273
  /**
1266
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1274
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1267
1275
  *
1268
- * @param {string} projectLocationCollectionDataStoreSessionName
1269
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1276
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1277
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1270
1278
  * @returns {string} A string representing the location.
1271
1279
  */
1272
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1273
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1280
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1281
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1274
1282
  }
1275
1283
  /**
1276
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1284
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1277
1285
  *
1278
- * @param {string} projectLocationCollectionDataStoreSessionName
1279
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1286
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1287
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1280
1288
  * @returns {string} A string representing the collection.
1281
1289
  */
1282
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1283
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1290
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1291
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1284
1292
  }
1285
1293
  /**
1286
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1294
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1287
1295
  *
1288
- * @param {string} projectLocationCollectionDataStoreSessionName
1289
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1296
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1297
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1290
1298
  * @returns {string} A string representing the data_store.
1291
1299
  */
1292
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1293
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1300
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1301
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1294
1302
  }
1295
1303
  /**
1296
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1304
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1297
1305
  *
1298
- * @param {string} projectLocationCollectionDataStoreSessionName
1299
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1306
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1307
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1300
1308
  * @returns {string} A string representing the session.
1301
1309
  */
1302
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1303
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1310
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1311
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1304
1312
  }
1305
1313
  /**
1306
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1314
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1315
+ *
1316
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1317
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1318
+ * @returns {string} A string representing the answer.
1319
+ */
1320
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1321
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1322
+ }
1323
+ /**
1324
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1307
1325
  *
1308
1326
  * @param {string} project
1309
1327
  * @param {string} location
1310
1328
  * @param {string} collection
1311
1329
  * @param {string} data_store
1312
1330
  * @param {string} session
1313
- * @param {string} answer
1314
1331
  * @returns {string} Resource name string.
1315
1332
  */
1316
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1317
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1333
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1334
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1318
1335
  project: project,
1319
1336
  location: location,
1320
1337
  collection: collection,
1321
1338
  data_store: dataStore,
1322
1339
  session: session,
1323
- answer: answer,
1324
1340
  });
1325
1341
  }
1326
1342
  /**
1327
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1343
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1328
1344
  *
1329
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1330
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1345
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1346
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1331
1347
  * @returns {string} A string representing the project.
1332
1348
  */
1333
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1334
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1349
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1350
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1335
1351
  }
1336
1352
  /**
1337
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1353
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1338
1354
  *
1339
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1340
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1355
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1356
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1341
1357
  * @returns {string} A string representing the location.
1342
1358
  */
1343
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1344
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1359
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1360
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1345
1361
  }
1346
1362
  /**
1347
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1363
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1348
1364
  *
1349
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1350
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1365
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1366
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1351
1367
  * @returns {string} A string representing the collection.
1352
1368
  */
1353
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1354
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1369
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1370
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1355
1371
  }
1356
1372
  /**
1357
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1373
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1358
1374
  *
1359
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1360
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1375
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1376
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1361
1377
  * @returns {string} A string representing the data_store.
1362
1378
  */
1363
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1364
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1379
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1380
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1365
1381
  }
1366
1382
  /**
1367
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1383
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1368
1384
  *
1369
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1370
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1385
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1386
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1371
1387
  * @returns {string} A string representing the session.
1372
1388
  */
1373
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1374
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1375
- }
1376
- /**
1377
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1378
- *
1379
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1380
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1381
- * @returns {string} A string representing the answer.
1382
- */
1383
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1384
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1389
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1390
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
1385
1391
  }
1386
1392
  /**
1387
1393
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -1717,154 +1723,154 @@ class GroundedGenerationServiceClient {
1717
1723
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1718
1724
  }
1719
1725
  /**
1720
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1726
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1721
1727
  *
1722
1728
  * @param {string} project
1723
1729
  * @param {string} location
1724
1730
  * @param {string} collection
1725
1731
  * @param {string} engine
1726
1732
  * @param {string} session
1733
+ * @param {string} answer
1727
1734
  * @returns {string} Resource name string.
1728
1735
  */
1729
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1730
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1736
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1737
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1731
1738
  project: project,
1732
1739
  location: location,
1733
1740
  collection: collection,
1734
1741
  engine: engine,
1735
1742
  session: session,
1743
+ answer: answer,
1736
1744
  });
1737
1745
  }
1738
1746
  /**
1739
- * Parse the project from ProjectLocationCollectionEngineSession resource.
1747
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1740
1748
  *
1741
- * @param {string} projectLocationCollectionEngineSessionName
1742
- * A fully-qualified path representing project_location_collection_engine_session resource.
1749
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1750
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1743
1751
  * @returns {string} A string representing the project.
1744
1752
  */
1745
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1746
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1753
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1754
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1747
1755
  }
1748
1756
  /**
1749
- * Parse the location from ProjectLocationCollectionEngineSession resource.
1757
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1750
1758
  *
1751
- * @param {string} projectLocationCollectionEngineSessionName
1752
- * A fully-qualified path representing project_location_collection_engine_session resource.
1759
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1760
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1753
1761
  * @returns {string} A string representing the location.
1754
1762
  */
1755
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1756
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1763
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1764
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1757
1765
  }
1758
1766
  /**
1759
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
1767
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1760
1768
  *
1761
- * @param {string} projectLocationCollectionEngineSessionName
1762
- * A fully-qualified path representing project_location_collection_engine_session resource.
1769
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1770
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1763
1771
  * @returns {string} A string representing the collection.
1764
1772
  */
1765
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1766
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1773
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1774
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1767
1775
  }
1768
1776
  /**
1769
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
1777
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1770
1778
  *
1771
- * @param {string} projectLocationCollectionEngineSessionName
1772
- * A fully-qualified path representing project_location_collection_engine_session resource.
1779
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1780
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1773
1781
  * @returns {string} A string representing the engine.
1774
1782
  */
1775
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1776
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1783
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1784
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1777
1785
  }
1778
1786
  /**
1779
- * Parse the session from ProjectLocationCollectionEngineSession resource.
1787
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1780
1788
  *
1781
- * @param {string} projectLocationCollectionEngineSessionName
1782
- * A fully-qualified path representing project_location_collection_engine_session resource.
1789
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1790
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1783
1791
  * @returns {string} A string representing the session.
1784
1792
  */
1785
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1786
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1793
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1794
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1787
1795
  }
1788
1796
  /**
1789
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1797
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1798
+ *
1799
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1800
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1801
+ * @returns {string} A string representing the answer.
1802
+ */
1803
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1804
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1805
+ }
1806
+ /**
1807
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
1790
1808
  *
1791
1809
  * @param {string} project
1792
1810
  * @param {string} location
1793
1811
  * @param {string} collection
1794
1812
  * @param {string} engine
1795
1813
  * @param {string} session
1796
- * @param {string} answer
1797
1814
  * @returns {string} Resource name string.
1798
1815
  */
1799
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1800
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1816
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
1817
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
1801
1818
  project: project,
1802
1819
  location: location,
1803
1820
  collection: collection,
1804
1821
  engine: engine,
1805
1822
  session: session,
1806
- answer: answer,
1807
1823
  });
1808
1824
  }
1809
1825
  /**
1810
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1826
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
1811
1827
  *
1812
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1813
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1828
+ * @param {string} projectLocationCollectionEngineSessionsName
1829
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1814
1830
  * @returns {string} A string representing the project.
1815
1831
  */
1816
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1817
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1832
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1833
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
1818
1834
  }
1819
1835
  /**
1820
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1836
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
1821
1837
  *
1822
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1823
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1838
+ * @param {string} projectLocationCollectionEngineSessionsName
1839
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1824
1840
  * @returns {string} A string representing the location.
1825
1841
  */
1826
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1827
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1842
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1843
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
1828
1844
  }
1829
1845
  /**
1830
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1846
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
1831
1847
  *
1832
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1833
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1848
+ * @param {string} projectLocationCollectionEngineSessionsName
1849
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1834
1850
  * @returns {string} A string representing the collection.
1835
1851
  */
1836
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1837
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1852
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1853
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
1838
1854
  }
1839
1855
  /**
1840
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1856
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
1841
1857
  *
1842
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1843
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1858
+ * @param {string} projectLocationCollectionEngineSessionsName
1859
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1844
1860
  * @returns {string} A string representing the engine.
1845
1861
  */
1846
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1847
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1862
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1863
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
1848
1864
  }
1849
1865
  /**
1850
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1866
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
1851
1867
  *
1852
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1853
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1868
+ * @param {string} projectLocationCollectionEngineSessionsName
1869
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1854
1870
  * @returns {string} A string representing the session.
1855
1871
  */
1856
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1857
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1858
- }
1859
- /**
1860
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1861
- *
1862
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1863
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1864
- * @returns {string} A string representing the answer.
1865
- */
1866
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1867
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1872
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1873
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
1868
1874
  }
1869
1875
  /**
1870
1876
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -2391,63 +2397,6 @@ class GroundedGenerationServiceClient {
2391
2397
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2392
2398
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2393
2399
  }
2394
- /**
2395
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
2396
- *
2397
- * @param {string} project
2398
- * @param {string} location
2399
- * @param {string} data_store
2400
- * @param {string} session
2401
- * @returns {string} Resource name string.
2402
- */
2403
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2404
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2405
- project: project,
2406
- location: location,
2407
- data_store: dataStore,
2408
- session: session,
2409
- });
2410
- }
2411
- /**
2412
- * Parse the project from ProjectLocationDataStoreSession resource.
2413
- *
2414
- * @param {string} projectLocationDataStoreSessionName
2415
- * A fully-qualified path representing project_location_data_store_session resource.
2416
- * @returns {string} A string representing the project.
2417
- */
2418
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2419
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2420
- }
2421
- /**
2422
- * Parse the location from ProjectLocationDataStoreSession resource.
2423
- *
2424
- * @param {string} projectLocationDataStoreSessionName
2425
- * A fully-qualified path representing project_location_data_store_session resource.
2426
- * @returns {string} A string representing the location.
2427
- */
2428
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2429
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2430
- }
2431
- /**
2432
- * Parse the data_store from ProjectLocationDataStoreSession resource.
2433
- *
2434
- * @param {string} projectLocationDataStoreSessionName
2435
- * A fully-qualified path representing project_location_data_store_session resource.
2436
- * @returns {string} A string representing the data_store.
2437
- */
2438
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2439
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2440
- }
2441
- /**
2442
- * Parse the session from ProjectLocationDataStoreSession resource.
2443
- *
2444
- * @param {string} projectLocationDataStoreSessionName
2445
- * A fully-qualified path representing project_location_data_store_session resource.
2446
- * @returns {string} A string representing the session.
2447
- */
2448
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2449
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2450
- }
2451
2400
  /**
2452
2401
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2453
2402
  *
@@ -2517,6 +2466,63 @@ class GroundedGenerationServiceClient {
2517
2466
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2518
2467
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2519
2468
  }
2469
+ /**
2470
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
2471
+ *
2472
+ * @param {string} project
2473
+ * @param {string} location
2474
+ * @param {string} data_store
2475
+ * @param {string} session
2476
+ * @returns {string} Resource name string.
2477
+ */
2478
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
2479
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
2480
+ project: project,
2481
+ location: location,
2482
+ data_store: dataStore,
2483
+ session: session,
2484
+ });
2485
+ }
2486
+ /**
2487
+ * Parse the project from ProjectLocationDataStoreSessions resource.
2488
+ *
2489
+ * @param {string} projectLocationDataStoreSessionsName
2490
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2491
+ * @returns {string} A string representing the project.
2492
+ */
2493
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2494
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
2495
+ }
2496
+ /**
2497
+ * Parse the location from ProjectLocationDataStoreSessions resource.
2498
+ *
2499
+ * @param {string} projectLocationDataStoreSessionsName
2500
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2501
+ * @returns {string} A string representing the location.
2502
+ */
2503
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2504
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
2505
+ }
2506
+ /**
2507
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
2508
+ *
2509
+ * @param {string} projectLocationDataStoreSessionsName
2510
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2511
+ * @returns {string} A string representing the data_store.
2512
+ */
2513
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2514
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
2515
+ }
2516
+ /**
2517
+ * Parse the session from ProjectLocationDataStoreSessions resource.
2518
+ *
2519
+ * @param {string} projectLocationDataStoreSessionsName
2520
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2521
+ * @returns {string} A string representing the session.
2522
+ */
2523
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2524
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
2525
+ }
2520
2526
  /**
2521
2527
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2522
2528
  *
@@ -41,6 +41,7 @@
41
41
  "../../protos/google/cloud/discoveryengine/v1alpha/serving_config.proto",
42
42
  "../../protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto",
43
43
  "../../protos/google/cloud/discoveryengine/v1alpha/session.proto",
44
+ "../../protos/google/cloud/discoveryengine/v1alpha/session_service.proto",
44
45
  "../../protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto",
45
46
  "../../protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto",
46
47
  "../../protos/google/cloud/discoveryengine/v1alpha/user_event.proto",