@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 SearchTuningServiceClient {
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,14 +194,14 @@ class SearchTuningServiceClient {
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}'),
202
202
  sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
203
203
  };
204
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
204
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
205
205
  // This API contains "long-running operations", which return a
206
206
  // an Operation object that allows for tracking of the operation,
207
207
  // rather than holding a request open.
@@ -361,6 +361,12 @@ class SearchTuningServiceClient {
361
361
  ?.then(([response, options, rawResponse]) => {
362
362
  this._log.info('listCustomModels response %j', response);
363
363
  return [response, options, rawResponse];
364
+ }).catch((error) => {
365
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
366
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
367
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
368
+ }
369
+ throw error;
364
370
  });
365
371
  }
366
372
  trainCustomModel(request, optionsOrCallback, callback) {
@@ -1439,154 +1445,154 @@ class SearchTuningServiceClient {
1439
1445
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1440
1446
  }
1441
1447
  /**
1442
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1448
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1443
1449
  *
1444
1450
  * @param {string} project
1445
1451
  * @param {string} location
1446
1452
  * @param {string} collection
1447
1453
  * @param {string} data_store
1448
1454
  * @param {string} session
1455
+ * @param {string} answer
1449
1456
  * @returns {string} Resource name string.
1450
1457
  */
1451
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1452
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1458
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1459
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1453
1460
  project: project,
1454
1461
  location: location,
1455
1462
  collection: collection,
1456
1463
  data_store: dataStore,
1457
1464
  session: session,
1465
+ answer: answer,
1458
1466
  });
1459
1467
  }
1460
1468
  /**
1461
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1469
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1462
1470
  *
1463
- * @param {string} projectLocationCollectionDataStoreSessionName
1464
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1471
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1472
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1465
1473
  * @returns {string} A string representing the project.
1466
1474
  */
1467
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1468
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1475
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1476
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1469
1477
  }
1470
1478
  /**
1471
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1479
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1472
1480
  *
1473
- * @param {string} projectLocationCollectionDataStoreSessionName
1474
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1481
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1482
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1475
1483
  * @returns {string} A string representing the location.
1476
1484
  */
1477
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1478
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1485
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1486
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1479
1487
  }
1480
1488
  /**
1481
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1489
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1482
1490
  *
1483
- * @param {string} projectLocationCollectionDataStoreSessionName
1484
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1491
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1492
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1485
1493
  * @returns {string} A string representing the collection.
1486
1494
  */
1487
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1488
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1495
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1496
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1489
1497
  }
1490
1498
  /**
1491
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1499
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1492
1500
  *
1493
- * @param {string} projectLocationCollectionDataStoreSessionName
1494
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1501
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1502
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1495
1503
  * @returns {string} A string representing the data_store.
1496
1504
  */
1497
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1498
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1505
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1506
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1499
1507
  }
1500
1508
  /**
1501
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1509
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1502
1510
  *
1503
- * @param {string} projectLocationCollectionDataStoreSessionName
1504
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1511
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1512
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1505
1513
  * @returns {string} A string representing the session.
1506
1514
  */
1507
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1508
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1515
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1516
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1509
1517
  }
1510
1518
  /**
1511
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1519
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1520
+ *
1521
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1522
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1523
+ * @returns {string} A string representing the answer.
1524
+ */
1525
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1526
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1527
+ }
1528
+ /**
1529
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1512
1530
  *
1513
1531
  * @param {string} project
1514
1532
  * @param {string} location
1515
1533
  * @param {string} collection
1516
1534
  * @param {string} data_store
1517
1535
  * @param {string} session
1518
- * @param {string} answer
1519
1536
  * @returns {string} Resource name string.
1520
1537
  */
1521
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1522
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1538
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1539
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1523
1540
  project: project,
1524
1541
  location: location,
1525
1542
  collection: collection,
1526
1543
  data_store: dataStore,
1527
1544
  session: session,
1528
- answer: answer,
1529
1545
  });
1530
1546
  }
1531
1547
  /**
1532
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1548
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1533
1549
  *
1534
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1535
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1550
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1551
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1536
1552
  * @returns {string} A string representing the project.
1537
1553
  */
1538
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1539
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1554
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1555
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1540
1556
  }
1541
1557
  /**
1542
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1558
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1543
1559
  *
1544
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1545
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1560
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1561
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1546
1562
  * @returns {string} A string representing the location.
1547
1563
  */
1548
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1549
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1564
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1565
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1550
1566
  }
1551
1567
  /**
1552
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1568
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1553
1569
  *
1554
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1555
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1570
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1571
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1556
1572
  * @returns {string} A string representing the collection.
1557
1573
  */
1558
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1559
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1574
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1575
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1560
1576
  }
1561
1577
  /**
1562
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1578
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1563
1579
  *
1564
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1565
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1580
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1581
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1566
1582
  * @returns {string} A string representing the data_store.
1567
1583
  */
