@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,16 +179,16 @@ 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
  projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
186
186
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
187
187
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
188
188
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
189
189
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
190
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
191
190
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
191
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
192
192
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
193
193
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
194
194
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -199,8 +199,8 @@ class DocumentServiceClient {
199
199
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
200
200
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
201
201
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
202
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
203
202
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
203
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
204
204
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
205
205
  projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
206
206
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
@@ -213,7 +213,7 @@ class DocumentServiceClient {
213
213
  this.descriptors.page = {
214
214
  listDocuments: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'documents')
215
215
  };
216
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
216
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
217
217
  // This API contains "long-running operations", which return a
218
218
  // an Operation object that allows for tracking of the operation,
219
219
  // rather than holding a request open.
@@ -377,6 +377,12 @@ class DocumentServiceClient {
377
377
  ?.then(([response, options, rawResponse]) => {
378
378
  this._log.info('getDocument response %j', response);
379
379
  return [response, options, rawResponse];
380
+ }).catch((error) => {
381
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
382
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
383
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
384
+ }
385
+ throw error;
380
386
  });
381
387
  }
382
388
  createDocument(request, optionsOrCallback, callback) {
@@ -407,6 +413,12 @@ class DocumentServiceClient {
407
413
  ?.then(([response, options, rawResponse]) => {
408
414
  this._log.info('createDocument response %j', response);
409
415
  return [response, options, rawResponse];
416
+ }).catch((error) => {
417
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
418
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
419
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
420
+ }
421
+ throw error;
410
422
  });
411
423
  }
412
424
  updateDocument(request, optionsOrCallback, callback) {
@@ -437,6 +449,12 @@ class DocumentServiceClient {
437
449
  ?.then(([response, options, rawResponse]) => {
438
450
  this._log.info('updateDocument response %j', response);
439
451
  return [response, options, rawResponse];
452
+ }).catch((error) => {
453
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
454
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
455
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
456
+ }
457
+ throw error;
440
458
  });
441
459
  }
442
460
  deleteDocument(request, optionsOrCallback, callback) {
@@ -467,6 +485,12 @@ class DocumentServiceClient {
467
485
  ?.then(([response, options, rawResponse]) => {
468
486
  this._log.info('deleteDocument response %j', response);
469
487
  return [response, options, rawResponse];
488
+ }).catch((error) => {
489
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
490
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
491
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
492
+ }
493
+ throw error;
470
494
  });
471
495
  }
472
496
  batchGetDocumentsMetadata(request, optionsOrCallback, callback) {
@@ -497,6 +521,12 @@ class DocumentServiceClient {
497
521
  ?.then(([response, options, rawResponse]) => {
498
522
  this._log.info('batchGetDocumentsMetadata response %j', response);
499
523
  return [response, options, rawResponse];
524
+ }).catch((error) => {
525
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
526
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
527
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
528
+ }
529
+ throw error;
500
530
  });
501
531
  }
502
532
  importDocuments(request, optionsOrCallback, callback) {
@@ -1850,154 +1880,154 @@ class DocumentServiceClient {
1850
1880
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1851
1881
  }
1852
1882
  /**
1853
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1883
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1854
1884
  *
1855
1885
  * @param {string} project
1856
1886
  * @param {string} location
1857
1887
  * @param {string} collection
1858
1888
  * @param {string} data_store
1859
1889
  * @param {string} session
1890
+ * @param {string} answer
1860
1891
  * @returns {string} Resource name string.
1861
1892
  */
1862
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1863
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1893
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1894
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1864
1895
  project: project,
1865
1896
  location: location,
1866
1897
  collection: collection,
1867
1898
  data_store: dataStore,
1868
1899
  session: session,
1900
+ answer: answer,
1869
1901
  });
1870
1902
  }
1871
1903
  /**
1872
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1904
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1873
1905
  *
1874
- * @param {string} projectLocationCollectionDataStoreSessionName
1875
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1906
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1907
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1876
1908
  * @returns {string} A string representing the project.
1877
1909
  */
1878
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1879
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1910
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1911
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1880
1912
  }
1881
1913
  /**
1882
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1914
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1883
1915
  *
1884
- * @param {string} projectLocationCollectionDataStoreSessionName
1885
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1916
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1917
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1886
1918
  * @returns {string} A string representing the location.
1887
1919
  */
