@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
@@ -179,15 +179,15 @@ class DocumentServiceClient {
179
179
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
180
180
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
181
181
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
182
- projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
183
182
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
183
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
184
184
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
185
185
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
186
186
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
187
187
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
188
188
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
189
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
190
189
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
190
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
191
191
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
192
192
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
193
193
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -198,8 +198,8 @@ class DocumentServiceClient {
198
198
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
199
199
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
200
200
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
201
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
202
201
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
202
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
203
203
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
204
204
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
205
205
  sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
@@ -211,7 +211,7 @@ class DocumentServiceClient {
211
211
  this.descriptors.page = {
212
212
  listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents')
213
213
  };
214
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
214
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
215
215
  // This API contains "long-running operations", which return a
216
216
  // an Operation object that allows for tracking of the operation,
217
217
  // rather than holding a request open.
@@ -375,6 +375,12 @@ class DocumentServiceClient {
375
375
  ?.then(([response, options, rawResponse]) => {
376
376
  this._log.info('getDocument response %j', response);
377
377
  return [response, options, rawResponse];
378
+ }).catch((error) => {
379
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
380
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
381
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
382
+ }
383
+ throw error;
378
384
  });
379
385
  }
380
386
  createDocument(request, optionsOrCallback, callback) {
@@ -405,6 +411,12 @@ class DocumentServiceClient {
405
411
  ?.then(([response, options, rawResponse]) => {
406
412
  this._log.info('createDocument response %j', response);
407
413
  return [response, options, rawResponse];
414
+ }).catch((error) => {
415
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
416
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
417
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
418
+ }
419
+ throw error;
408
420
  });
409
421
  }
410
422
  updateDocument(request, optionsOrCallback, callback) {
@@ -435,6 +447,12 @@ class DocumentServiceClient {
435
447
  ?.then(([response, options, rawResponse]) => {
436
448
  this._log.info('updateDocument response %j', response);
437
449
  return [response, options, rawResponse];
450
+ }).catch((error) => {
451
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
452
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
453
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
454
+ }
455
+ throw error;
438
456
  });
439
457
  }
440
458
  deleteDocument(request, optionsOrCallback, callback) {
@@ -465,6 +483,12 @@ class DocumentServiceClient {
465
483
  ?.then(([response, options, rawResponse]) => {
466
484
  this._log.info('deleteDocument response %j', response);
467
485
  return [response, options, rawResponse];
486
+ }).catch((error) => {
487
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
488
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
489
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
490
+ }
491
+ throw error;
468
492
  });
469
493
  }
470
494
  getProcessedDocument(request, optionsOrCallback, callback) {
@@ -495,6 +519,12 @@ class DocumentServiceClient {
495
519
  ?.then(([response, options, rawResponse]) => {
496
520
  this._log.info('getProcessedDocument response %j', response);
497
521
  return [response, options, rawResponse];
522
+ }).catch((error) => {
523
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
524
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
525
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
526
+ }
527
+ throw error;
498
528
  });
499
529
  }
500
530
  batchGetDocumentsMetadata(request, optionsOrCallback, callback) {
@@ -525,6 +555,12 @@ class DocumentServiceClient {
525
555
  ?.then(([response, options, rawResponse]) => {
526
556
  this._log.info('batchGetDocumentsMetadata response %j', response);
527
557
  return [response, options, rawResponse];
558
+ }).catch((error) => {
559
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
560
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
561
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
562
+ }
563
+ throw error;
528
564
  });
529
565
  }
530
566
  importDocuments(request, optionsOrCallback, callback) {
@@ -1868,154 +1904,154 @@ class DocumentServiceClient {
1868
1904
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1869
1905
  }
1870
1906
  /**
1871
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1907
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1872
1908
  *
1873
1909
  * @param {string} project
1874
1910
  * @param {string} location
1875
1911
  * @param {string} collection
1876
1912
  * @param {string} data_store
1877
1913
  * @param {string} session
1914
+ * @param {string} answer
1878
1915
  * @returns {string} Resource name string.
1879
1916
  */
1880
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1881
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1917
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1918
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1882
1919
  project: project,
1883
1920
  location: location,
1884
1921
  collection: collection,
1885
1922
  data_store: dataStore,
1886
1923
  session: session,
1924
+ answer: answer,
1887
1925
  });
1888
1926
  }
