@google-cloud/discoveryengine 1.13.0 → 1.14.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 (92) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +6 -0
  3. package/build/protos/google/cloud/discoveryengine/v1/answer.proto +49 -5
  4. package/build/protos/google/cloud/discoveryengine/v1/control.proto +6 -4
  5. package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +9 -9
  6. package/build/protos/google/cloud/discoveryengine/v1/custom_tuning_model.proto +96 -0
  7. package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +10 -0
  8. package/build/protos/google/cloud/discoveryengine/v1/document.proto +20 -0
  9. package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +2 -0
  10. package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +110 -0
  11. package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +2 -1
  12. package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +13 -7
  13. package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +117 -0
  14. package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -1
  15. package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +40 -16
  16. package/build/protos/google/cloud/discoveryengine/v1/search_tuning_service.proto +196 -0
  17. package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +4 -0
  18. package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +21 -0
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +6 -0
  21. package/build/protos/google/cloud/discoveryengine/v1alpha/control.proto +1 -1
  22. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +3 -0
  23. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +48 -0
  24. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +20 -0
  25. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +107 -0
  26. package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +2 -1
  27. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +7 -7
  28. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +1 -1
  29. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +21 -1
  30. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +47 -2
  32. package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +1 -1
  33. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +3 -0
  34. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +3 -0
  35. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +20 -0
  36. package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -0
  37. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +114 -0
  38. package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +2 -1
  39. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +13 -7
  40. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +44 -0
  41. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +101 -6
  42. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -0
  43. package/build/protos/protos.d.ts +7369 -2842
  44. package/build/protos/protos.js +13311 -2062
  45. package/build/protos/protos.json +1096 -45
  46. package/build/src/index.d.ts +4 -1
  47. package/build/src/index.js +4 -1
  48. package/build/src/v1/completion_service_client.d.ts +93 -0
  49. package/build/src/v1/completion_service_client.js +134 -0
  50. package/build/src/v1/control_service_client.d.ts +93 -0
  51. package/build/src/v1/control_service_client.js +128 -0
  52. package/build/src/v1/conversational_search_service_client.d.ts +93 -0
  53. package/build/src/v1/conversational_search_service_client.js +128 -0
  54. package/build/src/v1/data_store_service_client.d.ts +102 -0
  55. package/build/src/v1/data_store_service_client.js +134 -0
  56. package/build/src/v1/document_service_client.d.ts +131 -0
  57. package/build/src/v1/document_service_client.js +156 -0
  58. package/build/src/v1/document_service_client_config.json +5 -0
  59. package/build/src/v1/engine_service_client.d.ts +93 -0
  60. package/build/src/v1/engine_service_client.js +134 -0
  61. package/build/src/v1/grounded_generation_service_client.d.ts +93 -0
  62. package/build/src/v1/grounded_generation_service_client.js +128 -0
  63. package/build/src/v1/index.d.ts +1 -0
  64. package/build/src/v1/index.js +3 -1
  65. package/build/src/v1/project_service_client.d.ts +93 -0
  66. package/build/src/v1/project_service_client.js +134 -0
  67. package/build/src/v1/rank_service_client.d.ts +93 -0
  68. package/build/src/v1/rank_service_client.js +128 -0
  69. package/build/src/v1/recommendation_service_client.d.ts +95 -1
  70. package/build/src/v1/recommendation_service_client.js +128 -0
  71. package/build/src/v1/schema_service_client.d.ts +93 -0
  72. package/build/src/v1/schema_service_client.js +134 -0
  73. package/build/src/v1/search_service_client.d.ts +111 -9
  74. package/build/src/v1/search_service_client.js +140 -6
  75. package/build/src/v1/search_tuning_service_client.d.ts +1776 -0
  76. package/build/src/v1/search_tuning_service_client.js +2589 -0
  77. package/build/src/v1/search_tuning_service_client_config.json +34 -0
  78. package/build/src/v1/site_search_engine_service_client.d.ts +93 -0
  79. package/build/src/v1/site_search_engine_service_client.js +134 -0
  80. package/build/src/v1/user_event_service_client.d.ts +168 -0
  81. package/build/src/v1/user_event_service_client.js +176 -0
  82. package/build/src/v1/user_event_service_client_config.json +5 -0
  83. package/build/src/v1alpha/acl_config_service_client.d.ts +1 -1
  84. package/build/src/v1alpha/document_service_client.d.ts +29 -0
  85. package/build/src/v1alpha/document_service_client.js +22 -0
  86. package/build/src/v1alpha/document_service_client_config.json +5 -0
  87. package/build/src/v1beta/document_service_client.d.ts +38 -0
  88. package/build/src/v1beta/document_service_client.js +22 -0
  89. package/build/src/v1beta/document_service_client_config.json +5 -0
  90. package/build/src/v1beta/search_service_client.d.ts +36 -9
  91. package/build/src/v1beta/search_service_client.js +24 -6
  92. package/package.json +1 -1