1888
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1889
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1920
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1921
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1890
1922
  }
1891
1923
  /**
1892
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1924
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1893
1925
  *
1894
- * @param {string} projectLocationCollectionDataStoreSessionName
1895
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1926
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1927
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1896
1928
  * @returns {string} A string representing the collection.
1897
1929
  */
1898
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1899
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1930
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1931
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1900
1932
  }
1901
1933
  /**
1902
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1934
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1903
1935
  *
1904
- * @param {string} projectLocationCollectionDataStoreSessionName
1905
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1936
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1937
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1906
1938
  * @returns {string} A string representing the data_store.
1907
1939
  */
1908
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1909
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1940
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1941
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1910
1942
  }
1911
1943
  /**
1912
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1944
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1913
1945
  *
1914
- * @param {string} projectLocationCollectionDataStoreSessionName
1915
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1946
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1947
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1916
1948
  * @returns {string} A string representing the session.
1917
1949
  */
1918
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1919
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1950
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1951
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1920
1952
  }
1921
1953
  /**
1922
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1954
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1955
+ *
1956
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1957
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1958
+ * @returns {string} A string representing the answer.
1959
+ */
1960
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1961
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1962
+ }
1963
+ /**
1964
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1923
1965
  *
1924
1966
  * @param {string} project
1925
1967
  * @param {string} location
1926
1968
  * @param {string} collection
1927
1969
  * @param {string} data_store
1928
1970
  * @param {string} session
1929
- * @param {string} answer
1930
1971
  * @returns {string} Resource name string.
1931
1972
  */
1932
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1933
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1973
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1974
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1934
1975
  project: project,
1935
1976
  location: location,
1936
1977
  collection: collection,
1937
1978
  data_store: dataStore,
1938
1979
  session: session,
1939
- answer: answer,
1940
1980
  });
1941
1981
  }
1942
1982
  /**
1943
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1983
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1944
1984
  *
1945
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1946
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1985
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1986
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1947
1987
  * @returns {string} A string representing the project.
1948
1988
  */
1949
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1950
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1989
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1990
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1951
1991
  }
1952
1992
  /**
1953
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1993
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1954
1994
  *
1955
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1956
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1995
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1996
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1957
1997
  * @returns {string} A string representing the location.
1958
1998
  */
1959
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1960
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1999
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2000
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1961
2001
  }
1962
2002
  /**
1963
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
2003
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1964
2004
  *
1965
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1966
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2005
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2006
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1967
2007
  * @returns {string} A string representing the collection.
1968
2008
  */
1969
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1970
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
2009
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2010
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1971
2011
  }
1972
2012
  /**
1973
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
2013
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1974
2014
  *
1975
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1976
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2015
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2016
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1977
2017
  * @returns {string} A string representing the data_store.
1978
2018
  */
1979
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1980
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
2019
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2020
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1981
2021
  }
1982
2022
  /**
1983
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
2023
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1984
2024
  *
1985
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1986
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2025
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2026
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1987
2027
  * @returns {string} A string representing the session.
1988
2028
  */
1989
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1990
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1991
- }
1992
- /**
1993
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1994
- *
1995
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1996
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1997
- * @returns {string} A string representing the answer.
1998
- */
1999
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2000
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
2029
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2030
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
2001
2031
  }
2002
2032
  /**
2003
2033
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -2402,154 +2432,154 @@ class DocumentServiceClient {
2402
2432
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2403
2433
  }
2404
2434
  /**
2405
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
2435
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2406
2436
  *
2407
2437
  * @param {string} project
2408
2438
  * @param {string} location
2409
2439
  * @param {string} collection
2410
2440
  * @param {string} engine
2411
2441
  * @param {string} session
2442
+ * @param {string} answer
2412
2443
  * @returns {string} Resource name string.
2413
2444
  */
2414
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2415
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
2445
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2446
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2416
2447
  project: project,
2417
2448
  location: location,
2418
2449
  collection: collection,
2419
2450
  engine: engine,
2420
2451
  session: session,
2452
+ answer: answer,
2421
2453
  });
2422
2454
  }
