@google-cloud/discoveryengine 2.3.0 → 2.5.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 (228) hide show
  1. package/README.md +20 -0
  2. package/build/protos/google/cloud/discoveryengine/v1/assist_answer.proto +251 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/assistant.proto +44 -0
  4. package/build/protos/google/cloud/discoveryengine/v1/assistant_service.proto +217 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +15 -3
  6. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +160 -14
  7. package/build/protos/google/cloud/discoveryengine/v1/session.proto +21 -8
  8. package/build/protos/google/cloud/discoveryengine/v1/session_service.proto +128 -0
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +15 -0
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +30 -9
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +136 -18
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +238 -8
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/session_service.proto +201 -0
  14. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +26 -5
  15. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +136 -18
  16. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +40 -8
  17. package/build/protos/google/cloud/discoveryengine/v1beta/session_service.proto +128 -0
  18. package/build/protos/protos.d.ts +15854 -10608
  19. package/build/protos/protos.js +47009 -33222
  20. package/build/protos/protos.json +5357 -3208
  21. package/build/src/index.d.ts +7 -1
  22. package/build/src/index.js +6 -2
  23. package/build/src/v1/assistant_service_client.d.ts +2058 -0
  24. package/build/src/v1/assistant_service_client.js +2957 -0
  25. package/build/src/v1/assistant_service_client_config.json +43 -0
  26. package/build/src/v1/assistant_service_proto_list.json +48 -0
  27. package/build/src/v1/cmek_config_service_client.d.ts +255 -144
  28. package/build/src/v1/cmek_config_service_client.js +348 -196
  29. package/build/src/v1/cmek_config_service_proto_list.json +4 -0
  30. package/build/src/v1/completion_service_client.d.ts +255 -144
  31. package/build/src/v1/completion_service_client.js +348 -196
  32. package/build/src/v1/completion_service_proto_list.json +4 -0
  33. package/build/src/v1/control_service_client.d.ts +255 -144
  34. package/build/src/v1/control_service_client.js +348 -196
  35. package/build/src/v1/control_service_proto_list.json +4 -0
  36. package/build/src/v1/conversational_search_service_client.d.ts +302 -155
  37. package/build/src/v1/conversational_search_service_client.js +380 -204
  38. package/build/src/v1/conversational_search_service_proto_list.json +4 -0
  39. package/build/src/v1/data_store_service_client.d.ts +255 -144
  40. package/build/src/v1/data_store_service_client.js +348 -196
  41. package/build/src/v1/data_store_service_proto_list.json +4 -0
  42. package/build/src/v1/document_service_client.d.ts +255 -144
  43. package/build/src/v1/document_service_client.js +348 -196
  44. package/build/src/v1/document_service_proto_list.json +4 -0
  45. package/build/src/v1/engine_service_client.d.ts +255 -144
  46. package/build/src/v1/engine_service_client.js +348 -196
  47. package/build/src/v1/engine_service_proto_list.json +4 -0
  48. package/build/src/v1/gapic_metadata.json +86 -0
  49. package/build/src/v1/grounded_generation_service_client.d.ts +255 -144
  50. package/build/src/v1/grounded_generation_service_client.js +348 -196
  51. package/build/src/v1/grounded_generation_service_proto_list.json +4 -0
  52. package/build/src/v1/identity_mapping_store_service_client.d.ts +255 -144
  53. package/build/src/v1/identity_mapping_store_service_client.js +353 -201
  54. package/build/src/v1/identity_mapping_store_service_proto_list.json +4 -0
  55. package/build/src/v1/index.d.ts +2 -0
  56. package/build/src/v1/index.js +5 -1
  57. package/build/src/v1/project_service_client.d.ts +255 -144
  58. package/build/src/v1/project_service_client.js +348 -196
  59. package/build/src/v1/project_service_proto_list.json +4 -0
  60. package/build/src/v1/rank_service_client.d.ts +255 -144
  61. package/build/src/v1/rank_service_client.js +348 -196
  62. package/build/src/v1/rank_service_proto_list.json +4 -0
  63. package/build/src/v1/recommendation_service_client.d.ts +255 -144
  64. package/build/src/v1/recommendation_service_client.js +348 -196
  65. package/build/src/v1/recommendation_service_proto_list.json +4 -0
  66. package/build/src/v1/schema_service_client.d.ts +255 -144
  67. package/build/src/v1/schema_service_client.js +348 -196
  68. package/build/src/v1/schema_service_proto_list.json +4 -0
  69. package/build/src/v1/search_service_client.d.ts +861 -228
  70. package/build/src/v1/search_service_client.js +752 -252
  71. package/build/src/v1/search_service_proto_list.json +4 -0
  72. package/build/src/v1/search_tuning_service_client.d.ts +255 -144
  73. package/build/src/v1/search_tuning_service_client.js +348 -196
  74. package/build/src/v1/search_tuning_service_proto_list.json +4 -0
  75. package/build/src/v1/serving_config_service_client.d.ts +255 -144
  76. package/build/src/v1/serving_config_service_client.js +348 -196
  77. package/build/src/v1/serving_config_service_proto_list.json +4 -0
  78. package/build/src/v1/session_service_client.d.ts +2326 -0
  79. package/build/src/v1/session_service_client.js +3218 -0
  80. package/build/src/v1/session_service_client_config.json +63 -0
  81. package/build/src/v1/session_service_proto_list.json +48 -0
  82. package/build/src/v1/site_search_engine_service_client.d.ts +255 -144
  83. package/build/src/v1/site_search_engine_service_client.js +348 -196
  84. package/build/src/v1/site_search_engine_service_proto_list.json +4 -0
  85. package/build/src/v1/user_event_service_client.d.ts +255 -144
  86. package/build/src/v1/user_event_service_client.js +348 -196
  87. package/build/src/v1/user_event_service_proto_list.json +4 -0
  88. package/build/src/v1/user_license_service_client.d.ts +255 -144
  89. package/build/src/v1/user_license_service_client.js +348 -196
  90. package/build/src/v1/user_license_service_proto_list.json +4 -0
  91. package/build/src/v1alpha/acl_config_service_client.d.ts +144 -144
  92. package/build/src/v1alpha/acl_config_service_client.js +196 -196
  93. package/build/src/v1alpha/acl_config_service_proto_list.json +1 -0
  94. package/build/src/v1alpha/chunk_service_client.d.ts +144 -144
  95. package/build/src/v1alpha/chunk_service_client.js +196 -196
  96. package/build/src/v1alpha/chunk_service_proto_list.json +1 -0
  97. package/build/src/v1alpha/completion_service_client.d.ts +144 -144
  98. package/build/src/v1alpha/completion_service_client.js +196 -196
  99. package/build/src/v1alpha/completion_service_proto_list.json +1 -0
  100. package/build/src/v1alpha/control_service_client.d.ts +144 -144
  101. package/build/src/v1alpha/control_service_client.js +196 -196
  102. package/build/src/v1alpha/control_service_proto_list.json +1 -0
  103. package/build/src/v1alpha/conversational_search_service_client.d.ts +221 -167
  104. package/build/src/v1alpha/conversational_search_service_client.js +244 -210
  105. package/build/src/v1alpha/conversational_search_service_proto_list.json +1 -0
  106. package/build/src/v1alpha/data_store_service_client.d.ts +144 -144
  107. package/build/src/v1alpha/data_store_service_client.js +196 -196
  108. package/build/src/v1alpha/data_store_service_proto_list.json +1 -0
  109. package/build/src/v1alpha/document_service_client.d.ts +144 -144
  110. package/build/src/v1alpha/document_service_client.js +196 -196
  111. package/build/src/v1alpha/document_service_proto_list.json +1 -0
  112. package/build/src/v1alpha/engine_service_client.d.ts +144 -144
  113. package/build/src/v1alpha/engine_service_client.js +196 -196
  114. package/build/src/v1alpha/engine_service_proto_list.json +1 -0
  115. package/build/src/v1alpha/estimate_billing_service_client.d.ts +144 -144
  116. package/build/src/v1alpha/estimate_billing_service_client.js +196 -196
  117. package/build/src/v1alpha/estimate_billing_service_proto_list.json +1 -0
  118. package/build/src/v1alpha/evaluation_service_client.d.ts +144 -144
  119. package/build/src/v1alpha/evaluation_service_client.js +196 -196
  120. package/build/src/v1alpha/evaluation_service_proto_list.json +1 -0
  121. package/build/src/v1alpha/gapic_metadata.json +82 -0
  122. package/build/src/v1alpha/grounded_generation_service_client.d.ts +144 -144
  123. package/build/src/v1alpha/grounded_generation_service_client.js +196 -196
  124. package/build/src/v1alpha/grounded_generation_service_proto_list.json +1 -0
  125. package/build/src/v1alpha/index.d.ts +1 -0
  126. package/build/src/v1alpha/index.js +3 -1
  127. package/build/src/v1alpha/project_service_client.d.ts +144 -144
  128. package/build/src/v1alpha/project_service_client.js +196 -196
  129. package/build/src/v1alpha/project_service_proto_list.json +1 -0
  130. package/build/src/v1alpha/rank_service_client.d.ts +144 -144
  131. package/build/src/v1alpha/rank_service_client.js +196 -196
  132. package/build/src/v1alpha/rank_service_proto_list.json +1 -0
  133. package/build/src/v1alpha/recommendation_service_client.d.ts +144 -144
  134. package/build/src/v1alpha/recommendation_service_client.js +196 -196
  135. package/build/src/v1alpha/recommendation_service_proto_list.json +1 -0
  136. package/build/src/v1alpha/sample_query_service_client.d.ts +144 -144
  137. package/build/src/v1alpha/sample_query_service_client.js +196 -196
  138. package/build/src/v1alpha/sample_query_service_proto_list.json +1 -0
  139. package/build/src/v1alpha/sample_query_set_service_client.d.ts +144 -144
  140. package/build/src/v1alpha/sample_query_set_service_client.js +196 -196
  141. package/build/src/v1alpha/sample_query_set_service_proto_list.json +1 -0
  142. package/build/src/v1alpha/schema_service_client.d.ts +144 -144
  143. package/build/src/v1alpha/schema_service_client.js +196 -196
  144. package/build/src/v1alpha/schema_service_proto_list.json +1 -0
  145. package/build/src/v1alpha/search_service_client.d.ts +378 -198
  146. package/build/src/v1alpha/search_service_client.js +352 -232
  147. package/build/src/v1alpha/search_service_proto_list.json +1 -0
  148. package/build/src/v1alpha/search_tuning_service_client.d.ts +144 -144
  149. package/build/src/v1alpha/search_tuning_service_client.js +196 -196
  150. package/build/src/v1alpha/search_tuning_service_proto_list.json +1 -0
  151. package/build/src/v1alpha/serving_config_service_client.d.ts +144 -144
  152. package/build/src/v1alpha/serving_config_service_client.js +196 -196
  153. package/build/src/v1alpha/serving_config_service_proto_list.json +1 -0
  154. package/build/src/v1alpha/session_service_client.d.ts +2331 -0
  155. package/build/src/v1alpha/session_service_client.js +3161 -0
  156. package/build/src/v1alpha/session_service_client_config.json +68 -0
  157. package/build/src/v1alpha/session_service_proto_list.json +49 -0
  158. package/build/src/v1alpha/site_search_engine_service_client.d.ts +144 -144
  159. package/build/src/v1alpha/site_search_engine_service_client.js +196 -196
  160. package/build/src/v1alpha/site_search_engine_service_proto_list.json +1 -0
  161. package/build/src/v1alpha/user_event_service_client.d.ts +144 -144
  162. package/build/src/v1alpha/user_event_service_client.js +196 -196
  163. package/build/src/v1alpha/user_event_service_proto_list.json +1 -0
  164. package/build/src/v1beta/completion_service_client.d.ts +144 -144
  165. package/build/src/v1beta/completion_service_client.js +196 -196
  166. package/build/src/v1beta/completion_service_proto_list.json +1 -0
  167. package/build/src/v1beta/control_service_client.d.ts +144 -144
  168. package/build/src/v1beta/control_service_client.js +196 -196
  169. package/build/src/v1beta/control_service_proto_list.json +1 -0
  170. package/build/src/v1beta/conversational_search_service_client.d.ts +215 -161
  171. package/build/src/v1beta/conversational_search_service_client.js +242 -208
  172. package/build/src/v1beta/conversational_search_service_proto_list.json +1 -0
  173. package/build/src/v1beta/data_store_service_client.d.ts +144 -144
  174. package/build/src/v1beta/data_store_service_client.js +196 -196
  175. package/build/src/v1beta/data_store_service_proto_list.json +1 -0
  176. package/build/src/v1beta/document_service_client.d.ts +144 -144
  177. package/build/src/v1beta/document_service_client.js +196 -196
  178. package/build/src/v1beta/document_service_proto_list.json +1 -0
  179. package/build/src/v1beta/engine_service_client.d.ts +144 -144
  180. package/build/src/v1beta/engine_service_client.js +196 -196
  181. package/build/src/v1beta/engine_service_proto_list.json +1 -0
  182. package/build/src/v1beta/evaluation_service_client.d.ts +144 -144
  183. package/build/src/v1beta/evaluation_service_client.js +196 -196
  184. package/build/src/v1beta/evaluation_service_proto_list.json +1 -0
  185. package/build/src/v1beta/gapic_metadata.json +68 -0
  186. package/build/src/v1beta/grounded_generation_service_client.d.ts +144 -144
  187. package/build/src/v1beta/grounded_generation_service_client.js +196 -196
  188. package/build/src/v1beta/grounded_generation_service_proto_list.json +1 -0
  189. package/build/src/v1beta/index.d.ts +1 -0
  190. package/build/src/v1beta/index.js +3 -1
  191. package/build/src/v1beta/project_service_client.d.ts +144 -144
  192. package/build/src/v1beta/project_service_client.js +196 -196
  193. package/build/src/v1beta/project_service_proto_list.json +1 -0
  194. package/build/src/v1beta/rank_service_client.d.ts +144 -144
  195. package/build/src/v1beta/rank_service_client.js +196 -196
  196. package/build/src/v1beta/rank_service_proto_list.json +1 -0
  197. package/build/src/v1beta/recommendation_service_client.d.ts +144 -144
  198. package/build/src/v1beta/recommendation_service_client.js +196 -196
  199. package/build/src/v1beta/recommendation_service_proto_list.json +1 -0
  200. package/build/src/v1beta/sample_query_service_client.d.ts +144 -144
  201. package/build/src/v1beta/sample_query_service_client.js +196 -196
  202. package/build/src/v1beta/sample_query_service_proto_list.json +1 -0
  203. package/build/src/v1beta/sample_query_set_service_client.d.ts +144 -144
  204. package/build/src/v1beta/sample_query_set_service_client.js +196 -196
  205. package/build/src/v1beta/sample_query_set_service_proto_list.json +1 -0
  206. package/build/src/v1beta/schema_service_client.d.ts +144 -144
  207. package/build/src/v1beta/schema_service_client.js +196 -196
  208. package/build/src/v1beta/schema_service_proto_list.json +1 -0
  209. package/build/src/v1beta/search_service_client.d.ts +612 -252
  210. package/build/src/v1beta/search_service_client.js +508 -268
  211. package/build/src/v1beta/search_service_proto_list.json +1 -0
  212. package/build/src/v1beta/search_tuning_service_client.d.ts +144 -144
  213. package/build/src/v1beta/search_tuning_service_client.js +196 -196
  214. package/build/src/v1beta/search_tuning_service_proto_list.json +1 -0
  215. package/build/src/v1beta/serving_config_service_client.d.ts +144 -144
  216. package/build/src/v1beta/serving_config_service_client.js +196 -196
  217. package/build/src/v1beta/serving_config_service_proto_list.json +1 -0
  218. package/build/src/v1beta/session_service_client.d.ts +2266 -0
  219. package/build/src/v1beta/session_service_client.js +3136 -0
  220. package/build/src/v1beta/session_service_client_config.json +63 -0
  221. package/build/src/v1beta/session_service_proto_list.json +45 -0
  222. package/build/src/v1beta/site_search_engine_service_client.d.ts +144 -144
  223. package/build/src/v1beta/site_search_engine_service_client.js +196 -196
  224. package/build/src/v1beta/site_search_engine_service_proto_list.json +1 -0
  225. package/build/src/v1beta/user_event_service_client.d.ts +144 -144
  226. package/build/src/v1beta/user_event_service_client.js +196 -196
  227. package/build/src/v1beta/user_event_service_proto_list.json +1 -0
  228. package/package.json +1 -1