1889
1927
  /**
1890
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1928
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1891
1929
  *
1892
- * @param {string} projectLocationCollectionDataStoreSessionName
1893
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1930
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1931
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1894
1932
  * @returns {string} A string representing the project.
1895
1933
  */
1896
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1897
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1934
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1935
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1898
1936
  }
1899
1937
  /**
1900
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1938
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1901
1939
  *
1902
- * @param {string} projectLocationCollectionDataStoreSessionName
1903
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1940
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1941
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1904
1942
  * @returns {string} A string representing the location.
1905
1943
  */
1906
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1907
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1944
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1945
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1908
1946
  }
1909
1947
  /**
1910
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1948
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1911
1949
  *
1912
- * @param {string} projectLocationCollectionDataStoreSessionName
1913
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1950
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1951
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1914
1952
  * @returns {string} A string representing the collection.
1915
1953
  */
1916
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1917
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1954
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1955
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1918
1956
  }
1919
1957
  /**
1920
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1958
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1921
1959
  *
1922
- * @param {string} projectLocationCollectionDataStoreSessionName
1923
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1960
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1961
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1924
1962
  * @returns {string} A string representing the data_store.
1925
1963
  */
1926
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1927
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1964
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1965
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1928
1966
  }
1929
1967
  /**
1930
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1968
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1931
1969
  *
1932
- * @param {string} projectLocationCollectionDataStoreSessionName
1933
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1970
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1971
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1934
1972
  * @returns {string} A string representing the session.
1935
1973
  */
1936
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1937
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1974
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1975
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1938
1976
  }
1939
1977
  /**
1940
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1978
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1979
+ *
1980
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1981
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1982
+ * @returns {string} A string representing the answer.
1983
+ */
1984
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1985
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1986
+ }
1987
+ /**
1988
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1941
1989
  *
1942
1990
  * @param {string} project
1943
1991
  * @param {string} location
1944
1992
  * @param {string} collection
1945
1993
  * @param {string} data_store
1946
1994
  * @param {string} session
1947
- * @param {string} answer
1948
1995
  * @returns {string} Resource name string.
1949
1996
  */
1950
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1951
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1997
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1998
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1952
1999
  project: project,
1953
2000
  location: location,
1954
2001
  collection: collection,
1955
2002
  data_store: dataStore,
1956
2003
  session: session,
1957
- answer: answer,
1958
2004
  });
1959
2005
  }
1960
2006
  /**
1961
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
2007
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1962
2008
  *
1963
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1964
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2009
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2010
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1965
2011
  * @returns {string} A string representing the project.
1966
2012
  */
1967
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1968
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
2013
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2014
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1969
2015
  }
1970
2016
  /**
1971
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
2017
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1972
2018
  *
1973
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1974
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2019
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2020
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1975
2021
  * @returns {string} A string representing the location.
1976
2022
  */
1977
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1978
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
2023
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2024
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1979
2025
  }
1980
2026
  /**
1981
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
2027
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1982
2028
  *
1983
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1984
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2029
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2030
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1985
2031
  * @returns {string} A string representing the collection.
1986
2032
  */
1987
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1988
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
2033
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2034
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1989
2035
  }
1990
2036
  /**
1991
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
2037
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1992
2038
  *
1993
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1994
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2039
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2040
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1995
2041
  * @returns {string} A string representing the data_store.
1996
2042
  */
1997
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1998
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
2043
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2044
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1999
2045
  }
2000
2046
  /**
2001
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
2047
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
2002
2048
  *
2003
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2004
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2049
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2050
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2005
2051
  * @returns {string} A string representing the session.
2006
2052
  */
2007
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2008
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
2009
- }
2010
- /**
2011
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
2012
- *
2013
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2014
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2015
- * @returns {string} A string representing the answer.
2016
- */
2017
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2018
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
2053
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2054
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
2019
2055
  }
2020
2056
  /**
2021
2057
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -2351,154 +2387,154 @@ class DocumentServiceClient {
2351
2387
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2352
2388
  }
2353
2389
  /**
2354
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2390
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2355
2391
  *
2356
2392
  * @param {string} project
2357
2393
  * @param {string} location
2358
2394
  * @param {string} collection
2359
2395
  * @param {string} engine
2360
2396
  * @param {string} session
2397
+ * @param {string} answer
2361
2398
  * @returns {string} Resource name string.
2362
2399
  */
