@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
@@ -177,16 +177,16 @@ class GroundedGenerationServiceClient {
177
177
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
178
178
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
179
179
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
180
- projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
181
180
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
181
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
182
182
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
183
183
  projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
184
184
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
185
185
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
186
186
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
187
187
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
188
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
189
188
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
189
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
190
190
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
191
191
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
192
192
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -196,8 +196,8 @@ class GroundedGenerationServiceClient {
196
196
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
197
197
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
198
198
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
199
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
200
199
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
200
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
201
201
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
202
202
  projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
203
203
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
@@ -355,6 +355,12 @@ class GroundedGenerationServiceClient {
355
355
  ?.then(([response, options, rawResponse]) => {
356
356
  this._log.info('generateGroundedContent response %j', response);
357
357
  return [response, options, rawResponse];
358
+ }).catch((error) => {
359
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
360
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
361
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
362
+ }
363
+ throw error;
358
364
  });
359
365
  }
360
366
  checkGrounding(request, optionsOrCallback, callback) {
@@ -385,6 +391,12 @@ class GroundedGenerationServiceClient {
385
391
  ?.then(([response, options, rawResponse]) => {
386
392
  this._log.info('checkGrounding response %j', response);
387
393
  return [response, options, rawResponse];
394
+ }).catch((error) => {
395
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
396
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
397
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
398
+ }
399
+ throw error;
388
400
  });
389
401
  }
390
402
  /**
@@ -1299,154 +1311,154 @@ class GroundedGenerationServiceClient {
1299
1311
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1300
1312
  }
1301
1313
  /**
1302
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1314
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1303
1315
  *
1304
1316
  * @param {string} project
1305
1317
  * @param {string} location
1306
1318
  * @param {string} collection
1307
1319
  * @param {string} data_store
1308
1320
  * @param {string} session
1321
+ * @param {string} answer
1309
1322
  * @returns {string} Resource name string.
1310
1323
  */
1311
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1312
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1324
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1325
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1313
1326
  project: project,
1314
1327
  location: location,
1315
1328
  collection: collection,
1316
1329
  data_store: dataStore,
1317
1330
  session: session,
1331
+ answer: answer,
1318
1332
  });
1319
1333
  }
1320
1334
  /**
1321
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1335
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1322
1336
  *
1323
- * @param {string} projectLocationCollectionDataStoreSessionName
1324
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1337
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1338
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1325
1339
  * @returns {string} A string representing the project.
1326
1340
  */
1327
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1328
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1341
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1342
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1329
1343
  }
1330
1344
  /**
1331
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1345
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1332
1346
  *
1333
- * @param {string} projectLocationCollectionDataStoreSessionName
1334
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1347
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1348
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1335
1349
  * @returns {string} A string representing the location.
1336
1350
  */
1337
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1338
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1351
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1352
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1339
1353
  }
1340
1354
  /**
1341
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1355
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1342
1356
  *
1343
- * @param {string} projectLocationCollectionDataStoreSessionName
1344
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1357
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1358
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1345
1359
  * @returns {string} A string representing the collection.
1346
1360
  */
1347
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1348
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1361
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1362
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1349
1363
  }
1350
1364
  /**
1351
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1365
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1352
1366
  *
1353
- * @param {string} projectLocationCollectionDataStoreSessionName
1354
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1367
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1368
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1355
1369
  * @returns {string} A string representing the data_store.
1356
1370
  */
1357
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1358
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1371
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1372
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1359
1373
  }
1360
1374
  /**
1361
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1375
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1362
1376
  *
1363
- * @param {string} projectLocationCollectionDataStoreSessionName
1364
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1377
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1378
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1365
1379
  * @returns {string} A string representing the session.
1366
1380
  */
1367
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1368
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1381
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1382
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1369
1383
  }
1370
1384
  /**
1371
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1385
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1386
+ *
1387
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1388
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1389
+ * @returns {string} A string representing the answer.
1390
+ */
1391
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1392
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1393
+ }
1394
+ /**
1395
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1372
1396
  *
1373
1397
  * @param {string} project
1374
1398
  * @param {string} location
1375
1399
  * @param {string} collection
1376
1400
  * @param {string} data_store
1377
1401
  * @param {string} session
1378
- * @param {string} answer
1379
1402
  * @returns {string} Resource name string.
1380
1403
  */
1381
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1382
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1404
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1405
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1383
1406
  project: project,
1384
1407
  location: location,
1385
1408
  collection: collection,
1386
1409
  data_store: dataStore,
1387
1410
  session: session,
1388
- answer: answer,
1389
1411
  });
1390
1412
  }
1391
1413
  /**
1392
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1414
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1393
1415
  *
1394
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1395
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1416
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1417
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1396
1418
  * @returns {string} A string representing the project.
1397
1419
  */
1398
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1399
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1420
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1421
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1400
1422
  }
1401
1423
  /**
1402
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1424
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1403
1425
  *
1404
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1405
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1426
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1427
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1406
1428
  * @returns {string} A string representing the location.
1407
1429
  */
1408
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1409
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1430
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1431
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1410
1432
  }