2423
2455
  /**
2424
- * Parse the project from ProjectLocationCollectionEngineSession resource.
2456
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2425
2457
  *
2426
- * @param {string} projectLocationCollectionEngineSessionName
2427
- * A fully-qualified path representing project_location_collection_engine_session resource.
2458
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2459
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2428
2460
  * @returns {string} A string representing the project.
2429
2461
  */
2430
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2431
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
2462
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2463
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2432
2464
  }
2433
2465
  /**
2434
- * Parse the location from ProjectLocationCollectionEngineSession resource.
2466
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2435
2467
  *
2436
- * @param {string} projectLocationCollectionEngineSessionName
2437
- * A fully-qualified path representing project_location_collection_engine_session resource.
2468
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2469
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2438
2470
  * @returns {string} A string representing the location.
2439
2471
  */
2440
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2441
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2472
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2473
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2442
2474
  }
2443
2475
  /**
2444
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
2476
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2445
2477
  *
2446
- * @param {string} projectLocationCollectionEngineSessionName
2447
- * A fully-qualified path representing project_location_collection_engine_session resource.
2478
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2479
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2448
2480
  * @returns {string} A string representing the collection.
2449
2481
  */
2450
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2451
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2482
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2483
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2452
2484
  }
2453
2485
  /**
2454
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
2486
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2455
2487
  *
2456
- * @param {string} projectLocationCollectionEngineSessionName
2457
- * A fully-qualified path representing project_location_collection_engine_session resource.
2488
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2489
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2458
2490
  * @returns {string} A string representing the engine.
2459
2491
  */
2460
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2461
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2492
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2493
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2462
2494
  }
2463
2495
  /**
2464
- * Parse the session from ProjectLocationCollectionEngineSession resource.
2496
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2465
2497
  *
2466
- * @param {string} projectLocationCollectionEngineSessionName
2467
- * A fully-qualified path representing project_location_collection_engine_session resource.
2498
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2499
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2468
2500
  * @returns {string} A string representing the session.
2469
2501
  */
2470
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2471
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2502
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2503
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2472
2504
  }
2473
2505
  /**
2474
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2506
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2507
+ *
2508
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2509
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2510
+ * @returns {string} A string representing the answer.
2511
+ */
2512
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2513
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2514
+ }
2515
+ /**
2516
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
2475
2517
  *
2476
2518
  * @param {string} project
2477
2519
  * @param {string} location
2478
2520
  * @param {string} collection
2479
2521
  * @param {string} engine
2480
2522
  * @param {string} session
2481
- * @param {string} answer
2482
2523
  * @returns {string} Resource name string.
2483
2524
  */
2484
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2485
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2525
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2526
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2486
2527
  project: project,
2487
2528
  location: location,
2488
2529
  collection: collection,
2489
2530
  engine: engine,
2490
2531
  session: session,
2491
- answer: answer,
2492
2532
  });
2493
2533
  }
2494
2534
  /**
2495
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2535
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2496
2536
  *
2497
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2498
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2537
+ * @param {string} projectLocationCollectionEngineSessionsName
2538
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2499
2539
  * @returns {string} A string representing the project.
2500
2540
  */
2501
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2502
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2541
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2542
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2503
2543
  }
2504
2544
  /**
2505
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2545
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2506
2546
  *
2507
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2508
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2547
+ * @param {string} projectLocationCollectionEngineSessionsName
2548
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2509
2549
  * @returns {string} A string representing the location.
2510
2550
  */
2511
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2512
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2551
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2552
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2513
2553
  }
2514
2554
  /**
2515
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2555
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2516
2556
  *
2517
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2518
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2557
+ * @param {string} projectLocationCollectionEngineSessionsName
2558
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2519
2559
  * @returns {string} A string representing the collection.
2520
2560
  */
2521
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2522
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2561
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2562
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2523
2563
  }
2524
2564
  /**
2525
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2565
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2526
2566
  *
2527
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2528
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2567
+ * @param {string} projectLocationCollectionEngineSessionsName
2568
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2529
2569
  * @returns {string} A string representing the engine.
2530
2570
  */
2531
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2532
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2571
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2572
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2533
2573
  }
