@google-cloud/discoveryengine 1.11.0 → 1.13.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 (67) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +7 -0
  3. package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +55 -2
  4. package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +1 -1
  5. package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +31 -0
  6. package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +38 -0
  7. package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +28 -9
  8. package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +7 -1
  9. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +23 -0
  10. package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +11 -1
  11. package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +4 -1
  12. package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +6 -2
  13. package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +1 -1
  14. package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +114 -0
  15. package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +57 -0
  16. package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +5 -0
  17. package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +407 -11
  18. package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +14 -5
  19. package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +126 -0
  20. package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +3 -0
  21. package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +14 -0
  22. package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +31 -0
  23. package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
  24. package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -0
  25. package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
  26. package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
  27. package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
  28. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +108 -0
  29. package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -0
  30. package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +303 -0
  31. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
  32. package/build/protos/protos.d.ts +22409 -16038
  33. package/build/protos/protos.js +38744 -22699
  34. package/build/protos/protos.json +1506 -49
  35. package/build/src/v1alpha/completion_service_client.d.ts +91 -0
  36. package/build/src/v1alpha/completion_service_client.js +90 -0
  37. package/build/src/v1alpha/completion_service_client_config.json +10 -0
  38. package/build/src/v1alpha/conversational_search_service_client.d.ts +18 -0
  39. package/build/src/v1alpha/data_store_service_client.d.ts +12 -3
  40. package/build/src/v1alpha/data_store_service_client.js +8 -2
  41. package/build/src/v1alpha/document_service_client.d.ts +4 -0
  42. package/build/src/v1alpha/document_service_client.js +6 -0
  43. package/build/src/v1alpha/engine_service_client.js +6 -0
  44. package/build/src/v1alpha/estimate_billing_service_client.js +6 -0
  45. package/build/src/v1alpha/evaluation_service_client.js +6 -0
  46. package/build/src/v1alpha/project_service_client.js +6 -0
  47. package/build/src/v1alpha/sample_query_service_client.js +6 -0
  48. package/build/src/v1alpha/schema_service_client.js +6 -0
  49. package/build/src/v1alpha/search_service_client.d.ts +219 -21
  50. package/build/src/v1alpha/search_service_client.js +146 -14
  51. package/build/src/v1alpha/search_tuning_service_client.js +6 -0
  52. package/build/src/v1alpha/site_search_engine_service_client.d.ts +101 -0
  53. package/build/src/v1alpha/site_search_engine_service_client.js +70 -0
  54. package/build/src/v1alpha/site_search_engine_service_client_config.json +8 -0
  55. package/build/src/v1alpha/user_event_service_client.js +6 -0
  56. package/build/src/v1beta/completion_service_client.d.ts +91 -0
  57. package/build/src/v1beta/completion_service_client.js +84 -0
  58. package/build/src/v1beta/completion_service_client_config.json +10 -0
  59. package/build/src/v1beta/conversational_search_service_client.d.ts +18 -0
  60. package/build/src/v1beta/data_store_service_client.d.ts +9 -0
  61. package/build/src/v1beta/document_service_client.d.ts +2 -0
  62. package/build/src/v1beta/search_service_client.d.ts +147 -0
  63. package/build/src/v1beta/search_service_client.js +98 -0
  64. package/build/src/v1beta/user_event_service_client.d.ts +75 -0
  65. package/build/src/v1beta/user_event_service_client.js +42 -0
  66. package/build/src/v1beta/user_event_service_client_config.json +5 -0
  67. package/package.json +2 -2
@@ -180,6 +180,33 @@ export declare class SiteSearchEngineServiceClient {
180
180
  ]>;
181
181
  getTargetSite(request: protos.google.cloud.discoveryengine.v1alpha.IGetTargetSiteRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.ITargetSite, protos.google.cloud.discoveryengine.v1alpha.IGetTargetSiteRequest | null | undefined, {} | null | undefined>): void;
182
182
  getTargetSite(request: protos.google.cloud.discoveryengine.v1alpha.IGetTargetSiteRequest, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.ITargetSite, protos.google.cloud.discoveryengine.v1alpha.IGetTargetSiteRequest | null | undefined, {} | null | undefined>): void;
