@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
@@ -178,15 +178,15 @@ class EngineServiceClient {
178
178
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
179
179
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
180
180
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
181
- projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
182
181
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
182
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
183
183
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
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 EngineServiceClient {
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
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
203
203
  sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
@@ -209,7 +209,7 @@ class EngineServiceClient {
209
209
  this.descriptors.page = {
210
210
  listEngines: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'engines')
211
211
  };
212
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
212
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
213
213
  // This API contains "long-running operations", which return a
214
214
  // an Operation object that allows for tracking of the operation,
215
215
  // rather than holding a request open.
@@ -376,6 +376,12 @@ class EngineServiceClient {
376
376
  ?.then(([response, options, rawResponse]) => {
377
377
  this._log.info('updateEngine response %j', response);
378
378
  return [response, options, rawResponse];
379
+ }).catch((error) => {
380
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
381
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
382
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
383
+ }
384
+ throw error;
379
385
  });
380
386
  }
381
387
  getEngine(request, optionsOrCallback, callback) {
@@ -406,6 +412,12 @@ class EngineServiceClient {
406
412
  ?.then(([response, options, rawResponse]) => {
407
413
  this._log.info('getEngine response %j', response);
408
414
  return [response, options, rawResponse];
415
+ }).catch((error) => {
416
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
417
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
418
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
419
+ }
420
+ throw error;
409
421
  });
410
422
  }
411
423
  pauseEngine(request, optionsOrCallback, callback) {
@@ -436,6 +448,12 @@ class EngineServiceClient {
436
448
  ?.then(([response, options, rawResponse]) => {
437
449
  this._log.info('pauseEngine response %j', response);
438
450
  return [response, options, rawResponse];
451
+ }).catch((error) => {
452
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
453
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
454
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
455
+ }
456
+ throw error;
439
457
  });
440
458
  }
441
459
  resumeEngine(request, optionsOrCallback, callback) {
@@ -466,6 +484,12 @@ class EngineServiceClient {
466
484
  ?.then(([response, options, rawResponse]) => {
467
485
  this._log.info('resumeEngine response %j', response);
468
486
  return [response, options, rawResponse];
487
+ }).catch((error) => {
488
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
489
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
490
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
491
+ }
492
+ throw error;
469
493
  });
470
494
  }
471
495
  createEngine(request, optionsOrCallback, callback) {
@@ -1797,154 +1821,154 @@ class EngineServiceClient {
1797
1821
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1798
1822
  }
1799
1823
  /**
1800
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1824
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1801
1825
  *
1802
1826
  * @param {string} project
1803
1827
  * @param {string} location
1804
1828
  * @param {string} collection
1805
1829
  * @param {string} data_store
1806
1830
  * @param {string} session
1831
+ * @param {string} answer
1807
1832
  * @returns {string} Resource name string.
1808
1833
  */
1809
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1810
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1834
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1835
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1811
1836
  project: project,
1812
1837
  location: location,
1813
1838
  collection: collection,
1814
1839
  data_store: dataStore,
1815
1840
  session: session,
1841
+ answer: answer,
1816
1842
  });
1817
1843
  }
1818
1844
  /**
1819
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1845
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1820
1846
  *
1821
- * @param {string} projectLocationCollectionDataStoreSessionName
1822
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1847
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1848
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1823
1849
  * @returns {string} A string representing the project.
1824
1850
  */
1825
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1826
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1851
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1852
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1827
1853
  }
1828
1854
  /**
1829
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1855
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1830
1856
  *
1831
- * @param {string} projectLocationCollectionDataStoreSessionName
1832
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1857
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1858
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1833
1859
  * @returns {string} A string representing the location.
1834
1860
  */
1835
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1836
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1861
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1862
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1837
1863
  }
1838
1864
  /**
1839
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1865
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1840
1866
  *
1841
- * @param {string} projectLocationCollectionDataStoreSessionName
1842
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1867
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1868
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1843
1869
  * @returns {string} A string representing the collection.
1844
1870
  */
1845
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1846
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1871
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1872
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1847
1873
  }