@@ -265,6 +265,35 @@ export declare class DocumentServiceClient {
265
265
  ]>;
266
266
  deleteDocument(request: protos.google.cloud.discoveryengine.v1.IDeleteDocumentRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.discoveryengine.v1.IDeleteDocumentRequest | null | undefined, {} | null | undefined>): void;
267
267
  deleteDocument(request: protos.google.cloud.discoveryengine.v1.IDeleteDocumentRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.discoveryengine.v1.IDeleteDocumentRequest | null | undefined, {} | null | undefined>): void;
268
+ /**
269
+ * Gets index freshness metadata for
270
+ * {@link protos.google.cloud.discoveryengine.v1.Document|Document}s. Supported for
271
+ * website search only.
272
+ *
273
+ * @param {Object} request
274
+ * The request object that will be sent.
275
+ * @param {string} request.parent
276
+ * Required. The parent branch resource name, such as
277
+ * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
278
+ * @param {google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher} request.matcher
279
+ * Required. Matcher for the
280
+ * {@link protos.google.cloud.discoveryengine.v1.Document|Document}s.
281
+ * @param {object} [options]
282
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
283
+ * @returns {Promise} - The promise which resolves to an array.
284
+ * The first element of the array is an object representing {@link protos.google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse|BatchGetDocumentsMetadataResponse}.
285
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
286
+ * for more details and examples.
287
+ * @example <caption>include:samples/generated/v1/document_service.batch_get_documents_metadata.js</caption>
288
+ * region_tag:discoveryengine_v1_generated_DocumentService_BatchGetDocumentsMetadata_async
289
+ */
290
+ batchGetDocumentsMetadata(request?: protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest, options?: CallOptions): Promise<[
291
+ protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataResponse,
292
+ (protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest | undefined),
293
+ {} | undefined
294
+ ]>;
295
+ batchGetDocumentsMetadata(request: protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataResponse, protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest | null | undefined, {} | null | undefined>): void;
296
+ batchGetDocumentsMetadata(request: protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest, callback: Callback<protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataResponse, protos.google.cloud.discoveryengine.v1.IBatchGetDocumentsMetadataRequest | null | undefined, {} | null | undefined>): void;
268
297
  /**
269
298
  * Bulk import of multiple
270
299
  * {@link protos.google.cloud.discoveryengine.v1.Document|Document}s. Request processing
@@ -418,6 +447,13 @@ export declare class DocumentServiceClient {
418
447
  *
419
448
  * @param {Object} request
420
449
  * The request object that will be sent.
450
+ * @param {google.cloud.discoveryengine.v1.GcsSource} request.gcsSource
451
+ * Cloud Storage location for the input content.
452
+ * Supported `data_schema`:
453
+ * * `document_id`: One valid
454
+ * {@link protos.google.cloud.discoveryengine.v1.Document.id|Document.id} per line.
455
+ * @param {google.cloud.discoveryengine.v1.PurgeDocumentsRequest.InlineSource} request.inlineSource
456
+ * Inline source for the input content for purge.
421
457
  * @param {string} request.parent
422
458
  * Required. The parent resource name, such as
423
459
  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
@@ -425,6 +461,8 @@ export declare class DocumentServiceClient {
425
461
  * Required. Filter matching documents to purge. Only currently supported
426
462
  * value is
427
463
  * `*` (all items).
464
+ * @param {google.cloud.discoveryengine.v1.PurgeErrorConfig} request.errorConfig
465
+ * The desired location of errors incurred during the purge.
428
466
  * @param {boolean} request.force
429
467
  * Actually performs the purge. If `force` is set to false, return the
430
468
  * expected purge count without deleting any documents.
@@ -1150,6 +1188,57 @@ export declare class DocumentServiceClient {
1150
1188
  * @returns {string} A string representing the conversation.
1151
1189
  */