2363
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2364
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
2400
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2401
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2365
2402
  project: project,
2366
2403
  location: location,
2367
2404
  collection: collection,
2368
2405
  engine: engine,
2369
2406
  session: session,
2407
+ answer: answer,
2370
2408
  });
2371
2409
  }
2372
2410
  /**
2373
- * Parse the project from ProjectLocationCollectionEngineSession resource.
2411
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2374
2412
  *
2375
- * @param {string} projectLocationCollectionEngineSessionName
2376
- * A fully-qualified path representing project_location_collection_engine_session resource.
2413
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2414
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2377
2415
  * @returns {string} A string representing the project.
2378
2416
  */
2379
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2380
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2417
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2418
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2381
2419
  }
2382
2420
  /**
2383
- * Parse the location from ProjectLocationCollectionEngineSession resource.
2421
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2384
2422
  *
2385
- * @param {string} projectLocationCollectionEngineSessionName
2386
- * A fully-qualified path representing project_location_collection_engine_session resource.
2423
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2424
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2387
2425
  * @returns {string} A string representing the location.
2388
2426
  */
2389
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2390
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2427
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2428
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2391
2429
  }
2392
2430
  /**
2393
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
2431
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2394
2432
  *
2395
- * @param {string} projectLocationCollectionEngineSessionName
2396
- * A fully-qualified path representing project_location_collection_engine_session resource.
2433
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2434
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2397
2435
  * @returns {string} A string representing the collection.
2398
2436
  */
2399
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2400
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2437
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2438
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2401
2439
  }
2402
2440
  /**
2403
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
2441
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2404
2442
  *
2405
- * @param {string} projectLocationCollectionEngineSessionName
2406
- * A fully-qualified path representing project_location_collection_engine_session resource.
2443
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2444
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2407
2445
  * @returns {string} A string representing the engine.
2408
2446
  */
2409
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2410
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2447
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2448
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2411
2449
  }
2412
2450
  /**
2413
- * Parse the session from ProjectLocationCollectionEngineSession resource.
2451
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2414
2452
  *
2415
- * @param {string} projectLocationCollectionEngineSessionName
2416
- * A fully-qualified path representing project_location_collection_engine_session resource.
2453
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2454
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2417
2455
  * @returns {string} A string representing the session.
2418
2456
  */
2419
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2420
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2457
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2458
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2421
2459
  }
2422
2460
  /**
2423
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2461
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2462
+ *
2463
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2464
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2465
+ * @returns {string} A string representing the answer.
2466
+ */
2467
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2468
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2469
+ }
2470
+ /**
2471
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
2424
2472
  *
2425
2473
  * @param {string} project
2426
2474
  * @param {string} location
2427
2475
  * @param {string} collection
2428
2476
  * @param {string} engine
2429
2477
  * @param {string} session
2430
- * @param {string} answer
2431
2478
  * @returns {string} Resource name string.
2432
2479
  */
2433
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2434
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2480
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2481
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2435
2482
  project: project,
2436
2483
  location: location,
2437
2484
  collection: collection,
2438
2485
  engine: engine,
2439
2486
  session: session,
2440
- answer: answer,
2441
2487
  });
2442
2488
  }
2443
2489
  /**
2444
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2490
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2445
2491
  *
2446
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2447
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2492
+ * @param {string} projectLocationCollectionEngineSessionsName
2493
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2448
2494
  * @returns {string} A string representing the project.
2449
2495
  */
2450
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2451
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2496
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2497
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2452
2498
  }
2453
2499
  /**
2454
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2500
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2455
2501
  *
2456
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2457
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2502
+ * @param {string} projectLocationCollectionEngineSessionsName
2503
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2458
2504
  * @returns {string} A string representing the location.
2459
2505
  */
2460
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2461
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2506
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2507
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2462
2508
  }
2463
2509
  /**
2464
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2510
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2465
2511
  *
2466
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2467
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2512
+ * @param {string} projectLocationCollectionEngineSessionsName
2513
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2468
2514
  * @returns {string} A string representing the collection.
2469
2515
  */
2470
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2471
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2516
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2517
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2472
2518
  }
2473
2519
  /**
2474
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2520
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2475
2521
  *
2476
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2477
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2522
+ * @param {string} projectLocationCollectionEngineSessionsName
2523
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2478
2524
  * @returns {string} A string representing the engine.
2479
2525
  */