1848
1874
  /**
1849
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1875
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1850
1876
  *
1851
- * @param {string} projectLocationCollectionDataStoreSessionName
1852
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1877
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1878
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1853
1879
  * @returns {string} A string representing the data_store.
1854
1880
  */
1855
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1856
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1881
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1882
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1857
1883
  }
1858
1884
  /**
1859
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1885
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1860
1886
  *
1861
- * @param {string} projectLocationCollectionDataStoreSessionName
1862
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1887
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1888
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1863
1889
  * @returns {string} A string representing the session.
1864
1890
  */
1865
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1866
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1891
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1892
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1867
1893
  }
1868
1894
  /**
1869
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1895
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1896
+ *
1897
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1898
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1899
+ * @returns {string} A string representing the answer.
1900
+ */
1901
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1902
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1903
+ }
1904
+ /**
1905
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1870
1906
  *
1871
1907
  * @param {string} project
1872
1908
  * @param {string} location
1873
1909
  * @param {string} collection
1874
1910
  * @param {string} data_store
1875
1911
  * @param {string} session
1876
- * @param {string} answer
1877
1912
  * @returns {string} Resource name string.
1878
1913
  */
1879
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1880
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1914
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1915
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1881
1916
  project: project,
1882
1917
  location: location,
1883
1918
  collection: collection,
1884
1919
  data_store: dataStore,
1885
1920
  session: session,
1886
- answer: answer,
1887
1921
  });
1888
1922
  }
1889
1923
  /**
1890
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1924
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1891
1925
  *
1892
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1893
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1926
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1927
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1894
1928
  * @returns {string} A string representing the project.
1895
1929
  */
1896
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1897
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1930
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1931
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1898
1932
  }
1899
1933
  /**
1900
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1934
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1901
1935
  *
1902
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1903
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1936
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1937
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1904
1938
  * @returns {string} A string representing the location.
1905
1939
  */
1906
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1907
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1940
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1941
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1908
1942
  }
1909
1943
  /**
1910
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1944
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1911
1945
  *
1912
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1913
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1946
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1947
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1914
1948
  * @returns {string} A string representing the collection.
1915
1949
  */
1916
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1917
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1950
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1951
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1918
1952
  }
1919
1953
  /**
1920
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1954
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1921
1955
  *
1922
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1923
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1956
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1957
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1924
1958
  * @returns {string} A string representing the data_store.
1925
1959
  */
1926
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1927
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1960
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1961
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1928
1962
  }
1929
1963
  /**
1930
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1964
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1931
1965
  *
1932
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1933
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1966
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1967
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1934
1968
  * @returns {string} A string representing the session.
1935
1969
  */
1936
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1937
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1938
- }
1939
- /**
1940
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1941
- *
1942
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1943
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1944
- * @returns {string} A string representing the answer.
1945
- */
1946
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1947
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1970
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1971
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
1948
1972
  }
1949
1973
  /**
1950
1974
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -2280,154 +2304,154 @@ class EngineServiceClient {
2280
2304
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2281
2305
  }
2282
2306
  /**
2283
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2307
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2284
2308
  *
2285
2309
  * @param {string} project
2286
2310
  * @param {string} location
2287
2311
  * @param {string} collection
2288
2312
  * @param {string} engine
2289
2313
  * @param {string} session
2314
+ * @param {string} answer
2290
2315
  * @returns {string} Resource name string.
2291
2316
  */
2292
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2293
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
2317
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2318
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2294
2319
  project: project,
2295
2320
  location: location,
2296
2321
  collection: collection,
2297
2322
  engine: engine,
2298
2323
  session: session,
2324
+ answer: answer,
2299
2325
  });
2300
2326
  }
2301
2327
  /**
2302
- * Parse the project from ProjectLocationCollectionEngineSession resource.
2328
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2303
2329
  *
2304
- * @param {string} projectLocationCollectionEngineSessionName
2305
- * A fully-qualified path representing project_location_collection_engine_session resource.
2330
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2331
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2306
2332
  * @returns {string} A string representing the project.
2307
2333
  */