@@ -162,6 +162,8 @@ class SearchServiceClient {
162
162
  // identifiers to uniquely identify resources within the API.
163
163
  // Create useful helper objects for these.
164
164
  this.pathTemplates = {
165
+ assistAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}'),
166
+ assistantPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}'),
165
167
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
166
168
  identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
167
169
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
@@ -177,16 +179,16 @@ class SearchServiceClient {
177
179
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
178
180
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
179
181
  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
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}'),
182
184
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
183
185
  projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
184
186
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
185
187
  projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
186
188
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
187
189
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
188
- projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
189
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}'),
190
192
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
191
193
  projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
192
194
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
@@ -197,8 +199,8 @@ class SearchServiceClient {
197
199
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
198
200
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
199
201
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
200
- projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
201
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}'),
202
204
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
203
205
  projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
204
206
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
@@ -549,22 +551,16 @@ class SearchServiceClient {
549
551
  * between /search API calls and /answer API calls.
550
552
  *
551
553
  * Example #1 (multi-turn /search API calls):
552
- * 1. Call /search API with the auto-session mode (see below).
553
- * 2. Call /search API with the session ID generated in the first call.
554
- * Here, the previous search query gets considered in query
555
- * standing. I.e., if the first query is "How did Alphabet do in 2022?"
556
- * and the current query is "How about 2023?", the current query will
557
- * be interpreted as "How did Alphabet do in 2023?".
554
+ * Call /search API with the session ID generated in the first call.
555
+ * Here, the previous search query gets considered in query
556
+ * standing. I.e., if the first query is "How did Alphabet do in 2022?"
557
+ * and the current query is "How about 2023?", the current query will
558
+ * be interpreted as "How did Alphabet do in 2023?".
558
559
  *
559
560
  * Example #2 (coordination between /search API calls and /answer API calls):
560
- * 1. Call /search API with the auto-session mode (see below).
561
- * 2. Call /answer API with the session ID generated in the first call.
562
- * Here, the answer generation happens in the context of the search
563
- * results from the first search call.
564
- *
565
- * Auto-session mode: when `projects/.../sessions/-` is used, a new session
566
- * gets automatically created. Otherwise, users can use the create-session API
567
- * to create a session manually.
561
+ * Call /answer API with the session ID generated in the first call.
562
+ * Here, the answer generation happens in the context of the search
563
+ * results from the first search call.
568
564
  *
569
565
  * Multi-turn Search feature is currently at private GA stage. Please use
570
566
  * v1alpha or v1beta version instead before we launch this feature to public
@@ -583,6 +579,99 @@ class SearchServiceClient {
583
579
  * This feature is not supported for healthcare search.
584
580
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
585
581
  * Optional. The specification for returning the relevance score.
582
+ * @param {string} request.rankingExpression
583
+ * The ranking expression controls the customized ranking on retrieval
584
+ * documents. This overrides
585
+ * {@link protos.google.cloud.discoveryengine.v1.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
586
+ * The syntax and supported features depend on the
587
+ * `ranking_expression_backend` value. If `ranking_expression_backend` is not
588
+ * provided, it defaults to `RANK_BY_EMBEDDING`.
589
+ *
590
+ * If
591
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
592
+ * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
593
+ * function or multiple functions that are joined by "+".
594
+ *
595
+ * * ranking_expression = function, { " + ", function };
596
+ *
597
+ * Supported functions:
598
+ *
599
+ * * double * relevance_score
600
+ * * double * dotProduct(embedding_field_path)
601
+ *
602
+ * Function variables:
603
+ *
604
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
605
+ * between query and document.
606
+ * * `embedding_field_path`: the document embedding field
607
+ * used with query embedding vector.
608
+ * * `dotProduct`: embedding function between `embedding_field_path` and
609
+ * query embedding vector.
610
+ *
611
+ * Example ranking expression:
612
+ *
613
+ * If document has an embedding field doc_embedding, the ranking expression
614
+ * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
615
+ *
616
+ * If
617
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
618
+ * is set to `RANK_BY_FORMULA`, the following expression types (and
619
+ * combinations of those chained using + or
620
+ * * operators) are supported:
621
+ *
622
+ * * `double`
623
+ * * `signal`
624
+ * * `log(signal)`
625
+ * * `exp(signal)`
626
+ * * `rr(signal, double > 0)` -- reciprocal rank transformation with second
627
+ * argument being a denominator constant.
628
+ * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
629
+ * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
630
+ * signal2 | double, else returns signal1.
631
+ *
632
+ * Here are a few examples of ranking formulas that use the supported
633
+ * ranking expression types:
634
+ *
635
+ * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
636
+ * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
637
+ * `semantic_smilarity_score` adjustment.
638
+ * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
639
+ * is_nan(keyword_similarity_score)` -- rank by the exponent of
640
+ * `semantic_similarity_score` filling the value with 0 if it's NaN, also
641
+ * add constant 0.3 adjustment to the final score if
642
+ * `semantic_similarity_score` is NaN.
643
+ * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
644
+ * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
645
+ * of `keyword_similarity_score` with slight adjustment of reciprocal rank
646
+ * of `semantic_smilarity_score`.
647
+ *
648
+ * The following signals are supported:
649
+ *
650
+ * * `semantic_similarity_score`: semantic similarity adjustment that is
651
+ * calculated using the embeddings generated by a proprietary Google model.
652
+ * This score determines how semantically similar a search query is to a
653
+ * document.
654
+ * * `keyword_similarity_score`: keyword match adjustment uses the Best
655
+ * Match 25 (BM25) ranking function. This score is calculated using a
656
+ * probabilistic model to estimate the probability that a document is
657
+ * relevant to a given query.
658
+ * * `relevance_score`: semantic relevance adjustment that uses a
659
+ * proprietary Google model to determine the meaning and intent behind a
660
+ * user's query in context with the content in the documents.
661
+ * * `pctr_rank`: predicted conversion rate adjustment as a rank use
662
+ * predicted Click-through rate (pCTR) to gauge the relevance and
663
+ * attractiveness of a search result from a user's perspective. A higher
664
+ * pCTR suggests that the result is more likely to satisfy the user's query
665
+ * and intent, making it a valuable signal for ranking.
666
+ * * `freshness_rank`: freshness adjustment as a rank
667
+ * * `document_age`: The time in hours elapsed since the document was last
668
+ * updated, a floating-point number (e.g., 0.25 means 15 minutes).
669
+ * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
670
+ * Google model to determine the keyword-based overlap between the query and
671
+ * the document.
672
+ * * `base_rank`: the default rank of the result
673
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
674
+ * The backend to use for the ranking expression evaluation.
586
675
  * @param {object} [options]
587
676
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
588
677
  * @returns {Stream}
@@ -807,22 +896,16 @@ class SearchServiceClient {
807
896
  * between /search API calls and /answer API calls.
808
897
  *
809
898
  * Example #1 (multi-turn /search API calls):
810
- * 1. Call /search API with the auto-session mode (see below).
811
- * 2. Call /search API with the session ID generated in the first call.
812
- * Here, the previous search query gets considered in query
813
- * standing. I.e., if the first query is "How did Alphabet do in 2022?"
814
- * and the current query is "How about 2023?", the current query will
815
- * be interpreted as "How did Alphabet do in 2023?".
899
+ * Call /search API with the session ID generated in the first call.
900
+ * Here, the previous search query gets considered in query
901
+ * standing. I.e., if the first query is "How did Alphabet do in 2022?"
902
+ * and the current query is "How about 2023?", the current query will
903
+ * be interpreted as "How did Alphabet do in 2023?".
816
904
  *
817
905
  * Example #2 (coordination between /search API calls and /answer API calls):
818
- * 1. Call /search API with the auto-session mode (see below).
819
- * 2. Call /answer API with the session ID generated in the first call.
820
- * Here, the answer generation happens in the context of the search
821
- * results from the first search call.
822
- *
823
- * Auto-session mode: when `projects/.../sessions/-` is used, a new session
824
- * gets automatically created. Otherwise, users can use the create-session API
825
- * to create a session manually.
906
+ * Call /answer API with the session ID generated in the first call.
907
+ * Here, the answer generation happens in the context of the search
908
+ * results from the first search call.
826
909
  *
827
910
  * Multi-turn Search feature is currently at private GA stage. Please use
828
911
  * v1alpha or v1beta version instead before we launch this feature to public
@@ -841,6 +924,99 @@ class SearchServiceClient {
841
924
  * This feature is not supported for healthcare search.
842
925
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
843
926
  * Optional. The specification for returning the relevance score.
927
+ * @param {string} request.rankingExpression
928
+ * The ranking expression controls the customized ranking on retrieval
929
+ * documents. This overrides
930
+ * {@link protos.google.cloud.discoveryengine.v1.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
931
+ * The syntax and supported features depend on the
932
+ * `ranking_expression_backend` value. If `ranking_expression_backend` is not
933
+ * provided, it defaults to `RANK_BY_EMBEDDING`.
934
+ *
935
+ * If
936
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
937
+ * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
938
+ * function or multiple functions that are joined by "+".
939
+ *
940
+ * * ranking_expression = function, { " + ", function };
941
+ *
942
+ * Supported functions:
943
+ *
944
+ * * double * relevance_score
945
+ * * double * dotProduct(embedding_field_path)
946
+ *
947
+ * Function variables:
948
+ *
949
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
950
+ * between query and document.
951
+ * * `embedding_field_path`: the document embedding field
952
+ * used with query embedding vector.
953
+ * * `dotProduct`: embedding function between `embedding_field_path` and
954
+ * query embedding vector.
955
+ *
956
+ * Example ranking expression:
957
+ *
958
+ * If document has an embedding field doc_embedding, the ranking expression
959
+ * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
960
+ *
961
+ * If
962
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
963
+ * is set to `RANK_BY_FORMULA`, the following expression types (and
964
+ * combinations of those chained using + or
965
+ * * operators) are supported:
966
+ *
967
+ * * `double`
968
+ * * `signal`
969
+ * * `log(signal)`
970
+ * * `exp(signal)`
971
+ * * `rr(signal, double > 0)` -- reciprocal rank transformation with second
972
+ * argument being a denominator constant.
973
+ * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
974
+ * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
975
+ * signal2 | double, else returns signal1.
976
+ *
977
+ * Here are a few examples of ranking formulas that use the supported
978
+ * ranking expression types:
979
+ *
980
+ * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
981
+ * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
982
+ * `semantic_smilarity_score` adjustment.
983
+ * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
984
+ * is_nan(keyword_similarity_score)` -- rank by the exponent of
985
+ * `semantic_similarity_score` filling the value with 0 if it's NaN, also
986
+ * add constant 0.3 adjustment to the final score if
987
+ * `semantic_similarity_score` is NaN.
988
+ * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
989
+ * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
990
+ * of `keyword_similarity_score` with slight adjustment of reciprocal rank
991
+ * of `semantic_smilarity_score`.
992
+ *
993
+ * The following signals are supported:
994
+ *
995
+ * * `semantic_similarity_score`: semantic similarity adjustment that is
996
+ * calculated using the embeddings generated by a proprietary Google model.
997
+ * This score determines how semantically similar a search query is to a
998
+ * document.
999
+ * * `keyword_similarity_score`: keyword match adjustment uses the Best
1000
+ * Match 25 (BM25) ranking function. This score is calculated using a
1001
+ * probabilistic model to estimate the probability that a document is
1002
+ * relevant to a given query.
1003
+ * * `relevance_score`: semantic relevance adjustment that uses a
1004
+ * proprietary Google model to determine the meaning and intent behind a
1005
+ * user's query in context with the content in the documents.
1006
+ * * `pctr_rank`: predicted conversion rate adjustment as a rank use
1007
+ * predicted Click-through rate (pCTR) to gauge the relevance and
1008
+ * attractiveness of a search result from a user's perspective. A higher
1009
+ * pCTR suggests that the result is more likely to satisfy the user's query
1010
+ * and intent, making it a valuable signal for ranking.
1011
+ * * `freshness_rank`: freshness adjustment as a rank
1012
+ * * `document_age`: The time in hours elapsed since the document was last
1013
+ * updated, a floating-point number (e.g., 0.25 means 15 minutes).
1014
+ * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
1015
+ * Google model to determine the keyword-based overlap between the query and
1016
+ * the document.
1017
+ * * `base_rank`: the default rank of the result
1018
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1019
+ * The backend to use for the ranking expression evaluation.
844
1020
  * @param {object} [options]
845
1021
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
846
1022
  * @returns {Object}
@@ -1095,22 +1271,16 @@ class SearchServiceClient {
1095
1271
  * between /search API calls and /answer API calls.
1096
1272
  *
1097
1273
  * Example #1 (multi-turn /search API calls):
1098
- * 1. Call /search API with the auto-session mode (see below).
1099
- * 2. Call /search API with the session ID generated in the first call.
1100
- * Here, the previous search query gets considered in query
1101
- * standing. I.e., if the first query is "How did Alphabet do in 2022?"
1102
- * and the current query is "How about 2023?", the current query will
1103
- * be interpreted as "How did Alphabet do in 2023?".
1274
+ * Call /search API with the session ID generated in the first call.
1275
+ * Here, the previous search query gets considered in query
1276
+ * standing. I.e., if the first query is "How did Alphabet do in 2022?"
1277
+ * and the current query is "How about 2023?", the current query will
1278
+ * be interpreted as "How did Alphabet do in 2023?".
1104
1279
  *
1105
1280
  * Example #2 (coordination between /search API calls and /answer API calls):
1106
- * 1. Call /search API with the auto-session mode (see below).
1107
- * 2. Call /answer API with the session ID generated in the first call.
1108
- * Here, the answer generation happens in the context of the search
1109
- * results from the first search call.
1110
- *
1111
- * Auto-session mode: when `projects/.../sessions/-` is used, a new session
1112
- * gets automatically created. Otherwise, users can use the create-session API
1113
- * to create a session manually.
1281
+ * Call /answer API with the session ID generated in the first call.
1282
+ * Here, the answer generation happens in the context of the search
1283
+ * results from the first search call.
1114
1284
  *
1115
1285
  * Multi-turn Search feature is currently at private GA stage. Please use
1116
1286
  * v1alpha or v1beta version instead before we launch this feature to public
@@ -1129,6 +1299,99 @@ class SearchServiceClient {
1129
1299
  * This feature is not supported for healthcare search.
1130
1300
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
1131
1301
  * Optional. The specification for returning the relevance score.
1302
+ * @param {string} request.rankingExpression
1303
+ * The ranking expression controls the customized ranking on retrieval
1304
+ * documents. This overrides
1305
+ * {@link protos.google.cloud.discoveryengine.v1.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
1306
+ * The syntax and supported features depend on the
1307
+ * `ranking_expression_backend` value. If `ranking_expression_backend` is not
1308
+ * provided, it defaults to `RANK_BY_EMBEDDING`.
1309
+ *
1310
+ * If
1311
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
1312
+ * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
1313
+ * function or multiple functions that are joined by "+".
1314
+ *
1315
+ * * ranking_expression = function, { " + ", function };
1316
+ *
1317
+ * Supported functions:
1318
+ *
1319
+ * * double * relevance_score
1320
+ * * double * dotProduct(embedding_field_path)
1321
+ *
1322
+ * Function variables:
1323
+ *
1324
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
1325
+ * between query and document.
1326
+ * * `embedding_field_path`: the document embedding field
1327
+ * used with query embedding vector.
1328
+ * * `dotProduct`: embedding function between `embedding_field_path` and
1329
+ * query embedding vector.
1330
+ *
1331
+ * Example ranking expression:
1332
+ *
1333
+ * If document has an embedding field doc_embedding, the ranking expression
1334
+ * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
1335
+ *
1336
+ * If
1337
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
1338
+ * is set to `RANK_BY_FORMULA`, the following expression types (and
1339
+ * combinations of those chained using + or
1340
+ * * operators) are supported:
1341
+ *
1342
+ * * `double`
1343
+ * * `signal`
1344
+ * * `log(signal)`
1345
+ * * `exp(signal)`
1346
+ * * `rr(signal, double > 0)` -- reciprocal rank transformation with second
1347
+ * argument being a denominator constant.
1348
+ * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
1349
+ * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
1350
+ * signal2 | double, else returns signal1.
1351
+ *
1352
+ * Here are a few examples of ranking formulas that use the supported
1353
+ * ranking expression types:
1354
+ *
1355
+ * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
1356
+ * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
1357
+ * `semantic_smilarity_score` adjustment.
1358
+ * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
1359
+ * is_nan(keyword_similarity_score)` -- rank by the exponent of
1360
+ * `semantic_similarity_score` filling the value with 0 if it's NaN, also
1361
+ * add constant 0.3 adjustment to the final score if
1362
+ * `semantic_similarity_score` is NaN.
1363
+ * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
1364
+ * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
1365
+ * of `keyword_similarity_score` with slight adjustment of reciprocal rank
1366
+ * of `semantic_smilarity_score`.
1367
+ *
1368
+ * The following signals are supported:
1369
+ *
1370
+ * * `semantic_similarity_score`: semantic similarity adjustment that is
1371
+ * calculated using the embeddings generated by a proprietary Google model.
1372
+ * This score determines how semantically similar a search query is to a
1373
+ * document.
1374
+ * * `keyword_similarity_score`: keyword match adjustment uses the Best
1375
+ * Match 25 (BM25) ranking function. This score is calculated using a
1376
+ * probabilistic model to estimate the probability that a document is
1377
+ * relevant to a given query.
1378
+ * * `relevance_score`: semantic relevance adjustment that uses a
1379
+ * proprietary Google model to determine the meaning and intent behind a
1380
+ * user's query in context with the content in the documents.
1381
+ * * `pctr_rank`: predicted conversion rate adjustment as a rank use
1382
+ * predicted Click-through rate (pCTR) to gauge the relevance and
1383
+ * attractiveness of a search result from a user's perspective. A higher
1384
+ * pCTR suggests that the result is more likely to satisfy the user's query
1385
+ * and intent, making it a valuable signal for ranking.
1386
+ * * `freshness_rank`: freshness adjustment as a rank
1387
+ * * `document_age`: The time in hours elapsed since the document was last
1388
+ * updated, a floating-point number (e.g., 0.25 means 15 minutes).
1389
+ * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
1390
+ * Google model to determine the keyword-based overlap between the query and
1391
+ * the document.
1392
+ * * `base_rank`: the default rank of the result
1393
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1394
+ * The backend to use for the ranking expression evaluation.
1132
1395
  * @param {object} [options]
1133
1396
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1134
1397
  * @returns {Stream}
@@ -1353,22 +1616,16 @@ class SearchServiceClient {
1353
1616
  * between /search API calls and /answer API calls.
1354
1617
  *
1355
1618
  * Example #1 (multi-turn /search API calls):
1356
- * 1. Call /search API with the auto-session mode (see below).
1357
- * 2. Call /search API with the session ID generated in the first call.
1358
- * Here, the previous search query gets considered in query
1359
- * standing. I.e., if the first query is "How did Alphabet do in 2022?"
1360
- * and the current query is "How about 2023?", the current query will
1361
- * be interpreted as "How did Alphabet do in 2023?".
1619
+ * Call /search API with the session ID generated in the first call.
1620
+ * Here, the previous search query gets considered in query
1621
+ * standing. I.e., if the first query is "How did Alphabet do in 2022?"
1622
+ * and the current query is "How about 2023?", the current query will
1623
+ * be interpreted as "How did Alphabet do in 2023?".
1362
1624
  *
1363
1625
  * Example #2 (coordination between /search API calls and /answer API calls):
1364
- * 1. Call /search API with the auto-session mode (see below).
1365
- * 2. Call /answer API with the session ID generated in the first call.
1366
- * Here, the answer generation happens in the context of the search
1367
- * results from the first search call.
1368
- *
1369
- * Auto-session mode: when `projects/.../sessions/-` is used, a new session
1370
- * gets automatically created. Otherwise, users can use the create-session API
1371
- * to create a session manually.
1626
+ * Call /answer API with the session ID generated in the first call.
1627
+ * Here, the answer generation happens in the context of the search
1628
+ * results from the first search call.
1372
1629
  *
1373
1630
  * Multi-turn Search feature is currently at private GA stage. Please use
1374
1631
  * v1alpha or v1beta version instead before we launch this feature to public
@@ -1387,6 +1644,99 @@ class SearchServiceClient {
1387
1644
  * This feature is not supported for healthcare search.
1388
1645
  * @param {google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec} [request.relevanceScoreSpec]
1389
1646
  * Optional. The specification for returning the relevance score.
1647
+ * @param {string} request.rankingExpression
1648
+ * The ranking expression controls the customized ranking on retrieval
1649
+ * documents. This overrides
1650
+ * {@link protos.google.cloud.discoveryengine.v1.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
1651
+ * The syntax and supported features depend on the
1652
+ * `ranking_expression_backend` value. If `ranking_expression_backend` is not
1653
+ * provided, it defaults to `RANK_BY_EMBEDDING`.
1654
+ *
1655
+ * If
1656
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
1657
+ * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
1658
+ * function or multiple functions that are joined by "+".
1659
+ *
1660
+ * * ranking_expression = function, { " + ", function };
1661
+ *
1662
+ * Supported functions:
1663
+ *
1664
+ * * double * relevance_score
1665
+ * * double * dotProduct(embedding_field_path)
1666
+ *
1667
+ * Function variables:
1668
+ *
1669
+ * * `relevance_score`: pre-defined keywords, used for measure relevance
1670
+ * between query and document.
1671
+ * * `embedding_field_path`: the document embedding field
1672
+ * used with query embedding vector.
1673
+ * * `dotProduct`: embedding function between `embedding_field_path` and
1674
+ * query embedding vector.
1675
+ *
1676
+ * Example ranking expression:
1677
+ *
1678
+ * If document has an embedding field doc_embedding, the ranking expression
1679
+ * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
1680
+ *
1681
+ * If
1682
+ * {@link protos.google.cloud.discoveryengine.v1.SearchRequest.ranking_expression_backend|ranking_expression_backend}
1683
+ * is set to `RANK_BY_FORMULA`, the following expression types (and
1684
+ * combinations of those chained using + or
1685
+ * * operators) are supported:
1686
+ *
1687
+ * * `double`
1688
+ * * `signal`
1689
+ * * `log(signal)`
1690
+ * * `exp(signal)`
1691
+ * * `rr(signal, double > 0)` -- reciprocal rank transformation with second
1692
+ * argument being a denominator constant.
1693
+ * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
1694
+ * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
1695
+ * signal2 | double, else returns signal1.
1696
+ *
1697
+ * Here are a few examples of ranking formulas that use the supported
1698
+ * ranking expression types:
1699
+ *
1700
+ * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
1701
+ * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
1702
+ * `semantic_smilarity_score` adjustment.
1703
+ * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
1704
+ * is_nan(keyword_similarity_score)` -- rank by the exponent of
1705
+ * `semantic_similarity_score` filling the value with 0 if it's NaN, also
1706
+ * add constant 0.3 adjustment to the final score if
1707
+ * `semantic_similarity_score` is NaN.
1708
+ * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
1709
+ * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
1710
+ * of `keyword_similarity_score` with slight adjustment of reciprocal rank
1711
+ * of `semantic_smilarity_score`.
1712
+ *
1713
+ * The following signals are supported:
1714
+ *
1715
+ * * `semantic_similarity_score`: semantic similarity adjustment that is
1716
+ * calculated using the embeddings generated by a proprietary Google model.
1717
+ * This score determines how semantically similar a search query is to a
1718
+ * document.
1719
+ * * `keyword_similarity_score`: keyword match adjustment uses the Best
1720
+ * Match 25 (BM25) ranking function. This score is calculated using a
1721
+ * probabilistic model to estimate the probability that a document is
1722
+ * relevant to a given query.
1723
+ * * `relevance_score`: semantic relevance adjustment that uses a
1724
+ * proprietary Google model to determine the meaning and intent behind a
1725
+ * user's query in context with the content in the documents.
1726
+ * * `pctr_rank`: predicted conversion rate adjustment as a rank use
1727
+ * predicted Click-through rate (pCTR) to gauge the relevance and
1728
+ * attractiveness of a search result from a user's perspective. A higher
1729
+ * pCTR suggests that the result is more likely to satisfy the user's query
1730
+ * and intent, making it a valuable signal for ranking.
1731
+ * * `freshness_rank`: freshness adjustment as a rank
1732
+ * * `document_age`: The time in hours elapsed since the document was last
1733
+ * updated, a floating-point number (e.g., 0.25 means 15 minutes).
1734
+ * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
1735
+ * Google model to determine the keyword-based overlap between the query and
1736
+ * the document.
1737
+ * * `base_rank`: the default rank of the result
1738
+ * @param {google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend} [request.rankingExpressionBackend]
1739
+ * The backend to use for the ranking expression evaluation.
1390
1740
  * @param {object} [options]
1391
1741
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1392
1742
  * @returns {Object}
@@ -1471,6 +1821,156 @@ class SearchServiceClient {
1471
1821
  // --------------------
1472
1822
  // -- Path templates --
1473
1823
  // --------------------
1824
+ /**
1825
+ * Return a fully-qualified assistAnswer resource name string.
1826
+ *
1827
+ * @param {string} project
1828
+ * @param {string} location
1829
+ * @param {string} collection
1830
+ * @param {string} engine
1831
+ * @param {string} session
1832
+ * @param {string} assist_answer
1833
+ * @returns {string} Resource name string.
1834
+ */
1835
+ assistAnswerPath(project, location, collection, engine, session, assistAnswer) {
1836
+ return this.pathTemplates.assistAnswerPathTemplate.render({
1837
+ project: project,
1838
+ location: location,
1839
+ collection: collection,
1840
+ engine: engine,
1841
+ session: session,
1842
+ assist_answer: assistAnswer,
1843
+ });
1844
+ }
1845
+ /**
1846
+ * Parse the project from AssistAnswer resource.
1847
+ *
1848
+ * @param {string} assistAnswerName
1849
+ * A fully-qualified path representing AssistAnswer resource.
1850
+ * @returns {string} A string representing the project.
1851
+ */
1852
+ matchProjectFromAssistAnswerName(assistAnswerName) {
1853
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).project;
1854
+ }
1855
+ /**
1856
+ * Parse the location from AssistAnswer resource.
1857
+ *
1858
+ * @param {string} assistAnswerName
1859
+ * A fully-qualified path representing AssistAnswer resource.
1860
+ * @returns {string} A string representing the location.
1861
+ */
1862
+ matchLocationFromAssistAnswerName(assistAnswerName) {
1863
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).location;
1864
+ }
1865
+ /**
1866
+ * Parse the collection from AssistAnswer resource.
1867
+ *
1868
+ * @param {string} assistAnswerName
1869
+ * A fully-qualified path representing AssistAnswer resource.
1870
+ * @returns {string} A string representing the collection.
1871
+ */
1872
+ matchCollectionFromAssistAnswerName(assistAnswerName) {
1873
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).collection;
1874
+ }
1875
+ /**
1876
+ * Parse the engine from AssistAnswer resource.
1877
+ *
1878
+ * @param {string} assistAnswerName
1879
+ * A fully-qualified path representing AssistAnswer resource.
1880
+ * @returns {string} A string representing the engine.
1881
+ */
1882
+ matchEngineFromAssistAnswerName(assistAnswerName) {
1883
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).engine;
1884
+ }
1885
+ /**
1886
+ * Parse the session from AssistAnswer resource.
1887
+ *
1888
+ * @param {string} assistAnswerName
1889
+ * A fully-qualified path representing AssistAnswer resource.
1890
+ * @returns {string} A string representing the session.
1891
+ */
1892
+ matchSessionFromAssistAnswerName(assistAnswerName) {
1893
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).session;
1894
+ }
1895
+ /**
1896
+ * Parse the assist_answer from AssistAnswer resource.
1897
+ *
1898
+ * @param {string} assistAnswerName
1899
+ * A fully-qualified path representing AssistAnswer resource.
1900
+ * @returns {string} A string representing the assist_answer.
1901
+ */
1902
+ matchAssistAnswerFromAssistAnswerName(assistAnswerName) {
1903
+ return this.pathTemplates.assistAnswerPathTemplate.match(assistAnswerName).assist_answer;
1904
+ }
1905
+ /**
1906
+ * Return a fully-qualified assistant resource name string.
1907
+ *
1908
+ * @param {string} project
1909
+ * @param {string} location
1910
+ * @param {string} collection
1911
+ * @param {string} engine
1912
+ * @param {string} assistant
1913
+ * @returns {string} Resource name string.
1914
+ */
1915
+ assistantPath(project, location, collection, engine, assistant) {
1916
+ return this.pathTemplates.assistantPathTemplate.render({
1917
+ project: project,
1918
+ location: location,
1919
+ collection: collection,
1920
+ engine: engine,
1921
+ assistant: assistant,
1922
+ });
1923
+ }
1924
+ /**
1925
+ * Parse the project from Assistant resource.
1926
+ *
1927
+ * @param {string} assistantName
1928
+ * A fully-qualified path representing Assistant resource.
1929
+ * @returns {string} A string representing the project.
1930
+ */
1931
+ matchProjectFromAssistantName(assistantName) {
1932
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).project;
1933
+ }
1934
+ /**
1935
+ * Parse the location from Assistant resource.
1936
+ *
1937
+ * @param {string} assistantName
1938
+ * A fully-qualified path representing Assistant resource.
1939
+ * @returns {string} A string representing the location.
1940
+ */
1941
+ matchLocationFromAssistantName(assistantName) {
1942
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).location;
1943
+ }
1944
+ /**
1945
+ * Parse the collection from Assistant resource.
1946
+ *
1947
+ * @param {string} assistantName
1948
+ * A fully-qualified path representing Assistant resource.
1949
+ * @returns {string} A string representing the collection.
1950
+ */
1951
+ matchCollectionFromAssistantName(assistantName) {
1952
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).collection;
1953
+ }
1954
+ /**
1955
+ * Parse the engine from Assistant resource.
1956
+ *
1957
+ * @param {string} assistantName
1958
+ * A fully-qualified path representing Assistant resource.
1959
+ * @returns {string} A string representing the engine.
1960
+ */
1961
+ matchEngineFromAssistantName(assistantName) {
1962
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).engine;
1963
+ }
1964
+ /**
1965
+ * Parse the assistant from Assistant resource.
1966
+ *
1967
+ * @param {string} assistantName
1968
+ * A fully-qualified path representing Assistant resource.
1969
+ * @returns {string} A string representing the assistant.
1970
+ */
1971
+ matchAssistantFromAssistantName(assistantName) {
1972
+ return this.pathTemplates.assistantPathTemplate.match(assistantName).assistant;
1973
+ }
1474
1974
  /**
1475
1975
  * Return a fully-qualified engine resource name string.
1476
1976
  *
@@ -2375,154 +2875,154 @@ class SearchServiceClient {
2375
2875
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
2376
2876
  }
2377
2877
  /**
2378
- * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
2878
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
2379
2879
  *
2380
2880
  * @param {string} project
2381
2881
  * @param {string} location
2382
2882
  * @param {string} collection
2383
2883
  * @param {string} data_store
2384
2884
  * @param {string} session
2885
+ * @param {string} answer
2385
2886
  * @returns {string} Resource name string.
2386
2887
  */