2480
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2481
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2526
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2527
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2482
2528
  }
2483
2529
  /**
2484
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2530
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2485
2531
  *
2486
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2487
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2532
+ * @param {string} projectLocationCollectionEngineSessionsName
2533
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2488
2534
  * @returns {string} A string representing the session.
2489
2535
  */
2490
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2491
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2492
- }
2493
- /**
2494
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2495
- *
2496
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2497
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2498
- * @returns {string} A string representing the answer.
2499
- */
2500
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2501
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2536
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2537
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2502
2538
  }
2503
2539
  /**
2504
2540
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -3082,63 +3118,6 @@ class DocumentServiceClient {
3082
3118
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3083
3119
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3084
3120
  }
3085
- /**
3086
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
3087
- *
3088
- * @param {string} project
3089
- * @param {string} location
3090
- * @param {string} data_store
3091
- * @param {string} session
3092
- * @returns {string} Resource name string.
3093
- */
3094
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
3095
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
3096
- project: project,
3097
- location: location,
3098
- data_store: dataStore,
3099
- session: session,
3100
- });
3101
- }
3102
- /**
3103
- * Parse the project from ProjectLocationDataStoreSession resource.
3104
- *
3105
- * @param {string} projectLocationDataStoreSessionName
3106
- * A fully-qualified path representing project_location_data_store_session resource.
3107
- * @returns {string} A string representing the project.
3108
- */
3109
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3110
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
3111
- }
3112
- /**
3113
- * Parse the location from ProjectLocationDataStoreSession resource.
3114
- *
3115
- * @param {string} projectLocationDataStoreSessionName
3116
- * A fully-qualified path representing project_location_data_store_session resource.
3117
- * @returns {string} A string representing the location.
3118
- */
3119
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3120
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
3121
- }
3122
- /**
3123
- * Parse the data_store from ProjectLocationDataStoreSession resource.
3124
- *
3125
- * @param {string} projectLocationDataStoreSessionName
3126
- * A fully-qualified path representing project_location_data_store_session resource.
3127
- * @returns {string} A string representing the data_store.
3128
- */
3129
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3130
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
3131
- }
3132
- /**
3133
- * Parse the session from ProjectLocationDataStoreSession resource.
3134
- *
3135
- * @param {string} projectLocationDataStoreSessionName
3136
- * A fully-qualified path representing project_location_data_store_session resource.
3137
- * @returns {string} A string representing the session.
3138
- */
3139
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3140
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
3141
- }
3142
3121
  /**
3143
3122
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3144
3123
  *
@@ -3208,6 +3187,63 @@ class DocumentServiceClient {
3208
3187
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3209
3188
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3210
3189
  }
3190
+ /**
3191
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
3192
+ *
3193
+ * @param {string} project
3194
+ * @param {string} location
3195
+ * @param {string} data_store
3196
+ * @param {string} session
3197
+ * @returns {string} Resource name string.
3198
+ */
3199
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
3200
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
3201
+ project: project,
3202
+ location: location,
3203
+ data_store: dataStore,
3204
+ session: session,
3205
+ });
3206
+ }
3207
+ /**
3208
+ * Parse the project from ProjectLocationDataStoreSessions resource.
3209
+ *
3210
+ * @param {string} projectLocationDataStoreSessionsName
3211
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3212
+ * @returns {string} A string representing the project.
3213
+ */
3214
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3215
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
3216
+ }
3217
+ /**
3218
+ * Parse the location from ProjectLocationDataStoreSessions resource.
3219
+ *
3220
+ * @param {string} projectLocationDataStoreSessionsName
3221
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3222
+ * @returns {string} A string representing the location.
3223
+ */
3224
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3225
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
3226
+ }
3227
+ /**
3228
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
3229
+ *
3230
+ * @param {string} projectLocationDataStoreSessionsName
3231
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3232
+ * @returns {string} A string representing the data_store.
3233
+ */
3234
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3235
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
3236
+ }
3237
+ /**
3238
+ * Parse the session from ProjectLocationDataStoreSessions resource.
3239
+ *
3240
+ * @param {string} projectLocationDataStoreSessionsName
3241
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3242
+ * @returns {string} A string representing the session.
3243
+ */
3244
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3245
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
3246
+ }
3211
3247
  /**
3212
3248
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3213
3249
  *