2308
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2309
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2334
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2335
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2310
2336
  }
2311
2337
  /**
2312
- * Parse the location from ProjectLocationCollectionEngineSession resource.
2338
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2313
2339
  *
2314
- * @param {string} projectLocationCollectionEngineSessionName
2315
- * A fully-qualified path representing project_location_collection_engine_session resource.
2340
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2341
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2316
2342
  * @returns {string} A string representing the location.
2317
2343
  */
2318
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2319
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2344
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2345
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2320
2346
  }
2321
2347
  /**
2322
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
2348
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2323
2349
  *
2324
- * @param {string} projectLocationCollectionEngineSessionName
2325
- * A fully-qualified path representing project_location_collection_engine_session resource.
2350
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2351
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2326
2352
  * @returns {string} A string representing the collection.
2327
2353
  */
2328
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2329
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2354
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2355
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2330
2356
  }
2331
2357
  /**
2332
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
2358
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2333
2359
  *
2334
- * @param {string} projectLocationCollectionEngineSessionName
2335
- * A fully-qualified path representing project_location_collection_engine_session resource.
2360
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2361
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2336
2362
  * @returns {string} A string representing the engine.
2337
2363
  */
2338
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2339
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2364
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2365
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2340
2366
  }
2341
2367
  /**
2342
- * Parse the session from ProjectLocationCollectionEngineSession resource.
2368
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2343
2369
  *
2344
- * @param {string} projectLocationCollectionEngineSessionName
2345
- * A fully-qualified path representing project_location_collection_engine_session resource.
2370
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2371
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2346
2372
  * @returns {string} A string representing the session.
2347
2373
  */
2348
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2349
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2374
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2375
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2350
2376
  }
2351
2377
  /**
2352
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2378
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2379
+ *
2380
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2381
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2382
+ * @returns {string} A string representing the answer.
2383
+ */
2384
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2385
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2386
+ }
2387
+ /**
2388
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
2353
2389
  *
2354
2390
  * @param {string} project
2355
2391
  * @param {string} location
2356
2392
  * @param {string} collection
2357
2393
  * @param {string} engine
2358
2394
  * @param {string} session
2359
- * @param {string} answer
2360
2395
  * @returns {string} Resource name string.
2361
2396
  */
2362
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2363
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2397
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2398
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2364
2399
  project: project,
2365
2400
  location: location,
2366
2401
  collection: collection,
2367
2402
  engine: engine,
2368
2403
  session: session,
2369
- answer: answer,
2370
2404
  });
2371
2405
  }
2372
2406
  /**
2373
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2407
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2374
2408
  *
2375
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2376
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2409
+ * @param {string} projectLocationCollectionEngineSessionsName
2410
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2377
2411
  * @returns {string} A string representing the project.
2378
2412
  */
2379
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2380
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2413
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2414
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2381
2415
  }
2382
2416
  /**
2383
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2417
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2384
2418
  *
2385
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2386
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2419
+ * @param {string} projectLocationCollectionEngineSessionsName
2420
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2387
2421
  * @returns {string} A string representing the location.
2388
2422
  */
2389
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2390
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2423
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2424
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2391
2425
  }
2392
2426
  /**
2393
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2427
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2394
2428
  *
2395
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2396
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2429
+ * @param {string} projectLocationCollectionEngineSessionsName
2430
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2397
2431
  * @returns {string} A string representing the collection.
2398
2432
  */
2399
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2400
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2433
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2434
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2401
2435
  }
2402
2436
  /**
2403
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2437
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2404
2438
  *
2405
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2406
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2439
+ * @param {string} projectLocationCollectionEngineSessionsName
2440
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2407
2441
  * @returns {string} A string representing the engine.
2408
2442
  */
2409
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2410
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2443
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2444
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2411
2445
  }
2412
2446
  /**
2413
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2447
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2414
2448
  *
2415
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2416
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2449
+ * @param {string} projectLocationCollectionEngineSessionsName
2450
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2417
2451
  * @returns {string} A string representing the session.
2418
2452
  */