1568
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1569
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1584
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1585
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1570
1586
  }
1571
1587
  /**
1572
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1588
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1573
1589
  *
1574
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1575
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1590
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1591
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1576
1592
  * @returns {string} A string representing the session.
1577
1593
  */
1578
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1579
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1580
- }
1581
- /**
1582
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1583
- *
1584
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1585
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1586
- * @returns {string} A string representing the answer.
1587
- */
1588
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1589
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1594
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1595
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
1590
1596
  }
1591
1597
  /**
1592
1598
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -1922,154 +1928,154 @@ class SearchTuningServiceClient {
1922
1928
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1923
1929
  }
1924
1930
  /**
1925
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1931
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1926
1932
  *
1927
1933
  * @param {string} project
1928
1934
  * @param {string} location
1929
1935
  * @param {string} collection
1930
1936
  * @param {string} engine
1931
1937
  * @param {string} session
1938
+ * @param {string} answer
1932
1939
  * @returns {string} Resource name string.
1933
1940
  */
1934
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1935
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1941
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1942
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1936
1943
  project: project,
1937
1944
  location: location,
1938
1945
  collection: collection,
1939
1946
  engine: engine,
1940
1947
  session: session,
1948
+ answer: answer,
1941
1949
  });
1942
1950
  }
1943
1951
  /**
1944
- * Parse the project from ProjectLocationCollectionEngineSession resource.
1952
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1945
1953
  *
1946
- * @param {string} projectLocationCollectionEngineSessionName
1947
- * A fully-qualified path representing project_location_collection_engine_session resource.
1954
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1955
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1948
1956
  * @returns {string} A string representing the project.
1949
1957
  */
1950
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1951
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1958
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1959
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1952
1960
  }
1953
1961
  /**
1954
- * Parse the location from ProjectLocationCollectionEngineSession resource.
1962
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1955
1963
  *
1956
- * @param {string} projectLocationCollectionEngineSessionName
1957
- * A fully-qualified path representing project_location_collection_engine_session resource.
1964
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1965
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1958
1966
  * @returns {string} A string representing the location.
1959
1967
  */
1960
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1961
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1968
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1969
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1962
1970
  }
1963
1971
  /**
1964
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
1972
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1965
1973
  *
1966
- * @param {string} projectLocationCollectionEngineSessionName
1967
- * A fully-qualified path representing project_location_collection_engine_session resource.
1974
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1975
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1968
1976
  * @returns {string} A string representing the collection.
1969
1977
  */
1970
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1971
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1978
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1979
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1972
1980
  }
1973
1981
  /**
1974
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
1982
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1975
1983
  *
1976
- * @param {string} projectLocationCollectionEngineSessionName
1977
- * A fully-qualified path representing project_location_collection_engine_session resource.
1984
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1985
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1978
1986
  * @returns {string} A string representing the engine.
1979
1987
  */
1980
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1981
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1988
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1989
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1982
1990
  }
1983
1991
  /**
1984
- * Parse the session from ProjectLocationCollectionEngineSession resource.
1992
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1985
1993
  *
1986
- * @param {string} projectLocationCollectionEngineSessionName
1987
- * A fully-qualified path representing project_location_collection_engine_session resource.
1994
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1995
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1988
1996
  * @returns {string} A string representing the session.
1989
1997
  */
1990
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1991
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1998
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1999
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1992
2000
  }
1993
2001
  /**
1994
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2002
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2003
+ *
2004
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2005
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2006
+ * @returns {string} A string representing the answer.
2007
+ */
2008
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2009
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2010
+ }
2011
+ /**
2012
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
1995
2013
  *
1996
2014
  * @param {string} project
1997
2015
  * @param {string} location
1998
2016
  * @param {string} collection
1999
2017
  * @param {string} engine
2000
2018
  * @param {string} session
2001
- * @param {string} answer
2002
2019
  * @returns {string} Resource name string.
2003
2020
  */
2004
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2005
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2021
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2022
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2006
2023
  project: project,
2007
2024
  location: location,
2008
2025
  collection: collection,
2009
2026
  engine: engine,
2010
2027
  session: session,
2011
- answer: answer,
2012
2028
  });
2013
2029
  }
2014
2030
  /**
2015
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2031
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2016
2032
  *
2017
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2018
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2033
+ * @param {string} projectLocationCollectionEngineSessionsName
2034
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2019
2035
  * @returns {string} A string representing the project.
2020
2036
  */
2021
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2022
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2037
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2038
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2023
2039
  }
2024
2040
  /**
2025
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2041
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2026
2042
  *
2027
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2028
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2043
+ * @param {string} projectLocationCollectionEngineSessionsName
2044
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2029
2045
  * @returns {string} A string representing the location.
2030
2046
  */
2031
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2032
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2047
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2048
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2033
2049
  }
