@google-cloud/discoveryengine 2.2.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +30 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
  10. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +18 -3
  11. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
  12. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
  13. package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
  14. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
  15. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
  16. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
  19. package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
  20. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +14 -14
  21. package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
  22. package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
  23. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
  24. package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
  25. package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +8 -14
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
  32. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +8 -14
  33. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
  34. package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
  35. package/build/protos/protos.d.ts +21218 -11675
  36. package/build/protos/protos.js +92642 -66407
  37. package/build/protos/protos.json +5854 -2801
  38. package/build/src/index.d.ts +16 -1
  39. package/build/src/index.js +12 -2
  40. package/build/src/v1/assistant_service_client.d.ts +2058 -0
  41. package/build/src/v1/assistant_service_client.js +2957 -0
  42. package/build/src/v1/assistant_service_client_config.json +43 -0
  43. package/build/src/v1/assistant_service_proto_list.json +48 -0
  44. package/build/src/v1/cmek_config_service_client.d.ts +2398 -0
  45. package/build/src/v1/cmek_config_service_client.js +3426 -0
  46. package/build/src/v1/cmek_config_service_client_config.json +42 -0
  47. package/build/src/v1/cmek_config_service_proto_list.json +48 -0
  48. package/build/src/v1/completion_service_client.d.ts +345 -144
  49. package/build/src/v1/completion_service_client.js +482 -198
  50. package/build/src/v1/completion_service_proto_list.json +10 -1
  51. package/build/src/v1/control_service_client.d.ts +345 -144
  52. package/build/src/v1/control_service_client.js +498 -196
  53. package/build/src/v1/control_service_proto_list.json +10 -1
  54. package/build/src/v1/conversational_search_service_client.d.ts +392 -155
  55. package/build/src/v1/conversational_search_service_client.js +572 -204
  56. package/build/src/v1/conversational_search_service_proto_list.json +10 -1
  57. package/build/src/v1/data_store_service_client.d.ts +351 -144
  58. package/build/src/v1/data_store_service_client.js +488 -198
  59. package/build/src/v1/data_store_service_proto_list.json +10 -1
  60. package/build/src/v1/document_service_client.d.ts +345 -144
  61. package/build/src/v1/document_service_client.js +506 -198
  62. package/build/src/v1/document_service_proto_list.json +10 -1
  63. package/build/src/v1/engine_service_client.d.ts +345 -144
  64. package/build/src/v1/engine_service_client.js +488 -198
  65. package/build/src/v1/engine_service_proto_list.json +10 -1
  66. package/build/src/v1/gapic_metadata.json +270 -0
  67. package/build/src/v1/grounded_generation_service_client.d.ts +345 -144
  68. package/build/src/v1/grounded_generation_service_client.js +486 -196
  69. package/build/src/v1/grounded_generation_service_proto_list.json +10 -1
  70. package/build/src/v1/identity_mapping_store_service_client.d.ts +2581 -0
  71. package/build/src/v1/identity_mapping_store_service_client.js +3601 -0
  72. package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
  73. package/build/src/v1/identity_mapping_store_service_proto_list.json +48 -0
  74. package/build/src/v1/index.d.ts +5 -0
  75. package/build/src/v1/index.js +11 -1
  76. package/build/src/v1/project_service_client.d.ts +345 -144
  77. package/build/src/v1/project_service_client.js +476 -198
  78. package/build/src/v1/project_service_proto_list.json +10 -1
  79. package/build/src/v1/rank_service_client.d.ts +345 -144
  80. package/build/src/v1/rank_service_client.js +480 -196
  81. package/build/src/v1/rank_service_proto_list.json +10 -1
  82. package/build/src/v1/recommendation_service_client.d.ts +345 -144
  83. package/build/src/v1/recommendation_service_client.js +480 -196
  84. package/build/src/v1/recommendation_service_proto_list.json +10 -1
  85. package/build/src/v1/schema_service_client.d.ts +345 -144
  86. package/build/src/v1/schema_service_client.js +482 -198
  87. package/build/src/v1/schema_service_proto_list.json +10 -1
  88. package/build/src/v1/search_service_client.d.ts +393 -228
  89. package/build/src/v1/search_service_client.js +506 -252
  90. package/build/src/v1/search_service_proto_list.json +10 -1
  91. package/build/src/v1/search_tuning_service_client.d.ts +345 -144
  92. package/build/src/v1/search_tuning_service_client.js +482 -198
  93. package/build/src/v1/search_tuning_service_proto_list.json +10 -1
  94. package/build/src/v1/serving_config_service_client.d.ts +345 -144
  95. package/build/src/v1/serving_config_service_client.js +480 -196
  96. package/build/src/v1/serving_config_service_proto_list.json +10 -1
  97. package/build/src/v1/session_service_client.d.ts +2326 -0
  98. package/build/src/v1/session_service_client.js +3218 -0
  99. package/build/src/v1/session_service_client_config.json +63 -0
  100. package/build/src/v1/session_service_proto_list.json +48 -0
  101. package/build/src/v1/site_search_engine_service_client.d.ts +345 -144
  102. package/build/src/v1/site_search_engine_service_client.js +494 -198
  103. package/build/src/v1/site_search_engine_service_proto_list.json +10 -1
  104. package/build/src/v1/user_event_service_client.d.ts +345 -144
  105. package/build/src/v1/user_event_service_client.js +488 -198
  106. package/build/src/v1/user_event_service_proto_list.json +10 -1
  107. package/build/src/v1/user_license_service_client.d.ts +2367 -0
  108. package/build/src/v1/user_license_service_client.js +3346 -0
  109. package/build/src/v1/user_license_service_client_config.json +34 -0
  110. package/build/src/v1/user_license_service_proto_list.json +48 -0
  111. package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
  112. package/build/src/v1alpha/acl_config_service_client.js +208 -196
  113. package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
  114. package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
  115. package/build/src/v1alpha/chunk_service_client.js +202 -196
  116. package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
  117. package/build/src/v1alpha/completion_service_client.d.ts +144 -144
  118. package/build/src/v1alpha/completion_service_client.js +203 -197
  119. package/build/src/v1alpha/completion_service_proto_list.json +1 -0
  120. package/build/src/v1alpha/control_service_client.d.ts +144 -144
  121. package/build/src/v1alpha/control_service_client.js +220 -196
  122. package/build/src/v1alpha/control_service_proto_list.json +1 -0
  123. package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
  124. package/build/src/v1alpha/conversational_search_service_client.js +310 -210
  125. package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
  126. package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
  127. package/build/src/v1alpha/data_store_service_client.js +221 -197
  128. package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
  129. package/build/src/v1alpha/document_service_client.d.ts +144 -144
  130. package/build/src/v1alpha/document_service_client.js +233 -197
  131. package/build/src/v1alpha/document_service_proto_list.json +1 -0
  132. package/build/src/v1alpha/engine_service_client.d.ts +144 -144
  133. package/build/src/v1alpha/engine_service_client.js +221 -197
  134. package/build/src/v1alpha/engine_service_proto_list.json +1 -0
  135. package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
  136. package/build/src/v1alpha/estimate_billing_service_client.js +197 -197
  137. package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
  138. package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
  139. package/build/src/v1alpha/evaluation_service_client.js +203 -197
  140. package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
  141. package/build/src/v1alpha/gapic_metadata.json +82 -0
  142. package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
  143. package/build/src/v1alpha/grounded_generation_service_client.js +202 -196
  144. package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
  145. package/build/src/v1alpha/index.d.ts +1 -0
  146. package/build/src/v1alpha/index.js +3 -1
  147. package/build/src/v1alpha/project_service_client.d.ts +144 -144
  148. package/build/src/v1alpha/project_service_client.js +209 -197
  149. package/build/src/v1alpha/project_service_proto_list.json +1 -0
  150. package/build/src/v1alpha/rank_service_client.d.ts +144 -144
  151. package/build/src/v1alpha/rank_service_client.js +202 -196
  152. package/build/src/v1alpha/rank_service_proto_list.json +1 -0
  153. package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
  154. package/build/src/v1alpha/recommendation_service_client.js +202 -196
  155. package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
  156. package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
  157. package/build/src/v1alpha/sample_query_service_client.js +221 -197
  158. package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
  159. package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
  160. package/build/src/v1alpha/sample_query_set_service_client.js +220 -196
  161. package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
  162. package/build/src/v1alpha/schema_service_client.d.ts +144 -144
  163. package/build/src/v1alpha/schema_service_client.js +203 -197
  164. package/build/src/v1alpha/schema_service_proto_list.json +1 -0
  165. package/build/src/v1alpha/search_service_client.d.ts +168 -186
  166. package/build/src/v1alpha/search_service_client.js +212 -224
  167. package/build/src/v1alpha/search_service_proto_list.json +1 -0
  168. package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
  169. package/build/src/v1alpha/search_tuning_service_client.js +203 -197
  170. package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
  171. package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
  172. package/build/src/v1alpha/serving_config_service_client.js +208 -196
  173. package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
  174. package/build/src/v1alpha/session_service_client.d.ts +2331 -0
  175. package/build/src/v1alpha/session_service_client.js +3161 -0
  176. package/build/src/v1alpha/session_service_client_config.json +68 -0
  177. package/build/src/v1alpha/session_service_proto_list.json +49 -0
  178. package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
  179. package/build/src/v1alpha/site_search_engine_service_client.js +215 -197
  180. package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
  181. package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
  182. package/build/src/v1alpha/user_event_service_client.js +209 -197
  183. package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
  184. package/build/src/v1beta/completion_service_client.d.ts +144 -144
  185. package/build/src/v1beta/completion_service_client.js +209 -197
  186. package/build/src/v1beta/completion_service_proto_list.json +1 -0
  187. package/build/src/v1beta/control_service_client.d.ts +144 -144
  188. package/build/src/v1beta/control_service_client.js +220 -196
  189. package/build/src/v1beta/control_service_proto_list.json +1 -0
  190. package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
  191. package/build/src/v1beta/conversational_search_service_client.js +308 -208
  192. package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
  193. package/build/src/v1beta/data_store_service_client.d.ts +144 -144
  194. package/build/src/v1beta/data_store_service_client.js +209 -197
  195. package/build/src/v1beta/data_store_service_proto_list.json +1 -0
  196. package/build/src/v1beta/document_service_client.d.ts +144 -144
  197. package/build/src/v1beta/document_service_client.js +227 -197
  198. package/build/src/v1beta/document_service_proto_list.json +1 -0
  199. package/build/src/v1beta/engine_service_client.d.ts +144 -144
  200. package/build/src/v1beta/engine_service_client.js +221 -197
  201. package/build/src/v1beta/engine_service_proto_list.json +1 -0
  202. package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
  203. package/build/src/v1beta/evaluation_service_client.js +203 -197
  204. package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
  205. package/build/src/v1beta/gapic_metadata.json +68 -0
  206. package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
  207. package/build/src/v1beta/grounded_generation_service_client.js +208 -196
  208. package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
  209. package/build/src/v1beta/index.d.ts +1 -0
  210. package/build/src/v1beta/index.js +3 -1
  211. package/build/src/v1beta/project_service_client.d.ts +144 -144
  212. package/build/src/v1beta/project_service_client.js +197 -197
  213. package/build/src/v1beta/project_service_proto_list.json +1 -0
  214. package/build/src/v1beta/rank_service_client.d.ts +144 -144
  215. package/build/src/v1beta/rank_service_client.js +202 -196
  216. package/build/src/v1beta/rank_service_proto_list.json +1 -0
  217. package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
  218. package/build/src/v1beta/recommendation_service_client.js +202 -196
  219. package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
  220. package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
  221. package/build/src/v1beta/sample_query_service_client.js +221 -197
  222. package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
  223. package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
  224. package/build/src/v1beta/sample_query_set_service_client.js +220 -196
  225. package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
  226. package/build/src/v1beta/schema_service_client.d.ts +144 -144
  227. package/build/src/v1beta/schema_service_client.js +203 -197
  228. package/build/src/v1beta/schema_service_proto_list.json +1 -0
  229. package/build/src/v1beta/search_service_client.d.ts +192 -228
  230. package/build/src/v1beta/search_service_client.js +228 -252
  231. package/build/src/v1beta/search_service_proto_list.json +1 -0
  232. package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
  233. package/build/src/v1beta/search_tuning_service_client.js +203 -197
  234. package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
  235. package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
  236. package/build/src/v1beta/serving_config_service_client.js +208 -196
  237. package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
  238. package/build/src/v1beta/session_service_client.d.ts +2266 -0
  239. package/build/src/v1beta/session_service_client.js +3136 -0
  240. package/build/src/v1beta/session_service_client_config.json +63 -0
  241. package/build/src/v1beta/session_service_proto_list.json +45 -0
  242. package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
  243. package/build/src/v1beta/site_search_engine_service_client.js +215 -197
  244. package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
  245. package/build/src/v1beta/user_event_service_client.d.ts +144 -144
  246. package/build/src/v1beta/user_event_service_client.js +209 -197
  247. package/build/src/v1beta/user_event_service_proto_list.json +1 -0
  248. package/package.json +7 -7
  249. package/CHANGELOG.md +0 -274