183
+ /**
184
+ * Gets the URI Pattern to Document data mapping for an Advanced Site Search
185
+ * DataStore.
186
+ *
187
+ * @param {Object} request
188
+ * The request object that will be sent.
189
+ * @param {string} request.siteSearchEngine
190
+ * Required. Full resource name of the
191
+ * {@link protos.google.cloud.discoveryengine.v1alpha.SiteSearchEngine|SiteSearchEngine},
192
+ * such as
193
+ * `projects/* /locations/* /collections/* /dataStores/* /siteSearchEngine`.
194
+ * @param {object} [options]
195
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
196
+ * @returns {Promise} - The promise which resolves to an array.
197
+ * The first element of the array is an object representing {@link protos.google.cloud.discoveryengine.v1alpha.GetUriPatternDocumentDataResponse|GetUriPatternDocumentDataResponse}.
198
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
199
+ * for more details and examples.
200
+ * @example <caption>include:samples/generated/v1alpha/site_search_engine_service.get_uri_pattern_document_data.js</caption>
201
+ * region_tag:discoveryengine_v1alpha_generated_SiteSearchEngineService_GetUriPatternDocumentData_async
202
+ */
203
+ getUriPatternDocumentData(request?: protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest, options?: CallOptions): Promise<[
204
+ protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataResponse,
205
+ (protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest | undefined),
206
+ {} | undefined
207
+ ]>;
208
+ getUriPatternDocumentData(request: protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest | null | undefined, {} | null | undefined>): void;
209
+ getUriPatternDocumentData(request: protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.IGetUriPatternDocumentDataRequest | null | undefined, {} | null | undefined>): void;
183
210
  /**
184
211
  * Creates a {@link protos.google.cloud.discoveryengine.v1alpha.TargetSite|TargetSite}.
185
212
  *
@@ -521,6 +548,80 @@ export declare class SiteSearchEngineServiceClient {
521
548
  * region_tag:discoveryengine_v1alpha_generated_SiteSearchEngineService_BatchVerifyTargetSites_async
522
549
  */
523
550
  checkBatchVerifyTargetSitesProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesResponse, protos.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesMetadata>>;
