@google-cloud/discoveryengine 1.6.0 → 1.7.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 (142) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +24 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/common.proto +13 -1
  4. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +5 -0
  5. package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +17 -0
  6. package/build/protos/google/cloud/discoveryengine/v1/document.proto +9 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +6 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/engine.proto +2 -2
  9. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +284 -22
  10. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +3 -0
  11. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +228 -0
  12. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +125 -21
  13. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +16 -11
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +328 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +41 -1
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +21 -1
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +574 -0
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +19 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +3 -6
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +64 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +2 -2
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +120 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/grounding.proto +55 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +283 -24
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/project.proto +102 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/project_service.proto +171 -0
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +21 -0
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +158 -24
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +9 -3
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +2 -1
  31. package/build/protos/google/cloud/discoveryengine/v1alpha/session.proto +94 -0
  32. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +1 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +328 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +30 -1
  35. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +559 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +3 -6
  37. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +6 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +2 -2
  39. package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +93 -0
  40. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +120 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/grounding.proto +55 -0
  42. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +283 -24
  43. package/build/protos/google/cloud/discoveryengine/v1beta/rank_service.proto +115 -0
  44. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +142 -22
  45. package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +7 -1
  46. package/build/protos/google/cloud/discoveryengine/v1beta/session.proto +94 -0
  47. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +1 -1
  48. package/build/protos/protos.d.ts +44799 -26093
  49. package/build/protos/protos.js +120465 -74222
  50. package/build/protos/protos.json +8911 -4556
  51. package/build/src/index.d.ts +4 -1
  52. package/build/src/index.js +4 -1
  53. package/build/src/v1/conversational_search_service_client.d.ts +4 -0
  54. package/build/src/v1/document_service_client.d.ts +47 -19
  55. package/build/src/v1/index.d.ts +1 -0
  56. package/build/src/v1/index.js +3 -1
  57. package/build/src/v1/recommendation_service_client.d.ts +1087 -0
  58. package/build/src/v1/recommendation_service_client.js +1432 -0
  59. package/build/src/v1/recommendation_service_client_config.json +43 -0
  60. package/build/src/v1/search_service_client.d.ts +27 -9
  61. package/build/src/v1/search_service_client.js +18 -6
  62. package/build/src/v1/search_service_client_config.json +5 -5
  63. package/build/src/v1alpha/acl_config_service_client.d.ts +330 -0
  64. package/build/src/v1alpha/acl_config_service_client.js +454 -0
  65. package/build/src/v1alpha/chunk_service_client.d.ts +330 -0
  66. package/build/src/v1alpha/chunk_service_client.js +454 -0
  67. package/build/src/v1alpha/completion_service_client.d.ts +330 -0
  68. package/build/src/v1alpha/completion_service_client.js +457 -0
  69. package/build/src/v1alpha/conversational_search_service_client.d.ts +674 -0
  70. package/build/src/v1alpha/conversational_search_service_client.js +724 -0
  71. package/build/src/v1alpha/conversational_search_service_client_config.json +35 -0
  72. package/build/src/v1alpha/data_store_service_client.d.ts +330 -0
  73. package/build/src/v1alpha/data_store_service_client.js +457 -0
  74. package/build/src/v1alpha/document_service_client.d.ts +410 -21
  75. package/build/src/v1alpha/document_service_client.js +479 -0
  76. package/build/src/v1alpha/document_service_client_config.json +5 -0
  77. package/build/src/v1alpha/engine_service_client.d.ts +330 -0
  78. package/build/src/v1alpha/engine_service_client.js +457 -0
  79. package/build/src/v1alpha/estimate_billing_service_client.d.ts +330 -0
  80. package/build/src/v1alpha/estimate_billing_service_client.js +457 -0
  81. package/build/src/v1alpha/grounded_generation_service_client.d.ts +1574 -0
  82. package/build/src/v1alpha/grounded_generation_service_client.js +2248 -0
  83. package/build/src/v1alpha/grounded_generation_service_client_config.json +43 -0
  84. package/build/src/v1alpha/index.d.ts +3 -1
  85. package/build/src/v1alpha/index.js +7 -3
  86. package/build/src/v1alpha/project_service_client.d.ts +1756 -0
  87. package/build/src/v1alpha/project_service_client.js +2500 -0
  88. package/build/src/v1alpha/project_service_client_config.json +38 -0
  89. package/build/src/v1alpha/rank_service_client.d.ts +330 -0
  90. package/build/src/v1alpha/rank_service_client.js +454 -0
  91. package/build/src/v1alpha/rank_service_client_config.json +15 -2
  92. package/build/src/v1alpha/recommendation_service_client.d.ts +330 -0
  93. package/build/src/v1alpha/recommendation_service_client.js +454 -0
  94. package/build/src/v1alpha/schema_service_client.d.ts +330 -0
  95. package/build/src/v1alpha/schema_service_client.js +457 -0
  96. package/build/src/v1alpha/search_service_client.d.ts +360 -15
  97. package/build/src/v1alpha/search_service_client.js +474 -10
  98. package/build/src/v1alpha/search_service_client_config.json +5 -5
  99. package/build/src/v1alpha/search_tuning_service_client.d.ts +330 -0
  100. package/build/src/v1alpha/search_tuning_service_client.js +457 -0
  101. package/build/src/v1alpha/serving_config_service_client.d.ts +317 -1
  102. package/build/src/v1alpha/serving_config_service_client.js +434 -1
  103. package/build/src/v1alpha/site_search_engine_service_client.d.ts +330 -0
  104. package/build/src/v1alpha/site_search_engine_service_client.js +457 -0
  105. package/build/src/v1alpha/user_event_service_client.d.ts +330 -0
  106. package/build/src/v1alpha/user_event_service_client.js +457 -0
  107. package/build/src/v1beta/completion_service_client.d.ts +315 -0
  108. package/build/src/v1beta/completion_service_client.js +432 -0
  109. package/build/src/v1beta/conversational_search_service_client.d.ts +659 -0
  110. package/build/src/v1beta/conversational_search_service_client.js +702 -0
  111. package/build/src/v1beta/conversational_search_service_client_config.json +35 -0
  112. package/build/src/v1beta/data_store_service_client.d.ts +315 -0
  113. package/build/src/v1beta/data_store_service_client.js +432 -0
  114. package/build/src/v1beta/document_service_client.d.ts +361 -21
  115. package/build/src/v1beta/document_service_client.js +432 -0
  116. package/build/src/v1beta/engine_service_client.d.ts +410 -0
  117. package/build/src/v1beta/engine_service_client.js +518 -0
  118. package/build/src/v1beta/engine_service_client_config.json +12 -0
  119. package/build/src/v1beta/grounded_generation_service_client.d.ts +1406 -0
  120. package/build/src/v1beta/grounded_generation_service_client.js +2014 -0
  121. package/build/src/v1beta/grounded_generation_service_client_config.json +43 -0
  122. package/build/src/v1beta/index.d.ts +2 -0
  123. package/build/src/v1beta/index.js +5 -1
  124. package/build/src/v1beta/rank_service_client.d.ts +1416 -0
  125. package/build/src/v1beta/rank_service_client.js +2015 -0
  126. package/build/src/v1beta/rank_service_client_config.json +43 -0
  127. package/build/src/v1beta/recommendation_service_client.d.ts +315 -0
  128. package/build/src/v1beta/recommendation_service_client.js +432 -0
  129. package/build/src/v1beta/schema_service_client.d.ts +315 -0
  130. package/build/src/v1beta/schema_service_client.js +432 -0
  131. package/build/src/v1beta/search_service_client.d.ts +342 -12
  132. package/build/src/v1beta/search_service_client.js +450 -8
  133. package/build/src/v1beta/search_service_client_config.json +5 -5
  134. package/build/src/v1beta/search_tuning_service_client.d.ts +315 -0
  135. package/build/src/v1beta/search_tuning_service_client.js +432 -0
  136. package/build/src/v1beta/serving_config_service_client.d.ts +315 -0
  137. package/build/src/v1beta/serving_config_service_client.js +432 -0
  138. package/build/src/v1beta/site_search_engine_service_client.d.ts +315 -0
  139. package/build/src/v1beta/site_search_engine_service_client.js +432 -0
  140. package/build/src/v1beta/user_event_service_client.d.ts +315 -0
  141. package/build/src/v1beta/user_event_service_client.js +432 -0
  142. package/package.json +1 -1