@@ -177,15 +177,15 @@ class ProjectServiceClient {
177
177
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
178
178
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
179
179
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
180
- projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
181
180
  projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
181
+ projectLocationCollectionDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
182
182
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
183
183
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
184
184
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
185
185
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
186
186
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
187
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
188
187
  projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
188
+ projectLocationCollectionEngineSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
189
189
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
190
190
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
191
191
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -195,14 +195,14 @@ class ProjectServiceClient {
195
195
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
196
196
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
197
197
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
198
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
199
198
  projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
199
+ projectLocationDataStoreSessionsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
200
200
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
201
201
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
202
202
  sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
203
203
  sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
204
204
  };
205
- const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
205
+ const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
206
206
  // This API contains "long-running operations", which return a
207
207
  // an Operation object that allows for tracking of the operation,
208
208
  // rather than holding a request open.
@@ -362,6 +362,12 @@ class ProjectServiceClient {
362
362
  ?.then(([response, options, rawResponse]) => {
363
363
  this._log.info('getProject response %j', response);
364
364
  return [response, options, rawResponse];
365
+ }).catch((error) => {
366
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
367
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
368
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
369
+ }
370
+ throw error;
365
371
  });
366
372
  }
367
373
  reportConsentChange(request, optionsOrCallback, callback) {
@@ -392,6 +398,12 @@ class ProjectServiceClient {
392
398
  ?.then(([response, options, rawResponse]) => {
393
399
  this._log.info('reportConsentChange response %j', response);
394
400
  return [response, options, rawResponse];
401
+ }).catch((error) => {
402
+ if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
403
+ const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
404
+ error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
405
+ }
406
+ throw error;
395
407
  });
396
408
  }