1152
1190
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName: string): string | number;
1191
+ /**
1192
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1193
+ *
1194
+ * @param {string} project
1195
+ * @param {string} location
1196
+ * @param {string} collection
1197
+ * @param {string} data_store
1198
+ * @param {string} custom_tuning_model
1199
+ * @returns {string} Resource name string.
1200
+ */
1201
+ projectLocationCollectionDataStoreCustomTuningModelPath(project: string, location: string, collection: string, dataStore: string, customTuningModel: string): string;
1202
+ /**
1203
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1204
+ *
1205
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1206
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1207
+ * @returns {string} A string representing the project.
1208
+ */
1209
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
1210
+ /**
1211
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1212
+ *
1213
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1214
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1215
+ * @returns {string} A string representing the location.
1216
+ */
1217
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
1218
+ /**
1219
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1220
+ *
1221
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1222
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1223
+ * @returns {string} A string representing the collection.
1224
+ */
1225
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
1226
+ /**
1227
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1228
+ *
1229
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1230
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1231
+ * @returns {string} A string representing the data_store.
1232
+ */
1233
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
1234
+ /**
1235
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1236
+ *
1237
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1238
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1239
+ * @returns {string} A string representing the custom_tuning_model.
1240
+ */
1241
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
1153
1242
  /**
1154
1243
  * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1155
1244
  *
@@ -1930,6 +2019,48 @@ export declare class DocumentServiceClient {
1930
2019
  * @returns {string} A string representing the conversation.
1931
2020
  */