551
+ /**
552
+ * Sets the URI Pattern to Document data mapping for an Advanced Site Search
553
+ * DataStore.
554
+ *
555
+ * @param {Object} request
556
+ * The request object that will be sent.
557
+ * @param {string} request.siteSearchEngine
558
+ * Required. Full resource name of the
559
+ * {@link protos.google.cloud.discoveryengine.v1alpha.SiteSearchEngine|SiteSearchEngine},
560
+ * such as
561
+ * `projects/* /locations/* /collections/* /dataStores/* /siteSearchEngine`.
562
+ * @param {number[]} request.documentDataMap
563
+ * Document data keyed by URI pattern. Each entry must be consistent with
564
+ * the {@link protos.google.cloud.discoveryengine.v1alpha.Schema|Schema}. For example:
565
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Schema|Schema} = {
566
+ * "type": "object",
567
+ * "properties": {
568
+ * "Categories": {
569
+ * "type": "array",
570
+ * "items": {
571
+ * "retrievable": true,
572
+ * "type": "string"
573
+ * }
574
+ * }
575
+ * }
576
+ *
577
+ * document_data_map = {
578
+ * "www.url1.com/*": {
579
+ * "Categories": ["category1", "category2"]
580
+ * },
581
+ * "www.url2.com/*": {
582
+ * "Categories": ["category3"]
583
+ * }
584
+ * }
585
+ * @param {boolean} request.emptyDocumentDataMap
586
+ * If true, clears the document data map. If true,
587
+ * {@link protos.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataRequest.document_data_map|SetUriPatternDocumentDataRequest.document_data_map}
588
+ * must be empty.
589
+ * @param {google.protobuf.Struct} request.schema
590
+ * Optional. If not provided, the current
591
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Schema|Schema} is used. If provided,
592
+ * validates and updates the
593
+ * {@link protos.google.cloud.discoveryengine.v1alpha.Schema|Schema}. If validation fails,
594
+ * an error is returned.
595
+ * @param {object} [options]
596
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
597
+ * @returns {Promise} - The promise which resolves to an array.
598
+ * The first element of the array is an object representing
599
+ * a long running operation. Its `promise()` method returns a promise
600
+ * you can `await` for.
601
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
602
+ * for more details and examples.
603
+ * @example <caption>include:samples/generated/v1alpha/site_search_engine_service.set_uri_pattern_document_data.js</caption>
604
+ * region_tag:discoveryengine_v1alpha_generated_SiteSearchEngineService_SetUriPatternDocumentData_async
605
+ */
606
+ setUriPatternDocumentData(request?: protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataRequest, options?: CallOptions): Promise<[
607
+ LROperation<protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataMetadata>,
608
+ protos.google.longrunning.IOperation | undefined,
609
+ {} | undefined
610
+ ]>;
611
+ setUriPatternDocumentData(request: protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
612
+ setUriPatternDocumentData(request: protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.ISetUriPatternDocumentDataMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
613
+ /**
614
+ * Check the status of the long running operation returned by `setUriPatternDocumentData()`.
615
+ * @param {String} name
616
+ * The operation name that will be passed.
617
+ * @returns {Promise} - The promise which resolves to an object.
618
+ * The decoded operation object has result and metadata field to get information from.
619
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
620
+ * for more details and examples.
621
+ * @example <caption>include:samples/generated/v1alpha/site_search_engine_service.set_uri_pattern_document_data.js</caption>
622
+ * region_tag:discoveryengine_v1alpha_generated_SiteSearchEngineService_SetUriPatternDocumentData_async
623
+ */
624
+ checkSetUriPatternDocumentDataProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataResponse, protos.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataMetadata>>;
524
625
  /**
525
626
  * Gets a list of
526
627
  * {@link protos.google.cloud.discoveryengine.v1alpha.TargetSite|TargetSite}s.
@@ -257,6 +257,9 @@ class SiteSearchEngineServiceClient {
257
257
  {
258
258
  get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
259
259
  },
260
+ {
261
+ get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
262
+ },
260
263
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
261
264
  {
262
265
  get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
@@ -301,6 +304,9 @@ class SiteSearchEngineServiceClient {
301
304
  {
302
305
  get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
303
306
  },
307
+ {
308
+ get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
309
+ },
304
310
  { get: '/v1alpha/{name=projects/*/locations/*}/operations' },
305
311
  { get: '/v1alpha/{name=projects/*}/operations' },
306
312
  ],
@@ -326,6 +332,8 @@ class SiteSearchEngineServiceClient {
326
332
  const recrawlUrisMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.RecrawlUrisMetadata');
327
333
  const batchVerifyTargetSitesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesResponse');
328
334
  const batchVerifyTargetSitesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.BatchVerifyTargetSitesMetadata');
335
+ const setUriPatternDocumentDataResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataResponse');
336
+ const setUriPatternDocumentDataMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.SetUriPatternDocumentDataMetadata');
329
337
  this.descriptors.longrunning = {
330
338
  createTargetSite: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createTargetSiteResponse.decode.bind(createTargetSiteResponse), createTargetSiteMetadata.decode.bind(createTargetSiteMetadata)),
331
339
  batchCreateTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchCreateTargetSitesResponse.decode.bind(batchCreateTargetSitesResponse), batchCreateTargetSitesMetadata.decode.bind(batchCreateTargetSitesMetadata)),
@@ -335,6 +343,7 @@ class SiteSearchEngineServiceClient {
335
343
  disableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, disableAdvancedSiteSearchResponse.decode.bind(disableAdvancedSiteSearchResponse), disableAdvancedSiteSearchMetadata.decode.bind(disableAdvancedSiteSearchMetadata)),
336
344
  recrawlUris: new this._gaxModule.LongrunningDescriptor(this.operationsClient, recrawlUrisResponse.decode.bind(recrawlUrisResponse), recrawlUrisMetadata.decode.bind(recrawlUrisMetadata)),
337
345
  batchVerifyTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchVerifyTargetSitesResponse.decode.bind(batchVerifyTargetSitesResponse), batchVerifyTargetSitesMetadata.decode.bind(batchVerifyTargetSitesMetadata)),
346
+ setUriPatternDocumentData: new this._gaxModule.LongrunningDescriptor(this.operationsClient, setUriPatternDocumentDataResponse.decode.bind(setUriPatternDocumentDataResponse), setUriPatternDocumentDataMetadata.decode.bind(setUriPatternDocumentDataMetadata)),
338
347
  };
339
348
  // Put together the default options sent with requests.
340
349
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.SiteSearchEngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -383,6 +392,8 @@ class SiteSearchEngineServiceClient {
383
392
  'recrawlUris',
384
393
  'batchVerifyTargetSites',
385
394
  'fetchDomainVerificationStatus',
395
+ 'setUriPatternDocumentData',
396
+ 'getUriPatternDocumentData',
386
397
  ];
387
398
  for (const methodName of siteSearchEngineServiceStubMethods) {
388
399
  const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
@@ -504,6 +515,27 @@ class SiteSearchEngineServiceClient {
504
515
  this.initialize();
505
516
  return this.innerApiCalls.getTargetSite(request, options, callback);
506
517
  }
518
+ getUriPatternDocumentData(request, optionsOrCallback, callback) {
519
+ var _a;
520
+ request = request || {};
521
+ let options;
522
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
523
+ callback = optionsOrCallback;
524
+ options = {};
525
+ }
526
+ else {
527
+ options = optionsOrCallback;
528
+ }
529
+ options = options || {};
530
+ options.otherArgs = options.otherArgs || {};
531
+ options.otherArgs.headers = options.otherArgs.headers || {};
532
+ options.otherArgs.headers['x-goog-request-params'] =
533
+ this._gaxModule.routingHeader.fromParams({
534
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
535
+ });
536
+ this.initialize();
537
+ return this.innerApiCalls.getUriPatternDocumentData(request, options, callback);
538
+ }
507
539
  createTargetSite(request, optionsOrCallback, callback) {
508
540
  var _a;
509
541
  request = request || {};
@@ -808,6 +840,44 @@ class SiteSearchEngineServiceClient {
808
840
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.batchVerifyTargetSites, this._gaxModule.createDefaultBackoffSettings());
809
841
  return decodeOperation;
810
842
  }
843
+ setUriPatternDocumentData(request, optionsOrCallback, callback) {
844
+ var _a;
845
+ request = request || {};
846
+ let options;
847
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
848
+ callback = optionsOrCallback;
849
+ options = {};
850
+ }
851
+ else {
852
+ options = optionsOrCallback;
853
+ }
854
+ options = options || {};
855
+ options.otherArgs = options.otherArgs || {};
856
+ options.otherArgs.headers = options.otherArgs.headers || {};
857
+ options.otherArgs.headers['x-goog-request-params'] =
858
+ this._gaxModule.routingHeader.fromParams({
859
+ site_search_engine: (_a = request.siteSearchEngine) !== null && _a !== void 0 ? _a : '',
860
+ });
861
+ this.initialize();
862
+ return this.innerApiCalls.setUriPatternDocumentData(request, options, callback);
863
+ }
864
+ /**
865
+ * Check the status of the long running operation returned by `setUriPatternDocumentData()`.
866
+ * @param {String} name
867
+ * The operation name that will be passed.
868
+ * @returns {Promise} - The promise which resolves to an object.
869
+ * The decoded operation object has result and metadata field to get information from.
870
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
871
+ * for more details and examples.
872
+ * @example <caption>include:samples/generated/v1alpha/site_search_engine_service.set_uri_pattern_document_data.js</caption>
873
+ * region_tag:discoveryengine_v1alpha_generated_SiteSearchEngineService_SetUriPatternDocumentData_async
874
+ */
875
+ async checkSetUriPatternDocumentDataProgress(name) {
876
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
877
+ const [operation] = await this.operationsClient.getOperation(request);
878
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.setUriPatternDocumentData, this._gaxModule.createDefaultBackoffSettings());
879
+ return decodeOperation;
880
+ }
811
881
  listTargetSites(request, optionsOrCallback, callback) {
812
882
  var _a;
813
883
  request = request || {};
@@ -67,6 +67,14 @@
67
67
  "FetchDomainVerificationStatus": {
68
68
  "retry_codes_name": "non_idempotent",
69
69
  "retry_params_name": "default"
70
+ },
71
+ "SetUriPatternDocumentData": {
72
+ "retry_codes_name": "non_idempotent",
73
+ "retry_params_name": "default"
74
+ },
75
+ "GetUriPatternDocumentData": {
76
+ "retry_codes_name": "non_idempotent",
77
+ "retry_params_name": "default"
70
78
  }
71
79
  }
72
80
  }
