@google-cloud/discoveryengine 1.5.0 → 1.6.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 +7 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +1 -35
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +0 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +0 -19
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +0 -64
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +21 -312
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +23 -153
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +2 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +1 -2
- package/build/protos/protos.d.ts +4806 -6944
- package/build/protos/protos.js +30876 -36494
- package/build/protos/protos.json +103 -604
- package/build/src/v1alpha/completion_service_client.js +0 -3
- package/build/src/v1alpha/data_store_service_client.js +0 -3
- package/build/src/v1alpha/document_service_client.d.ts +21 -80
- package/build/src/v1alpha/document_service_client.js +0 -25
- package/build/src/v1alpha/document_service_client_config.json +0 -5
- package/build/src/v1alpha/engine_service_client.js +0 -3
- package/build/src/v1alpha/estimate_billing_service_client.js +0 -3
- package/build/src/v1alpha/index.d.ts +1 -1
- package/build/src/v1alpha/index.js +3 -3
- package/build/src/v1alpha/schema_service_client.js +0 -3
- package/build/src/v1alpha/search_service_client.d.ts +15 -30
- package/build/src/v1alpha/search_service_client.js +10 -20
- package/build/src/v1alpha/search_tuning_service_client.js +0 -3
- package/build/src/v1alpha/serving_config_service_client.d.ts +1 -2
- package/build/src/v1alpha/serving_config_service_client.js +1 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +0 -3
- package/build/src/v1alpha/user_event_service_client.js +0 -3
- package/package.json +1 -1
@@ -220,9 +220,6 @@ class CompletionServiceClient {
|
|
220
220
|
{
|
221
221
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
222
222
|
},
|
223
|
-
{
|
224
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
225
|
-
},
|
226
223
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
227
224
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
228
225
|
],
|
@@ -228,9 +228,6 @@ class DataStoreServiceClient {
|
|
228
228
|
{
|
229
229
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
230
230
|
},
|
231
|
-
{
|
232
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
233
|
-
},
|
234
231
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
235
232
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
236
233
|
],
|
@@ -268,43 +268,6 @@ export declare class DocumentServiceClient {
|
|
268
268
|
]>;
|
269
269
|
deleteDocument(request: protos.google.cloud.discoveryengine.v1alpha.IDeleteDocumentRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.discoveryengine.v1alpha.IDeleteDocumentRequest | null | undefined, {} | null | undefined>): void;
|
270
270
|
deleteDocument(request: protos.google.cloud.discoveryengine.v1alpha.IDeleteDocumentRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.discoveryengine.v1alpha.IDeleteDocumentRequest | null | undefined, {} | null | undefined>): void;
|
271
|
-
/**
|
272
|
-
* Gets the parsed layout information for a
|
273
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}.
|
274
|
-
*
|
275
|
-
* @param {Object} request
|
276
|
-
* The request object that will be sent.
|
277
|
-
* @param {string} request.name
|
278
|
-
* Required. Full resource name of
|
279
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}, such as
|
280
|
-
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
|
281
|
-
*
|
282
|
-
* If the caller does not have permission to access the
|
283
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}, regardless of
|
284
|
-
* whether or not it exists, a `PERMISSION_DENIED` error is returned.
|
285
|
-
*
|
286
|
-
* If the requested {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}
|
287
|
-
* does not exist, a `NOT_FOUND` error is returned.
|
288
|
-
* @param {google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest.ProcessedDocumentType} request.processedDocumentType
|
289
|
-
* Required. What type of processing to return.
|
290
|
-
* @param {google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest.ProcessedDocumentFormat} request.processedDocumentFormat
|
291
|
-
* What format output should be. If unspecified, defaults to JSON.
|
292
|
-
* @param {object} [options]
|
293
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
294
|
-
* @returns {Promise} - The promise which resolves to an array.
|
295
|
-
* The first element of the array is an object representing {@link protos.google.cloud.discoveryengine.v1alpha.ProcessedDocument|ProcessedDocument}.
|
296
|
-
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
297
|
-
* for more details and examples.
|
298
|
-
* @example <caption>include:samples/generated/v1alpha/document_service.get_processed_document.js</caption>
|
299
|
-
* region_tag:discoveryengine_v1alpha_generated_DocumentService_GetProcessedDocument_async
|
300
|
-
*/
|
301
|
-
getProcessedDocument(request?: protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest, options?: CallOptions): Promise<[
|
302
|
-
protos.google.cloud.discoveryengine.v1alpha.IProcessedDocument,
|
303
|
-
(protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest | undefined),
|
304
|
-
{} | undefined
|
305
|
-
]>;
|
306
|
-
getProcessedDocument(request: protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.IProcessedDocument, protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest | null | undefined, {} | null | undefined>): void;
|
307
|
-
getProcessedDocument(request: protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest, callback: Callback<protos.google.cloud.discoveryengine.v1alpha.IProcessedDocument, protos.google.cloud.discoveryengine.v1alpha.IGetProcessedDocumentRequest | null | undefined, {} | null | undefined>): void;
|
308
271
|
/**
|
309
272
|
* Bulk import of multiple
|
310
273
|
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s. Request
|
@@ -322,16 +285,6 @@ export declare class DocumentServiceClient {
|
|
322
285
|
* Cloud Storage location for the input content.
|
323
286
|
* @param {google.cloud.discoveryengine.v1alpha.BigQuerySource} request.bigquerySource
|
324
287
|
* BigQuery input source.
|
325
|
-
* @param {google.cloud.discoveryengine.v1alpha.FhirStoreSource} request.fhirStoreSource
|
326
|
-
* FhirStore input source.
|
327
|
-
* @param {google.cloud.discoveryengine.v1alpha.SpannerSource} request.spannerSource
|
328
|
-
* Spanner input source.
|
329
|
-
* @param {google.cloud.discoveryengine.v1alpha.CloudSqlSource} request.cloudSqlSource
|
330
|
-
* Cloud SQL input source.
|
331
|
-
* @param {google.cloud.discoveryengine.v1alpha.FirestoreSource} request.firestoreSource
|
332
|
-
* Firestore input source.
|
333
|
-
* @param {google.cloud.discoveryengine.v1alpha.BigtableSource} request.bigtableSource
|
334
|
-
* Cloud Bigtable input source.
|
335
288
|
* @param {string} request.parent
|
336
289
|
* Required. The parent branch resource name, such as
|
337
290
|
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
|
@@ -342,9 +295,6 @@ export declare class DocumentServiceClient {
|
|
342
295
|
* The mode of reconciliation between existing documents and the documents to
|
343
296
|
* be imported. Defaults to
|
344
297
|
* {@link protos.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL|ReconciliationMode.INCREMENTAL}.
|
345
|
-
* @param {google.protobuf.FieldMask} request.updateMask
|
346
|
-
* Indicates which fields in the provided imported documents to update. If
|
347
|
-
* not set, the default is to update all fields.
|
348
298
|
* @param {boolean} request.autoGenerateIds
|
349
299
|
* Whether to automatically generate IDs for the documents if absent.
|
350
300
|
*
|
@@ -359,53 +309,44 @@ export declare class DocumentServiceClient {
|
|
359
309
|
* {@link protos.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.id_field|id_field},
|
360
310
|
* otherwise, documents without IDs fail to be imported.
|
361
311
|
*
|
362
|
-
*
|
363
|
-
*
|
364
|
-
*
|
312
|
+
* Only set this field when using
|
313
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource|GcsSource} or
|
314
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource|BigQuerySource}, and
|
315
|
+
* when
|
365
316
|
* {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource.data_schema|GcsSource.data_schema}
|
366
|
-
*
|
367
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource|BigQuerySource}.
|
317
|
+
* or
|
368
318
|
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema|BigQuerySource.data_schema}
|
369
|
-
*
|
370
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.SpannerSource|SpannerSource}.
|
371
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.CloudSqlSource|CloudSqlSource}.
|
372
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.FirestoreSource|FirestoreSource}.
|
373
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.BigtableSource|BigtableSource}.
|
319
|
+
* is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
374
320
|
* @param {string} request.idField
|
375
|
-
* The field
|
376
|
-
* the documents.
|
321
|
+
* The field in the Cloud Storage and BigQuery sources that indicates the
|
322
|
+
* unique IDs of the documents.
|
377
323
|
*
|
378
324
|
* For {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource|GcsSource} it is the
|
379
325
|
* key of the JSON field. For instance, `my_id` for JSON `{"my_id":
|
380
|
-
* "some_uuid"}`. For
|
381
|
-
*
|
326
|
+
* "some_uuid"}`. For
|
327
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource|BigQuerySource} it is
|
328
|
+
* the column name of the BigQuery table where the unique ids are stored.
|
382
329
|
*
|
383
|
-
* The values of the JSON field or the
|
330
|
+
* The values of the JSON field or the BigQuery column are used as the
|
384
331
|
* {@link protos.google.cloud.discoveryengine.v1alpha.Document.id|Document.id}s. The JSON
|
385
|
-
* field or the
|
332
|
+
* field or the BigQuery column must be of string type, and the values must be
|
386
333
|
* set as valid strings conform to
|
387
334
|
* [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
|
388
335
|
* Otherwise, documents without valid IDs fail to be imported.
|
389
336
|
*
|
390
|
-
* Only set this field when
|
337
|
+
* Only set this field when using
|
338
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource|GcsSource} or
|
339
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource|BigQuerySource}, and
|
340
|
+
* when
|
341
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource.data_schema|GcsSource.data_schema}
|
342
|
+
* or
|
343
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema|BigQuerySource.data_schema}
|
344
|
+
* is `custom`. And only set this field when
|
391
345
|
* {@link protos.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.auto_generate_ids|auto_generate_ids}
|
392
346
|
* is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
393
347
|
*
|
394
348
|
* If it is unset, a default value `_id` is used when importing from the
|
395
349
|
* allowed data sources.
|
396
|
-
*
|
397
|
-
* Supported data sources:
|
398
|
-
*
|
399
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource|GcsSource}.
|
400
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.GcsSource.data_schema|GcsSource.data_schema}
|
401
|
-
* must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
402
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource|BigQuerySource}.
|
403
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.BigQuerySource.data_schema|BigQuerySource.data_schema}
|
404
|
-
* must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
405
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.SpannerSource|SpannerSource}.
|
406
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.CloudSqlSource|CloudSqlSource}.
|
407
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.FirestoreSource|FirestoreSource}.
|
408
|
-
* * {@link protos.google.cloud.discoveryengine.v1alpha.BigtableSource|BigtableSource}.
|
409
350
|
* @param {object} [options]
|
410
351
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
411
352
|
* @returns {Promise} - The promise which resolves to an array.
|
@@ -230,9 +230,6 @@ class DocumentServiceClient {
|
|
230
230
|
{
|
231
231
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
232
232
|
},
|
233
|
-
{
|
234
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
235
|
-
},
|
236
233
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
237
234
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
238
235
|
],
|
@@ -333,7 +330,6 @@ class DocumentServiceClient {
|
|
333
330
|
'deleteDocument',
|
334
331
|
'importDocuments',
|
335
332
|
'purgeDocuments',
|
336
|
-
'getProcessedDocument',
|
337
333
|
];
|
338
334
|
for (const methodName of documentServiceStubMethods) {
|
339
335
|
const callPromise = this.documentServiceStub.then(stub => (...args) => {
|
@@ -497,27 +493,6 @@ class DocumentServiceClient {
|
|
497
493
|
this.initialize();
|
498
494
|
return this.innerApiCalls.deleteDocument(request, options, callback);
|
499
495
|
}
|
500
|
-
getProcessedDocument(request, optionsOrCallback, callback) {
|
501
|
-
var _a;
|
502
|
-
request = request || {};
|
503
|
-
let options;
|
504
|
-
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
505
|
-
callback = optionsOrCallback;
|
506
|
-
options = {};
|
507
|
-
}
|
508
|
-
else {
|
509
|
-
options = optionsOrCallback;
|
510
|
-
}
|
511
|
-
options = options || {};
|
512
|
-
options.otherArgs = options.otherArgs || {};
|
513
|
-
options.otherArgs.headers = options.otherArgs.headers || {};
|
514
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
515
|
-
this._gaxModule.routingHeader.fromParams({
|
516
|
-
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
517
|
-
});
|
518
|
-
this.initialize();
|
519
|
-
return this.innerApiCalls.getProcessedDocument(request, options, callback);
|
520
|
-
}
|
521
496
|
importDocuments(request, optionsOrCallback, callback) {
|
522
497
|
var _a;
|
523
498
|
request = request || {};
|
@@ -75,11 +75,6 @@
|
|
75
75
|
"timeout_millis": 30000,
|
76
76
|
"retry_codes_name": "unavailable",
|
77
77
|
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
78
|
-
},
|
79
|
-
"GetProcessedDocument": {
|
80
|
-
"timeout_millis": 30000,
|
81
|
-
"retry_codes_name": "unavailable",
|
82
|
-
"retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
|
83
78
|
}
|
84
79
|
}
|
85
80
|
}
|
@@ -228,9 +228,6 @@ class EngineServiceClient {
|
|
228
228
|
{
|
229
229
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
230
230
|
},
|
231
|
-
{
|
232
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
233
|
-
},
|
234
231
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
235
232
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
236
233
|
],
|
@@ -222,9 +222,6 @@ class EstimateBillingServiceClient {
|
|
222
222
|
{
|
223
223
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
224
224
|
},
|
225
|
-
{
|
226
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
227
|
-
},
|
228
225
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
229
226
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
230
227
|
],
|
@@ -6,7 +6,6 @@ export { DataStoreServiceClient } from './data_store_service_client';
|
|
6
6
|
export { DocumentServiceClient } from './document_service_client';
|
7
7
|
export { EngineServiceClient } from './engine_service_client';
|
8
8
|
export { EstimateBillingServiceClient } from './estimate_billing_service_client';
|
9
|
-
export { RankServiceClient } from './rank_service_client';
|
10
9
|
export { RecommendationServiceClient } from './recommendation_service_client';
|
11
10
|
export { SchemaServiceClient } from './schema_service_client';
|
12
11
|
export { SearchServiceClient } from './search_service_client';
|
@@ -14,3 +13,4 @@ export { SearchTuningServiceClient } from './search_tuning_service_client';
|
|
14
13
|
export { ServingConfigServiceClient } from './serving_config_service_client';
|
15
14
|
export { SiteSearchEngineServiceClient } from './site_search_engine_service_client';
|
16
15
|
export { UserEventServiceClient } from './user_event_service_client';
|
16
|
+
export { RankServiceClient } from './rank_service_client';
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.
|
20
|
+
exports.RankServiceClient = exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.ServingConfigServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.EstimateBillingServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = exports.ChunkServiceClient = exports.AclConfigServiceClient = void 0;
|
21
21
|
var acl_config_service_client_1 = require("./acl_config_service_client");
|
22
22
|
Object.defineProperty(exports, "AclConfigServiceClient", { enumerable: true, get: function () { return acl_config_service_client_1.AclConfigServiceClient; } });
|
23
23
|
var chunk_service_client_1 = require("./chunk_service_client");
|
@@ -34,8 +34,6 @@ var engine_service_client_1 = require("./engine_service_client");
|
|
34
34
|
Object.defineProperty(exports, "EngineServiceClient", { enumerable: true, get: function () { return engine_service_client_1.EngineServiceClient; } });
|
35
35
|
var estimate_billing_service_client_1 = require("./estimate_billing_service_client");
|
36
36
|
Object.defineProperty(exports, "EstimateBillingServiceClient", { enumerable: true, get: function () { return estimate_billing_service_client_1.EstimateBillingServiceClient; } });
|
37
|
-
var rank_service_client_1 = require("./rank_service_client");
|
38
|
-
Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
|
39
37
|
var recommendation_service_client_1 = require("./recommendation_service_client");
|
40
38
|
Object.defineProperty(exports, "RecommendationServiceClient", { enumerable: true, get: function () { return recommendation_service_client_1.RecommendationServiceClient; } });
|
41
39
|
var schema_service_client_1 = require("./schema_service_client");
|
@@ -50,4 +48,6 @@ var site_search_engine_service_client_1 = require("./site_search_engine_service_
|
|
50
48
|
Object.defineProperty(exports, "SiteSearchEngineServiceClient", { enumerable: true, get: function () { return site_search_engine_service_client_1.SiteSearchEngineServiceClient; } });
|
51
49
|
var user_event_service_client_1 = require("./user_event_service_client");
|
52
50
|
Object.defineProperty(exports, "UserEventServiceClient", { enumerable: true, get: function () { return user_event_service_client_1.UserEventServiceClient; } });
|
51
|
+
var rank_service_client_1 = require("./rank_service_client");
|
52
|
+
Object.defineProperty(exports, "RankServiceClient", { enumerable: true, get: function () { return rank_service_client_1.RankServiceClient; } });
|
53
53
|
//# sourceMappingURL=index.js.map
|
@@ -226,9 +226,6 @@ class SchemaServiceClient {
|
|
226
226
|
{
|
227
227
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
228
228
|
},
|
229
|
-
{
|
230
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
231
|
-
},
|
232
229
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
233
230
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
234
231
|
],
|
@@ -140,15 +140,11 @@ export declare class SearchServiceClient {
|
|
140
140
|
* Raw image query.
|
141
141
|
* @param {number} request.pageSize
|
142
142
|
* Maximum number of
|
143
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return.
|
144
|
-
*
|
145
|
-
*
|
143
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return. If
|
144
|
+
* unspecified, defaults to a reasonable value. The maximum allowed value is
|
145
|
+
* 100. Values above 100 are coerced to 100.
|
146
146
|
*
|
147
|
-
*
|
148
|
-
* * Websites with advanced indexing: Default `25`, Maximum `50`.
|
149
|
-
* * Other: Default `50`, Maximum `100`.
|
150
|
-
*
|
151
|
-
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
147
|
+
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
152
148
|
* @param {string} request.pageToken
|
153
149
|
* A page token received from a previous
|
154
150
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchService.Search|SearchService.Search}
|
@@ -270,8 +266,7 @@ export declare class SearchServiceClient {
|
|
270
266
|
*
|
271
267
|
* If
|
272
268
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
273
|
-
* is not provided, it will use
|
274
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config|ServingConfig.EmbeddingConfig.field_path}.
|
269
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
275
270
|
* @param {string} request.rankingExpression
|
276
271
|
* The ranking expression controls the customized ranking on retrieval
|
277
272
|
* documents. This overrides
|
@@ -358,15 +353,11 @@ export declare class SearchServiceClient {
|
|
358
353
|
* Raw image query.
|
359
354
|
* @param {number} request.pageSize
|
360
355
|
* Maximum number of
|
361
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return.
|
362
|
-
*
|
363
|
-
*
|
364
|
-
*
|
365
|
-
* * Websites with basic indexing: Default `10`, Maximum `25`.
|
366
|
-
* * Websites with advanced indexing: Default `25`, Maximum `50`.
|
367
|
-
* * Other: Default `50`, Maximum `100`.
|
356
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return. If
|
357
|
+
* unspecified, defaults to a reasonable value. The maximum allowed value is
|
358
|
+
* 100. Values above 100 are coerced to 100.
|
368
359
|
*
|
369
|
-
* If this field is negative, an `INVALID_ARGUMENT`
|
360
|
+
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
370
361
|
* @param {string} request.pageToken
|
371
362
|
* A page token received from a previous
|
372
363
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchService.Search|SearchService.Search}
|
@@ -488,8 +479,7 @@ export declare class SearchServiceClient {
|
|
488
479
|
*
|
489
480
|
* If
|
490
481
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
491
|
-
* is not provided, it will use
|
492
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config|ServingConfig.EmbeddingConfig.field_path}.
|
482
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
493
483
|
* @param {string} request.rankingExpression
|
494
484
|
* The ranking expression controls the customized ranking on retrieval
|
495
485
|
* documents. This overrides
|
@@ -571,15 +561,11 @@ export declare class SearchServiceClient {
|
|
571
561
|
* Raw image query.
|
572
562
|
* @param {number} request.pageSize
|
573
563
|
* Maximum number of
|
574
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return.
|
575
|
-
*
|
576
|
-
*
|
577
|
-
*
|
578
|
-
* * Websites with basic indexing: Default `10`, Maximum `25`.
|
579
|
-
* * Websites with advanced indexing: Default `25`, Maximum `50`.
|
580
|
-
* * Other: Default `50`, Maximum `100`.
|
564
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return. If
|
565
|
+
* unspecified, defaults to a reasonable value. The maximum allowed value is
|
566
|
+
* 100. Values above 100 are coerced to 100.
|
581
567
|
*
|
582
|
-
* If this field is negative, an `INVALID_ARGUMENT`
|
568
|
+
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
583
569
|
* @param {string} request.pageToken
|
584
570
|
* A page token received from a previous
|
585
571
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchService.Search|SearchService.Search}
|
@@ -701,8 +687,7 @@ export declare class SearchServiceClient {
|
|
701
687
|
*
|
702
688
|
* If
|
703
689
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
704
|
-
* is not provided, it will use
|
705
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config|ServingConfig.EmbeddingConfig.field_path}.
|
690
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
706
691
|
* @param {string} request.rankingExpression
|
707
692
|
* The ranking expression controls the customized ranking on retrieval
|
708
693
|
* documents. This overrides
|
@@ -335,15 +335,11 @@ class SearchServiceClient {
|
|
335
335
|
* Raw image query.
|
336
336
|
* @param {number} request.pageSize
|
337
337
|
* Maximum number of
|
338
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return.
|
339
|
-
*
|
340
|
-
*
|
338
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return. If
|
339
|
+
* unspecified, defaults to a reasonable value. The maximum allowed value is
|
340
|
+
* 100. Values above 100 are coerced to 100.
|
341
341
|
*
|
342
|
-
*
|
343
|
-
* * Websites with advanced indexing: Default `25`, Maximum `50`.
|
344
|
-
* * Other: Default `50`, Maximum `100`.
|
345
|
-
*
|
346
|
-
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
342
|
+
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
347
343
|
* @param {string} request.pageToken
|
348
344
|
* A page token received from a previous
|
349
345
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchService.Search|SearchService.Search}
|
@@ -465,8 +461,7 @@ class SearchServiceClient {
|
|
465
461
|
*
|
466
462
|
* If
|
467
463
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
468
|
-
* is not provided, it will use
|
469
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config|ServingConfig.EmbeddingConfig.field_path}.
|
464
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
470
465
|
* @param {string} request.rankingExpression
|
471
466
|
* The ranking expression controls the customized ranking on retrieval
|
472
467
|
* documents. This overrides
|
@@ -562,15 +557,11 @@ class SearchServiceClient {
|
|
562
557
|
* Raw image query.
|
563
558
|
* @param {number} request.pageSize
|
564
559
|
* Maximum number of
|
565
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return.
|
566
|
-
*
|
567
|
-
*
|
560
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.Document|Document}s to return. If
|
561
|
+
* unspecified, defaults to a reasonable value. The maximum allowed value is
|
562
|
+
* 100. Values above 100 are coerced to 100.
|
568
563
|
*
|
569
|
-
*
|
570
|
-
* * Websites with advanced indexing: Default `25`, Maximum `50`.
|
571
|
-
* * Other: Default `50`, Maximum `100`.
|
572
|
-
*
|
573
|
-
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
564
|
+
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
574
565
|
* @param {string} request.pageToken
|
575
566
|
* A page token received from a previous
|
576
567
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchService.Search|SearchService.Search}
|
@@ -692,8 +683,7 @@ class SearchServiceClient {
|
|
692
683
|
*
|
693
684
|
* If
|
694
685
|
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
695
|
-
* is not provided, it will use
|
696
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config|ServingConfig.EmbeddingConfig.field_path}.
|
686
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
697
687
|
* @param {string} request.rankingExpression
|
698
688
|
* The ranking expression controls the customized ranking on retrieval
|
699
689
|
* documents. This overrides
|
@@ -220,9 +220,6 @@ class SearchTuningServiceClient {
|
|
220
220
|
{
|
221
221
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
222
222
|
},
|
223
|
-
{
|
224
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
225
|
-
},
|
226
223
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
227
224
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
228
225
|
],
|
@@ -4,8 +4,7 @@ import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallb
|
|
4
4
|
import { Transform } from 'stream';
|
5
5
|
import * as protos from '../../protos/protos';
|
6
6
|
/**
|
7
|
-
* Service for operations related to
|
8
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig|ServingConfig}.
|
7
|
+
* Service for operations related to {@link protos.|ServingConfig}.
|
9
8
|
* @class
|
10
9
|
* @memberof v1alpha
|
11
10
|
*/
|
@@ -27,8 +27,7 @@ const jsonProtos = require("../../protos/protos.json");
|
|
27
27
|
const gapicConfig = require("./serving_config_service_client_config.json");
|
28
28
|
const version = require('../../../package.json').version;
|
29
29
|
/**
|
30
|
-
* Service for operations related to
|
31
|
-
* {@link protos.google.cloud.discoveryengine.v1alpha.ServingConfig|ServingConfig}.
|
30
|
+
* Service for operations related to {@link protos.|ServingConfig}.
|
32
31
|
* @class
|
33
32
|
* @memberof v1alpha
|
34
33
|
*/
|
@@ -228,9 +228,6 @@ class SiteSearchEngineServiceClient {
|
|
228
228
|
{
|
229
229
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
230
230
|
},
|
231
|
-
{
|
232
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
233
|
-
},
|
234
231
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
235
232
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
236
233
|
],
|
@@ -220,9 +220,6 @@ class UserEventServiceClient {
|
|
220
220
|
{
|
221
221
|
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
222
222
|
},
|
223
|
-
{
|
224
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
225
|
-
},
|
226
223
|
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
227
224
|
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
228
225
|
],
|