1411
1433
  /**
1412
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1434
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1413
1435
  *
1414
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1415
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1436
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1437
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1416
1438
  * @returns {string} A string representing the collection.
1417
1439
  */
1418
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1419
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1440
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1441
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1420
1442
  }
1421
1443
  /**
1422
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1444
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1423
1445
  *
1424
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1425
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1446
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1447
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1426
1448
  * @returns {string} A string representing the data_store.
1427
1449
  */
1428
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1429
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1450
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1451
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1430
1452
  }
1431
1453
  /**
1432
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1454
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1433
1455
  *
1434
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1435
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1456
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1457
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1436
1458
  * @returns {string} A string representing the session.
1437
1459
  */
1438
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1439
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1440
- }
1441
- /**
1442
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1443
- *
1444
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1445
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1446
- * @returns {string} A string representing the answer.
1447
- */
1448
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1449
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1460
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1461
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
1450
1462
  }
1451
1463
  /**
1452
1464
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -1851,154 +1863,154 @@ class GroundedGenerationServiceClient {
1851
1863
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1852
1864
  }
1853
1865
  /**
1854
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1866
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1855
1867
  *
1856
1868
  * @param {string} project
1857
1869
  * @param {string} location
1858
1870
  * @param {string} collection
1859
1871
  * @param {string} engine
1860
1872
  * @param {string} session
1873
+ * @param {string} answer
1861
1874
  * @returns {string} Resource name string.
1862
1875
  */
1863
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1864
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1876
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1877
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1865
1878
  project: project,
1866
1879
  location: location,
1867
1880
  collection: collection,
1868
1881
  engine: engine,
1869
1882
  session: session,
1883
+ answer: answer,
1870
1884
  });
1871
1885
  }
1872
1886
  /**
1873
- * Parse the project from ProjectLocationCollectionEngineSession resource.
1887
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1874
1888
  *
1875
- * @param {string} projectLocationCollectionEngineSessionName
1876
- * A fully-qualified path representing project_location_collection_engine_session resource.
1889
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1890
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1877
1891
  * @returns {string} A string representing the project.
1878
1892
  */
1879
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1880
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1893
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1894
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1881
1895
  }
1882
1896
  /**
1883
- * Parse the location from ProjectLocationCollectionEngineSession resource.
1897
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1884
1898
  *
1885
- * @param {string} projectLocationCollectionEngineSessionName
1886
- * A fully-qualified path representing project_location_collection_engine_session resource.
1899
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1900
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1887
1901
  * @returns {string} A string representing the location.
1888
1902
  */
1889
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1890
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1903
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1904
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1891
1905
  }
1892
1906
  /**
1893
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
1907
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1894
1908
  *
1895
- * @param {string} projectLocationCollectionEngineSessionName
1896
- * A fully-qualified path representing project_location_collection_engine_session resource.
1909
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1910
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1897
1911
  * @returns {string} A string representing the collection.
1898
1912
  */
1899
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1900
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1913
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1914
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1901
1915
  }
1902
1916
  /**
1903
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
1917
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1904
1918
  *
1905
- * @param {string} projectLocationCollectionEngineSessionName
1906
- * A fully-qualified path representing project_location_collection_engine_session resource.
1919
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1920
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1907
1921
  * @returns {string} A string representing the engine.
1908
1922
  */
1909
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1910
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1923
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1924
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1911
1925
  }
1912
1926
  /**
1913
- * Parse the session from ProjectLocationCollectionEngineSession resource.
1927
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1914
1928
  *
1915
- * @param {string} projectLocationCollectionEngineSessionName
1916
- * A fully-qualified path representing project_location_collection_engine_session resource.
1929
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1930
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1917
1931
  * @returns {string} A string representing the session.
1918
1932
  */
1919
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1920
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1933
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1934
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1921
1935
  }
1922
1936
  /**
1923
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1937
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1938
+ *
1939
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1940
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1941
+ * @returns {string} A string representing the answer.
1942
+ */
1943
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1944
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1945
+ }
1946
+ /**
1947
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
1924
1948
  *
1925
1949
  * @param {string} project
1926
1950
  * @param {string} location
1927
1951
  * @param {string} collection
1928
1952
  * @param {string} engine
1929
1953
  * @param {string} session
1930
- * @param {string} answer
1931
1954
  * @returns {string} Resource name string.
1932
1955
  */
1933
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1934
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1956
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
1957
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
1935
1958
  project: project,
1936
1959
  location: location,
1937
1960
  collection: collection,
1938
1961
  engine: engine,
1939
1962
  session: session,
1940
- answer: answer,
1941
1963
  });
1942
1964
  }
1943
1965
  /**
1944
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1966
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
1945
1967
  *
1946
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1947
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1968
+ * @param {string} projectLocationCollectionEngineSessionsName
1969
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1948
1970
  * @returns {string} A string representing the project.
1949
1971
  */
1950
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1951
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1972
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1973
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
1952
1974
  }
1953
1975
  /**
1954
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1976
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
1955
1977
  *
1956
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1957
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1978
+ * @param {string} projectLocationCollectionEngineSessionsName
1979
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1958
1980
  * @returns {string} A string representing the location.
1959
1981
  */