@@ -249,6 +249,9 @@ class UserEventServiceClient {
249
249
  {
250
250
  get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
251
251
  },
252
+ {
253
+ get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
254
+ },
252
255
  { get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
253
256
  {
254
257
  get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
@@ -293,6 +296,9 @@ class UserEventServiceClient {
293
296
  {
294
297
  get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
295
298
  },
299
+ {
300
+ get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
301
+ },
296
302
  { get: '/v1alpha/{name=projects/*/locations/*}/operations' },
297
303
  { get: '/v1alpha/{name=projects/*}/operations' },
298
304
  ],
@@ -272,6 +272,97 @@ export declare class CompletionServiceClient {
272
272
  * region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeSuggestionDenyListEntries_async
273
273
  */
274
274
  checkPurgeSuggestionDenyListEntriesProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse, protos.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata>>;
275
+ /**
276
+ * Imports
277
+ * {@link protos.google.cloud.discoveryengine.v1beta.CompletionSuggestion|CompletionSuggestion}s
278
+ * for a DataStore.
279
+ *
280
+ * @param {Object} request
281
+ * The request object that will be sent.
282
+ * @param {google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource} request.inlineSource
283
+ * The Inline source for suggestion entries.
284
+ * @param {google.cloud.discoveryengine.v1beta.GcsSource} request.gcsSource
285
+ * Cloud Storage location for the input content.
286
+ * @param {google.cloud.discoveryengine.v1beta.BigQuerySource} request.bigquerySource
287
+ * BigQuery input source.
288
+ * @param {string} request.parent
289
+ * Required. The parent data store resource name for which to import customer
290
+ * autocomplete suggestions.
291
+ *
292
+ * Follows pattern `projects/* /locations/* /collections/* /dataStores/*`
293
+ * @param {google.cloud.discoveryengine.v1beta.ImportErrorConfig} request.errorConfig
294
+ * The desired location of errors incurred during the Import.
295
+ * @param {object} [options]
296
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
297
+ * @returns {Promise} - The promise which resolves to an array.
298
+ * The first element of the array is an object representing
299
+ * a long running operation. Its `promise()` method returns a promise
300
+ * you can `await` for.
301
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
302
+ * for more details and examples.
303
+ * @example <caption>include:samples/generated/v1beta/completion_service.import_completion_suggestions.js</caption>
304
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async
305
+ */
306
+ importCompletionSuggestions(request?: protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsRequest, options?: CallOptions): Promise<[
307
+ LROperation<protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsMetadata>,
308
+ protos.google.longrunning.IOperation | undefined,
309
+ {} | undefined
310
+ ]>;
311
+ importCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
312
+ importCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IImportCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
313
+ /**
314
+ * Check the status of the long running operation returned by `importCompletionSuggestions()`.
315
+ * @param {String} name
316
+ * The operation name that will be passed.
317
+ * @returns {Promise} - The promise which resolves to an object.
318
+ * The decoded operation object has result and metadata field to get information from.
319
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
320
+ * for more details and examples.
321
+ * @example <caption>include:samples/generated/v1beta/completion_service.import_completion_suggestions.js</caption>
322
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async
323
+ */
324
+ checkImportCompletionSuggestionsProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata>>;
325
+ /**
326
+ * Permanently deletes all
327
+ * {@link protos.google.cloud.discoveryengine.v1beta.CompletionSuggestion|CompletionSuggestion}s
328
+ * for a DataStore.
329
+ *
330
+ * @param {Object} request
331
+ * The request object that will be sent.
332
+ * @param {string} request.parent
333
+ * Required. The parent data store resource name for which to purge completion
334
+ * suggestions. Follows pattern
335
+ * projects/* /locations/* /collections/* /dataStores/*.
336
+ * @param {object} [options]
337
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
338
+ * @returns {Promise} - The promise which resolves to an array.
339
+ * The first element of the array is an object representing
340
+ * a long running operation. Its `promise()` method returns a promise
341
+ * you can `await` for.
342
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
343
+ * for more details and examples.
344
+ * @example <caption>include:samples/generated/v1beta/completion_service.purge_completion_suggestions.js</caption>
345
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async
346
+ */
347
+ purgeCompletionSuggestions(request?: protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsRequest, options?: CallOptions): Promise<[
348
+ LROperation<protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsMetadata>,
349
+ protos.google.longrunning.IOperation | undefined,
350
+ {} | undefined
351
+ ]>;
352
+ purgeCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
353
+ purgeCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.IPurgeCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
354
+ /**
355
+ * Check the status of the long running operation returned by `purgeCompletionSuggestions()`.
356
+ * @param {String} name
357
+ * The operation name that will be passed.
358
+ * @returns {Promise} - The promise which resolves to an object.
359
+ * The decoded operation object has result and metadata field to get information from.
360
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
361
+ * for more details and examples.
362
+ * @example <caption>include:samples/generated/v1beta/completion_service.purge_completion_suggestions.js</caption>
363
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async
364
+ */
365
+ checkPurgeCompletionSuggestionsProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata>>;
275
366
  /**
276
367
  * Gets information about a location.
277
368
  *
@@ -305,9 +305,15 @@ class CompletionServiceClient {
305
305
  const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata');
306
306
  const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse');
307
307
  const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata');
308
+ const importCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse');
309
+ const importCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata');
310
+ const purgeCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse');
311
+ const purgeCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata');
308
312
  this.descriptors.longrunning = {
309
313
  importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
310
314
  purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
315
+ importCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importCompletionSuggestionsResponse.decode.bind(importCompletionSuggestionsResponse), importCompletionSuggestionsMetadata.decode.bind(importCompletionSuggestionsMetadata)),
316
+ purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata)),
311
317
  };
312
318
  // Put together the default options sent with requests.
313
319
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -347,6 +353,8 @@ class CompletionServiceClient {
347
353
  'completeQuery',
348
354
  'importSuggestionDenyListEntries',
349
355
  'purgeSuggestionDenyListEntries',
356
+ 'importCompletionSuggestions',
357
+ 'purgeCompletionSuggestions',
350
358
  ];
351
359
  for (const methodName of completionServiceStubMethods) {
352
360
  const callPromise = this.completionServiceStub.then(stub => (...args) => {
@@ -521,6 +529,82 @@ class CompletionServiceClient {
521
529
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
522
530
  return decodeOperation;
523
531
  }
532
+ importCompletionSuggestions(request, optionsOrCallback, callback) {
533
+ var _a;
534
+ request = request || {};
535
+ let options;
536
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
537
+ callback = optionsOrCallback;
538
+ options = {};
539
+ }
540
+ else {
541
+ options = optionsOrCallback;
542
+ }
543
+ options = options || {};
544
+ options.otherArgs = options.otherArgs || {};
545
+ options.otherArgs.headers = options.otherArgs.headers || {};
546
+ options.otherArgs.headers['x-goog-request-params'] =
547
+ this._gaxModule.routingHeader.fromParams({
548
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
549
+ });
550
+ this.initialize();
551
+ return this.innerApiCalls.importCompletionSuggestions(request, options, callback);
552
+ }
553
+ /**
554
+ * Check the status of the long running operation returned by `importCompletionSuggestions()`.
555
+ * @param {String} name
556
+ * The operation name that will be passed.
557
+ * @returns {Promise} - The promise which resolves to an object.
558
+ * The decoded operation object has result and metadata field to get information from.
559
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
560
+ * for more details and examples.
561
+ * @example <caption>include:samples/generated/v1beta/completion_service.import_completion_suggestions.js</caption>
562
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async
563
+ */
564
+ async checkImportCompletionSuggestionsProgress(name) {
565
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
566
+ const [operation] = await this.operationsClient.getOperation(request);
567
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
568
+ return decodeOperation;
569
+ }
570
+ purgeCompletionSuggestions(request, optionsOrCallback, callback) {
571
+ var _a;
572
+ request = request || {};
573
+ let options;
574
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
575
+ callback = optionsOrCallback;
576
+ options = {};
577
+ }
578
+ else {
579
+ options = optionsOrCallback;
580
+ }
581
+ options = options || {};
582
+ options.otherArgs = options.otherArgs || {};
583
+ options.otherArgs.headers = options.otherArgs.headers || {};
584
+ options.otherArgs.headers['x-goog-request-params'] =
585
+ this._gaxModule.routingHeader.fromParams({
586
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
587
+ });
588
+ this.initialize();
589
+ return this.innerApiCalls.purgeCompletionSuggestions(request, options, callback);
590
+ }
591
+ /**
592
+ * Check the status of the long running operation returned by `purgeCompletionSuggestions()`.
593
+ * @param {String} name
594
+ * The operation name that will be passed.
595
+ * @returns {Promise} - The promise which resolves to an object.
596
+ * The decoded operation object has result and metadata field to get information from.
597
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
598
+ * for more details and examples.
599
+ * @example <caption>include:samples/generated/v1beta/completion_service.purge_completion_suggestions.js</caption>
600
+ * region_tag:discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async
601
+ */
602
+ async checkPurgeCompletionSuggestionsProgress(name) {
603
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
604
+ const [operation] = await this.operationsClient.getOperation(request);
605
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
606
+ return decodeOperation;
607
+ }
524
608
  /**
525
609
  * Gets information about a location.
526
610
  *
@@ -46,6 +46,16 @@
46
46
  "timeout_millis": 5000,
47
47
  "retry_codes_name": "unavailable",
48
48
  "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
49
+ },
50
+ "ImportCompletionSuggestions": {
51
+ "timeout_millis": 5000,
52
+ "retry_codes_name": "unavailable",
53
+ "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
54
+ },
55
+ "PurgeCompletionSuggestions": {
56
+ "timeout_millis": 5000,
57
+ "retry_codes_name": "unavailable",
58
+ "retry_params_name": "319f27672a8be83550d842a373549dd84649a57e"
49
59
  }
50
60
  }
51
61
  }
@@ -363,6 +363,24 @@ export declare class ConversationalSearchServiceClient {
363
363
  *
364
364
  * The field must be a UTF-8 encoded string with a length limit of 128
365
365
  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
366
+ * @param {number[]} request.userLabels
367
+ * The user labels applied to a resource must meet the following requirements:
368
+ *
369
+ * * Each resource can have multiple labels, up to a maximum of 64.
370
+ * * Each label must be a key-value pair.
371
+ * * Keys have a minimum length of 1 character and a maximum length of 63
372
+ * characters and cannot be empty. Values can be empty and have a maximum
373
+ * length of 63 characters.
374
+ * * Keys and values can contain only lowercase letters, numeric characters,
375
+ * underscores, and dashes. All characters must use UTF-8 encoding, and
376
+ * international characters are allowed.
377
+ * * The key portion of a label must be unique. However, you can use the same
378
+ * key with multiple resources.
379
+ * * Keys must start with a lowercase letter or international character.
380
+ *
381
+ * See [Google Cloud
382
+ * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
383
+ * for more details.
366
384
  * @param {object} [options]
367
385
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
368
386
  * @returns {Promise} - The promise which resolves to an array.
@@ -218,6 +218,15 @@ export declare class DataStoreServiceClient {
218
218
  * If the data store is not configured as site
219
219
  * search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
220
220
  * be ignored.
221
+ * @param {boolean} request.skipDefaultSchemaCreation
222
+ * A boolean flag indicating whether to skip the default schema creation for
223
+ * the data store. Only enable this flag if you are certain that the default
224
+ * schema is incompatible with your use case.
225
+ *
226
+ * If set to true, you must manually create a schema for the data store before
227
+ * any documents can be ingested.
228
+ *
229
+ * This flag cannot be specified if `data_store.starting_schema` is specified.
221
230
  * @param {object} [options]
222
231
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
223
232
  * @returns {Promise} - The promise which resolves to an array.
@@ -291,6 +291,8 @@ export declare class DocumentServiceClient {
291
291
  * Cloud SQL input source.
292
292
  * @param {google.cloud.discoveryengine.v1beta.FirestoreSource} request.firestoreSource
293
293
  * Firestore input source.
294
+ * @param {google.cloud.discoveryengine.v1beta.AlloyDbSource} request.alloyDbSource
295
+ * AlloyDB input source.
294
296
  * @param {google.cloud.discoveryengine.v1beta.BigtableSource} request.bigtableSource
295
297
  * Cloud Bigtable input source.
296
298
  * @param {string} request.parent