@google-cloud/discoveryengine 1.3.1 → 1.4.1
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 +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
|
@@ -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,16 +146,27 @@ 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
|
+
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
|
150
|
+
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
|
141
151
|
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
|
|
142
152
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
143
153
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
|
154
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
|
144
155
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
|
145
156
|
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
157
|
+
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
|
158
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
159
|
+
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
|
160
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
|
161
|
+
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
|
146
162
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
|
147
163
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
|
148
164
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
|
165
|
+
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
|
149
166
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
|
150
167
|
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
|
168
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
|
169
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
|
151
170
|
};
|
|
152
171
|
// Some of the methods on this service return "paged" results,
|
|
153
172
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
@@ -208,19 +227,38 @@ class SearchServiceClient {
|
|
|
208
227
|
}
|
|
209
228
|
/**
|
|
210
229
|
* The DNS address for this API service.
|
|
230
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
211
231
|
* @returns {string} The DNS address for this service.
|
|
212
232
|
*/
|
|
213
233
|
static get servicePath() {
|
|
234
|
+
if (typeof process !== undefined &&
|
|
235
|
+
typeof process.emitWarning === 'function') {
|
|
236
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
237
|
+
}
|
|
214
238
|
return 'discoveryengine.googleapis.com';
|
|
215
239
|
}
|
|
216
240
|
/**
|
|
217
|
-
* The DNS address for this API service - same as servicePath
|
|
218
|
-
*
|
|
241
|
+
* The DNS address for this API service - same as servicePath.
|
|
242
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
219
243
|
* @returns {string} The DNS address for this service.
|
|
220
244
|
*/
|
|
221
245
|
static get apiEndpoint() {
|
|
246
|
+
if (typeof process !== undefined &&
|
|
247
|
+
typeof process.emitWarning === 'function') {
|
|
248
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
249
|
+
}
|
|
222
250
|
return 'discoveryengine.googleapis.com';
|
|
223
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* The DNS address for this API service.
|
|
254
|
+
* @returns {string} The DNS address for this service.
|
|
255
|
+
*/
|
|
256
|
+
get apiEndpoint() {
|
|
257
|
+
return this._servicePath;
|
|
258
|
+
}
|
|
259
|
+
get universeDomain() {
|
|
260
|
+
return this._universeDomain;
|
|
261
|
+
}
|
|
224
262
|
/**
|
|
225
263
|
* The port for this API service.
|
|
226
264
|
* @returns {number} The default port for this service.
|
|
@@ -274,6 +312,8 @@ class SearchServiceClient {
|
|
|
274
312
|
* The request object that will be sent.
|
|
275
313
|
* @param {string} request.servingConfig
|
|
276
314
|
* Required. The resource name of the Search serving config, such as
|
|
315
|
+
* `projects/* /locations/global/collections/default_collection/engines/* /servingConfigs/default_serving_config`,
|
|
316
|
+
* or
|
|
277
317
|
* `projects/* /locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
|
|
278
318
|
* This field is used to identify the serving configuration name, set
|
|
279
319
|
* of models used to make the search.
|
|
@@ -311,17 +351,43 @@ class SearchServiceClient {
|
|
|
311
351
|
* is unset.
|
|
312
352
|
*
|
|
313
353
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
|
354
|
+
* @param {number[]} request.dataStoreSpecs
|
|
355
|
+
* A list of data store specs to apply on a search call.
|
|
314
356
|
* @param {string} request.filter
|
|
315
357
|
* The filter syntax consists of an expression language for constructing a
|
|
316
358
|
* predicate from one or more fields of the documents being filtered. Filter
|
|
317
359
|
* expression is case-sensitive.
|
|
318
360
|
*
|
|
319
361
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
|
362
|
+
*
|
|
363
|
+
* Filtering in Vertex AI Search is done by mapping the LHS filter key to a
|
|
364
|
+
* key property defined in the Vertex AI Search backend -- this mapping is
|
|
365
|
+
* defined by the customer in their schema. For example a media customer might
|
|
366
|
+
* have a field 'name' in their schema. In this case the filter would look
|
|
367
|
+
* like this: filter --> name:'ANY("king kong")'
|
|
368
|
+
*
|
|
369
|
+
* For more information about filtering including syntax and filter
|
|
370
|
+
* operators, see
|
|
371
|
+
* [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
|
|
372
|
+
* @param {string} request.canonicalFilter
|
|
373
|
+
* The default filter that is applied when a user performs a search without
|
|
374
|
+
* checking any filters on the search page.
|
|
375
|
+
*
|
|
376
|
+
* The filter applied to every search request when quality improvement such as
|
|
377
|
+
* query expansion is needed. In the case a query does not have a sufficient
|
|
378
|
+
* amount of results this filter will be used to determine whether or not to
|
|
379
|
+
* enable the query expansion flow. The original filter will still be used for
|
|
380
|
+
* the query expanded search.
|
|
381
|
+
* This field is strongly recommended to achieve high search quality.
|
|
382
|
+
*
|
|
383
|
+
* For more information about filter syntax, see
|
|
384
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.filter|SearchRequest.filter}.
|
|
320
385
|
* @param {string} request.orderBy
|
|
321
386
|
* The order in which documents are returned. Documents can be ordered by
|
|
322
387
|
* a field in an {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}
|
|
323
388
|
* object. Leave it unset if ordered by relevance. `order_by` expression is
|
|
324
|
-
* case-sensitive.
|
|
389
|
+
* case-sensitive. For more information on ordering, see
|
|
390
|
+
* [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
|
325
391
|
*
|
|
326
392
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
|
327
393
|
* @param {google.cloud.discoveryengine.v1beta.UserInfo} request.userInfo
|
|
@@ -336,6 +402,8 @@ class SearchServiceClient {
|
|
|
336
402
|
* error is returned.
|
|
337
403
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} request.boostSpec
|
|
338
404
|
* Boost specification to boost certain documents.
|
|
405
|
+
* For more information on boosting, see
|
|
406
|
+
* [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
|
|
339
407
|
* @param {number[]} request.params
|
|
340
408
|
* Additional search parameters.
|
|
341
409
|
*
|
|
@@ -343,9 +411,17 @@ class SearchServiceClient {
|
|
|
343
411
|
*
|
|
344
412
|
* * `user_country_code`: string. Default empty. If set to non-empty, results
|
|
345
413
|
* are restricted or boosted based on the location provided.
|
|
414
|
+
* Example:
|
|
415
|
+
* user_country_code: "au"
|
|
416
|
+
*
|
|
417
|
+
* For available codes see [Country
|
|
418
|
+
* Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
|
419
|
+
*
|
|
346
420
|
* * `search_type`: double. Default empty. Enables non-webpage searching
|
|
347
|
-
*
|
|
348
|
-
*
|
|
421
|
+
* depending on the value. The only valid non-default value is 1,
|
|
422
|
+
* which enables image searching.
|
|
423
|
+
* Example:
|
|
424
|
+
* search_type: 1
|
|
349
425
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
|
|
350
426
|
* The query expansion specification that specifies the conditions under which
|
|
351
427
|
* query expansion occurs.
|
|
@@ -372,15 +448,17 @@ class SearchServiceClient {
|
|
|
372
448
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} request.embeddingSpec
|
|
373
449
|
* Uses the provided embedding to do additional semantic document retrieval.
|
|
374
450
|
* The retrieval is based on the dot product of
|
|
375
|
-
* {@link protos
|
|
376
|
-
* embedding that is provided in
|
|
377
|
-
* {@link protos
|
|
451
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector|SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
|
|
452
|
+
* and the document embedding that is provided in
|
|
453
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}.
|
|
378
454
|
*
|
|
379
|
-
* If
|
|
380
|
-
*
|
|
455
|
+
* If
|
|
456
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
|
457
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
|
381
458
|
* @param {string} request.rankingExpression
|
|
382
459
|
* The ranking expression controls the customized ranking on retrieval
|
|
383
|
-
* documents. This overrides
|
|
460
|
+
* documents. This overrides
|
|
461
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
|
|
384
462
|
* The ranking expression is a single function or multiple functions that are
|
|
385
463
|
* joint by "+".
|
|
386
464
|
* * ranking_expression = function, { " + ", function };
|
|
@@ -453,6 +531,8 @@ class SearchServiceClient {
|
|
|
453
531
|
* The request object that will be sent.
|
|
454
532
|
* @param {string} request.servingConfig
|
|
455
533
|
* Required. The resource name of the Search serving config, such as
|
|
534
|
+
* `projects/* /locations/global/collections/default_collection/engines/* /servingConfigs/default_serving_config`,
|
|
535
|
+
* or
|
|
456
536
|
* `projects/* /locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
|
|
457
537
|
* This field is used to identify the serving configuration name, set
|
|
458
538
|
* of models used to make the search.
|
|
@@ -490,17 +570,43 @@ class SearchServiceClient {
|
|
|
490
570
|
* is unset.
|
|
491
571
|
*
|
|
492
572
|
* If this field is negative, an `INVALID_ARGUMENT` is returned.
|
|
573
|
+
* @param {number[]} request.dataStoreSpecs
|
|
574
|
+
* A list of data store specs to apply on a search call.
|
|
493
575
|
* @param {string} request.filter
|
|
494
576
|
* The filter syntax consists of an expression language for constructing a
|
|
495
577
|
* predicate from one or more fields of the documents being filtered. Filter
|
|
496
578
|
* expression is case-sensitive.
|
|
497
579
|
*
|
|
498
580
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
|
581
|
+
*
|
|
582
|
+
* Filtering in Vertex AI Search is done by mapping the LHS filter key to a
|
|
583
|
+
* key property defined in the Vertex AI Search backend -- this mapping is
|
|
584
|
+
* defined by the customer in their schema. For example a media customer might
|
|
585
|
+
* have a field 'name' in their schema. In this case the filter would look
|
|
586
|
+
* like this: filter --> name:'ANY("king kong")'
|
|
587
|
+
*
|
|
588
|
+
* For more information about filtering including syntax and filter
|
|
589
|
+
* operators, see
|
|
590
|
+
* [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
|
|
591
|
+
* @param {string} request.canonicalFilter
|
|
592
|
+
* The default filter that is applied when a user performs a search without
|
|
593
|
+
* checking any filters on the search page.
|
|
594
|
+
*
|
|
595
|
+
* The filter applied to every search request when quality improvement such as
|
|
596
|
+
* query expansion is needed. In the case a query does not have a sufficient
|
|
597
|
+
* amount of results this filter will be used to determine whether or not to
|
|
598
|
+
* enable the query expansion flow. The original filter will still be used for
|
|
599
|
+
* the query expanded search.
|
|
600
|
+
* This field is strongly recommended to achieve high search quality.
|
|
601
|
+
*
|
|
602
|
+
* For more information about filter syntax, see
|
|
603
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.filter|SearchRequest.filter}.
|
|
499
604
|
* @param {string} request.orderBy
|
|
500
605
|
* The order in which documents are returned. Documents can be ordered by
|
|
501
606
|
* a field in an {@link protos.google.cloud.discoveryengine.v1beta.Document|Document}
|
|
502
607
|
* object. Leave it unset if ordered by relevance. `order_by` expression is
|
|
503
|
-
* case-sensitive.
|
|
608
|
+
* case-sensitive. For more information on ordering, see
|
|
609
|
+
* [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
|
504
610
|
*
|
|
505
611
|
* If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
|
506
612
|
* @param {google.cloud.discoveryengine.v1beta.UserInfo} request.userInfo
|
|
@@ -515,6 +621,8 @@ class SearchServiceClient {
|
|
|
515
621
|
* error is returned.
|
|
516
622
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec} request.boostSpec
|
|
517
623
|
* Boost specification to boost certain documents.
|
|
624
|
+
* For more information on boosting, see
|
|
625
|
+
* [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
|
|
518
626
|
* @param {number[]} request.params
|
|
519
627
|
* Additional search parameters.
|
|
520
628
|
*
|
|
@@ -522,9 +630,17 @@ class SearchServiceClient {
|
|
|
522
630
|
*
|
|
523
631
|
* * `user_country_code`: string. Default empty. If set to non-empty, results
|
|
524
632
|
* are restricted or boosted based on the location provided.
|
|
633
|
+
* Example:
|
|
634
|
+
* user_country_code: "au"
|
|
635
|
+
*
|
|
636
|
+
* For available codes see [Country
|
|
637
|
+
* Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
|
638
|
+
*
|
|
525
639
|
* * `search_type`: double. Default empty. Enables non-webpage searching
|
|
526
|
-
*
|
|
527
|
-
*
|
|
640
|
+
* depending on the value. The only valid non-default value is 1,
|
|
641
|
+
* which enables image searching.
|
|
642
|
+
* Example:
|
|
643
|
+
* search_type: 1
|
|
528
644
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec} request.queryExpansionSpec
|
|
529
645
|
* The query expansion specification that specifies the conditions under which
|
|
530
646
|
* query expansion occurs.
|
|
@@ -551,15 +667,17 @@ class SearchServiceClient {
|
|
|
551
667
|
* @param {google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} request.embeddingSpec
|
|
552
668
|
* Uses the provided embedding to do additional semantic document retrieval.
|
|
553
669
|
* The retrieval is based on the dot product of
|
|
554
|
-
* {@link protos
|
|
555
|
-
* embedding that is provided in
|
|
556
|
-
* {@link protos
|
|
670
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector|SearchRequest.EmbeddingSpec.EmbeddingVector.vector}
|
|
671
|
+
* and the document embedding that is provided in
|
|
672
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}.
|
|
557
673
|
*
|
|
558
|
-
* If
|
|
559
|
-
*
|
|
674
|
+
* If
|
|
675
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path|SearchRequest.EmbeddingSpec.EmbeddingVector.field_path}
|
|
676
|
+
* is not provided, it will use {@link protos.|ServingConfig.EmbeddingConfig.field_path}.
|
|
560
677
|
* @param {string} request.rankingExpression
|
|
561
678
|
* The ranking expression controls the customized ranking on retrieval
|
|
562
|
-
* documents. This overrides
|
|
679
|
+
* documents. This overrides
|
|
680
|
+
* {@link protos.google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression|ServingConfig.ranking_expression}.
|
|
563
681
|
* The ranking expression is a single function or multiple functions that are
|
|
564
682
|
* joint by "+".
|
|
565
683
|
* * ranking_expression = function, { " + ", function };
|
|
@@ -683,6 +801,120 @@ class SearchServiceClient {
|
|
|
683
801
|
// --------------------
|
|
684
802
|
// -- Path templates --
|
|
685
803
|
// --------------------
|
|
804
|
+
/**
|
|
805
|
+
* Return a fully-qualified engine resource name string.
|
|
806
|
+
*
|
|
807
|
+
* @param {string} project
|
|
808
|
+
* @param {string} location
|
|
809
|
+
* @param {string} collection
|
|
810
|
+
* @param {string} engine
|
|
811
|
+
* @returns {string} Resource name string.
|
|
812
|
+
*/
|
|
813
|
+
enginePath(project, location, collection, engine) {
|
|
814
|
+
return this.pathTemplates.enginePathTemplate.render({
|
|
815
|
+
project: project,
|
|
816
|
+
location: location,
|
|
817
|
+
collection: collection,
|
|
818
|
+
engine: engine,
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Parse the project from Engine resource.
|
|
823
|
+
*
|
|
824
|
+
* @param {string} engineName
|
|
825
|
+
* A fully-qualified path representing Engine resource.
|
|
826
|
+
* @returns {string} A string representing the project.
|
|
827
|
+
*/
|
|
828
|
+
matchProjectFromEngineName(engineName) {
|
|
829
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).project;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Parse the location from Engine resource.
|
|
833
|
+
*
|
|
834
|
+
* @param {string} engineName
|
|
835
|
+
* A fully-qualified path representing Engine resource.
|
|
836
|
+
* @returns {string} A string representing the location.
|
|
837
|
+
*/
|
|
838
|
+
matchLocationFromEngineName(engineName) {
|
|
839
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).location;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Parse the collection from Engine resource.
|
|
843
|
+
*
|
|
844
|
+
* @param {string} engineName
|
|
845
|
+
* A fully-qualified path representing Engine resource.
|
|
846
|
+
* @returns {string} A string representing the collection.
|
|
847
|
+
*/
|
|
848
|
+
matchCollectionFromEngineName(engineName) {
|
|
849
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).collection;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Parse the engine from Engine resource.
|
|
853
|
+
*
|
|
854
|
+
* @param {string} engineName
|
|
855
|
+
* A fully-qualified path representing Engine resource.
|
|
856
|
+
* @returns {string} A string representing the engine.
|
|
857
|
+
*/
|
|
858
|
+
matchEngineFromEngineName(engineName) {
|
|
859
|
+
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
|
863
|
+
*
|
|
864
|
+
* @param {string} project
|
|
865
|
+
* @param {string} location
|
|
866
|
+
* @param {string} collection
|
|
867
|
+
* @param {string} data_store
|
|
868
|
+
* @returns {string} Resource name string.
|
|
869
|
+
*/
|
|
870
|
+
projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
|
|
871
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
|
|
872
|
+
project: project,
|
|
873
|
+
location: location,
|
|
874
|
+
collection: collection,
|
|
875
|
+
data_store: dataStore,
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Parse the project from ProjectLocationCollectionDataStore resource.
|
|
880
|
+
*
|
|
881
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
882
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
883
|
+
* @returns {string} A string representing the project.
|
|
884
|
+
*/
|
|
885
|
+
matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
886
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Parse the location from ProjectLocationCollectionDataStore resource.
|
|
890
|
+
*
|
|
891
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
892
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
893
|
+
* @returns {string} A string representing the location.
|
|
894
|
+
*/
|
|
895
|
+
matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
896
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Parse the collection from ProjectLocationCollectionDataStore resource.
|
|
900
|
+
*
|
|
901
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
902
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
903
|
+
* @returns {string} A string representing the collection.
|
|
904
|
+
*/
|
|
905
|
+
matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
906
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Parse the data_store from ProjectLocationCollectionDataStore resource.
|
|
910
|
+
*
|
|
911
|
+
* @param {string} projectLocationCollectionDataStoreName
|
|
912
|
+
* A fully-qualified path representing project_location_collection_data_store resource.
|
|
913
|
+
* @returns {string} A string representing the data_store.
|
|
914
|
+
*/
|
|
915
|
+
matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
|
|
916
|
+
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
|
|
917
|
+
}
|
|
686
918
|
/**
|
|
687
919
|
* Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
|
|
688
920
|
*
|
|
@@ -902,6 +1134,63 @@ class SearchServiceClient {
|
|
|
902
1134
|
matchConversationFromProjectLocationCollectionDataStoreConversationName(projectLocationCollectionDataStoreConversationName) {
|
|
903
1135
|
return this.pathTemplates.projectLocationCollectionDataStoreConversationPathTemplate.match(projectLocationCollectionDataStoreConversationName).conversation;
|
|
904
1136
|
}
|
|
1137
|
+
/**
|
|
1138
|
+
* Return a fully-qualified projectLocationCollectionDataStoreDocumentProcessingConfig resource name string.
|
|
1139
|
+
*
|
|
1140
|
+
* @param {string} project
|
|
1141
|
+
* @param {string} location
|
|
1142
|
+
* @param {string} collection
|
|
1143
|
+
* @param {string} data_store
|
|
1144
|
+
* @returns {string} Resource name string.
|
|
1145
|
+
*/
|
|
1146
|
+
projectLocationCollectionDataStoreDocumentProcessingConfigPath(project, location, collection, dataStore) {
|
|
1147
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1148
|
+
project: project,
|
|
1149
|
+
location: location,
|
|
1150
|
+
collection: collection,
|
|
1151
|
+
data_store: dataStore,
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* Parse the project from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1156
|
+
*
|
|
1157
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1158
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1159
|
+
* @returns {string} A string representing the project.
|
|
1160
|
+
*/
|
|
1161
|
+
matchProjectFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1162
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).project;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Parse the location from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1166
|
+
*
|
|
1167
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1168
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1169
|
+
* @returns {string} A string representing the location.
|
|
1170
|
+
*/
|
|
1171
|
+
matchLocationFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1172
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).location;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* Parse the collection from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1176
|
+
*
|
|
1177
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1178
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1179
|
+
* @returns {string} A string representing the collection.
|
|
1180
|
+
*/
|
|
1181
|
+
matchCollectionFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1182
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).collection;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreDocumentProcessingConfig resource.
|
|
1186
|
+
*
|
|
1187
|
+
* @param {string} projectLocationCollectionDataStoreDocumentProcessingConfigName
|
|
1188
|
+
* A fully-qualified path representing project_location_collection_data_store_documentProcessingConfig resource.
|
|
1189
|
+
* @returns {string} A string representing the data_store.
|
|
1190
|
+
*/
|
|
1191
|
+
matchDataStoreFromProjectLocationCollectionDataStoreDocumentProcessingConfigName(projectLocationCollectionDataStoreDocumentProcessingConfigName) {
|
|
1192
|
+
return this.pathTemplates.projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationCollectionDataStoreDocumentProcessingConfigName).data_store;
|
|
1193
|
+
}
|
|
905
1194
|
/**
|
|
906
1195
|
* Return a fully-qualified projectLocationCollectionDataStoreSchema resource name string.
|
|
907
1196
|
*
|
|
@@ -1040,6 +1329,315 @@ class SearchServiceClient {
|
|
|
1040
1329
|
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
|
1041
1330
|
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
|
1042
1331
|
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
|
1334
|
+
*
|
|
1335
|
+
* @param {string} project
|
|
1336
|
+
* @param {string} location
|
|
1337
|
+
* @param {string} collection
|
|
1338
|
+
* @param {string} data_store
|
|
1339
|
+
* @returns {string} Resource name string.
|
|
1340
|
+
*/
|
|
1341
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
|
1342
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
|
1343
|
+
project: project,
|
|
1344
|
+
location: location,
|
|
1345
|
+
collection: collection,
|
|
1346
|
+
data_store: dataStore,
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1351
|
+
*
|
|
1352
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1353
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1354
|
+
* @returns {string} A string representing the project.
|
|
1355
|
+
*/
|
|
1356
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1357
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1361
|
+
*
|
|
1362
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1363
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1364
|
+
* @returns {string} A string representing the location.
|
|
1365
|
+
*/
|
|
1366
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1367
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1371
|
+
*
|
|
1372
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1373
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1374
|
+
* @returns {string} A string representing the collection.
|
|
1375
|
+
*/
|
|
1376
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1377
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
|
1381
|
+
*
|
|
1382
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
|
1383
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
|
1384
|
+
* @returns {string} A string representing the data_store.
|
|
1385
|
+
*/
|
|
1386
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
|
1387
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} project
|
|
1393
|
+
* @param {string} location
|
|
1394
|
+
* @param {string} collection
|
|
1395
|
+
* @param {string} data_store
|
|
1396
|
+
* @param {string} target_site
|
|
1397
|
+
* @returns {string} Resource name string.
|
|
1398
|
+
*/
|
|
1399
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
|
1400
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
|
1401
|
+
project: project,
|
|
1402
|
+
location: location,
|
|
1403
|
+
collection: collection,
|
|
1404
|
+
data_store: dataStore,
|
|
1405
|
+
target_site: targetSite,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1410
|
+
*
|
|
1411
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1412
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1413
|
+
* @returns {string} A string representing the project.
|
|
1414
|
+
*/
|
|
1415
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1416
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1420
|
+
*
|
|
1421
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1422
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1423
|
+
* @returns {string} A string representing the location.
|
|
1424
|
+
*/
|
|
1425
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1426
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1430
|
+
*
|
|
1431
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1432
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1433
|
+
* @returns {string} A string representing the collection.
|
|
1434
|
+
*/
|
|
1435
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1436
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1440
|
+
*
|
|
1441
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1442
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1443
|
+
* @returns {string} A string representing the data_store.
|
|
1444
|
+
*/
|
|
1445
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1446
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
|
1450
|
+
*
|
|
1451
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
|
1452
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
|
1453
|
+
* @returns {string} A string representing the target_site.
|
|
1454
|
+
*/
|
|
1455
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
|
1456
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
|
1460
|
+
*
|
|
1461
|
+
* @param {string} project
|
|
1462
|
+
* @param {string} location
|
|
1463
|
+
* @param {string} collection
|
|
1464
|
+
* @param {string} engine
|
|
1465
|
+
* @param {string} conversation
|
|
1466
|
+
* @returns {string} Resource name string.
|
|
1467
|
+
*/
|
|
1468
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
|
1469
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
|
1470
|
+
project: project,
|
|
1471
|
+
location: location,
|
|
1472
|
+
collection: collection,
|
|
1473
|
+
engine: engine,
|
|
1474
|
+
conversation: conversation,
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
|
1479
|
+
*
|
|
1480
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1481
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1482
|
+
* @returns {string} A string representing the project.
|
|
1483
|
+
*/
|
|
1484
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1485
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
|
1489
|
+
*
|
|
1490
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1491
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1492
|
+
* @returns {string} A string representing the location.
|
|
1493
|
+
*/
|
|
1494
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1495
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
|
1499
|
+
*
|
|
1500
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1501
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1502
|
+
* @returns {string} A string representing the collection.
|
|
1503
|
+
*/
|
|
1504
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1505
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
|
1509
|
+
*
|
|
1510
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1511
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1512
|
+
* @returns {string} A string representing the engine.
|
|
1513
|
+
*/
|
|
1514
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1515
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
|
1521
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
|
1522
|
+
* @returns {string} A string representing the conversation.
|
|
1523
|
+
*/
|
|
1524
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
|
1525
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
|
1529
|
+
*
|
|
1530
|
+
* @param {string} project
|
|
1531
|
+
* @param {string} location
|
|
1532
|
+
* @param {string} collection
|
|
1533
|
+
* @param {string} engine
|
|
1534
|
+
* @param {string} serving_config
|
|
1535
|
+
* @returns {string} Resource name string.
|
|
1536
|
+
*/
|
|
1537
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
|
1538
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
|
1539
|
+
project: project,
|
|
1540
|
+
location: location,
|
|
1541
|
+
collection: collection,
|
|
1542
|
+
engine: engine,
|
|
1543
|
+
serving_config: servingConfig,
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
|
1548
|
+
*
|
|
1549
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1550
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1551
|
+
* @returns {string} A string representing the project.
|
|
1552
|
+
*/
|
|
1553
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1554
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
|
1558
|
+
*
|
|
1559
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1560
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1561
|
+
* @returns {string} A string representing the location.
|
|
1562
|
+
*/
|
|
1563
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1564
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
|
1568
|
+
*
|
|
1569
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1570
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1571
|
+
* @returns {string} A string representing the collection.
|
|
1572
|
+
*/
|
|
1573
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1574
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
|
1578
|
+
*
|
|
1579
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1580
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1581
|
+
* @returns {string} A string representing the engine.
|
|
1582
|
+
*/
|
|
1583
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1584
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
|
1588
|
+
*
|
|
1589
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
|
1590
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
|
1591
|
+
* @returns {string} A string representing the serving_config.
|
|
1592
|
+
*/
|
|
1593
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
|
1594
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Return a fully-qualified projectLocationDataStore resource name string.
|
|
1598
|
+
*
|
|
1599
|
+
* @param {string} project
|
|
1600
|
+
* @param {string} location
|
|
1601
|
+
* @param {string} data_store
|
|
1602
|
+
* @returns {string} Resource name string.
|
|
1603
|
+
*/
|
|
1604
|
+
projectLocationDataStorePath(project, location, dataStore) {
|
|
1605
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.render({
|
|
1606
|
+
project: project,
|
|
1607
|
+
location: location,
|
|
1608
|
+
data_store: dataStore,
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Parse the project from ProjectLocationDataStore resource.
|
|
1613
|
+
*
|
|
1614
|
+
* @param {string} projectLocationDataStoreName
|
|
1615
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1616
|
+
* @returns {string} A string representing the project.
|
|
1617
|
+
*/
|
|
1618
|
+
matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1619
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* Parse the location from ProjectLocationDataStore resource.
|
|
1623
|
+
*
|
|
1624
|
+
* @param {string} projectLocationDataStoreName
|
|
1625
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1626
|
+
* @returns {string} A string representing the location.
|
|
1627
|
+
*/
|
|
1628
|
+
matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1629
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Parse the data_store from ProjectLocationDataStore resource.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {string} projectLocationDataStoreName
|
|
1635
|
+
* A fully-qualified path representing project_location_data_store resource.
|
|
1636
|
+
* @returns {string} A string representing the data_store.
|
|
1637
|
+
*/
|
|
1638
|
+
matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
|
|
1639
|
+
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
|
|
1640
|
+
}
|
|
1043
1641
|
/**
|
|
1044
1642
|
* Return a fully-qualified projectLocationDataStoreBranch resource name string.
|
|
1045
1643
|
*
|
|
@@ -1223,6 +1821,51 @@ class SearchServiceClient {
|
|
|
1223
1821
|
matchConversationFromProjectLocationDataStoreConversationName(projectLocationDataStoreConversationName) {
|
|
1224
1822
|
return this.pathTemplates.projectLocationDataStoreConversationPathTemplate.match(projectLocationDataStoreConversationName).conversation;
|
|
1225
1823
|
}
|
|
1824
|
+
/**
|
|
1825
|
+
* Return a fully-qualified projectLocationDataStoreDocumentProcessingConfig resource name string.
|
|
1826
|
+
*
|
|
1827
|
+
* @param {string} project
|
|
1828
|
+
* @param {string} location
|
|
1829
|
+
* @param {string} data_store
|
|
1830
|
+
* @returns {string} Resource name string.
|
|
1831
|
+
*/
|
|
1832
|
+
projectLocationDataStoreDocumentProcessingConfigPath(project, location, dataStore) {
|
|
1833
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.render({
|
|
1834
|
+
project: project,
|
|
1835
|
+
location: location,
|
|
1836
|
+
data_store: dataStore,
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* Parse the project from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1841
|
+
*
|
|
1842
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1843
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1844
|
+
* @returns {string} A string representing the project.
|
|
1845
|
+
*/
|
|
1846
|
+
matchProjectFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1847
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).project;
|
|
1848
|
+
}
|
|
1849
|
+
/**
|
|
1850
|
+
* Parse the location from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1851
|
+
*
|
|
1852
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1853
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1854
|
+
* @returns {string} A string representing the location.
|
|
1855
|
+
*/
|
|
1856
|
+
matchLocationFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1857
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).location;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Parse the data_store from ProjectLocationDataStoreDocumentProcessingConfig resource.
|
|
1861
|
+
*
|
|
1862
|
+
* @param {string} projectLocationDataStoreDocumentProcessingConfigName
|
|
1863
|
+
* A fully-qualified path representing project_location_data_store_documentProcessingConfig resource.
|
|
1864
|
+
* @returns {string} A string representing the data_store.
|
|
1865
|
+
*/
|
|
1866
|
+
matchDataStoreFromProjectLocationDataStoreDocumentProcessingConfigName(projectLocationDataStoreDocumentProcessingConfigName) {
|
|
1867
|
+
return this.pathTemplates.projectLocationDataStoreDocumentProcessingConfigPathTemplate.match(projectLocationDataStoreDocumentProcessingConfigName).data_store;
|
|
1868
|
+
}
|
|
1226
1869
|
/**
|
|
1227
1870
|
* Return a fully-qualified projectLocationDataStoreSchema resource name string.
|
|
1228
1871
|
*
|
|
@@ -1337,6 +1980,108 @@ class SearchServiceClient {
|
|
|
1337
1980
|
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
|
1338
1981
|
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
|
1339
1982
|
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
|
1985
|
+
*
|
|
1986
|
+
* @param {string} project
|
|
1987
|
+
* @param {string} location
|
|
1988
|
+
* @param {string} data_store
|
|
1989
|
+
* @returns {string} Resource name string.
|
|
1990
|
+
*/
|
|
1991
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
|
1992
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
|
1993
|
+
project: project,
|
|
1994
|
+
location: location,
|
|
1995
|
+
data_store: dataStore,
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1998
|
+
/**
|
|
1999
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2000
|
+
*
|
|
2001
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2002
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2003
|
+
* @returns {string} A string representing the project.
|
|
2004
|
+
*/
|
|
2005
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2006
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2010
|
+
*
|
|
2011
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2012
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2013
|
+
* @returns {string} A string representing the location.
|
|
2014
|
+
*/
|
|
2015
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2016
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
|
2020
|
+
*
|
|
2021
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
|
2022
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
|
2023
|
+
* @returns {string} A string representing the data_store.
|
|
2024
|
+
*/
|
|
2025
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
|
2026
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
|
2030
|
+
*
|
|
2031
|
+
* @param {string} project
|
|
2032
|
+
* @param {string} location
|
|
2033
|
+
* @param {string} data_store
|
|
2034
|
+
* @param {string} target_site
|
|
2035
|
+
* @returns {string} Resource name string.
|
|
2036
|
+
*/
|
|
2037
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
|
2038
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
|
2039
|
+
project: project,
|
|
2040
|
+
location: location,
|
|
2041
|
+
data_store: dataStore,
|
|
2042
|
+
target_site: targetSite,
|
|
2043
|
+
});
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2047
|
+
*
|
|
2048
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2049
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2050
|
+
* @returns {string} A string representing the project.
|
|
2051
|
+
*/
|
|
2052
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2053
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2057
|
+
*
|
|
2058
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2059
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2060
|
+
* @returns {string} A string representing the location.
|
|
2061
|
+
*/
|
|
2062
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2063
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2067
|
+
*
|
|
2068
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2069
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2070
|
+
* @returns {string} A string representing the data_store.
|
|
2071
|
+
*/
|
|
2072
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2073
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
|
2077
|
+
*
|
|
2078
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
|
2079
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
|
2080
|
+
* @returns {string} A string representing the target_site.
|
|
2081
|
+
*/
|
|
2082
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
|
2083
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
|
2084
|
+
}
|
|
1340
2085
|
/**
|
|
1341
2086
|
* Terminate the gRPC channel and close the client.
|
|
1342
2087
|
*
|