@@ -151,6 +151,7 @@ class SearchTuningServiceClient {
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 SearchTuningServiceClient {
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 SearchTuningServiceClient {
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 SearchTuningServiceClient {
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
  ],
@@ -702,6 +712,27 @@ class SearchTuningServiceClient {
702
712
  matchEngineFromEngineName(engineName) {
703
713
  return this.pathTemplates.enginePathTemplate.match(engineName).engine;
704
714
  }
715
+ /**
716
+ * Return a fully-qualified project resource name string.
717
+ *
718
+ * @param {string} project
719
+ * @returns {string} Resource name string.
720
+ */
721
+ projectPath(project) {
722
+ return this.pathTemplates.projectPathTemplate.render({
723
+ project: project,
724
+ });
725
+ }
726
+ /**
727
+ * Parse the project from Project resource.
728
+ *
729
+ * @param {string} projectName
730
+ * A fully-qualified path representing Project resource.
731
+ * @returns {string} A string representing the project.
732
+ */
733
+ matchProjectFromProjectName(projectName) {
734
+ return this.pathTemplates.projectPathTemplate.match(projectName).project;
735
+ }
705
736
  /**
706
737
  * Return a fully-qualified projectLocationCollectionDataStore resource name string.
707
738
  *
@@ -1197,6 +1228,156 @@ class SearchTuningServiceClient {
1197
1228
  matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
1198
1229
  return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
1199
1230
  }
1231
+ /**
1232
+ * Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
1233
+ *
1234
+ * @param {string} project
1235
+ * @param {string} location
1236
+ * @param {string} collection
1237
+ * @param {string} data_store
1238
+ * @param {string} session
1239
+ * @returns {string} Resource name string.
1240
+ */
1241
+ projectLocationCollectionDataStoreSessionPath(project, location, collection, dataStore, session) {
1242
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.render({
1243
+ project: project,
1244
+ location: location,
1245
+ collection: collection,
1246
+ data_store: dataStore,
1247
+ session: session,
1248
+ });
1249
+ }
1250
+ /**
1251
+ * Parse the project from ProjectLocationCollectionDataStoreSession resource.
1252
+ *
1253
+ * @param {string} projectLocationCollectionDataStoreSessionName
1254
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1255
+ * @returns {string} A string representing the project.
1256
+ */
1257
+ matchProjectFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1258
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).project;
1259
+ }
1260
+ /**
1261
+ * Parse the location from ProjectLocationCollectionDataStoreSession resource.
1262
+ *
1263
+ * @param {string} projectLocationCollectionDataStoreSessionName
1264
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1265
+ * @returns {string} A string representing the location.
1266
+ */
1267
+ matchLocationFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1268
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).location;
1269
+ }
1270
+ /**
1271
+ * Parse the collection from ProjectLocationCollectionDataStoreSession resource.
1272
+ *
1273
+ * @param {string} projectLocationCollectionDataStoreSessionName
1274
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1275
+ * @returns {string} A string representing the collection.
1276
+ */
1277
+ matchCollectionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1278
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).collection;
1279
+ }
1280
+ /**
1281
+ * Parse the data_store from ProjectLocationCollectionDataStoreSession resource.
1282
+ *
1283
+ * @param {string} projectLocationCollectionDataStoreSessionName
1284
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1285
+ * @returns {string} A string representing the data_store.
1286
+ */
1287
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1288
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).data_store;
1289
+ }
1290
+ /**
1291
+ * Parse the session from ProjectLocationCollectionDataStoreSession resource.
1292
+ *
1293
+ * @param {string} projectLocationCollectionDataStoreSessionName
1294
+ * A fully-qualified path representing project_location_collection_data_store_session resource.
1295
+ * @returns {string} A string representing the session.
1296
+ */
1297
+ matchSessionFromProjectLocationCollectionDataStoreSessionName(projectLocationCollectionDataStoreSessionName) {
1298
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionPathTemplate.match(projectLocationCollectionDataStoreSessionName).session;
1299
+ }
1300
+ /**
1301
+ * Return a fully-qualified projectLocationCollectionDataStoreSessionAnswer resource name string.
1302
+ *
1303
+ * @param {string} project
1304
+ * @param {string} location
1305
+ * @param {string} collection
1306
+ * @param {string} data_store
1307
+ * @param {string} session
1308
+ * @param {string} answer
1309
+ * @returns {string} Resource name string.
1310
+ */
1311
+ projectLocationCollectionDataStoreSessionAnswerPath(project, location, collection, dataStore, session, answer) {
1312
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.render({
1313
+ project: project,
1314
+ location: location,
1315
+ collection: collection,
1316
+ data_store: dataStore,
1317
+ session: session,
1318
+ answer: answer,
1319
+ });
1320
+ }
1321
+ /**
1322
+ * Parse the project from ProjectLocationCollectionDataStoreSessionAnswer resource.
1323
+ *
1324
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1325
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1326
+ * @returns {string} A string representing the project.
1327
+ */
1328
+ matchProjectFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1329
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).project;
1330
+ }
1331
+ /**
1332
+ * Parse the location from ProjectLocationCollectionDataStoreSessionAnswer resource.
1333
+ *
1334
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1335
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1336
+ * @returns {string} A string representing the location.
1337
+ */
1338
+ matchLocationFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1339
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).location;
1340
+ }
1341
+ /**
1342
+ * Parse the collection from ProjectLocationCollectionDataStoreSessionAnswer resource.
1343
+ *
1344
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1345
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1346
+ * @returns {string} A string representing the collection.
1347
+ */
1348
+ matchCollectionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1349
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).collection;
1350
+ }
1351
+ /**
1352
+ * Parse the data_store from ProjectLocationCollectionDataStoreSessionAnswer resource.
1353
+ *
1354
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1355
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1356
+ * @returns {string} A string representing the data_store.
1357
+ */
1358
+ matchDataStoreFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1359
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).data_store;
1360
+ }
1361
+ /**
1362
+ * Parse the session from ProjectLocationCollectionDataStoreSessionAnswer resource.
1363
+ *
1364
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1365
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1366
+ * @returns {string} A string representing the session.
1367
+ */
1368
+ matchSessionFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1369
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).session;
1370
+ }
1371
+ /**
1372
+ * Parse the answer from ProjectLocationCollectionDataStoreSessionAnswer resource.
1373
+ *
1374
+ * @param {string} projectLocationCollectionDataStoreSessionAnswerName
1375
+ * A fully-qualified path representing project_location_collection_data_store_session_answer resource.
1376
+ * @returns {string} A string representing the answer.
1377
+ */
1378
+ matchAnswerFromProjectLocationCollectionDataStoreSessionAnswerName(projectLocationCollectionDataStoreSessionAnswerName) {
1379
+ return this.pathTemplates.projectLocationCollectionDataStoreSessionAnswerPathTemplate.match(projectLocationCollectionDataStoreSessionAnswerName).answer;
1380
+ }
1200
1381
  /**
1201
1382
  * Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
1202
1383
  *
@@ -1461,6 +1642,156 @@ class SearchTuningServiceClient {
1461
1642
  matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
1462
1643
  return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
1463
1644
  }
1645
+ /**
1646
+ * Return a fully-qualified projectLocationCollectionEngineSession resource name string.
1647
+ *
1648
+ * @param {string} project
1649
+ * @param {string} location
1650
+ * @param {string} collection
1651
+ * @param {string} engine
1652
+ * @param {string} session
1653
+ * @returns {string} Resource name string.
1654
+ */
1655
+ projectLocationCollectionEngineSessionPath(project, location, collection, engine, session) {
1656
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.render({
1657
+ project: project,
1658
+ location: location,
1659
+ collection: collection,
1660
+ engine: engine,
1661
+ session: session,
1662
+ });
1663
+ }
1664
+ /**
1665
+ * Parse the project from ProjectLocationCollectionEngineSession resource.
1666
+ *
1667
+ * @param {string} projectLocationCollectionEngineSessionName
1668
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1669
+ * @returns {string} A string representing the project.
1670
+ */
1671
+ matchProjectFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1672
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).project;
1673
+ }
1674
+ /**
1675
+ * Parse the location from ProjectLocationCollectionEngineSession resource.
1676
+ *
1677
+ * @param {string} projectLocationCollectionEngineSessionName
1678
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1679
+ * @returns {string} A string representing the location.
1680
+ */
1681
+ matchLocationFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1682
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).location;
1683
+ }
1684
+ /**
1685
+ * Parse the collection from ProjectLocationCollectionEngineSession resource.
1686
+ *
1687
+ * @param {string} projectLocationCollectionEngineSessionName
1688
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1689
+ * @returns {string} A string representing the collection.
1690
+ */
1691
+ matchCollectionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1692
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).collection;
1693
+ }
1694
+ /**
1695
+ * Parse the engine from ProjectLocationCollectionEngineSession resource.
1696
+ *
1697
+ * @param {string} projectLocationCollectionEngineSessionName
1698
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1699
+ * @returns {string} A string representing the engine.
1700
+ */
1701
+ matchEngineFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1702
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).engine;
1703
+ }
1704
+ /**
1705
+ * Parse the session from ProjectLocationCollectionEngineSession resource.
1706
+ *
1707
+ * @param {string} projectLocationCollectionEngineSessionName
1708
+ * A fully-qualified path representing project_location_collection_engine_session resource.
1709
+ * @returns {string} A string representing the session.
1710
+ */
1711
+ matchSessionFromProjectLocationCollectionEngineSessionName(projectLocationCollectionEngineSessionName) {
1712
+ return this.pathTemplates.projectLocationCollectionEngineSessionPathTemplate.match(projectLocationCollectionEngineSessionName).session;
1713
+ }
1714
+ /**
1715
+ * Return a fully-qualified projectLocationCollectionEngineSessionAnswer resource name string.
1716
+ *
1717
+ * @param {string} project
1718
+ * @param {string} location
1719
+ * @param {string} collection
1720
+ * @param {string} engine
1721
+ * @param {string} session
1722
+ * @param {string} answer
1723
+ * @returns {string} Resource name string.
1724
+ */
1725
+ projectLocationCollectionEngineSessionAnswerPath(project, location, collection, engine, session, answer) {
1726
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.render({
1727
+ project: project,
1728
+ location: location,
1729
+ collection: collection,
1730
+ engine: engine,
1731
+ session: session,
1732
+ answer: answer,
1733
+ });
1734
+ }
1735
+ /**
1736
+ * Parse the project from ProjectLocationCollectionEngineSessionAnswer resource.
1737
+ *
1738
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1739
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1740
+ * @returns {string} A string representing the project.
1741
+ */
1742
+ matchProjectFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1743
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).project;
1744
+ }
1745
+ /**
1746
+ * Parse the location from ProjectLocationCollectionEngineSessionAnswer resource.
1747
+ *
1748
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1749
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1750
+ * @returns {string} A string representing the location.
1751
+ */
1752
+ matchLocationFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1753
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).location;
1754
+ }
1755
+ /**
1756
+ * Parse the collection from ProjectLocationCollectionEngineSessionAnswer resource.
1757
+ *
1758
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1759
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1760
+ * @returns {string} A string representing the collection.
1761
+ */
1762
+ matchCollectionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1763
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).collection;
1764
+ }
1765
+ /**
1766
+ * Parse the engine from ProjectLocationCollectionEngineSessionAnswer resource.
1767
+ *
1768
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1769
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1770
+ * @returns {string} A string representing the engine.
1771
+ */
1772
+ matchEngineFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1773
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).engine;
1774
+ }
1775
+ /**
1776
+ * Parse the session from ProjectLocationCollectionEngineSessionAnswer resource.
1777
+ *
1778
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1779
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1780
+ * @returns {string} A string representing the session.
1781
+ */
1782
+ matchSessionFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1783
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).session;
1784
+ }
1785
+ /**
1786
+ * Parse the answer from ProjectLocationCollectionEngineSessionAnswer resource.
1787
+ *
1788
+ * @param {string} projectLocationCollectionEngineSessionAnswerName
1789
+ * A fully-qualified path representing project_location_collection_engine_session_answer resource.
1790
+ * @returns {string} A string representing the answer.
1791
+ */
1792
+ matchAnswerFromProjectLocationCollectionEngineSessionAnswerName(projectLocationCollectionEngineSessionAnswerName) {
1793
+ return this.pathTemplates.projectLocationCollectionEngineSessionAnswerPathTemplate.match(projectLocationCollectionEngineSessionAnswerName).answer;
1794
+ }
1464
1795
  /**
1465
1796
  * Return a fully-qualified projectLocationDataStore resource name string.
1466
1797
  *
@@ -1872,6 +2203,132 @@ class SearchTuningServiceClient {
1872
2203
  matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
1873
2204
  return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
1874
2205
  }
2206
+ /**
2207
+ * Return a fully-qualified projectLocationDataStoreSession resource name string.
2208
+ *
2209
+ * @param {string} project
2210
+ * @param {string} location
2211
+ * @param {string} data_store
2212
+ * @param {string} session
2213
+ * @returns {string} Resource name string.
2214
+ */
2215
+ projectLocationDataStoreSessionPath(project, location, dataStore, session) {
2216
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.render({
2217
+ project: project,
2218
+ location: location,
2219
+ data_store: dataStore,
2220
+ session: session,
2221
+ });
2222
+ }
2223
+ /**
2224
+ * Parse the project from ProjectLocationDataStoreSession resource.
2225
+ *
2226
+ * @param {string} projectLocationDataStoreSessionName
2227
+ * A fully-qualified path representing project_location_data_store_session resource.
2228
+ * @returns {string} A string representing the project.
2229
+ */
2230
+ matchProjectFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2231
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).project;
2232
+ }
2233
+ /**
2234
+ * Parse the location from ProjectLocationDataStoreSession resource.
2235
+ *
2236
+ * @param {string} projectLocationDataStoreSessionName
2237
+ * A fully-qualified path representing project_location_data_store_session resource.
2238
+ * @returns {string} A string representing the location.
2239
+ */
2240
+ matchLocationFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2241
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).location;
2242
+ }
2243
+ /**
2244
+ * Parse the data_store from ProjectLocationDataStoreSession resource.
2245
+ *
2246
+ * @param {string} projectLocationDataStoreSessionName
2247
+ * A fully-qualified path representing project_location_data_store_session resource.
2248
+ * @returns {string} A string representing the data_store.
2249
+ */
2250
+ matchDataStoreFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2251
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).data_store;
2252
+ }
2253
+ /**
2254
+ * Parse the session from ProjectLocationDataStoreSession resource.
2255
+ *
2256
+ * @param {string} projectLocationDataStoreSessionName
2257
+ * A fully-qualified path representing project_location_data_store_session resource.
2258
+ * @returns {string} A string representing the session.
2259
+ */
2260
+ matchSessionFromProjectLocationDataStoreSessionName(projectLocationDataStoreSessionName) {
2261
+ return this.pathTemplates.projectLocationDataStoreSessionPathTemplate.match(projectLocationDataStoreSessionName).session;
2262
+ }
2263
+ /**
2264
+ * Return a fully-qualified projectLocationDataStoreSessionAnswer resource name string.
2265
+ *
2266
+ * @param {string} project
2267
+ * @param {string} location
2268
+ * @param {string} data_store
2269
+ * @param {string} session
2270
+ * @param {string} answer
2271
+ * @returns {string} Resource name string.
2272
+ */
2273
+ projectLocationDataStoreSessionAnswerPath(project, location, dataStore, session, answer) {
2274
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.render({
2275
+ project: project,
2276
+ location: location,
2277
+ data_store: dataStore,
2278
+ session: session,
2279
+ answer: answer,
2280
+ });
2281
+ }
2282
+ /**
2283
+ * Parse the project from ProjectLocationDataStoreSessionAnswer resource.
2284
+ *
2285
+ * @param {string} projectLocationDataStoreSessionAnswerName
2286
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2287
+ * @returns {string} A string representing the project.
2288
+ */
2289
+ matchProjectFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2290
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).project;
2291
+ }
2292
+ /**
2293
+ * Parse the location from ProjectLocationDataStoreSessionAnswer resource.
2294
+ *
2295
+ * @param {string} projectLocationDataStoreSessionAnswerName
2296
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2297
+ * @returns {string} A string representing the location.
2298
+ */
2299
+ matchLocationFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2300
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).location;
2301
+ }
2302
+ /**
2303
+ * Parse the data_store from ProjectLocationDataStoreSessionAnswer resource.
2304
+ *
2305
+ * @param {string} projectLocationDataStoreSessionAnswerName
2306
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2307
+ * @returns {string} A string representing the data_store.
2308
+ */
2309
+ matchDataStoreFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2310
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).data_store;
2311
+ }
2312
+ /**
2313
+ * Parse the session from ProjectLocationDataStoreSessionAnswer resource.
2314
+ *
2315
+ * @param {string} projectLocationDataStoreSessionAnswerName
2316
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2317
+ * @returns {string} A string representing the session.
2318
+ */
2319
+ matchSessionFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2320
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).session;
2321
+ }
2322
+ /**
2323
+ * Parse the answer from ProjectLocationDataStoreSessionAnswer resource.
2324
+ *
2325
+ * @param {string} projectLocationDataStoreSessionAnswerName
2326
+ * A fully-qualified path representing project_location_data_store_session_answer resource.
2327
+ * @returns {string} A string representing the answer.
2328
+ */
2329
+ matchAnswerFromProjectLocationDataStoreSessionAnswerName(projectLocationDataStoreSessionAnswerName) {
2330
+ return this.pathTemplates.projectLocationDataStoreSessionAnswerPathTemplate.match(projectLocationDataStoreSessionAnswerName).answer;
2331
+ }
1875
2332
  /**
1876
2333
  * Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
1877
2334
  *