@google-cloud/discoveryengine 1.3.1 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/README.md +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +54 -3
- package/build/protos/google/cloud/discoveryengine/v1/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +40 -1
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +304 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +215 -0
- package/build/protos/google/cloud/discoveryengine/v1/engine_service.proto +242 -0
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +38 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +137 -4
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +691 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +3 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config.proto +49 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/acl_config_service.proto +79 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk.proto +72 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/chunk_service.proto +137 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/common.proto +77 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/completion_service.proto +44 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +6 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store.proto +44 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/data_store_service.proto +80 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +83 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_processing_config.proto +127 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine.proto +13 -8
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +3 -2
- package/build/protos/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto +130 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/purge_config.proto +66 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/schema.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +74 -13
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +24 -20
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/serving_config_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +9 -3
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +7 -4
- package/build/protos/google/cloud/discoveryengine/v1alpha/user_event.proto +4 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +59 -8
- package/build/protos/google/cloud/discoveryengine/v1beta/completion.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/completion_service.proto +51 -4
- package/build/protos/google/cloud/discoveryengine/v1beta/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +45 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +120 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +10 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/document_processing_config.proto +94 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine.proto +220 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/engine_service.proto +244 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +64 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/purge_config.proto +41 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +169 -15
- package/build/protos/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +151 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +265 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +148 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine.proto +170 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +695 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +4 -3
- package/build/protos/protos.d.ts +48530 -23682
- package/build/protos/protos.js +122429 -63306
- package/build/protos/protos.json +13438 -7286
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +10 -1
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +715 -11
- package/build/src/v1/completion_service_client_config.json +10 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1/conversational_search_service_client.js +466 -9
- package/build/src/v1/data_store_service_client.d.ts +1286 -0
- package/build/src/v1/data_store_service_client.js +1768 -0
- package/build/src/v1/data_store_service_client_config.json +46 -0
- package/build/src/v1/document_service_client.d.ts +347 -2
- package/build/src/v1/document_service_client.js +506 -9
- package/build/src/v1/engine_service_client.d.ts +1211 -0
- package/build/src/v1/engine_service_client.js +1731 -0
- package/build/src/v1/engine_service_client_config.json +46 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +402 -9
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +648 -15
- package/build/src/v1/site_search_engine_service_client.d.ts +1564 -0
- package/build/src/v1/site_search_engine_service_client.js +2075 -0
- package/build/src/v1/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1/user_event_service_client.d.ts +272 -2
- package/build/src/v1/user_event_service_client.js +402 -9
- package/build/src/v1alpha/acl_config_service_client.d.ts +1233 -0
- package/build/src/v1alpha/acl_config_service_client.js +1765 -0
- package/build/src/v1alpha/acl_config_service_client_config.json +34 -0
- package/build/src/v1alpha/chunk_service_client.d.ts +1350 -0
- package/build/src/v1alpha/chunk_service_client.js +1886 -0
- package/build/src/v1alpha/chunk_service_client_config.json +34 -0
- package/build/src/v1alpha/completion_service_client.d.ts +599 -5
- package/build/src/v1alpha/completion_service_client.js +868 -12
- package/build/src/v1alpha/completion_service_client_config.json +10 -0
- package/build/src/v1alpha/conversational_search_service_client.d.ts +244 -3
- package/build/src/v1alpha/conversational_search_service_client.js +353 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +462 -5
- package/build/src/v1alpha/data_store_service_client.js +599 -12
- package/build/src/v1alpha/data_store_service_client_config.json +8 -0
- package/build/src/v1alpha/document_service_client.d.ts +393 -2
- package/build/src/v1alpha/document_service_client.js +551 -10
- package/build/src/v1alpha/engine_service_client.d.ts +386 -4
- package/build/src/v1alpha/engine_service_client.js +551 -10
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +1367 -0
- package/build/src/v1alpha/estimate_billing_service_client.js +2028 -0
- package/build/src/v1alpha/estimate_billing_service_client_config.json +30 -0
- package/build/src/v1alpha/index.d.ts +4 -0
- package/build/src/v1alpha/index.js +10 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +242 -3
- package/build/src/v1alpha/recommendation_service_client.js +353 -10
- package/build/src/v1alpha/schema_service_client.d.ts +383 -2
- package/build/src/v1alpha/schema_service_client.js +551 -10
- package/build/src/v1alpha/search_service_client.d.ts +269 -17
- package/build/src/v1alpha/search_service_client.js +373 -20
- package/build/src/v1alpha/search_tuning_service_client.d.ts +384 -3
- package/build/src/v1alpha/search_tuning_service_client.js +551 -10
- package/build/src/v1alpha/serving_config_service_client.d.ts +1369 -0
- package/build/src/v1alpha/serving_config_service_client.js +1935 -0
- package/build/src/v1alpha/serving_config_service_client_config.json +38 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +383 -2
- package/build/src/v1alpha/site_search_engine_service_client.js +551 -10
- package/build/src/v1alpha/user_event_service_client.d.ts +383 -2
- package/build/src/v1alpha/user_event_service_client.js +551 -10
- package/build/src/v1beta/completion_service_client.d.ts +708 -7
- package/build/src/v1beta/completion_service_client.js +1015 -11
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +420 -3
- package/build/src/v1beta/conversational_search_service_client.js +570 -9
- package/build/src/v1beta/data_store_service_client.d.ts +1508 -0
- package/build/src/v1beta/data_store_service_client.js +2070 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +566 -2
- package/build/src/v1beta/document_service_client.js +810 -11
- package/build/src/v1beta/engine_service_client.d.ts +1432 -0
- package/build/src/v1beta/engine_service_client.js +2032 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +5 -0
- package/build/src/v1beta/index.js +11 -1
- package/build/src/v1beta/recommendation_service_client.d.ts +495 -5
- package/build/src/v1beta/recommendation_service_client.js +674 -9
- package/build/src/v1beta/schema_service_client.d.ts +491 -2
- package/build/src/v1beta/schema_service_client.js +706 -11
- package/build/src/v1beta/search_service_client.d.ts +620 -29
- package/build/src/v1beta/search_service_client.js +772 -27
- package/build/src/v1beta/search_tuning_service_client.d.ts +1196 -0
- package/build/src/v1beta/search_tuning_service_client.js +1781 -0
- package/build/src/v1beta/search_tuning_service_client_config.json +30 -0
- package/build/src/v1beta/serving_config_service_client.d.ts +1217 -0
- package/build/src/v1beta/serving_config_service_client.js +1724 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1787 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2375 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +491 -2
- package/build/src/v1beta/user_event_service_client.js +706 -11
- package/package.json +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
// Copyright
|
2
|
+
// Copyright 2024 Google LLC
|
3
3
|
//
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
// you may not use this file except in compliance with the License.
|
@@ -72,7 +72,7 @@ class SearchServiceClient {
|
|
72
72
|
* ```
|
73
73
|
*/
|
74
74
|
constructor(opts, gaxInstance) {
|
75
|
-
var _a, _b;
|
75
|
+
var _a, _b, _c, _d;
|
76
76
|
this._terminated = false;
|
77
77
|
this.descriptors = {
|
78
78
|
page: {},
|
@@ -82,16 +82,24 @@ class SearchServiceClient {
|
|
82
82
|
};
|
83
83
|
// Ensure that options include all the required fields.
|
84
84
|
const staticMembers = this.constructor;
|
85
|
-
|
85
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
86
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
87
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
88
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
89
|
+
}
|
90
|
+
this._universeDomain =
|
91
|
+
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
92
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
93
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
86
94
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
87
95
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
88
|
-
const clientConfig = (
|
89
|
-
const fallback = (
|
96
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
97
|
+
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
90
98
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
91
99
|
// Request numeric enum values if REST transport is used.
|
92
100
|
opts.numericEnums = true;
|
93
101
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
94
|
-
if (servicePath !==
|
102
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
95
103
|
opts['scopes'] = staticMembers.scopes;
|
96
104
|
}
|
97
105
|
// Load google-gax module synchronously if needed
|
@@ -109,9 +117,9 @@ class SearchServiceClient {
|
|
109
117
|
// Set useJWTAccessWithScope on the auth object.
|
110
118
|
this.auth.useJWTAccessWithScope = true;
|
111
119
|
// Set defaultServicePath on the auth object.
|
112
|
-
this.auth.defaultServicePath =
|
120
|
+
this.auth.defaultServicePath = this._servicePath;
|
113
121
|
// Set the default scopes in auth client if needed.
|
114
|
-
if (servicePath ===
|
122
|
+
if (servicePath === this._servicePath) {
|
115
123
|
this.auth.defaultScopes = staticMembers.scopes;
|
116
124
|
}
|
117
125
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -138,11 +146,14 @@ class SearchServiceClient {
|
|
138
146
|
// identifiers to uniquely identify resources within the API.
|
139
147
|
// Create useful helper objects for these.
|
140
148
|
this.pathTemplates = {
|
149
|
+
aclConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/aclConfig'),
|
141
150
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
142
151
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
143
152
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
144
153
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
154
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
145
155
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
156
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
146
157
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
147
158
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
148
159
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
@@ -152,7 +163,9 @@ class SearchServiceClient {
|
|
152
163
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
153
164
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
154
165
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
166
|
+
projectLocationDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
155
167
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
168
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
156
169
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
157
170
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
158
171
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
@@ -217,19 +230,38 @@ class SearchServiceClient {
|
|
217
230
|
}
|
218
231
|
/**
|
219
232
|
* The DNS address for this API service.
|
233
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
220
234
|
* @returns {string} The DNS address for this service.
|
221
235
|
*/
|
222
236
|
static get servicePath() {
|
237
|
+
if (typeof process !== undefined &&
|
238
|
+
typeof process.emitWarning === 'function') {
|
239
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
240
|
+
}
|
223
241
|
return 'discoveryengine.googleapis.com';
|
224
242
|
}
|
225
243
|
/**
|
226
|
-
* The DNS address for this API service - same as servicePath
|
227
|
-
*
|
244
|
+
* The DNS address for this API service - same as servicePath.
|
245
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
228
246
|
* @returns {string} The DNS address for this service.
|
229
247
|
*/
|
230
248
|
static get apiEndpoint() {
|
249
|
+
if (typeof process !== undefined &&
|
250
|
+
typeof process.emitWarning === 'function') {
|
251
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
252
|
+
}
|
231
253
|
return 'discoveryengine.googleapis.com';
|
232
254
|
}
|
255
|
+
/**
|
256
|
+
* The DNS address for this API service.
|
257
|
+
* @returns {string} The DNS address for this service.
|
258
|
+
*/
|
259
|
+
get apiEndpoint() {
|
260
|
+
return this._servicePath;
|
261
|
+
}
|
262
|
+
get universeDomain() {
|
263
|
+
return this._universeDomain;
|
264
|
+
}
|
233
265
|
/**
|
234
266
|
* The port for this API service.
|
235
267
|
* @returns {number} The default port for this service.
|
@@ -323,6 +355,8 @@ class SearchServiceClient {
|
|
323
355
|
* is unset.
|
324
356
|
*
|
325
357
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
358
|
+
* @param {number[]} request.dataStoreSpecs
|
359
|
+
* A list of data store specs to apply on a search call.
|
326
360
|
* @param {string} request.filter
|
327
361
|
* The filter syntax consists of an expression language for constructing a
|
328
362
|
* predicate from one or more fields of the documents being filtered. Filter
|
@@ -418,12 +452,13 @@ class SearchServiceClient {
|
|
418
452
|
* @param {google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec} request.embeddingSpec
|
419
453
|
* Uses the provided embedding to do additional semantic document retrieval.
|
420
454
|
* The retrieval is based on the dot product of
|
421
|
-
* {@link protos
|
422
|
-
* embedding that is provided in
|
423
|
-
* {@link protos
|
455
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector|SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
|
456
|
+
* and the document embedding that is provided in
|
457
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}.
|
424
458
|
*
|
425
|
-
* If
|
426
|
-
*
|
459
|
+
* If
|
460
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
461
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
427
462
|
* @param {string} request.rankingExpression
|
428
463
|
* The ranking expression controls the customized ranking on retrieval
|
429
464
|
* documents. This overrides
|
@@ -466,6 +501,8 @@ class SearchServiceClient {
|
|
466
501
|
* See [Google Cloud
|
467
502
|
* Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
468
503
|
* for more details.
|
504
|
+
* @param {google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec} request.customFineTuningSpec
|
505
|
+
* Custom fine tuning configs.
|
469
506
|
* @param {object} [options]
|
470
507
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
471
508
|
* @returns {Stream}
|
@@ -540,6 +577,8 @@ class SearchServiceClient {
|
|
540
577
|
* is unset.
|
541
578
|
*
|
542
579
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
580
|
+
* @param {number[]} request.dataStoreSpecs
|
581
|
+
* A list of data store specs to apply on a search call.
|
543
582
|
* @param {string} request.filter
|
544
583
|
* The filter syntax consists of an expression language for constructing a
|
545
584
|
* predicate from one or more fields of the documents being filtered. Filter
|
@@ -635,12 +674,13 @@ class SearchServiceClient {
|
|
635
674
|
* @param {google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec} request.embeddingSpec
|
636
675
|
* Uses the provided embedding to do additional semantic document retrieval.
|
637
676
|
* The retrieval is based on the dot product of
|
638
|
-
* {@link protos
|
639
|
-
* embedding that is provided in
|
640
|
-
* {@link protos
|
677
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector|SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
|
678
|
+
* and the document embedding that is provided in
|
679
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}.
|
641
680
|
*
|
642
|
-
* If
|
643
|
-
*
|
681
|
+
* If
|
682
|
+
* {@link protos.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
683
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
644
684
|
* @param {string} request.rankingExpression
|
645
685
|
* The ranking expression controls the customized ranking on retrieval
|
646
686
|
* documents. This overrides
|
@@ -683,6 +723,8 @@ class SearchServiceClient {
|
|
683
723
|
* See [Google Cloud
|
684
724
|
* Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
685
725
|
* for more details.
|
726
|
+
* @param {google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec} request.customFineTuningSpec
|
727
|
+
* Custom fine tuning configs.
|
686
728
|
* @param {object} [options]
|
687
729
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
688
730
|
* @returns {Object}
|
@@ -768,6 +810,41 @@ class SearchServiceClient {
|
|
768
810
|
// --------------------
|
769
811
|
// -- Path templates --
|
770
812
|
// --------------------
|
813
|
+
/**
|
814
|
+
* Return a fully-qualified aclConfig resource name string.
|
815
|
+
*
|
816
|
+
* @param {string} project
|
817
|
+
* @param {string} location
|
818
|
+
* @returns {string} Resource name string.
|
819
|
+
*/
|
820
|
+
aclConfigPath(project, location) {
|
821
|
+
return this.pathTemplates.aclConfigPathTemplate.render({
|
822
|
+
project: project,
|
823
|
+
location: location,
|
824
|
+
});
|
825
|
+
}
|
826
|
+
/**
|
827
|
+
* Parse the project from AclConfig resource.
|
828
|
+
*
|
829
|
+
* @param {string} aclConfigName
|
830
|
+
* A fully-qualified path representing AclConfig resource.
|
831
|
+
* @returns {string} A string representing the project.
|
832
|
+
*/
|
833
|
+
matchProjectFromAclConfigName(aclConfigName) {
|
834
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
835
|
+
.project;
|
836
|
+
}
|
837
|
+
/**
|
838
|
+
* Parse the location from AclConfig resource.
|
839
|
+
*
|
840
|
+
* @param {string} aclConfigName
|
841
|
+
* A fully-qualified path representing AclConfig resource.
|
842
|
+
* @returns {string} A string representing the location.
|
843
|
+
*/
|
844
|
+
matchLocationFromAclConfigName(aclConfigName) {
|
845
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
846
|
+
.location;
|
847
|
+
}
|
771
848
|
/**
|
772
849
|
* Return a fully-qualified engine resource name string.
|
773
850
|
*
|
@@ -1032,6 +1109,99 @@ class SearchServiceClient {
|
|
1032
1109
|
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
|
1033
1110
|
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
|
1034
1111
|
}
|
1112
|
+
/**
|
1113
|
+
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocumentChunk resource name string.
|
1114
|
+
*
|
1115
|
+
* @param {string} project
|
1116
|
+
* @param {string} location
|
1117
|
+
* @param {string} collection
|
1118
|
+
* @param {string} data_store
|
1119
|
+
* @param {string} branch
|
1120
|
+
* @param {string} document
|
1121
|
+
* @param {string} chunk
|
1122
|
+
* @returns {string} Resource name string.
|
1123
|
+
*/
|
1124
|
+
projectLocationCollectionDataStoreBranchDocumentChunkPath(project, location, collection, dataStore, branch, document, chunk) {
|
1125
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.render({
|
1126
|
+
project: project,
|
1127
|
+
location: location,
|
1128
|
+
collection: collection,
|
1129
|
+
data_store: dataStore,
|
1130
|
+
branch: branch,
|
1131
|
+
document: document,
|
1132
|
+
chunk: chunk,
|
1133
|
+
});
|
1134
|
+
}
|
1135
|
+
/**
|
1136
|
+
* Parse the project from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1137
|
+
*
|
1138
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1139
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1140
|
+
* @returns {string} A string representing the project.
|
1141
|
+
*/
|
1142
|
+
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1143
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).project;
|
1144
|
+
}
|
1145
|
+
/**
|
1146
|
+
* Parse the location from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1147
|
+
*
|
1148
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1149
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1150
|
+
* @returns {string} A string representing the location.
|
1151
|
+
*/
|
1152
|
+
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1153
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).location;
|
1154
|
+
}
|
1155
|
+
/**
|
1156
|
+
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1157
|
+
*
|
1158
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1159
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1160
|
+
* @returns {string} A string representing the collection.
|
1161
|
+
*/
|
1162
|
+
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1163
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).collection;
|
1164
|
+
}
|
1165
|
+
/**
|
1166
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1167
|
+
*
|
1168
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1169
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1170
|
+
* @returns {string} A string representing the data_store.
|
1171
|
+
*/
|
1172
|
+
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1173
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).data_store;
|
1174
|
+
}
|
1175
|
+
/**
|
1176
|
+
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1177
|
+
*
|
1178
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1179
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1180
|
+
* @returns {string} A string representing the branch.
|
1181
|
+
*/
|
1182
|
+
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1183
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).branch;
|
1184
|
+
}
|
1185
|
+
/**
|
1186
|
+
* Parse the document from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1187
|
+
*
|
1188
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1189
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1190
|
+
* @returns {string} A string representing the document.
|
1191
|
+
*/
|
1192
|
+
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1193
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).document;
|
1194
|
+
}
|
1195
|
+
/**
|
1196
|
+
* Parse the chunk from ProjectLocationCollectionDataStoreBranchDocumentChunk resource.
|
1197
|
+
*
|
1198
|
+
* @param {string} projectLocationCollectionDataStoreBranchDocumentChunkName
|
1199
|
+
* A fully-qualified path representing project_location_collection_data_store_branch_document_chunk resource.
|
1200
|
+
* @returns {string} A string representing the chunk.
|
1201
|
+
*/
|
1202
|
+
matchChunkFromProjectLocationCollectionDataStoreBranchDocumentChunkName(projectLocationCollectionDataStoreBranchDocumentChunkName) {
|
1203
|
+
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentChunkName).chunk;
|
1204
|
+
}
|
1035
1205
|
/**
|
1036
1206
|
* Return a fully-qualified projectLocationCollectionDataStoreConversation resource name string.
|
1037
1207
|
*
|
@@ -1101,6 +1271,63 @@ class SearchServiceClient {
|
|
1101
1271
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
1102
1272
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
1103
1273
|
}
|
1274
|
+
/**
|
1275
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
1276
|
+
*
|
1277
|
+
* @param {string} project
|
1278
|
+
* @param {string} location
|
1279
|
+
* @param {string} collection
|
1280
|
+
* @param {string} data_store
|
1281
|
+
* @returns {string} Resource name string.
|
1282
|
+
*/
|
1283
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
1284
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
1285
|
+
project: project,
|
1286
|
+
location: location,
|
1287
|
+
collection: collection,
|
1288
|
+
data_store: dataStore,
|
1289
|
+
});
|
1290
|
+
}
|
1291
|
+
/**
|
1292
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1293
|
+
*
|
1294
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1295
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1296
|
+
* @returns {string} A string representing the project.
|
1297
|
+
*/
|
1298
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1299
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
1300
|
+
}
|
1301
|
+
/**
|
1302
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1303
|
+
*
|
1304
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1305
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1306
|
+
* @returns {string} A string representing the location.
|
1307
|
+
*/
|
1308
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1309
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
1310
|
+
}
|
1311
|
+
/**
|
1312
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1313
|
+
*
|
1314
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1315
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1316
|
+
* @returns {string} A string representing the collection.
|
1317
|
+
*/
|
1318
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1319
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
1320
|
+
}
|
1321
|
+
/**
|
1322
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
1323
|
+
*
|
1324
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
1325
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
1326
|
+
* @returns {string} A string representing the data_store.
|
1327
|
+
*/
|
1328
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
1329
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
1330
|
+
}
|
1104
1331
|
/**
|
1105
1332
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
1106
1333
|
*
|
@@ -1674,6 +1901,87 @@ class SearchServiceClient {
|
|
1674
1901
|
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
|
1675
1902
|
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
|
1676
1903
|
}
|
1904
|
+
/**
|
1905
|
+
* Return a fully-qualified projectLocationDataStoreBranchDocumentChunk resource name string.
|
1906
|
+
*
|
1907
|
+
* @param {string} project
|
1908
|
+
* @param {string} location
|
1909
|
+
* @param {string} data_store
|
1910
|
+
* @param {string} branch
|
1911
|
+
* @param {string} document
|
1912
|
+
* @param {string} chunk
|
1913
|
+
* @returns {string} Resource name string.
|
1914
|
+
*/
|
1915
|
+
projectLocationDataStoreBranchDocumentChunkPath(project, location, dataStore, branch, document, chunk) {
|
1916
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.render({
|
1917
|
+
project: project,
|
1918
|
+
location: location,
|
1919
|
+
data_store: dataStore,
|
1920
|
+
branch: branch,
|
1921
|
+
document: document,
|
1922
|
+
chunk: chunk,
|
1923
|
+
});
|
1924
|
+
}
|
1925
|
+
/**
|
1926
|
+
* Parse the project from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1927
|
+
*
|
1928
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1929
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1930
|
+
* @returns {string} A string representing the project.
|
1931
|
+
*/
|
1932
|
+
matchProjectFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1933
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).project;
|
1934
|
+
}
|
1935
|
+
/**
|
1936
|
+
* Parse the location from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1937
|
+
*
|
1938
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1939
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1940
|
+
* @returns {string} A string representing the location.
|
1941
|
+
*/
|
1942
|
+
matchLocationFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1943
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).location;
|
1944
|
+
}
|
1945
|
+
/**
|
1946
|
+
* Parse the data_store from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1947
|
+
*
|
1948
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1949
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1950
|
+
* @returns {string} A string representing the data_store.
|
1951
|
+
*/
|
1952
|
+
matchDataStoreFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1953
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).data_store;
|
1954
|
+
}
|
1955
|
+
/**
|
1956
|
+
* Parse the branch from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1957
|
+
*
|
1958
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1959
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1960
|
+
* @returns {string} A string representing the branch.
|
1961
|
+
*/
|
1962
|
+
matchBranchFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1963
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).branch;
|
1964
|
+
}
|
1965
|
+
/**
|
1966
|
+
* Parse the document from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1967
|
+
*
|
1968
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1969
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1970
|
+
* @returns {string} A string representing the document.
|
1971
|
+
*/
|
1972
|
+
matchDocumentFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1973
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).document;
|
1974
|
+
}
|
1975
|
+
/**
|
1976
|
+
* Parse the chunk from ProjectLocationDataStoreBranchDocumentChunk resource.
|
1977
|
+
*
|
1978
|
+
* @param {string} projectLocationDataStoreBranchDocumentChunkName
|
1979
|
+
* A fully-qualified path representing project_location_data_store_branch_document_chunk resource.
|
1980
|
+
* @returns {string} A string representing the chunk.
|
1981
|
+
*/
|
1982
|
+
matchChunkFromProjectLocationDataStoreBranchDocumentChunkName(projectLocationDataStoreBranchDocumentChunkName) {
|
1983
|
+
return this.pathTemplates.projectLocationDataStoreBranchDocumentChunkPathTemplate.match(projectLocationDataStoreBranchDocumentChunkName).chunk;
|
1984
|
+
}
|
1677
1985
|
/**
|
1678
1986
|
* Return a fully-qualified projectLocationDataStoreConversation resource name string.
|
1679
1987
|
*
|
@@ -1731,6 +2039,51 @@ class SearchServiceClient {
|
|
1731
2039
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
1732
2040
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
1733
2041
|
}
|
2042
|
+
/**
|
2043
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
2044
|
+
*
|
2045
|
+
* @param {string} project
|
2046
|
+
* @param {string} location
|
2047
|
+
* @param {string} data_store
|
2048
|
+
* @returns {string} Resource name string.
|
2049
|
+
*/
|
2050
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
2051
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
2052
|
+
project: project,
|
2053
|
+
location: location,
|
2054
|
+
data_store: dataStore,
|
2055
|
+
});
|
2056
|
+
}
|
2057
|
+
/**
|
2058
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2059
|
+
*
|
2060
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2061
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2062
|
+
* @returns {string} A string representing the project.
|
2063
|
+
*/
|
2064
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2065
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
2066
|
+
}
|
2067
|
+
/**
|
2068
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2069
|
+
*
|
2070
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2071
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2072
|
+
* @returns {string} A string representing the location.
|
2073
|
+
*/
|
2074
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2075
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
2076
|
+
}
|
2077
|
+
/**
|
2078
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
2079
|
+
*
|
2080
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
2081
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
2082
|
+
* @returns {string} A string representing the data_store.
|
2083
|
+
*/
|
2084
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
2085
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
2086
|
+
}
|
1734
2087
|
/**
|
1735
2088
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
1736
2089
|
*
|