@google-cloud/discoveryengine 1.6.0 → 1.8.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 (185) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +24 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +14 -2
  4. package/build/protos/google/cloud/discoveryengine/v1/completion.proto +1 -1
  5. package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +1 -1
  6. package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +1 -1
  7. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +6 -1
  8. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +18 -1
  9. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +1 -1
  10. package/build/protos/google/cloud/discoveryengine/v1/document.proto +10 -1
  11. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +7 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +3 -3
  13. package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +285 -23
  15. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +4 -1
  16. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/schema.proto +1 -1
  18. package/build/protos/google/cloud/discoveryengine/v1/schema_service.proto +1 -1
  19. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +126 -22
  20. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +1 -1
  21. package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +1 -1
  22. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +17 -12
  23. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +1 -1
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +1 -1
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +42 -2
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +1 -1
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +22 -2
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +1 -1
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +1 -1
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +1 -1
  33. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +575 -1
  34. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +1 -1
  35. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +1 -1
  36. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +20 -1
  37. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +4 -7
  38. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +65 -1
  39. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +3 -3
  40. package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
  41. package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +1 -1
  42. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  43. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  44. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +284 -25
  45. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  46. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  47. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
  48. package/build/protos/google/cloud/discoveryengine/v1alpha/rank_service.proto +1 -1
  49. package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +1 -1
  50. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +22 -1
  51. package/build/protos/google/cloud/discoveryengine/v1alpha/schema_service.proto +1 -1
  52. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +159 -25
  53. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +10 -4
  54. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +1 -1
  55. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +3 -2
  56. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  57. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +1 -1
  58. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +1 -1
  59. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +2 -2
  60. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +1 -1
  61. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  62. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +31 -2
  63. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +1 -1
  64. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +1 -1
  65. package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +1 -1
  66. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +560 -1
  67. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +1 -1
  68. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +1 -1
  69. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
  70. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +4 -7
  71. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +7 -1
  72. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +3 -3
  73. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +94 -1
  74. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  75. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  76. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +284 -25
  77. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +1 -1
  78. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  79. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +1 -1
  80. package/build/protos/google/cloud/discoveryengine/v1beta/schema.proto +1 -1
  81. package/build/protos/google/cloud/discoveryengine/v1beta/schema_service.proto +1 -1
  82. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +143 -23
  83. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +8 -2
  84. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +1 -1
  85. package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +1 -1
  86. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  87. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +1 -1
  88. package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +1 -1
  89. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +2 -2
  90. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +1 -1
  91. package/build/protos/protos.d.ts +44799 -26093
  92. package/build/protos/protos.js +120465 -74222
  93. package/build/protos/protos.json +8911 -4556
  94. package/build/src/index.d.ts +4 -1
  95. package/build/src/index.js +4 -1
  96. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  97. package/build/src/v1/document_service_client.d.ts +47 -19
  98. package/build/src/v1/index.d.ts +1 -0
  99. package/build/src/v1/index.js +3 -1
  100. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  101. package/build/src/v1/recommendation_service_client.js +1432 -0
  102. package/build/src/v1/recommendation_service_client_config.json +43 -0
  103. package/build/src/v1/search_service_client.d.ts +27 -9
  104. package/build/src/v1/search_service_client.js +18 -6
  105. package/build/src/v1/search_service_client_config.json +5 -5
  106. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  107. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  108. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  109. package/build/src/v1alpha/chunk_service_client.js +454 -0
  110. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  111. package/build/src/v1alpha/completion_service_client.js +457 -0
  112. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  113. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  114. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  115. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  116. package/build/src/v1alpha/data_store_service_client.js +457 -0
  117. package/build/src/v1alpha/document_service_client.d.ts +410 -21
  118. package/build/src/v1alpha/document_service_client.js +479 -0
  119. package/build/src/v1alpha/document_service_client_config.json +5 -0
  120. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  121. package/build/src/v1alpha/engine_service_client.js +457 -0
  122. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  123. package/build/src/v1alpha/estimate_billing_service_client.js +457 -0
  124. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  125. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  126. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  127. package/build/src/v1alpha/index.d.ts +3 -1
  128. package/build/src/v1alpha/index.js +7 -3
  129. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  130. package/build/src/v1alpha/project_service_client.js +2500 -0
  131. package/build/src/v1alpha/project_service_client_config.json +38 -0
  132. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  133. package/build/src/v1alpha/rank_service_client.js +454 -0
  134. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  135. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  136. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  137. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  138. package/build/src/v1alpha/schema_service_client.js +457 -0
  139. package/build/src/v1alpha/search_service_client.d.ts +360 -15
  140. package/build/src/v1alpha/search_service_client.js +474 -10
  141. package/build/src/v1alpha/search_service_client_config.json +5 -5
  142. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  143. package/build/src/v1alpha/search_tuning_service_client.js +457 -0
  144. package/build/src/v1alpha/serving_config_service_client.d.ts +317 -1
  145. package/build/src/v1alpha/serving_config_service_client.js +434 -1
  146. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  147. package/build/src/v1alpha/site_search_engine_service_client.js +457 -0
  148. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  149. package/build/src/v1alpha/user_event_service_client.js +457 -0
  150. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  151. package/build/src/v1beta/completion_service_client.js +432 -0
  152. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  153. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  154. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  155. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  156. package/build/src/v1beta/data_store_service_client.js +432 -0
  157. package/build/src/v1beta/document_service_client.d.ts +361 -21
  158. package/build/src/v1beta/document_service_client.js +432 -0
  159. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  160. package/build/src/v1beta/engine_service_client.js +518 -0
  161. package/build/src/v1beta/engine_service_client_config.json +12 -0
  162. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  163. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  164. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  165. package/build/src/v1beta/index.d.ts +2 -0
  166. package/build/src/v1beta/index.js +5 -1
  167. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  168. package/build/src/v1beta/rank_service_client.js +2015 -0
  169. package/build/src/v1beta/rank_service_client_config.json +43 -0
  170. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  171. package/build/src/v1beta/recommendation_service_client.js +432 -0
  172. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  173. package/build/src/v1beta/schema_service_client.js +432 -0
  174. package/build/src/v1beta/search_service_client.d.ts +342 -12
  175. package/build/src/v1beta/search_service_client.js +450 -8
  176. package/build/src/v1beta/search_service_client_config.json +5 -5
  177. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  178. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  179. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  180. package/build/src/v1beta/serving_config_service_client.js +432 -0
  181. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  182. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  183. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  184. package/build/src/v1beta/user_event_service_client.js +432 -0
  185. package/package.json +1 -1