397
409
  provisionProject(request, optionsOrCallback, callback) {
@@ -1470,154 +1482,154 @@ class ProjectServiceClient {
1470
1482
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1471
1483
  }
1472
1484
  /**
1473
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1485
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1474
1486
  *
1475
1487
  * @param {string} project
1476
1488
  * @param {string} location
1477
1489
  * @param {string} collection
1478
1490
  * @param {string} data_store
1479
1491
  * @param {string} session
1492
+ * @param {string} answer
1480
1493
  * @returns {string} Resource name string.
1481
1494
  */
1482
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1483
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1495
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1496
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1484
1497
  project: project,
1485
1498
  location: location,
1486
1499
  collection: collection,
1487
1500
  data_store: dataStore,
1488
1501
  session: session,
1502
+ answer: answer,
1489
1503
  });
1490
1504
  }
1491
1505
  /**
1492
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1506
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1493
1507
  *
1494
- * @param {string} projectLocationCollectionDataStoreSessionName
1495
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1508
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1509
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1496
1510
  * @returns {string} A string representing the project.
1497
1511
  */
1498
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1499
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1512
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1513
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1500
1514
  }
1501
1515
  /**
1502
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1516
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1503
1517
  *
1504
- * @param {string} projectLocationCollectionDataStoreSessionName
1505
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1518
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1519
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1506
1520
  * @returns {string} A string representing the location.
1507
1521
  */