2387
- projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
2388
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
2888
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
2889
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
2389
2890
  project: project,
2390
2891
  location: location,
2391
2892
  collection: collection,
2392
2893
  data_store: dataStore,
2393
2894
  session: session,
2895
+ answer: answer,
2394
2896
  });
2395
2897
  }
2396
2898
  /**
2397
- * Parse the project from ProjectLocationCollectionDataStoreSession resource.
2899
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
2398
2900
  *
2399
- * @param {string} projectLocationCollectionDataStoreSessionName
2400
- * A fully-qualified path representing project_location_collection_data_store_session resource.
2901
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2902
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2401
2903
  * @returns {string} A string representing the project.
2402
2904
  */
2403
- matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
2404
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
2905
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2906
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
2405
2907
  }
2406
2908
  /**
2407
- * Parse the location from ProjectLocationCollectionDataStoreSession resource.
2909
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
2408
2910
  *
2409
- * @param {string} projectLocationCollectionDataStoreSessionName
2410
- * A fully-qualified path representing project_location_collection_data_store_session resource.
2911
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2912
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2411
2913
  * @returns {string} A string representing the location.
2412
2914
  */
2413
- matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
2414
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
2915
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2916
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
2415
2917
  }
2416
2918
  /**
2417
- * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
2919
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
2418
2920
  *
2419
- * @param {string} projectLocationCollectionDataStoreSessionName
2420
- * A fully-qualified path representing project_location_collection_data_store_session resource.
2921
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2922
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2421
2923
  * @returns {string} A string representing the collection.
2422
2924
  */
