@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.
- package/CHANGELOG.md +15 -0
- package/README.md +7 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +55 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +28 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +7 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +23 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +11 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +4 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +6 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +114 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +57 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +407 -11
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +14 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +126 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +31 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +7 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +23 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +10 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +108 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +111 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +303 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +24 -0
- package/build/protos/protos.d.ts +22409 -16038
- package/build/protos/protos.js +38744 -22699
- package/build/protos/protos.json +1506 -49
- package/build/src/v1alpha/completion_service_client.d.ts +91 -0
- package/build/src/v1alpha/completion_service_client.js +90 -0
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +18 -0
- package/build/src/v1alpha/data_store_service_client.d.ts +12 -3
- package/build/src/v1alpha/data_store_service_client.js +8 -2
- package/build/src/v1alpha/document_service_client.d.ts +4 -0
- package/build/src/v1alpha/document_service_client.js +6 -0
- package/build/src/v1alpha/engine_service_client.js +6 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +6 -0
- package/build/src/v1alpha/evaluation_service_client.js +6 -0
- package/build/src/v1alpha/project_service_client.js +6 -0
- package/build/src/v1alpha/sample_query_service_client.js +6 -0
- package/build/src/v1alpha/schema_service_client.js +6 -0
- package/build/src/v1alpha/search_service_client.d.ts +219 -21
- package/build/src/v1alpha/search_service_client.js +146 -14
- package/build/src/v1alpha/search_tuning_service_client.js +6 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +101 -0
- package/build/src/v1alpha/site_search_engine_service_client.js +70 -0
- package/build/src/v1alpha/site_search_engine_service_client_config.json +8 -0
- package/build/src/v1alpha/user_event_service_client.js +6 -0
- package/build/src/v1beta/completion_service_client.d.ts +91 -0
- package/build/src/v1beta/completion_service_client.js +84 -0
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +18 -0
- package/build/src/v1beta/data_store_service_client.d.ts +9 -0
- package/build/src/v1beta/document_service_client.d.ts +2 -0
- package/build/src/v1beta/search_service_client.d.ts +147 -0
- package/build/src/v1beta/search_service_client.js +98 -0
- package/build/src/v1beta/user_event_service_client.d.ts +75 -0
- package/build/src/v1beta/user_event_service_client.js +42 -0
- package/build/src/v1beta/user_event_service_client_config.json +5 -0
- package/package.json +2 -2
@@ -272,6 +272,97 @@ export declare class CompletionServiceClient {
|
|
272
272
|
* region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async
|
273
273
|
*/
|
274
274
|
checkPurgeSuggestionDenyListEntriesProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse, protos.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata>>;
|
275
|
+
/**
|
276
|
+
* Imports
|
277
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.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.v1alpha.ImportCompletionSuggestionsRequest.InlineSource} request.inlineSource
|
283
|
+
* The Inline source for suggestion entries.
|
284
|
+
* @param {google.cloud.discoveryengine.v1alpha.GcsSource} request.gcsSource
|
285
|
+
* Cloud Storage location for the input content.
|
286
|
+
* @param {google.cloud.discoveryengine.v1alpha.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.v1alpha.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/v1alpha/completion_service.import_completion_suggestions.js</caption>
|
304
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_ImportCompletionSuggestions_async
|
305
|
+
*/
|
306
|
+
importCompletionSuggestions(request?: protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsRequest, options?: CallOptions): Promise<[
|
307
|
+
LROperation<protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsMetadata>,
|
308
|
+
protos.google.longrunning.IOperation | undefined,
|
309
|
+
{} | undefined
|
310
|
+
]>;
|
311
|
+
importCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
312
|
+
importCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.IImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.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/v1alpha/completion_service.import_completion_suggestions.js</caption>
|
322
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_ImportCompletionSuggestions_async
|
323
|
+
*/
|
324
|
+
checkImportCompletionSuggestionsProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsMetadata>>;
|
325
|
+
/**
|
326
|
+
* Permanently deletes all
|
327
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.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/v1alpha/completion_service.purge_completion_suggestions.js</caption>
|
345
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeCompletionSuggestions_async
|
346
|
+
*/
|
347
|
+
purgeCompletionSuggestions(request?: protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsRequest, options?: CallOptions): Promise<[
|
348
|
+
LROperation<protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsMetadata>,
|
349
|
+
protos.google.longrunning.IOperation | undefined,
|
350
|
+
{} | undefined
|
351
|
+
]>;
|
352
|
+
purgeCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
353
|
+
purgeCompletionSuggestions(request: protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1alpha.IPurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.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/v1alpha/completion_service.purge_completion_suggestions.js</caption>
|
363
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeCompletionSuggestions_async
|
364
|
+
*/
|
365
|
+
checkPurgeCompletionSuggestionsProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsResponse, protos.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsMetadata>>;
|
275
366
|
/**
|
276
367
|
* Gets information about a location.
|
277
368
|
*
|
@@ -249,6 +249,9 @@ class CompletionServiceClient {
|
|
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 CompletionServiceClient {
|
|
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
|
],
|
@@ -306,9 +312,15 @@ class CompletionServiceClient {
|
|
306
312
|
const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata');
|
307
313
|
const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse');
|
308
314
|
const purgeSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata');
|
315
|
+
const importCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsResponse');
|
316
|
+
const importCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsMetadata');
|
317
|
+
const purgeCompletionSuggestionsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsResponse');
|
318
|
+
const purgeCompletionSuggestionsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeCompletionSuggestionsMetadata');
|
309
319
|
this.descriptors.longrunning = {
|
310
320
|
importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
|
311
321
|
purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
|
322
|
+
importCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importCompletionSuggestionsResponse.decode.bind(importCompletionSuggestionsResponse), importCompletionSuggestionsMetadata.decode.bind(importCompletionSuggestionsMetadata)),
|
323
|
+
purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata)),
|
312
324
|
};
|
313
325
|
// Put together the default options sent with requests.
|
314
326
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -348,6 +360,8 @@ class CompletionServiceClient {
|
|
348
360
|
'completeQuery',
|
349
361
|
'importSuggestionDenyListEntries',
|
350
362
|
'purgeSuggestionDenyListEntries',
|
363
|
+
'importCompletionSuggestions',
|
364
|
+
'purgeCompletionSuggestions',
|
351
365
|
];
|
352
366
|
for (const methodName of completionServiceStubMethods) {
|
353
367
|
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
@@ -522,6 +536,82 @@ class CompletionServiceClient {
|
|
522
536
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeSuggestionDenyListEntries, this._gaxModule.createDefaultBackoffSettings());
|
523
537
|
return decodeOperation;
|
524
538
|
}
|
539
|
+
importCompletionSuggestions(request, optionsOrCallback, callback) {
|
540
|
+
var _a;
|
541
|
+
request = request || {};
|
542
|
+
let options;
|
543
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
544
|
+
callback = optionsOrCallback;
|
545
|
+
options = {};
|
546
|
+
}
|
547
|
+
else {
|
548
|
+
options = optionsOrCallback;
|
549
|
+
}
|
550
|
+
options = options || {};
|
551
|
+
options.otherArgs = options.otherArgs || {};
|
552
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
553
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
554
|
+
this._gaxModule.routingHeader.fromParams({
|
555
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
556
|
+
});
|
557
|
+
this.initialize();
|
558
|
+
return this.innerApiCalls.importCompletionSuggestions(request, options, callback);
|
559
|
+
}
|
560
|
+
/**
|
561
|
+
* Check the status of the long running operation returned by `importCompletionSuggestions()`.
|
562
|
+
* @param {String} name
|
563
|
+
* The operation name that will be passed.
|
564
|
+
* @returns {Promise} - The promise which resolves to an object.
|
565
|
+
* The decoded operation object has result and metadata field to get information from.
|
566
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
567
|
+
* for more details and examples.
|
568
|
+
* @example <caption>include:samples/generated/v1alpha/completion_service.import_completion_suggestions.js</caption>
|
569
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_ImportCompletionSuggestions_async
|
570
|
+
*/
|
571
|
+
async checkImportCompletionSuggestionsProgress(name) {
|
572
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
573
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
574
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
|
575
|
+
return decodeOperation;
|
576
|
+
}
|
577
|
+
purgeCompletionSuggestions(request, optionsOrCallback, callback) {
|
578
|
+
var _a;
|
579
|
+
request = request || {};
|
580
|
+
let options;
|
581
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
582
|
+
callback = optionsOrCallback;
|
583
|
+
options = {};
|
584
|
+
}
|
585
|
+
else {
|
586
|
+
options = optionsOrCallback;
|
587
|
+
}
|
588
|
+
options = options || {};
|
589
|
+
options.otherArgs = options.otherArgs || {};
|
590
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
591
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
592
|
+
this._gaxModule.routingHeader.fromParams({
|
593
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
594
|
+
});
|
595
|
+
this.initialize();
|
596
|
+
return this.innerApiCalls.purgeCompletionSuggestions(request, options, callback);
|
597
|
+
}
|
598
|
+
/**
|
599
|
+
* Check the status of the long running operation returned by `purgeCompletionSuggestions()`.
|
600
|
+
* @param {String} name
|
601
|
+
* The operation name that will be passed.
|
602
|
+
* @returns {Promise} - The promise which resolves to an object.
|
603
|
+
* The decoded operation object has result and metadata field to get information from.
|
604
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
605
|
+
* for more details and examples.
|
606
|
+
* @example <caption>include:samples/generated/v1alpha/completion_service.purge_completion_suggestions.js</caption>
|
607
|
+
* region_tag:discoveryengine_v1alpha_generated_CompletionService_PurgeCompletionSuggestions_async
|
608
|
+
*/
|
609
|
+
async checkPurgeCompletionSuggestionsProgress(name) {
|
610
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
611
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
612
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeCompletionSuggestions, this._gaxModule.createDefaultBackoffSettings());
|
613
|
+
return decodeOperation;
|
614
|
+
}
|
525
615
|
/**
|
526
616
|
* Gets information about a location.
|
527
617
|
*
|
@@ -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.
|
@@ -293,6 +293,15 @@ export declare class DataStoreServiceClient {
|
|
293
293
|
* If the data store is not configured as site
|
294
294
|
* search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will
|
295
295
|
* be ignored.
|
296
|
+
* @param {boolean} request.skipDefaultSchemaCreation
|
297
|
+
* A boolean flag indicating whether to skip the default schema creation for
|
298
|
+
* the data store. Only enable this flag if you are certain that the default
|
299
|
+
* schema is incompatible with your use case.
|
300
|
+
*
|
301
|
+
* If set to true, you must manually create a schema for the data store before
|
302
|
+
* any documents can be ingested.
|
303
|
+
*
|
304
|
+
* This flag cannot be specified if `data_store.starting_schema` is specified.
|
296
305
|
* @param {object} [options]
|
297
306
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
298
307
|
* @returns {Promise} - The promise which resolves to an array.
|
@@ -402,7 +411,7 @@ export declare class DataStoreServiceClient {
|
|
402
411
|
* must match the call that provided the page token. Otherwise, an
|
403
412
|
* INVALID_ARGUMENT error is returned.
|
404
413
|
* @param {string} request.filter
|
405
|
-
* Filter by solution type.
|
414
|
+
* Filter by solution type .
|
406
415
|
* For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
407
416
|
* @param {object} [options]
|
408
417
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
@@ -454,7 +463,7 @@ export declare class DataStoreServiceClient {
|
|
454
463
|
* must match the call that provided the page token. Otherwise, an
|
455
464
|
* INVALID_ARGUMENT error is returned.
|
456
465
|
* @param {string} request.filter
|
457
|
-
* Filter by solution type.
|
466
|
+
* Filter by solution type .
|
458
467
|
* For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
459
468
|
* @param {object} [options]
|
460
469
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
@@ -501,7 +510,7 @@ export declare class DataStoreServiceClient {
|
|
501
510
|
* must match the call that provided the page token. Otherwise, an
|
502
511
|
* INVALID_ARGUMENT error is returned.
|
503
512
|
* @param {string} request.filter
|
504
|
-
* Filter by solution type.
|
513
|
+
* Filter by solution type .
|
505
514
|
* For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
506
515
|
* @param {object} [options]
|
507
516
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
@@ -257,6 +257,9 @@ class DataStoreServiceClient {
|
|
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 DataStoreServiceClient {
|
|
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
|
],
|
@@ -651,7 +657,7 @@ class DataStoreServiceClient {
|
|
651
657
|
* must match the call that provided the page token. Otherwise, an
|
652
658
|
* INVALID_ARGUMENT error is returned.
|
653
659
|
* @param {string} request.filter
|
654
|
-
* Filter by solution type.
|
660
|
+
* Filter by solution type .
|
655
661
|
* For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
656
662
|
* @param {object} [options]
|
657
663
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
@@ -712,7 +718,7 @@ class DataStoreServiceClient {
|
|
712
718
|
* must match the call that provided the page token. Otherwise, an
|
713
719
|
* INVALID_ARGUMENT error is returned.
|
714
720
|
* @param {string} request.filter
|
715
|
-
* Filter by solution type.
|
721
|
+
* Filter by solution type .
|
716
722
|
* For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
717
723
|
* @param {object} [options]
|
718
724
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
@@ -329,6 +329,8 @@ export declare class DocumentServiceClient {
|
|
329
329
|
* Cloud SQL input source.
|
330
330
|
* @param {google.cloud.discoveryengine.v1alpha.FirestoreSource} request.firestoreSource
|
331
331
|
* Firestore input source.
|
332
|
+
* @param {google.cloud.discoveryengine.v1alpha.AlloyDbSource} request.alloyDbSource
|
333
|
+
* AlloyDB input source.
|
332
334
|
* @param {google.cloud.discoveryengine.v1alpha.BigtableSource} request.bigtableSource
|
333
335
|
* Cloud Bigtable input source.
|
334
336
|
* @param {string} request.parent
|
@@ -461,6 +463,8 @@ export declare class DocumentServiceClient {
|
|
461
463
|
* Supported `data_schema`:
|
462
464
|
* * `document_id`: One valid
|
463
465
|
* {@link protos.google.cloud.discoveryengine.v1alpha.Document.id|Document.id} per line.
|
466
|
+
* @param {google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.InlineSource} request.inlineSource
|
467
|
+
* Inline source for the input content for purge.
|
464
468
|
* @param {string} request.parent
|
465
469
|
* Required. The parent resource name, such as
|
466
470
|
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
|
@@ -259,6 +259,9 @@ class DocumentServiceClient {
|
|
259
259
|
{
|
260
260
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
261
261
|
},
|
262
|
+
{
|
263
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
264
|
+
},
|
262
265
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
263
266
|
{
|
264
267
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -303,6 +306,9 @@ class DocumentServiceClient {
|
|
303
306
|
{
|
304
307
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
305
308
|
},
|
309
|
+
{
|
310
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
311
|
+
},
|
306
312
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
307
313
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
308
314
|
],
|
@@ -257,6 +257,9 @@ class EngineServiceClient {
|
|
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 EngineServiceClient {
|
|
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
|
],
|
@@ -251,6 +251,9 @@ class EstimateBillingServiceClient {
|
|
251
251
|
{
|
252
252
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
253
253
|
},
|
254
|
+
{
|
255
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
256
|
+
},
|
254
257
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
255
258
|
{
|
256
259
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -295,6 +298,9 @@ class EstimateBillingServiceClient {
|
|
295
298
|
{
|
296
299
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
297
300
|
},
|
301
|
+
{
|
302
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
303
|
+
},
|
298
304
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
299
305
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
300
306
|
],
|
@@ -258,6 +258,9 @@ class EvaluationServiceClient {
|
|
258
258
|
{
|
259
259
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
260
260
|
},
|
261
|
+
{
|
262
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
263
|
+
},
|
261
264
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
262
265
|
{
|
263
266
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -302,6 +305,9 @@ class EvaluationServiceClient {
|
|
302
305
|
{
|
303
306
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
304
307
|
},
|
308
|
+
{
|
309
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
310
|
+
},
|
305
311
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
306
312
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
307
313
|
],
|
@@ -250,6 +250,9 @@ class ProjectServiceClient {
|
|
250
250
|
{
|
251
251
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
252
252
|
},
|
253
|
+
{
|
254
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
255
|
+
},
|
253
256
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
254
257
|
{
|
255
258
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -294,6 +297,9 @@ class ProjectServiceClient {
|
|
294
297
|
{
|
295
298
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
296
299
|
},
|
300
|
+
{
|
301
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
302
|
+
},
|
297
303
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
298
304
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
299
305
|
],
|
@@ -256,6 +256,9 @@ class SampleQueryServiceClient {
|
|
256
256
|
{
|
257
257
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
258
258
|
},
|
259
|
+
{
|
260
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
261
|
+
},
|
259
262
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
260
263
|
{
|
261
264
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -300,6 +303,9 @@ class SampleQueryServiceClient {
|
|
300
303
|
{
|
301
304
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
302
305
|
},
|
306
|
+
{
|
307
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
308
|
+
},
|
303
309
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
304
310
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
305
311
|
],
|
@@ -255,6 +255,9 @@ class SchemaServiceClient {
|
|
255
255
|
{
|
256
256
|
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
257
257
|
},
|
258
|
+
{
|
259
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
260
|
+
},
|
258
261
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
259
262
|
{
|
260
263
|
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
@@ -299,6 +302,9 @@ class SchemaServiceClient {
|
|
299
302
|
{
|
300
303
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
301
304
|
},
|
305
|
+
{
|
306
|
+
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
307
|
+
},
|
302
308
|
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
303
309
|
{ get: '/v1alpha/{name=projects/*}/operations' },
|
304
310
|
],
|