1508
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1509
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1522
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1523
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1510
1524
  }
1511
1525
  /**
1512
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1526
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1513
1527
  *
1514
- * @param {string} projectLocationCollectionDataStoreSessionName
1515
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1528
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1529
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1516
1530
  * @returns {string} A string representing the collection.
1517
1531
  */
1518
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1519
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1532
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1533
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1520
1534
  }
1521
1535
  /**
1522
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1536
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1523
1537
  *
1524
- * @param {string} projectLocationCollectionDataStoreSessionName
1525
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1538
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1539
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1526
1540
  * @returns {string} A string representing the data_store.
1527
1541
  */
1528
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1529
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1542
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1543
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1530
1544
  }
1531
1545
  /**
1532
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1546
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1533
1547
  *
1534
- * @param {string} projectLocationCollectionDataStoreSessionName
1535
- * A fully-qualified path representing project_location_collection_data_store_session resource.
1548
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1549
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1536
1550
  * @returns {string} A string representing the session.
1537
1551
  */
1538
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1539
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1552
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1553
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1540
1554
  }
1541
1555
  /**
1542
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1556
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1557
+ *
1558
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1559
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1560
+ * @returns {string} A string representing the answer.
1561
+ */
1562
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1563
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1564
+ }
1565
+ /**
1566
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
1543
1567
  *
1544
1568
  * @param {string} project
1545
1569
  * @param {string} location
1546
1570
  * @param {string} collection
1547
1571
  * @param {string} data_store
1548
1572
  * @param {string} session
1549
- * @param {string} answer
1550
1573
  * @returns {string} Resource name string.
1551
1574
  */