2423
- matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
2424
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
2925
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2926
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
2425
2927
  }
2426
2928
  /**
2427
- * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
2929
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
2428
2930
  *
2429
- * @param {string} projectLocationCollectionDataStoreSessionName
2430
- * A fully-qualified path representing project_location_collection_data_store_session resource.
2931
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2932
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2431
2933
  * @returns {string} A string representing the data_store.
2432
2934
  */
2433
- matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
2434
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
2935
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2936
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
2435
2937
  }
2436
2938
  /**
2437
- * Parse the session from ProjectLocationCollectionDataStoreSession resource.
2939
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
2438
2940
  *
2439
- * @param {string} projectLocationCollectionDataStoreSessionName
2440
- * A fully-qualified path representing project_location_collection_data_store_session resource.
2941
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2942
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2441
2943
  * @returns {string} A string representing the session.
2442
2944
  */
2443
- matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
2444
- return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
2945
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2946
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
2445
2947
  }
2446
2948
  /**
2447
- * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
2949
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
2950
+ *
2951
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2952
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2953
+ * @returns {string} A string representing the answer.
2954
+ */
2955
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2956
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
2957
+ }
2958
+ /**
2959
+ * Return a fully-qualified projectLocationCollectionDataStoreSessions resource name string.
2448
2960
  *
2449
2961
  * @param {string} project
2450
2962
  * @param {string} location
2451
2963
  * @param {string} collection
2452
2964
  * @param {string} data_store
2453
2965
  * @param {string} session
2454
- * @param {string} answer
2455
2966
  * @returns {string} Resource name string.
2456
2967
  */