2034
2050
  /**
2035
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2051
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2036
2052
  *
2037
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2038
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2053
+ * @param {string} projectLocationCollectionEngineSessionsName
2054
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2039
2055
  * @returns {string} A string representing the collection.
2040
2056
  */
2041
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2042
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2057
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2058
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2043
2059
  }
2044
2060
  /**
2045
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2061
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2046
2062
  *
2047
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2048
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2063
+ * @param {string} projectLocationCollectionEngineSessionsName
2064
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2049
2065
  * @returns {string} A string representing the engine.
2050
2066
  */
2051
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2052
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2067
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2068
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2053
2069
  }
2054
2070
  /**
2055
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2071
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2056
2072
  *
2057
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2058
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2073
+ * @param {string} projectLocationCollectionEngineSessionsName
2074
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2059
2075
  * @returns {string} A string representing the session.
2060
2076
  */
2061
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2062
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2063
- }
2064
- /**
2065
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2066
- *
2067
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2068
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2069
- * @returns {string} A string representing the answer.
2070
- */
2071
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2072
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2077
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2078
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2073
2079
  }
2074
2080
  /**
2075
2081
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -2596,63 +2602,6 @@ class SearchTuningServiceClient {
2596
2602
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2597
2603
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2598
2604
  }
2599
- /**
2600
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
2601
- *
2602
- * @param {string} project
2603
- * @param {string} location
2604
- * @param {string} data_store
2605
- * @param {string} session
2606
- * @returns {string} Resource name string.
2607
- */
2608
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2609
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2610
- project: project,
2611
- location: location,
2612
- data_store: dataStore,
2613
- session: session,
2614
- });
2615
- }
2616
- /**
2617
- * Parse the project from ProjectLocationDataStoreSession resource.
2618
- *
2619
- * @param {string} projectLocationDataStoreSessionName
2620
- * A fully-qualified path representing project_location_data_store_session resource.
2621
- * @returns {string} A string representing the project.
2622
- */
2623
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2624
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2625
- }
2626
- /**
2627
- * Parse the location from ProjectLocationDataStoreSession resource.
2628
- *
2629
- * @param {string} projectLocationDataStoreSessionName
2630
- * A fully-qualified path representing project_location_data_store_session resource.
2631
- * @returns {string} A string representing the location.
2632
- */
2633
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2634
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2635
- }
2636
- /**
2637
- * Parse the data_store from ProjectLocationDataStoreSession resource.
2638
- *
2639
- * @param {string} projectLocationDataStoreSessionName
2640
- * A fully-qualified path representing project_location_data_store_session resource.
2641
- * @returns {string} A string representing the data_store.
2642
- */
2643
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2644
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2645
- }
2646
- /**
2647
- * Parse the session from ProjectLocationDataStoreSession resource.
2648
- *
2649
- * @param {string} projectLocationDataStoreSessionName
2650
- * A fully-qualified path representing project_location_data_store_session resource.
2651
- * @returns {string} A string representing the session.
2652
- */
2653
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2654
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2655
- }
2656
2605
  /**
2657
2606
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2658
2607
  *
@@ -2722,6 +2671,63 @@ class SearchTuningServiceClient {
2722
2671
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2723
2672
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2724
2673
  }
2674
+ /**
2675
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
2676
+ *
2677
+ * @param {string} project
2678
+ * @param {string} location
2679
+ * @param {string} data_store
2680
+ * @param {string} session
2681
+ * @returns {string} Resource name string.
2682
+ */
2683
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
2684
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
2685
+ project: project,
2686
+ location: location,
2687
+ data_store: dataStore,
2688
+ session: session,
2689
+ });
2690
+ }
2691
+ /**
2692
+ * Parse the project from ProjectLocationDataStoreSessions resource.
2693
+ *
2694
+ * @param {string} projectLocationDataStoreSessionsName
2695
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2696
+ * @returns {string} A string representing the project.
2697
+ */
2698
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2699
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
2700
+ }
2701
+ /**
2702
+ * Parse the location from ProjectLocationDataStoreSessions resource.
2703
+ *
2704
+ * @param {string} projectLocationDataStoreSessionsName
2705
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2706
+ * @returns {string} A string representing the location.
2707
+ */
2708
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2709
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
2710
+ }
2711
+ /**
2712
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
2713
+ *
2714
+ * @param {string} projectLocationDataStoreSessionsName
2715
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2716
+ * @returns {string} A string representing the data_store.
2717
+ */
2718
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2719
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
2720
+ }
2721
+ /**
2722
+ * Parse the session from ProjectLocationDataStoreSessions resource.
2723
+ *
2724
+ * @param {string} projectLocationDataStoreSessionsName
2725
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2726
+ * @returns {string} A string representing the session.
2727
+ */
2728
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2729
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
2730
+ }
2725
2731
  /**
2726
2732
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2727
2733
  *