1552
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1553
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1575
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
1576
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
1554
1577
  project: project,
1555
1578
  location: location,
1556
1579
  collection: collection,
1557
1580
  data_store: dataStore,
1558
1581
  session: session,
1559
- answer: answer,
1560
1582
  });
1561
1583
  }
1562
1584
  /**
1563
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1585
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
1564
1586
  *
1565
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1566
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1587
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1588
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1567
1589
  * @returns {string} A string representing the project.
1568
1590
  */
1569
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1570
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1591
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1592
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
1571
1593
  }
1572
1594
  /**
1573
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1595
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
1574
1596
  *
1575
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1576
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1597
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1598
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1577
1599
  * @returns {string} A string representing the location.
1578
1600
  */
1579
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1580
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1601
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1602
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
1581
1603
  }
1582
1604
  /**
1583
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1605
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
1584
1606
  *
1585
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1586
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1607
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1608
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1587
1609
  * @returns {string} A string representing the collection.
1588
1610
  */
1589
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1590
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1611
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1612
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
1591
1613
  }
1592
1614
  /**
1593
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1615
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
1594
1616
  *
1595
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1596
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1617
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1618
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1597
1619
  * @returns {string} A string representing the data_store.
1598
1620
  */
1599
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1600
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1621
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1622
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
1601
1623
  }
1602
1624
  /**
1603
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1625
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
1604
1626
  *
1605
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1606
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1627
+ * @param {string} projectLocationCollectionDataStoreSessionsName
1628
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
1607
1629
  * @returns {string} A string representing the session.
1608
1630
  */
1609
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1610
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1611
- }
1612
- /**
1613
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1614
- *
1615
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1616
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1617
- * @returns {string} A string representing the answer.
1618
- */
1619
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1620
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1631
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
1632
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
1621
1633
  }
1622
1634
  /**
1623
1635
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -1953,154 +1965,154 @@ class ProjectServiceClient {
1953
1965
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1954
1966
  }
1955
1967
  /**
1956
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1968
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1957
1969
  *
1958
1970
  * @param {string} project
1959
1971
  * @param {string} location
1960
1972
  * @param {string} collection
1961
1973
  * @param {string} engine
1962
1974
  * @param {string} session
1975
+ * @param {string} answer
1963
1976
  * @returns {string} Resource name string.
1964
1977
  */
1965
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1966
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1978
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1979
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1967
1980
  project: project,
1968
1981
  location: location,
1969
1982
  collection: collection,
1970
1983
  engine: engine,
1971
1984
  session: session,
1985
+ answer: answer,
1972
1986
  });
1973
1987
  }