2457
- projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
2458
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
2968
+ projectLocationCollectionDataStoreSessionsPath(project, location, collection, dataStore, session) {
2969
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.render({
2459
2970
  project: project,
2460
2971
  location: location,
2461
2972
  collection: collection,
2462
2973
  data_store: dataStore,
2463
2974
  session: session,
2464
- answer: answer,
2465
2975
  });
2466
2976
  }
2467
2977
  /**
2468
- * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
2978
+ * Parse the project from ProjectLocationCollectionDataStoreSessions resource.
2469
2979
  *
2470
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2471
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2980
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2981
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2472
2982
  * @returns {string} A string representing the project.
2473
2983
  */
2474
- matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2475
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
2984
+ matchProjectFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2985
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).project;
2476
2986
  }
2477
2987
  /**
2478
- * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
2988
+ * Parse the location from ProjectLocationCollectionDataStoreSessions resource.
2479
2989
  *
2480
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2481
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2990
+ * @param {string} projectLocationCollectionDataStoreSessionsName
2991
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2482
2992
  * @returns {string} A string representing the location.
2483
2993
  */
2484
- matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2485
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
2994
+ matchLocationFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
2995
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).location;
2486
2996
  }
2487
2997
  /**
2488
- * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
2998
+ * Parse the collection from ProjectLocationCollectionDataStoreSessions resource.
2489
2999
  *
2490
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2491
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
3000
+ * @param {string} projectLocationCollectionDataStoreSessionsName
3001
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2492
3002
  * @returns {string} A string representing the collection.
2493
3003
  */