1960
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1961
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1982
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1983
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
1962
1984
  }
1963
1985
  /**
1964
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1986
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
1965
1987
  *
1966
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1967
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1988
+ * @param {string} projectLocationCollectionEngineSessionsName
1989
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1968
1990
  * @returns {string} A string representing the collection.
1969
1991
  */
1970
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1971
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1992
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
1993
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
1972
1994
  }
1973
1995
  /**
1974
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1996
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
1975
1997
  *
1976
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1977
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1998
+ * @param {string} projectLocationCollectionEngineSessionsName
1999
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1978
2000
  * @returns {string} A string representing the engine.
1979
2001
  */
1980
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1981
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2002
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2003
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
1982
2004
  }
1983
2005
  /**
1984
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2006
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
1985
2007
  *
1986
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1987
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2008
+ * @param {string} projectLocationCollectionEngineSessionsName
2009
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
1988
2010
  * @returns {string} A string representing the session.
1989
2011
  */
1990
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1991
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1992
- }
1993
- /**
1994
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1995
- *
1996
- * @param {string} projectLocationCollectionEngineSessionAnswerName
1997
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1998
- * @returns {string} A string representing the answer.
1999
- */
2000
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2001
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2012
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2013
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2002
2014
  }
2003
2015
  /**
2004
2016
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -2525,63 +2537,6 @@ class GroundedGenerationServiceClient {
2525
2537
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2526
2538
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2527
2539
  }
2528
- /**
2529
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
2530
- *
2531
- * @param {string} project
2532
- * @param {string} location
2533
- * @param {string} data_store
2534
- * @param {string} session
2535
- * @returns {string} Resource name string.
2536
- */
2537
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2538
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2539
- project: project,
2540
- location: location,
2541
- data_store: dataStore,
2542
- session: session,
2543
- });
2544
- }
2545
- /**
2546
- * Parse the project from ProjectLocationDataStoreSession resource.
2547
- *
2548
- * @param {string} projectLocationDataStoreSessionName
2549
- * A fully-qualified path representing project_location_data_store_session resource.
2550
- * @returns {string} A string representing the project.
2551
- */
2552
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2553
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2554
- }
2555
- /**
2556
- * Parse the location from ProjectLocationDataStoreSession resource.
2557
- *
2558
- * @param {string} projectLocationDataStoreSessionName
2559
- * A fully-qualified path representing project_location_data_store_session resource.
2560
- * @returns {string} A string representing the location.
2561
- */
2562
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2563
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2564
- }
2565
- /**
2566
- * Parse the data_store from ProjectLocationDataStoreSession resource.
2567
- *
2568
- * @param {string} projectLocationDataStoreSessionName
2569
- * A fully-qualified path representing project_location_data_store_session resource.
2570
- * @returns {string} A string representing the data_store.
2571
- */
2572
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2573
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2574
- }
2575
- /**
2576
- * Parse the session from ProjectLocationDataStoreSession resource.
2577
- *
2578
- * @param {string} projectLocationDataStoreSessionName
2579
- * A fully-qualified path representing project_location_data_store_session resource.
2580
- * @returns {string} A string representing the session.
2581
- */
2582
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2583
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2584
- }
2585
2540
  /**
2586
2541
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2587
2542
  *
@@ -2651,6 +2606,63 @@ class GroundedGenerationServiceClient {
2651
2606
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2652
2607
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2653
2608
  }
2609
+ /**
2610
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
2611
+ *
2612
+ * @param {string} project
2613
+ * @param {string} location
2614
+ * @param {string} data_store
2615
+ * @param {string} session
2616
+ * @returns {string} Resource name string.
2617
+ */
2618
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
2619
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
2620
+ project: project,
2621
+ location: location,
2622
+ data_store: dataStore,
2623
+ session: session,
2624
+ });
2625
+ }
2626
+ /**
2627
+ * Parse the project from ProjectLocationDataStoreSessions resource.
2628
+ *
2629
+ * @param {string} projectLocationDataStoreSessionsName
2630
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2631
+ * @returns {string} A string representing the project.
2632
+ */
2633
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2634
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
2635
+ }
2636
+ /**
2637
+ * Parse the location from ProjectLocationDataStoreSessions resource.
2638
+ *
2639
+ * @param {string} projectLocationDataStoreSessionsName
2640
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2641
+ * @returns {string} A string representing the location.
2642
+ */
2643
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2644
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
2645
+ }
2646
+ /**
2647
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
2648
+ *
2649
+ * @param {string} projectLocationDataStoreSessionsName
2650
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2651
+ * @returns {string} A string representing the data_store.
2652
+ */
2653
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2654
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
2655
+ }
2656
+ /**
2657
+ * Parse the session from ProjectLocationDataStoreSessions resource.
2658
+ *
2659
+ * @param {string} projectLocationDataStoreSessionsName
2660
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2661
+ * @returns {string} A string representing the session.
2662
+ */
2663
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2664
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
2665
+ }
2654
2666
  /**
2655
2667
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2656
2668
  *