1932
2021
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName: string): string | number;
2022
+ /**
2023
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2024
+ *
2025
+ * @param {string} project
2026
+ * @param {string} location
2027
+ * @param {string} data_store
2028
+ * @param {string} custom_tuning_model
2029
+ * @returns {string} Resource name string.
2030
+ */
2031
+ projectLocationDataStoreCustomTuningModelPath(project: string, location: string, dataStore: string, customTuningModel: string): string;
2032
+ /**
2033
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2034
+ *
2035
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2036
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2037
+ * @returns {string} A string representing the project.
2038
+ */
2039
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
2040
+ /**
2041
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2042
+ *
2043
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2044
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2045
+ * @returns {string} A string representing the location.
2046
+ */
2047
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
2048
+ /**
2049
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2050
+ *
2051
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2052
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2053
+ * @returns {string} A string representing the data_store.
2054
+ */
2055
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
2056
+ /**
2057
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2058
+ *
2059
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2060
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2061
+ * @returns {string} A string representing the custom_tuning_model.
2062
+ */
2063
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
1933
2064
  /**
1934
2065
  * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1935
2066
  *
@@ -158,6 +158,7 @@ class DocumentServiceClient {
158
158
  projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
159
159
  projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
160
160
  projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
161
+ projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
161
162
  projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
162
163
  projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
163
164
  projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
@@ -174,6 +175,7 @@ class DocumentServiceClient {
174
175
  projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
175
176
  projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
176
177
  projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
178
+ projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
177
179
  projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
178
180
  projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
179
181
  projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
@@ -253,6 +255,9 @@ class DocumentServiceClient {
253
255
  {
254
256
  get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
255
257
  },
258
+ {
259
+ get: '/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
260
+ },
256
261
  { get: '/v1/{name=projects/*/locations/*/operations/*}' },
257
262
  { get: '/v1/{name=projects/*/operations/*}' },
258
263
  ],
@@ -293,6 +298,9 @@ class DocumentServiceClient {
293
298
  get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
294
299
  },
295
300
  { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
301
+ {
302
+ get: '/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
303
+ },
296
304
  { get: '/v1/{name=projects/*/locations/*}/operations' },
297
305
  { get: '/v1/{name=projects/*}/operations' },
298
306
  ],
@@ -351,6 +359,7 @@ class DocumentServiceClient {
351
359
  'deleteDocument',
352
360
  'importDocuments',
353
361
  'purgeDocuments',
362
+ 'batchGetDocumentsMetadata',
354
363
  ];
355
364
  for (const methodName of documentServiceStubMethods) {
356
365
  const callPromise = this.documentServiceStub.then(stub => (...args) => {
@@ -514,6 +523,27 @@ class DocumentServiceClient {
514
523
  this.initialize();
515
524
  return this.innerApiCalls.deleteDocument(request, options, callback);
516
525
  }
526
+ batchGetDocumentsMetadata(request, optionsOrCallback, callback) {
527
+ var _a;
528
+ request = request || {};
529
+ let options;
530
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
531
+ callback = optionsOrCallback;
532
+ options = {};
533
+ }
534
+ else {
535
+ options = optionsOrCallback;
536
+ }
537
+ options = options || {};
538
+ options.otherArgs = options.otherArgs || {};
539
+ options.otherArgs.headers = options.otherArgs.headers || {};
540
+ options.otherArgs.headers['x-goog-request-params'] =
541
+ this._gaxModule.routingHeader.fromParams({
542
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
543
+ });
544
+ this.initialize();
545
+ return this.innerApiCalls.batchGetDocumentsMetadata(request, options, callback);
546
+ }
517
547
  importDocuments(request, optionsOrCallback, callback) {
518
548
  var _a;
519
549
  request = request || {};
@@ -1430,6 +1460,75 @@ class DocumentServiceClient {
1430
1460
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
1431
1461
  return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
1432
1462
  }
1463
+ /**
1464
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
1465
+ *
1466
+ * @param {string} project
1467
+ * @param {string} location
1468
+ * @param {string} collection
1469
+ * @param {string} data_store
1470
+ * @param {string} custom_tuning_model
1471
+ * @returns {string} Resource name string.
1472
+ */
1473
+ projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
1474
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
1475
+ project: project,
1476
+ location: location,
1477
+ collection: collection,
1478
+ data_store: dataStore,
1479
+ custom_tuning_model: customTuningModel,
1480
+ });
1481
+ }
1482
+ /**
1483
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1484
+ *
1485
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1486
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1487
+ * @returns {string} A string representing the project.
1488
+ */
1489
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1490
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
1491
+ }
1492
+ /**
1493
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1494
+ *
1495
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1496
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1497
+ * @returns {string} A string representing the location.
1498
+ */
1499
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1500
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
1501
+ }
1502
+ /**
1503
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1504
+ *
1505
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1506
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1507
+ * @returns {string} A string representing the collection.
1508
+ */
1509
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1510
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
1511
+ }
1512
+ /**
1513
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1514
+ *
1515
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1516
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1517
+ * @returns {string} A string representing the data_store.
1518
+ */
1519
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1520
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
1521
+ }
1522
+ /**
1523
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
1524
+ *
1525
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
1526
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
1527
+ * @returns {string} A string representing the custom_tuning_model.
1528
+ */
1529
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
1530
+ return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
1531
+ }
1433
1532
  /**
1434
1533
  * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
1435
1534
  *
@@ -2486,6 +2585,63 @@ class DocumentServiceClient {
2486
2585
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
2487
2586
  return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
2488
2587
  }
2588
+ /**
2589
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
2590
+ *
2591
+ * @param {string} project
2592
+ * @param {string} location
2593
+ * @param {string} data_store
2594
+ * @param {string} custom_tuning_model
2595
+ * @returns {string} Resource name string.
2596
+ */
2597
+ projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
2598
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
2599
+ project: project,
2600
+ location: location,
2601
+ data_store: dataStore,
2602
+ custom_tuning_model: customTuningModel,
2603
+ });
2604
+ }
2605
+ /**
2606
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
2607
+ *
2608
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2609
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2610
+ * @returns {string} A string representing the project.
2611
+ */
2612
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2613
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
2614
+ }
2615
+ /**
2616
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
2617
+ *
2618
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2619
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2620
+ * @returns {string} A string representing the location.
2621
+ */
2622
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2623
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
2624
+ }
2625
+ /**
2626
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
2627
+ *
2628
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2629
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2630
+ * @returns {string} A string representing the data_store.
2631
+ */
2632
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2633
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
2634
+ }
2635
+ /**
2636
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
2637
+ *
2638
+ * @param {string} projectLocationDataStoreCustomTuningModelName
2639
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
2640
+ * @returns {string} A string representing the custom_tuning_model.
2641
+ */
2642
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
2643
+ return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
2644
+ }
2489
2645
  /**
2490
2646
  * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
2491
2647
  *
@@ -75,6 +75,11 @@
75
75
  "timeout_millis": 30000,
76
76
  "retry_codes_name": "unavailable",
77
77
  "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
78
+ },
79
+ "BatchGetDocumentsMetadata": {
80
+ "timeout_millis": 30000,
81
+ "retry_codes_name": "unavailable",
82
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
78
83
  }
79
84
  }
80
85
  }
@@ -897,6 +897,57 @@ export declare class EngineServiceClient {
897
897
  * @returns {string} A string representing the conversation.
898
898
  */