2494
- matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2495
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
3004
+ matchCollectionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
3005
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).collection;
2496
3006
  }
2497
3007
  /**
2498
- * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
3008
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessions resource.
2499
3009
  *
2500
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2501
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
3010
+ * @param {string} projectLocationCollectionDataStoreSessionsName
3011
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2502
3012
  * @returns {string} A string representing the data_store.
2503
3013
  */
2504
- matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2505
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
3014
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
3015
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).data_store;
2506
3016
  }
2507
3017
  /**
2508
- * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
3018
+ * Parse the session from ProjectLocationCollectionDataStoreSessions resource.
2509
3019
  *
2510
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2511
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
3020
+ * @param {string} projectLocationCollectionDataStoreSessionsName
3021
+ * A fully-qualified path representing project_location_collection_data_store_sessions resource.
2512
3022
  * @returns {string} A string representing the session.
2513
3023
  */
2514
- matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2515
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
2516
- }
2517
- /**
2518
- * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
2519
- *
2520
- * @param {string} projectLocationCollectionDataStoreSessionAnswerName
2521
- * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
2522
- * @returns {string} A string representing the answer.
2523
- */
2524
- matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
2525
- return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
3024
+ matchSessionFromProjectLocationCollectionDataStoreSessionsName(projectLocationCollectionDataStoreSessionsName) {
3025
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionsPathTemplate.match(projectLocationCollectionDataStoreSessionsName).session;
2526
3026
  }