1974
1988
  /**
1975
- * Parse the project from ProjectLocationCollectionEngineSession resource.
1989
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1976
1990
  *
1977
- * @param {string} projectLocationCollectionEngineSessionName
1978
- * A fully-qualified path representing project_location_collection_engine_session resource.
1991
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1992
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1979
1993
  * @returns {string} A string representing the project.
1980
1994
  */
1981
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1982
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1995
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1996
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1983
1997
  }
1984
1998
  /**
1985
- * Parse the location from ProjectLocationCollectionEngineSession resource.
1999
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1986
2000
  *
1987
- * @param {string} projectLocationCollectionEngineSessionName
1988
- * A fully-qualified path representing project_location_collection_engine_session resource.
2001
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2002
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1989
2003
  * @returns {string} A string representing the location.
1990
2004
  */
1991
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1992
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
2005
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2006
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1993
2007
  }
1994
2008
  /**
1995
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
2009
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1996
2010
  *
1997
- * @param {string} projectLocationCollectionEngineSessionName
1998
- * A fully-qualified path representing project_location_collection_engine_session resource.
2011
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2012
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1999
2013
  * @returns {string} A string representing the collection.
2000
2014
  */
2001
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2002
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
2015
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2016
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2003
2017
  }
2004
2018
  /**
2005
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
2019
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2006
2020
  *
2007
- * @param {string} projectLocationCollectionEngineSessionName
2008
- * A fully-qualified path representing project_location_collection_engine_session resource.
2021
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2022
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2009
2023
  * @returns {string} A string representing the engine.
2010
2024
  */
2011
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2012
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
2025
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2026
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2013
2027
  }
2014
2028
  /**
2015
- * Parse the session from ProjectLocationCollectionEngineSession resource.
2029
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2016
2030
  *
2017
- * @param {string} projectLocationCollectionEngineSessionName
2018
- * A fully-qualified path representing project_location_collection_engine_session resource.
2031
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2032
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2019
2033
  * @returns {string} A string representing the session.
2020
2034
  */
2021
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2022
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
2035
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2036
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2023
2037
  }
2024
2038
  /**
2025
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2039
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2040
+ *
2041
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
2042
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2043
+ * @returns {string} A string representing the answer.
2044
+ */
2045
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2046
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2047
+ }
2048
+ /**
2049
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
2026
2050
  *
2027
2051
  * @param {string} project
2028
2052
  * @param {string} location
2029
2053
  * @param {string} collection
2030
2054
  * @param {string} engine
2031
2055
  * @param {string} session
2032
- * @param {string} answer
2033
2056
  * @returns {string} Resource name string.
2034
2057
  */
2035
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
2036
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2058
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
2059
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
2037
2060
  project: project,
2038
2061
  location: location,
2039
2062
  collection: collection,
2040
2063
  engine: engine,
2041
2064
  session: session,
2042
- answer: answer,
2043
2065
  });
2044
2066
  }
2045
2067
  /**
2046
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2068
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
2047
2069
  *
2048
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2049
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2070
+ * @param {string} projectLocationCollectionEngineSessionsName
2071
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2050
2072
  * @returns {string} A string representing the project.
2051
2073
  */
2052
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2053
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2074
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2075
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
2054
2076
  }
2055
2077
  /**
2056
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2078
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
2057
2079
  *
2058
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2059
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2080
+ * @param {string} projectLocationCollectionEngineSessionsName
2081
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2060
2082
  * @returns {string} A string representing the location.
2061
2083
  */
2062
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2063
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2084
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2085
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
2064
2086
  }
2065
2087
  /**
2066
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2088
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
2067
2089
  *
2068
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2069
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2090
+ * @param {string} projectLocationCollectionEngineSessionsName
2091
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2070
2092
  * @returns {string} A string representing the collection.
2071
2093
  */
2072
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2073
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2094
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2095
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
2074
2096
  }
2075
2097
  /**
2076
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2098
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
2077
2099
  *
2078
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2079
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2100
+ * @param {string} projectLocationCollectionEngineSessionsName
2101
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2080
2102
  * @returns {string} A string representing the engine.
2081
2103
  */
2082
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2083
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2104
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2105
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
2084
2106
  }
2085
2107
  /**
2086
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2108
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
2087
2109
  *
2088
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2089
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2110
+ * @param {string} projectLocationCollectionEngineSessionsName
2111
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
2090
2112
  * @returns {string} A string representing the session.
2091
2113
  */