@@ -151,6 +151,7 @@ class UserEventServiceClient {
151
151
  this.pathTemplates = {
152
152
  aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
153
153
  enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
154
+ projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
154
155
  projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
155
156
  projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
156
157
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -158,10 +159,14 @@ class UserEventServiceClient {
158
159
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
159
160
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
160
161
  projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
162
+ projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
163
+ projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
161
164
  projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
162
165
  projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
163
166
  projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
164
167
  projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
168
+ projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
169
+ projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
165
170
  projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
166
171
  projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
167
172
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
@@ -169,6 +174,8 @@ class UserEventServiceClient {
169
174
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
170
175
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
171
176
  projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
177
+ projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
178
+ projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
172
179
  projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
173
180
  projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
174
181
  };
@@ -220,6 +227,9 @@ class UserEventServiceClient {
220
227
  {
221
228
  get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
222
229
  },
230
+ {
231
+ get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
232
+ },
223
233
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
224
234
  { get: '/v1alpha/{name=projects/*/operations/*}' },
225
235
  ],
@@ -790,6 +800,27 @@ class UserEventServiceClient {
790
800
  matchEngineFromEngineName(engineName) {
791
801
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
792
802
  }
803
+ /**
804
+ * Return a fully-qualified project resource name string.
805
+ *
806
+ * @param {string} project
807
+ * @returns {string} Resource name string.
808
+ */
809
+ projectPath(project) {
810
+ return this.pathTemplates.projectPathTemplate.render({
811
+ project: project,
812
+ });
813
+ }
814
+ /**
815
+ * Parse the project from Project resource.
816
+ *
817
+ * @param {string} projectName
818
+ * A fully-qualified path representing Project resource.
819
+ * @returns {string} A string representing the project.
820
+ */
821
+ matchProjectFromProjectName(projectName) {
822
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
823
+ }
793
824
  /**
794
825
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
795
826
  *
@@ -1285,6 +1316,156 @@ class UserEventServiceClient {
1285
1316
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1286
1317
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1287
1318
  }
1319
+ /**
1320
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1321
+ *
1322
+ * @param {string} project
1323
+ * @param {string} location
1324
+ * @param {string} collection
1325
+ * @param {string} data_store
1326
+ * @param {string} session
1327
+ * @returns {string} Resource name string.
1328
+ */
1329
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1330
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1331
+ project: project,
1332
+ location: location,
1333
+ collection: collection,
1334
+ data_store: dataStore,
1335
+ session: session,
1336
+ });
1337
+ }
1338
+ /**
1339
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1340
+ *
1341
+ * @param {string} projectLocationCollectionDataStoreSessionName
1342
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1343
+ * @returns {string} A string representing the project.
1344
+ */
1345
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1346
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1347
+ }
1348
+ /**
1349
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1350
+ *
1351
+ * @param {string} projectLocationCollectionDataStoreSessionName
1352
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1353
+ * @returns {string} A string representing the location.
1354
+ */
1355
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1356
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1357
+ }
1358
+ /**
1359
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1360
+ *
1361
+ * @param {string} projectLocationCollectionDataStoreSessionName
1362
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1363
+ * @returns {string} A string representing the collection.
1364
+ */
1365
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1366
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1367
+ }
1368
+ /**
1369
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1370
+ *
1371
+ * @param {string} projectLocationCollectionDataStoreSessionName
1372
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1373
+ * @returns {string} A string representing the data_store.
1374
+ */
1375
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1376
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1377
+ }
1378
+ /**
1379
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1380
+ *
1381
+ * @param {string} projectLocationCollectionDataStoreSessionName
1382
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1383
+ * @returns {string} A string representing the session.
1384
+ */
1385
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1386
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1387
+ }
1388
+ /**
1389
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1390
+ *
1391
+ * @param {string} project
1392
+ * @param {string} location
1393
+ * @param {string} collection
1394
+ * @param {string} data_store
1395
+ * @param {string} session
1396
+ * @param {string} answer
1397
+ * @returns {string} Resource name string.
1398
+ */
1399
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1400
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1401
+ project: project,
1402
+ location: location,
1403
+ collection: collection,
1404
+ data_store: dataStore,
1405
+ session: session,
1406
+ answer: answer,
1407
+ });
1408
+ }
1409
+ /**
1410
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1411
+ *
1412
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1413
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1414
+ * @returns {string} A string representing the project.
1415
+ */
1416
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1417
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1418
+ }
1419
+ /**
1420
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1421
+ *
1422
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1423
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1424
+ * @returns {string} A string representing the location.
1425
+ */
1426
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1427
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1428
+ }
1429
+ /**
1430
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1431
+ *
1432
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1433
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1434
+ * @returns {string} A string representing the collection.
1435
+ */
1436
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1437
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1438
+ }
1439
+ /**
1440
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1441
+ *
1442
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1443
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1444
+ * @returns {string} A string representing the data_store.
1445
+ */
1446
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1447
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1448
+ }
1449
+ /**
1450
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1451
+ *
1452
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1453
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1454
+ * @returns {string} A string representing the session.
1455
+ */
1456
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1457
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1458
+ }
1459
+ /**
1460
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1461
+ *
1462
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1463
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1464
+ * @returns {string} A string representing the answer.
1465
+ */
1466
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1467
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1468
+ }
1288
1469
  /**
1289
1470
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1290
1471
  *
@@ -1549,6 +1730,156 @@ class UserEventServiceClient {
1549
1730
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1550
1731
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1551
1732
  }
1733
+ /**
1734
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1735
+ *
1736
+ * @param {string} project
1737
+ * @param {string} location
1738
+ * @param {string} collection
1739
+ * @param {string} engine
1740
+ * @param {string} session
1741
+ * @returns {string} Resource name string.
1742
+ */
1743
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1744
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1745
+ project: project,
1746
+ location: location,
1747
+ collection: collection,
1748
+ engine: engine,
1749
+ session: session,
1750
+ });
1751
+ }
1752
+ /**
1753
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1754
+ *
1755
+ * @param {string} projectLocationCollectionEngineSessionName
1756
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1757
+ * @returns {string} A string representing the project.
1758
+ */
1759
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1760
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1761
+ }
1762
+ /**
1763
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1764
+ *
1765
+ * @param {string} projectLocationCollectionEngineSessionName
1766
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1767
+ * @returns {string} A string representing the location.
1768
+ */
1769
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1770
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1771
+ }
1772
+ /**
1773
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1774
+ *
1775
+ * @param {string} projectLocationCollectionEngineSessionName
1776
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1777
+ * @returns {string} A string representing the collection.
1778
+ */
1779
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1780
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1781
+ }
1782
+ /**
1783
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1784
+ *
1785
+ * @param {string} projectLocationCollectionEngineSessionName
1786
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1787
+ * @returns {string} A string representing the engine.
1788
+ */
1789
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1790
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1791
+ }
1792
+ /**
1793
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1794
+ *
1795
+ * @param {string} projectLocationCollectionEngineSessionName
1796
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1797
+ * @returns {string} A string representing the session.
1798
+ */
1799
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1800
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1801
+ }
1802
+ /**
1803
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1804
+ *
1805
+ * @param {string} project
1806
+ * @param {string} location
1807
+ * @param {string} collection
1808
+ * @param {string} engine
1809
+ * @param {string} session
1810
+ * @param {string} answer
1811
+ * @returns {string} Resource name string.
1812
+ */
1813
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1814
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1815
+ project: project,
1816
+ location: location,
1817
+ collection: collection,
1818
+ engine: engine,
1819
+ session: session,
1820
+ answer: answer,
1821
+ });
1822
+ }
1823
+ /**
1824
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1825
+ *
1826
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1827
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1828
+ * @returns {string} A string representing the project.
1829
+ */
1830
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1831
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1832
+ }
1833
+ /**
1834
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1835
+ *
1836
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1837
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1838
+ * @returns {string} A string representing the location.
1839
+ */
1840
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1841
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1842
+ }
1843
+ /**
1844
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1845
+ *
1846
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1847
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1848
+ * @returns {string} A string representing the collection.
1849
+ */
1850
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1851
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1852
+ }
1853
+ /**
1854
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1855
+ *
1856
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1857
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1858
+ * @returns {string} A string representing the engine.
1859
+ */
1860
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1861
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1862
+ }
1863
+ /**
1864
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1865
+ *
1866
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1867
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1868
+ * @returns {string} A string representing the session.
1869
+ */
1870
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1871
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1872
+ }
1873
+ /**
1874
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1875
+ *
1876
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1877
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1878
+ * @returns {string} A string representing the answer.
1879
+ */
1880
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1881
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1882
+ }
1552
1883
  /**
1553
1884
  * Return a fully-qualified projectLocationDataStore resource name string.
1554
1885
  *
@@ -1960,6 +2291,132 @@ class UserEventServiceClient {
1960
2291
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1961
2292
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1962
2293
  }
2294
+ /**
2295
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2296
+ *
2297
+ * @param {string} project
2298
+ * @param {string} location
2299
+ * @param {string} data_store
2300
+ * @param {string} session
2301
+ * @returns {string} Resource name string.
2302
+ */
2303
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2304
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2305
+ project: project,
2306
+ location: location,
2307
+ data_store: dataStore,
2308
+ session: session,
2309
+ });
2310
+ }
2311
+ /**
2312
+ * Parse the project from ProjectLocationDataStoreSession resource.
2313
+ *
2314
+ * @param {string} projectLocationDataStoreSessionName
2315
+ * A fully-qualified path representing project_location_data_store_session resource.
2316
+ * @returns {string} A string representing the project.
2317
+ */
2318
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2319
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2320
+ }
2321
+ /**
2322
+ * Parse the location from ProjectLocationDataStoreSession resource.
2323
+ *
2324
+ * @param {string} projectLocationDataStoreSessionName
2325
+ * A fully-qualified path representing project_location_data_store_session resource.
2326
+ * @returns {string} A string representing the location.
2327
+ */
2328
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2329
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2330
+ }
2331
+ /**
2332
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2333
+ *
2334
+ * @param {string} projectLocationDataStoreSessionName
2335
+ * A fully-qualified path representing project_location_data_store_session resource.
2336
+ * @returns {string} A string representing the data_store.
2337
+ */
2338
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2339
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2340
+ }
2341
+ /**
2342
+ * Parse the session from ProjectLocationDataStoreSession resource.
2343
+ *
2344
+ * @param {string} projectLocationDataStoreSessionName
2345
+ * A fully-qualified path representing project_location_data_store_session resource.
2346
+ * @returns {string} A string representing the session.
2347
+ */
2348
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2349
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2350
+ }
2351
+ /**
2352
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2353
+ *
2354
+ * @param {string} project
2355
+ * @param {string} location
2356
+ * @param {string} data_store
2357
+ * @param {string} session
2358
+ * @param {string} answer
2359
+ * @returns {string} Resource name string.
2360
+ */
2361
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2362
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2363
+ project: project,
2364
+ location: location,
2365
+ data_store: dataStore,
2366
+ session: session,
2367
+ answer: answer,
2368
+ });
2369
+ }
2370
+ /**
2371
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2372
+ *
2373
+ * @param {string} projectLocationDataStoreSessionAnswerName
2374
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2375
+ * @returns {string} A string representing the project.
2376
+ */
2377
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2378
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2379
+ }
2380
+ /**
2381
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2382
+ *
2383
+ * @param {string} projectLocationDataStoreSessionAnswerName
2384
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2385
+ * @returns {string} A string representing the location.
2386
+ */
2387
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2388
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2389
+ }
2390
+ /**
2391
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2392
+ *
2393
+ * @param {string} projectLocationDataStoreSessionAnswerName
2394
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2395
+ * @returns {string} A string representing the data_store.
2396
+ */
2397
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2398
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2399
+ }
2400
+ /**
2401
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2402
+ *
2403
+ * @param {string} projectLocationDataStoreSessionAnswerName
2404
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2405
+ * @returns {string} A string representing the session.
2406
+ */
2407
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2408
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2409
+ }
2410
+ /**
2411
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2412
+ *
2413
+ * @param {string} projectLocationDataStoreSessionAnswerName
2414
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2415
+ * @returns {string} A string representing the answer.
2416
+ */
2417
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2418
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2419
+ }
1963
2420
  /**
1964
2421
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1965
2422
  *