2527
3027
  /**
2528
3028
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
@@ -2927,154 +3427,154 @@ class SearchServiceClient {
2927
3427
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
2928
3428
  }
2929
3429
  /**
2930
- * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
3430
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
2931
3431
  *
2932
3432
  * @param {string} project
2933
3433
  * @param {string} location
2934
3434
  * @param {string} collection
2935
3435
  * @param {string} engine
2936
3436
  * @param {string} session
3437
+ * @param {string} answer
2937
3438
  * @returns {string} Resource name string.
2938
3439
  */
2939
- projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
2940
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
3440
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
3441
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
2941
3442
  project: project,
2942
3443
  location: location,
2943
3444
  collection: collection,
2944
3445
  engine: engine,
2945
3446
  session: session,
3447
+ answer: answer,
2946
3448
  });
2947
3449
  }
2948
3450
  /**
2949
- * Parse the project from ProjectLocationCollectionEngineSession resource.
3451
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
2950
3452
  *
2951
- * @param {string} projectLocationCollectionEngineSessionName
2952
- * A fully-qualified path representing project_location_collection_engine_session resource.
3453
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3454
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2953
3455
  * @returns {string} A string representing the project.
2954
3456
  */
2955
- matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2956
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
3457
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3458
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
2957
3459
  }
2958
3460
  /**
2959
- * Parse the location from ProjectLocationCollectionEngineSession resource.
3461
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
2960
3462
  *
2961
- * @param {string} projectLocationCollectionEngineSessionName
2962
- * A fully-qualified path representing project_location_collection_engine_session resource.
3463
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3464
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2963
3465
  * @returns {string} A string representing the location.
2964
3466
  */
2965
- matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2966
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
3467
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3468
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
2967
3469
  }
2968
3470
  /**
2969
- * Parse the collection from ProjectLocationCollectionEngineSession resource.
3471
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
2970
3472
  *
2971
- * @param {string} projectLocationCollectionEngineSessionName
2972
- * A fully-qualified path representing project_location_collection_engine_session resource.
3473
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3474
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2973
3475
  * @returns {string} A string representing the collection.
2974
3476
  */
2975
- matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2976
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
3477
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3478
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
2977
3479
  }
2978
3480
  /**
2979
- * Parse the engine from ProjectLocationCollectionEngineSession resource.
3481
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
2980
3482
  *
2981
- * @param {string} projectLocationCollectionEngineSessionName
2982
- * A fully-qualified path representing project_location_collection_engine_session resource.
3483
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3484
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2983
3485
  * @returns {string} A string representing the engine.
2984
3486
  */
2985
- matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2986
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
3487
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3488
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
2987
3489
  }
2988
3490
  /**
2989
- * Parse the session from ProjectLocationCollectionEngineSession resource.
3491
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
2990
3492
  *
2991
- * @param {string} projectLocationCollectionEngineSessionName
2992
- * A fully-qualified path representing project_location_collection_engine_session resource.
3493
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3494
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
2993
3495
  * @returns {string} A string representing the session.
2994
3496
  */
2995
- matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
2996
- return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
3497
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3498
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
2997
3499
  }