899
899
  matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName: string): string | number;
900
+ /**
901
+ * Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
902
+ *
903
+ * @param {string} project
904
+ * @param {string} location
905
+ * @param {string} collection
906
+ * @param {string} data_store
907
+ * @param {string} custom_tuning_model
908
+ * @returns {string} Resource name string.
909
+ */
910
+ projectLocationCollectionDataStoreCustomTuningModelPath(project: string, location: string, collection: string, dataStore: string, customTuningModel: string): string;
911
+ /**
912
+ * Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
913
+ *
914
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
915
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
916
+ * @returns {string} A string representing the project.
917
+ */
918
+ matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
919
+ /**
920
+ * Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
921
+ *
922
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
923
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
924
+ * @returns {string} A string representing the location.
925
+ */
926
+ matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
927
+ /**
928
+ * Parse the collection from ProjectLocationCollectionDataStoreCustomTuningModel resource.
929
+ *
930
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
931
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
932
+ * @returns {string} A string representing the collection.
933
+ */
934
+ matchCollectionFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
935
+ /**
936
+ * Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
937
+ *
938
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
939
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
940
+ * @returns {string} A string representing the data_store.
941
+ */
942
+ matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
943
+ /**
944
+ * Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
945
+ *
946
+ * @param {string} projectLocationCollectionDataStoreCustomTuningModelName
947
+ * A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
948
+ * @returns {string} A string representing the custom_tuning_model.
949
+ */
950
+ matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName: string): string | number;
900
951
  /**
901
952
  * Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
902
953
  *
@@ -1635,6 +1686,48 @@ export declare class EngineServiceClient {
1635
1686
  * @returns {string} A string representing the conversation.
1636
1687
  */
1637
1688
  matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName: string): string | number;
1689
+ /**
1690
+ * Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
1691
+ *
1692
+ * @param {string} project
1693
+ * @param {string} location
1694
+ * @param {string} data_store
1695
+ * @param {string} custom_tuning_model
1696
+ * @returns {string} Resource name string.
1697
+ */
1698
+ projectLocationDataStoreCustomTuningModelPath(project: string, location: string, dataStore: string, customTuningModel: string): string;
1699
+ /**
1700
+ * Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
1701
+ *
1702
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1703
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1704
+ * @returns {string} A string representing the project.
1705
+ */
1706
+ matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
1707
+ /**
1708
+ * Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
1709
+ *
1710
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1711
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1712
+ * @returns {string} A string representing the location.
1713
+ */
1714
+ matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
1715
+ /**
1716
+ * Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
1717
+ *
1718
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1719
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1720
+ * @returns {string} A string representing the data_store.
1721
+ */
1722
+ matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
1723
+ /**
1724
+ * Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
1725
+ *
1726
+ * @param {string} projectLocationDataStoreCustomTuningModelName
1727
+ * A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
1728
+ * @returns {string} A string representing the custom_tuning_model.
1729
+ */
1730
+ matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName: string): string | number;
1638
1731
  /**
1639
1732
  * Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
1640
1733
  *