2534
2574
  /**
2535
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2575
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2536
2576
  *
2537
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2538
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2577
+ * @param {string} projectLocationCollectionEngineSessionsName
2578
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2539
2579
  * @returns {string} A string representing the session.
2540
2580
  */
2541
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2542
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2543
- }
2544
- /**
2545
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2546
- *
2547
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2548
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2549
- * @returns {string} A string representing the answer.
2550
- */
2551
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2552
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2581
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2582
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2553
2583
  }
2554
2584
  /**
2555
2585
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -3133,63 +3163,6 @@ class DocumentServiceClient {
3133
3163
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3134
3164
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3135
3165
  }
3136
- /**
3137
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
3138
- *
3139
- * @param {string} project
3140
- * @param {string} location
3141
- * @param {string} data_store
3142
- * @param {string} session
3143
- * @returns {string} Resource name string.
3144
- */
3145
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
3146
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
3147
- project: project,
3148
- location: location,
3149
- data_store: dataStore,
3150
- session: session,
3151
- });
3152
- }
3153
- /**
3154
- * Parse the project from ProjectLocationDataStoreSession resource.
3155
- *
3156
- * @param {string} projectLocationDataStoreSessionName
3157
- * A fully-qualified path representing project_location_data_store_session resource.
3158
- * @returns {string} A string representing the project.
3159
- */
3160
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3161
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
3162
- }
3163
- /**
3164
- * Parse the location from ProjectLocationDataStoreSession resource.
3165
- *
3166
- * @param {string} projectLocationDataStoreSessionName
3167
- * A fully-qualified path representing project_location_data_store_session resource.
3168
- * @returns {string} A string representing the location.
3169
- */
3170
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3171
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
3172
- }
3173
- /**
3174
- * Parse the data_store from ProjectLocationDataStoreSession resource.
3175
- *
3176
- * @param {string} projectLocationDataStoreSessionName
3177
- * A fully-qualified path representing project_location_data_store_session resource.
3178
- * @returns {string} A string representing the data_store.
3179
- */
3180
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3181
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
3182
- }
3183
- /**
3184
- * Parse the session from ProjectLocationDataStoreSession resource.
3185
- *
3186
- * @param {string} projectLocationDataStoreSessionName
3187
- * A fully-qualified path representing project_location_data_store_session resource.
3188
- * @returns {string} A string representing the session.
3189
- */
3190
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3191
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
3192
- }
3193
3166
  /**
3194
3167
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3195
3168
  *
@@ -3259,6 +3232,63 @@ class DocumentServiceClient {
3259
3232
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3260
3233
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3261
3234
  }
3235
+ /**
3236
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
3237
+ *
3238
+ * @param {string} project
3239
+ * @param {string} location
3240
+ * @param {string} data_store
3241
+ * @param {string} session
3242
+ * @returns {string} Resource name string.
3243
+ */
3244
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
3245
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
3246
+ project: project,
3247
+ location: location,
3248
+ data_store: dataStore,
3249
+ session: session,
3250
+ });
3251
+ }
3252
+ /**
3253
+ * Parse the project from ProjectLocationDataStoreSessions resource.
3254
+ *
3255
+ * @param {string} projectLocationDataStoreSessionsName
3256
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3257
+ * @returns {string} A string representing the project.
3258
+ */
3259
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3260
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
3261
+ }
3262
+ /**
3263
+ * Parse the location from ProjectLocationDataStoreSessions resource.
3264
+ *
3265
+ * @param {string} projectLocationDataStoreSessionsName
3266
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3267
+ * @returns {string} A string representing the location.
3268
+ */
3269
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3270
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
3271
+ }
3272
+ /**
3273
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
3274
+ *
3275
+ * @param {string} projectLocationDataStoreSessionsName
3276
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3277
+ * @returns {string} A string representing the data_store.
3278
+ */
3279
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3280
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
3281
+ }
3282
+ /**
3283
+ * Parse the session from ProjectLocationDataStoreSessions resource.
3284
+ *
3285
+ * @param {string} projectLocationDataStoreSessionsName
3286
+ * A fully-qualified path representing project_location_data_store_sessions resource.
3287
+ * @returns {string} A string representing the session.
3288
+ */
3289
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
3290
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
3291
+ }
3262
3292
  /**
3263
3293
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3264
3294
  *