2419
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2420
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2421
- }
2422
- /**
2423
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2424
- *
2425
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2426
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2427
- * @returns {string} A string representing the answer.
2428
- */
2429
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2430
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2453
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2454
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2431
2455
  }
2432
2456
  /**
2433
2457
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -2954,63 +2978,6 @@ class EngineServiceClient {
2954
2978
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2955
2979
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2956
2980
  }
2957
- /**
2958
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
2959
- *
2960
- * @param {string} project
2961
- * @param {string} location
2962
- * @param {string} data_store
2963
- * @param {string} session
2964
- * @returns {string} Resource name string.
2965
- */
2966
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2967
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2968
- project: project,
2969
- location: location,
2970
- data_store: dataStore,
2971
- session: session,
2972
- });
2973
- }
2974
- /**
2975
- * Parse the project from ProjectLocationDataStoreSession resource.
2976
- *
2977
- * @param {string} projectLocationDataStoreSessionName
2978
- * A fully-qualified path representing project_location_data_store_session resource.
2979
- * @returns {string} A string representing the project.
2980
- */
2981
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2982
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2983
- }
2984
- /**
2985
- * Parse the location from ProjectLocationDataStoreSession resource.
2986
- *
2987
- * @param {string} projectLocationDataStoreSessionName
2988
- * A fully-qualified path representing project_location_data_store_session resource.
2989
- * @returns {string} A string representing the location.
2990
- */
2991
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2992
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2993
- }
2994
- /**
2995
- * Parse the data_store from ProjectLocationDataStoreSession resource.
2996
- *
2997
- * @param {string} projectLocationDataStoreSessionName
2998
- * A fully-qualified path representing project_location_data_store_session resource.
2999
- * @returns {string} A string representing the data_store.
3000
- */
3001
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3002
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
3003
- }
3004
- /**
3005
- * Parse the session from ProjectLocationDataStoreSession resource.
3006
- *
3007
- * @param {string} projectLocationDataStoreSessionName
3008
- * A fully-qualified path representing project_location_data_store_session resource.
3009
- * @returns {string} A string representing the session.
3010
- */
3011
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3012
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
3013
- }
3014
2981
  /**
3015
2982
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3016
2983
  *
@@ -3080,6 +3047,63 @@ class EngineServiceClient {
3080
3047
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3081
3048
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3082
3049
  }
3050
+ /**
3051
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
3052
+ *
3053
+ * @param {string} project
3054
+ * @param {string} location
3055
+ * @param {string} data_store
3056
+ * @param {string} session
3057
+ * @returns {string} Resource name string.
3058
+ */
3059
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
3060
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
3061
+ project: project,
3062
+ location: location,
3063
+ data_store: dataStore,
3064
+ session: session,
3065
+ });
3066
+ }
3067
+ /**
3068
+ * Parse the project from ProjectLocationDataStoreSessions resource.
3069
+ *
3070
+ * @param {string} projectLocationDataStoreSessionsName
3071
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3072
+ * @returns {string} A string representing the project.
3073
+ */
3074
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3075
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
3076
+ }
3077
+ /**
3078
+ * Parse the location from ProjectLocationDataStoreSessions resource.
3079
+ *
3080
+ * @param {string} projectLocationDataStoreSessionsName
3081
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3082
+ * @returns {string} A string representing the location.
3083
+ */
3084
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3085
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
3086
+ }
3087
+ /**
3088
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
3089
+ *
3090
+ * @param {string} projectLocationDataStoreSessionsName
3091
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3092
+ * @returns {string} A string representing the data_store.
3093
+ */
3094
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3095
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
3096
+ }
3097
+ /**
3098
+ * Parse the session from ProjectLocationDataStoreSessions resource.
3099
+ *
3100
+ * @param {string} projectLocationDataStoreSessionsName
3101
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3102
+ * @returns {string} A string representing the session.
3103
+ */
3104
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3105
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
3106
+ }
3083
3107
  /**
3084
3108
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3085
3109
  *