2998
3500
  /**
2999
- * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
3501
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
3502
+ *
3503
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
3504
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3505
+ * @returns {string} A string representing the answer.
3506
+ */
3507
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3508
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
3509
+ }
3510
+ /**
3511
+ * Return a fully-qualified projectLocationCollectionEngineSessions resource name string.
3000
3512
  *
3001
3513
  * @param {string} project
3002
3514
  * @param {string} location
3003
3515
  * @param {string} collection
3004
3516
  * @param {string} engine
3005
3517
  * @param {string} session
3006
- * @param {string} answer
3007
3518
  * @returns {string} Resource name string.
3008
3519
  */
3009
- projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
3010
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
3520
+ projectLocationCollectionEngineSessionsPath(project, location, collection, engine, session) {
3521
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.render({
3011
3522
  project: project,
3012
3523
  location: location,
3013
3524
  collection: collection,
3014
3525
  engine: engine,
3015
3526
  session: session,
3016
- answer: answer,
3017
3527
  });
3018
3528
  }
3019
3529
  /**
3020
- * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
3530
+ * Parse the project from ProjectLocationCollectionEngineSessions resource.
3021
3531
  *
3022
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3023
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3532
+ * @param {string} projectLocationCollectionEngineSessionsName
3533
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
3024
3534
  * @returns {string} A string representing the project.
3025
3535
  */
3026
- matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3027
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
3536
+ matchProjectFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
3537
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).project;
3028
3538
  }
3029
3539
  /**
3030
- * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
3540
+ * Parse the location from ProjectLocationCollectionEngineSessions resource.
3031
3541
  *
3032
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3033
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3542
+ * @param {string} projectLocationCollectionEngineSessionsName
3543
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
3034
3544
  * @returns {string} A string representing the location.
3035
3545
  */
3036
- matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3037
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
3546
+ matchLocationFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
3547
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).location;
3038
3548
  }
3039
3549
  /**
3040
- * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
3550
+ * Parse the collection from ProjectLocationCollectionEngineSessions resource.
3041
3551
  *
3042
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3043
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3552
+ * @param {string} projectLocationCollectionEngineSessionsName
3553
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
3044
3554
  * @returns {string} A string representing the collection.
3045
3555
  */
3046
- matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3047
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
3556
+ matchCollectionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
3557
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).collection;
3048
3558
  }
3049
3559
  /**
3050
- * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
3560
+ * Parse the engine from ProjectLocationCollectionEngineSessions resource.
3051
3561
  *
3052
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3053
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3562
+ * @param {string} projectLocationCollectionEngineSessionsName
3563
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
3054
3564
  * @returns {string} A string representing the engine.
3055
3565
  */
3056
- matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3057
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
3566
+ matchEngineFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
3567
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).engine;
3058
3568
  }
3059
3569
  /**
3060
- * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
3570
+ * Parse the session from ProjectLocationCollectionEngineSessions resource.
3061
3571
  *
3062
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3063
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3572
+ * @param {string} projectLocationCollectionEngineSessionsName
3573
+ * A fully-qualified path representing project_location_collection_engine_sessions resource.
3064
3574
  * @returns {string} A string representing the session.
3065
3575
  */
3066
- matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3067
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
3068
- }
3069
- /**
3070
- * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
3071
- *
3072
- * @param {string} projectLocationCollectionEngineSessionAnswerName
3073
- * A fully-qualified path representing project_location_collection_engine_session_answer resource.
3074
- * @returns {string} A string representing the answer.
3075
- */
3076
- matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
3077
- return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
3576
+ matchSessionFromProjectLocationCollectionEngineSessionsName(projectLocationCollectionEngineSessionsName) {
3577
+ return this.pathTemplates.projectLocationCollectionEngineSessionsPathTemplate.match(projectLocationCollectionEngineSessionsName).session;
3078
3578
  }
3079
3579
  /**
3080
3580
  * Return a fully-qualified projectLocationDataStore resource name string.
@@ -3658,63 +4158,6 @@ class SearchServiceClient {
3658
4158
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
3659
4159
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
3660
4160
  }
3661
- /**
3662
- * Return a fully-qualified projectLocationDataStoreSession resource name string.
3663
- *
3664
- * @param {string} project
3665
- * @param {string} location
3666
- * @param {string} data_store
3667
- * @param {string} session
3668
- * @returns {string} Resource name string.
3669
- */
3670
- projectLocationDataStoreSessionPath(project, location, dataStore, session) {
3671
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
3672
- project: project,
3673
- location: location,
3674
- data_store: dataStore,
3675
- session: session,
3676
- });
3677
- }
3678
- /**
3679
- * Parse the project from ProjectLocationDataStoreSession resource.
3680
- *
3681
- * @param {string} projectLocationDataStoreSessionName
3682
- * A fully-qualified path representing project_location_data_store_session resource.
3683
- * @returns {string} A string representing the project.
3684
- */
3685
- matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3686
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
3687
- }
3688
- /**
3689
- * Parse the location from ProjectLocationDataStoreSession resource.
3690
- *
3691
- * @param {string} projectLocationDataStoreSessionName
3692
- * A fully-qualified path representing project_location_data_store_session resource.
3693
- * @returns {string} A string representing the location.
3694
- */
3695
- matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3696
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
3697
- }
3698
- /**
3699
- * Parse the data_store from ProjectLocationDataStoreSession resource.
3700
- *
3701
- * @param {string} projectLocationDataStoreSessionName
3702
- * A fully-qualified path representing project_location_data_store_session resource.
3703
- * @returns {string} A string representing the data_store.
3704
- */
3705
- matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3706
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
3707
- }
3708
- /**
3709
- * Parse the session from ProjectLocationDataStoreSession resource.
3710
- *
3711
- * @param {string} projectLocationDataStoreSessionName
3712
- * A fully-qualified path representing project_location_data_store_session resource.
3713
- * @returns {string} A string representing the session.
3714
- */
3715
- matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
3716
- return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
3717
- }
3718
4161
  /**
3719
4162
  * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
3720
4163
  *
@@ -3784,6 +4227,63 @@ class SearchServiceClient {
3784
4227
  matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
3785
4228
  return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
3786
4229
  }
4230
+ /**
4231
+ * Return a fully-qualified projectLocationDataStoreSessions resource name string.
4232
+ *
4233
+ * @param {string} project
4234
+ * @param {string} location
4235
+ * @param {string} data_store
4236
+ * @param {string} session
4237
+ * @returns {string} Resource name string.
4238
+ */
4239
+ projectLocationDataStoreSessionsPath(project, location, dataStore, session) {
4240
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.render({
4241
+ project: project,
4242
+ location: location,
4243
+ data_store: dataStore,
4244
+ session: session,
4245
+ });
4246
+ }
4247
+ /**
4248
+ * Parse the project from ProjectLocationDataStoreSessions resource.
4249
+ *
4250
+ * @param {string} projectLocationDataStoreSessionsName
4251
+ * A fully-qualified path representing project_location_data_store_sessions resource.
4252
+ * @returns {string} A string representing the project.
4253
+ */
4254
+ matchProjectFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
4255
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).project;
4256
+ }
4257
+ /**
4258
+ * Parse the location from ProjectLocationDataStoreSessions resource.
4259
+ *
4260
+ * @param {string} projectLocationDataStoreSessionsName
4261
+ * A fully-qualified path representing project_location_data_store_sessions resource.
4262
+ * @returns {string} A string representing the location.
4263
+ */
4264
+ matchLocationFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
4265
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).location;
4266
+ }
4267
+ /**
4268
+ * Parse the data_store from ProjectLocationDataStoreSessions resource.
4269
+ *
4270
+ * @param {string} projectLocationDataStoreSessionsName
4271
+ * A fully-qualified path representing project_location_data_store_sessions resource.
4272
+ * @returns {string} A string representing the data_store.
4273
+ */
4274
+ matchDataStoreFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
4275
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).data_store;
4276
+ }
4277
+ /**
4278
+ * Parse the session from ProjectLocationDataStoreSessions resource.
4279
+ *
4280
+ * @param {string} projectLocationDataStoreSessionsName
4281
+ * A fully-qualified path representing project_location_data_store_sessions resource.
4282
+ * @returns {string} A string representing the session.
4283
+ */
4284
+ matchSessionFromProjectLocationDataStoreSessionsName(projectLocationDataStoreSessionsName) {
4285
+ return this.pathTemplates.projectLocationDataStoreSessionsPathTemplate.match(projectLocationDataStoreSessionsName).session;
4286
+ }
3787
4287
  /**
3788
4288
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
3789
4289
  *