2092
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2093
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2094
- }
2095
- /**
2096
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
2097
- *
2098
- * @param {string} projectLocationCollectionEngineSessionAnswerName
2099
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2100
- * @returns {string} A string representing the answer.
2101
- */
2102
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
2103
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
2114
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
2115
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
2104
2116
  }
2105
2117
  /**
2106
2118
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -2627,63 +2639,6 @@ class ProjectServiceClient {
2627
2639
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
2628
2640
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
2629
2641
  }
2630
- /**
2631
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
2632
- *
2633
- * @param {string} project
2634
- * @param {string} location
2635
- * @param {string} data_store
2636
- * @param {string} session
2637
- * @returns {string} Resource name string.
2638
- */
2639
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2640
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2641
- project: project,
2642
- location: location,
2643
- data_store: dataStore,
2644
- session: session,
2645
- });
2646
- }
2647
- /**
2648
- * Parse the project from ProjectLocationDataStoreSession resource.
2649
- *
2650
- * @param {string} projectLocationDataStoreSessionName
2651
- * A fully-qualified path representing project_location_data_store_session resource.
2652
- * @returns {string} A string representing the project.
2653
- */
2654
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2655
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2656
- }
2657
- /**
2658
- * Parse the location from ProjectLocationDataStoreSession resource.
2659
- *
2660
- * @param {string} projectLocationDataStoreSessionName
2661
- * A fully-qualified path representing project_location_data_store_session resource.
2662
- * @returns {string} A string representing the location.
2663
- */
2664
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2665
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2666
- }
2667
- /**
2668
- * Parse the data_store from ProjectLocationDataStoreSession resource.
2669
- *
2670
- * @param {string} projectLocationDataStoreSessionName
2671
- * A fully-qualified path representing project_location_data_store_session resource.
2672
- * @returns {string} A string representing the data_store.
2673
- */
2674
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2675
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2676
- }
2677
- /**
2678
- * Parse the session from ProjectLocationDataStoreSession resource.
2679
- *
2680
- * @param {string} projectLocationDataStoreSessionName
2681
- * A fully-qualified path representing project_location_data_store_session resource.
2682
- * @returns {string} A string representing the session.
2683
- */
2684
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2685
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2686
- }
2687
2642
  /**
2688
2643
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2689
2644
  *
@@ -2753,6 +2708,63 @@ class ProjectServiceClient {
2753
2708
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2754
2709
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2755
2710
  }
2711
+ /**
2712
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
2713
+ *
2714
+ * @param {string} project
2715
+ * @param {string} location
2716
+ * @param {string} data_store
2717
+ * @param {string} session
2718
+ * @returns {string} Resource name string.
2719
+ */
2720
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
2721
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
2722
+ project: project,
2723
+ location: location,
2724
+ data_store: dataStore,
2725
+ session: session,
2726
+ });
2727
+ }
2728
+ /**
2729
+ * Parse the project from ProjectLocationDataStoreSessions resource.
2730
+ *
2731
+ * @param {string} projectLocationDataStoreSessionsName
2732
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2733
+ * @returns {string} A string representing the project.
2734
+ */
2735
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2736
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
2737
+ }
2738
+ /**
2739
+ * Parse the location from ProjectLocationDataStoreSessions resource.
2740
+ *
2741
+ * @param {string} projectLocationDataStoreSessionsName
2742
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2743
+ * @returns {string} A string representing the location.
2744
+ */
2745
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2746
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
2747
+ }
2748
+ /**
2749
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
2750
+ *
2751
+ * @param {string} projectLocationDataStoreSessionsName
2752
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2753
+ * @returns {string} A string representing the data_store.
2754
+ */
2755
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2756
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
2757
+ }
2758
+ /**
2759
+ * Parse the session from ProjectLocationDataStoreSessions resource.
2760
+ *
2761
+ * @param {string} projectLocationDataStoreSessionsName
2762
+ * A fully-qualified path representing project_location_data_store_sessions resource.
2763
+ * @returns {string} A string representing the session.
2764
+ */
2765
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
2766
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
2767
+ }
2756
2768
  /**
2757
2769
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
2758
2770
  *