@google-cloud/discoveryengine 1.12.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.
- package/CHANGELOG.md +14 -0
- package/README.md +10 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +49 -5
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +6 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +9 -9
- package/build/protos/google/cloud/discoveryengine/v1/custom_tuning_model.proto +96 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +10 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +20 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +110 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +13 -7
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +117 -0
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +40 -16
- package/build/protos/google/cloud/discoveryengine/v1/search_tuning_service.proto +196 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +21 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/answer.proto +61 -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/control.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +28 -9
- package/build/protos/google/cloud/discoveryengine/v1alpha/custom_tuning_model.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +71 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +11 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +24 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +6 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +108 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +119 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +58 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +5 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +428 -12
- 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.proto +4 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/answer.proto +47 -2
- package/build/protos/google/cloud/discoveryengine/v1beta/control.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +20 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +2 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +114 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +13 -7
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +101 -6
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -0
- package/build/protos/protos.d.ts +24137 -16126
- package/build/protos/protos.js +78286 -58223
- package/build/protos/protos.json +1954 -105
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -1
- package/build/src/v1/completion_service_client.d.ts +93 -0
- package/build/src/v1/completion_service_client.js +134 -0
- package/build/src/v1/control_service_client.d.ts +93 -0
- package/build/src/v1/control_service_client.js +128 -0
- package/build/src/v1/conversational_search_service_client.d.ts +93 -0
- package/build/src/v1/conversational_search_service_client.js +128 -0
- package/build/src/v1/data_store_service_client.d.ts +102 -0
- package/build/src/v1/data_store_service_client.js +134 -0
- package/build/src/v1/document_service_client.d.ts +131 -0
- package/build/src/v1/document_service_client.js +156 -0
- package/build/src/v1/document_service_client_config.json +5 -0
- package/build/src/v1/engine_service_client.d.ts +93 -0
- package/build/src/v1/engine_service_client.js +134 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +93 -0
- package/build/src/v1/grounded_generation_service_client.js +128 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +93 -0
- package/build/src/v1/project_service_client.js +134 -0
- package/build/src/v1/rank_service_client.d.ts +93 -0
- package/build/src/v1/rank_service_client.js +128 -0
- package/build/src/v1/recommendation_service_client.d.ts +95 -1
- package/build/src/v1/recommendation_service_client.js +128 -0
- package/build/src/v1/schema_service_client.d.ts +93 -0
- package/build/src/v1/schema_service_client.js +134 -0
- package/build/src/v1/search_service_client.d.ts +111 -9
- package/build/src/v1/search_service_client.js +140 -6
- package/build/src/v1/search_tuning_service_client.d.ts +1776 -0
- package/build/src/v1/search_tuning_service_client.js +2589 -0
- package/build/src/v1/search_tuning_service_client_config.json +34 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +93 -0
- package/build/src/v1/site_search_engine_service_client.js +134 -0
- package/build/src/v1/user_event_service_client.d.ts +168 -0
- package/build/src/v1/user_event_service_client.js +176 -0
- package/build/src/v1/user_event_service_client_config.json +5 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +1 -1
- 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 +33 -0
- package/build/src/v1alpha/document_service_client.js +28 -0
- package/build/src/v1alpha/document_service_client_config.json +5 -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/document_service_client.d.ts +38 -0
- package/build/src/v1beta/document_service_client.js +22 -0
- package/build/src/v1beta/document_service_client_config.json +5 -0
- package/build/src/v1beta/search_service_client.d.ts +36 -9
- package/build/src/v1beta/search_service_client.js +24 -6
- package/package.json +2 -2
@@ -156,6 +156,7 @@ class UserEventServiceClient {
|
|
156
156
|
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
157
157
|
projectLocationCollectionDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}'),
|
158
158
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
159
|
+
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
159
160
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
160
161
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
161
162
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
@@ -171,6 +172,7 @@ class UserEventServiceClient {
|
|
171
172
|
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
172
173
|
projectLocationDataStoreControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}'),
|
173
174
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
175
|
+
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
174
176
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
175
177
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
176
178
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
@@ -244,6 +246,9 @@ class UserEventServiceClient {
|
|
244
246
|
{
|
245
247
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
246
248
|
},
|
249
|
+
{
|
250
|
+
get: '/v1/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
251
|
+
},
|
247
252
|
{ get: '/v1/{name=projects/*/locations/*/operations/*}' },
|
248
253
|
{ get: '/v1/{name=projects/*/operations/*}' },
|
249
254
|
],
|
@@ -284,6 +289,9 @@ class UserEventServiceClient {
|
|
284
289
|
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
285
290
|
},
|
286
291
|
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
292
|
+
{
|
293
|
+
get: '/v1/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
294
|
+
},
|
287
295
|
{ get: '/v1/{name=projects/*/locations/*}/operations' },
|
288
296
|
{ get: '/v1/{name=projects/*}/operations' },
|
289
297
|
],
|
@@ -293,9 +301,12 @@ class UserEventServiceClient {
|
|
293
301
|
this.operationsClient = this._gaxModule
|
294
302
|
.lro(lroOptions)
|
295
303
|
.operationsClient(opts);
|
304
|
+
const purgeUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeUserEventsResponse');
|
305
|
+
const purgeUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.PurgeUserEventsMetadata');
|
296
306
|
const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportUserEventsResponse');
|
297
307
|
const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.ImportUserEventsMetadata');
|
298
308
|
this.descriptors.longrunning = {
|
309
|
+
purgeUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeUserEventsResponse.decode.bind(purgeUserEventsResponse), purgeUserEventsMetadata.decode.bind(purgeUserEventsMetadata)),
|
299
310
|
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata)),
|
300
311
|
};
|
301
312
|
// Put together the default options sent with requests.
|
@@ -335,6 +346,7 @@ class UserEventServiceClient {
|
|
335
346
|
const userEventServiceStubMethods = [
|
336
347
|
'writeUserEvent',
|
337
348
|
'collectUserEvent',
|
349
|
+
'purgeUserEvents',
|
338
350
|
'importUserEvents',
|
339
351
|
];
|
340
352
|
for (const methodName of userEventServiceStubMethods) {
|
@@ -455,6 +467,44 @@ class UserEventServiceClient {
|
|
455
467
|
this.initialize();
|
456
468
|
return this.innerApiCalls.collectUserEvent(request, options, callback);
|
457
469
|
}
|
470
|
+
purgeUserEvents(request, optionsOrCallback, callback) {
|
471
|
+
var _a;
|
472
|
+
request = request || {};
|
473
|
+
let options;
|
474
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
475
|
+
callback = optionsOrCallback;
|
476
|
+
options = {};
|
477
|
+
}
|
478
|
+
else {
|
479
|
+
options = optionsOrCallback;
|
480
|
+
}
|
481
|
+
options = options || {};
|
482
|
+
options.otherArgs = options.otherArgs || {};
|
483
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
484
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
485
|
+
this._gaxModule.routingHeader.fromParams({
|
486
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
487
|
+
});
|
488
|
+
this.initialize();
|
489
|
+
return this.innerApiCalls.purgeUserEvents(request, options, callback);
|
490
|
+
}
|
491
|
+
/**
|
492
|
+
* Check the status of the long running operation returned by `purgeUserEvents()`.
|
493
|
+
* @param {String} name
|
494
|
+
* The operation name that will be passed.
|
495
|
+
* @returns {Promise} - The promise which resolves to an object.
|
496
|
+
* The decoded operation object has result and metadata field to get information from.
|
497
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
498
|
+
* for more details and examples.
|
499
|
+
* @example <caption>include:samples/generated/v1/user_event_service.purge_user_events.js</caption>
|
500
|
+
* region_tag:discoveryengine_v1_generated_UserEventService_PurgeUserEvents_async
|
501
|
+
*/
|
502
|
+
async checkPurgeUserEventsProgress(name) {
|
503
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
504
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
505
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.purgeUserEvents, this._gaxModule.createDefaultBackoffSettings());
|
506
|
+
return decodeOperation;
|
507
|
+
}
|
458
508
|
importUserEvents(request, optionsOrCallback, callback) {
|
459
509
|
var _a;
|
460
510
|
request = request || {};
|
@@ -1126,6 +1176,75 @@ class UserEventServiceClient {
|
|
1126
1176
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1127
1177
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1128
1178
|
}
|
1179
|
+
/**
|
1180
|
+
* Return a fully-qualified projectLocationCollectionDataStoreCustomTuningModel resource name string.
|
1181
|
+
*
|
1182
|
+
* @param {string} project
|
1183
|
+
* @param {string} location
|
1184
|
+
* @param {string} collection
|
1185
|
+
* @param {string} data_store
|
1186
|
+
* @param {string} custom_tuning_model
|
1187
|
+
* @returns {string} Resource name string.
|
1188
|
+
*/
|
1189
|
+
projectLocationCollectionDataStoreCustomTuningModelPath(project, location, collection, dataStore, customTuningModel) {
|
1190
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.render({
|
1191
|
+
project: project,
|
1192
|
+
location: location,
|
1193
|
+
collection: collection,
|
1194
|
+
data_store: dataStore,
|
1195
|
+
custom_tuning_model: customTuningModel,
|
1196
|
+
});
|
1197
|
+
}
|
1198
|
+
/**
|
1199
|
+
* Parse the project from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1200
|
+
*
|
1201
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1202
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1203
|
+
* @returns {string} A string representing the project.
|
1204
|
+
*/
|
1205
|
+
matchProjectFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1206
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).project;
|
1207
|
+
}
|
1208
|
+
/**
|
1209
|
+
* Parse the location from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1210
|
+
*
|
1211
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1212
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1213
|
+
* @returns {string} A string representing the location.
|
1214
|
+
*/
|
1215
|
+
matchLocationFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1216
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).location;
|
1217
|
+
}
|
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) {
|
1226
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).collection;
|
1227
|
+
}
|
1228
|
+
/**
|
1229
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1230
|
+
*
|
1231
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1232
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1233
|
+
* @returns {string} A string representing the data_store.
|
1234
|
+
*/
|
1235
|
+
matchDataStoreFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1236
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).data_store;
|
1237
|
+
}
|
1238
|
+
/**
|
1239
|
+
* Parse the custom_tuning_model from ProjectLocationCollectionDataStoreCustomTuningModel resource.
|
1240
|
+
*
|
1241
|
+
* @param {string} projectLocationCollectionDataStoreCustomTuningModelName
|
1242
|
+
* A fully-qualified path representing project_location_collection_data_store_custom_tuning_model resource.
|
1243
|
+
* @returns {string} A string representing the custom_tuning_model.
|
1244
|
+
*/
|
1245
|
+
matchCustomTuningModelFromProjectLocationCollectionDataStoreCustomTuningModelName(projectLocationCollectionDataStoreCustomTuningModelName) {
|
1246
|
+
return this.pathTemplates.projectLocationCollectionDataStoreCustomTuningModelPathTemplate.match(projectLocationCollectionDataStoreCustomTuningModelName).custom_tuning_model;
|
1247
|
+
}
|
1129
1248
|
/**
|
1130
1249
|
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1131
1250
|
*
|
@@ -2125,6 +2244,63 @@ class UserEventServiceClient {
|
|
2125
2244
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
2126
2245
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
2127
2246
|
}
|
2247
|
+
/**
|
2248
|
+
* Return a fully-qualified projectLocationDataStoreCustomTuningModel resource name string.
|
2249
|
+
*
|
2250
|
+
* @param {string} project
|
2251
|
+
* @param {string} location
|
2252
|
+
* @param {string} data_store
|
2253
|
+
* @param {string} custom_tuning_model
|
2254
|
+
* @returns {string} Resource name string.
|
2255
|
+
*/
|
2256
|
+
projectLocationDataStoreCustomTuningModelPath(project, location, dataStore, customTuningModel) {
|
2257
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.render({
|
2258
|
+
project: project,
|
2259
|
+
location: location,
|
2260
|
+
data_store: dataStore,
|
2261
|
+
custom_tuning_model: customTuningModel,
|
2262
|
+
});
|
2263
|
+
}
|
2264
|
+
/**
|
2265
|
+
* Parse the project from ProjectLocationDataStoreCustomTuningModel resource.
|
2266
|
+
*
|
2267
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2268
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2269
|
+
* @returns {string} A string representing the project.
|
2270
|
+
*/
|
2271
|
+
matchProjectFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2272
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).project;
|
2273
|
+
}
|
2274
|
+
/**
|
2275
|
+
* Parse the location from ProjectLocationDataStoreCustomTuningModel resource.
|
2276
|
+
*
|
2277
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2278
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2279
|
+
* @returns {string} A string representing the location.
|
2280
|
+
*/
|
2281
|
+
matchLocationFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2282
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).location;
|
2283
|
+
}
|
2284
|
+
/**
|
2285
|
+
* Parse the data_store from ProjectLocationDataStoreCustomTuningModel resource.
|
2286
|
+
*
|
2287
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2288
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2289
|
+
* @returns {string} A string representing the data_store.
|
2290
|
+
*/
|
2291
|
+
matchDataStoreFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2292
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).data_store;
|
2293
|
+
}
|
2294
|
+
/**
|
2295
|
+
* Parse the custom_tuning_model from ProjectLocationDataStoreCustomTuningModel resource.
|
2296
|
+
*
|
2297
|
+
* @param {string} projectLocationDataStoreCustomTuningModelName
|
2298
|
+
* A fully-qualified path representing project_location_data_store_custom_tuning_model resource.
|
2299
|
+
* @returns {string} A string representing the custom_tuning_model.
|
2300
|
+
*/
|
2301
|
+
matchCustomTuningModelFromProjectLocationDataStoreCustomTuningModelName(projectLocationDataStoreCustomTuningModelName) {
|
2302
|
+
return this.pathTemplates.projectLocationDataStoreCustomTuningModelPathTemplate.match(projectLocationDataStoreCustomTuningModelName).custom_tuning_model;
|
2303
|
+
}
|
2128
2304
|
/**
|
2129
2305
|
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2130
2306
|
*
|
@@ -51,6 +51,11 @@
|
|
51
51
|
"retry_codes_name": "unavailable",
|
52
52
|
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
53
53
|
},
|
54
|
+
"PurgeUserEvents": {
|
55
|
+
"timeout_millis": 30000,
|
56
|
+
"retry_codes_name": "unavailable",
|
57
|
+
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
58
|
+
},
|
54
59
|
"ImportUserEvents": {
|
55
60
|
"timeout_millis": 300000,
|
56
61
|
"retry_codes_name": "unavailable",
|
@@ -115,7 +115,7 @@ export declare class AclConfigServiceClient {
|
|
115
115
|
getProjectId(): Promise<string>;
|
116
116
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
117
117
|
/**
|
118
|
-
* Default
|
118
|
+
* Default ACL configuration for use in a location of a customer's project.
|
119
119
|
* Updates will only reflect to new data stores. Existing data stores will
|
120
120
|
* still use the old value.
|
121
121
|
*
|
@@ -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.
|