@google-cloud/discoveryengine 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +63 -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/common.proto +0 -5
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversation.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +39 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/document.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/engine_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_service.proto +97 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +147 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +164 -0
- package/build/protos/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +540 -0
- 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 +40 -1
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/data_store_service.proto +306 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +1 -1
- 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 +38 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +26 -3
- package/build/protos/google/cloud/discoveryengine/v1beta/search_service.proto +150 -11
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config.proto +264 -0
- package/build/protos/google/cloud/discoveryengine/v1beta/serving_config_service.proto +147 -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 +42822 -21397
- package/build/protos/protos.js +110509 -61572
- package/build/protos/protos.json +11779 -6752
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +11 -2
- package/build/src/v1/completion_service_client.d.ts +489 -7
- package/build/src/v1/completion_service_client.js +716 -12
- 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 +467 -10
- 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 +507 -10
- 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 +8 -2
- package/build/src/v1/schema_service_client.d.ts +272 -2
- package/build/src/v1/schema_service_client.js +403 -10
- package/build/src/v1/search_service_client.d.ts +515 -11
- package/build/src/v1/search_service_client.js +649 -16
- 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 +403 -10
- package/build/src/v1alpha/completion_service_client.d.ts +230 -2
- package/build/src/v1alpha/completion_service_client.js +339 -10
- package/build/src/v1alpha/conversational_search_service_client.d.ts +247 -2
- package/build/src/v1alpha/conversational_search_service_client.js +339 -10
- package/build/src/v1alpha/data_store_service_client.d.ts +230 -2
- package/build/src/v1alpha/data_store_service_client.js +347 -12
- package/build/src/v1alpha/document_service_client.d.ts +230 -2
- package/build/src/v1alpha/document_service_client.js +347 -12
- package/build/src/v1alpha/engine_service_client.d.ts +231 -3
- package/build/src/v1alpha/engine_service_client.js +347 -12
- package/build/src/v1alpha/index.d.ts +1 -0
- package/build/src/v1alpha/index.js +4 -2
- package/build/src/v1alpha/recommendation_service_client.d.ts +230 -2
- package/build/src/v1alpha/recommendation_service_client.js +339 -10
- package/build/src/v1alpha/schema_service_client.d.ts +230 -2
- package/build/src/v1alpha/schema_service_client.js +347 -12
- package/build/src/v1alpha/search_service_client.d.ts +269 -2
- package/build/src/v1alpha/search_service_client.js +365 -10
- package/build/src/v1alpha/search_tuning_service_client.d.ts +977 -0
- package/build/src/v1alpha/search_tuning_service_client.js +1479 -0
- package/build/src/v1alpha/search_tuning_service_client_config.json +30 -0
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +750 -3
- package/build/src/v1alpha/site_search_engine_service_client.js +838 -14
- package/build/src/v1alpha/site_search_engine_service_client_config.json +44 -0
- package/build/src/v1alpha/user_event_service_client.d.ts +230 -2
- package/build/src/v1alpha/user_event_service_client.js +347 -12
- package/build/src/v1beta/completion_service_client.d.ts +633 -7
- package/build/src/v1beta/completion_service_client.js +912 -12
- package/build/src/v1beta/completion_service_client_config.json +10 -0
- package/build/src/v1beta/conversational_search_service_client.d.ts +341 -3
- package/build/src/v1beta/conversational_search_service_client.js +467 -10
- package/build/src/v1beta/data_store_service_client.d.ts +1433 -0
- package/build/src/v1beta/data_store_service_client.js +1966 -0
- package/build/src/v1beta/data_store_service_client_config.json +46 -0
- package/build/src/v1beta/document_service_client.d.ts +491 -2
- package/build/src/v1beta/document_service_client.js +707 -12
- package/build/src/v1beta/engine_service_client.d.ts +1357 -0
- package/build/src/v1beta/engine_service_client.js +1928 -0
- package/build/src/v1beta/engine_service_client_config.json +46 -0
- package/build/src/v1beta/index.d.ts +4 -0
- package/build/src/v1beta/index.js +10 -2
- package/build/src/v1beta/recommendation_service_client.d.ts +420 -5
- package/build/src/v1beta/recommendation_service_client.js +571 -10
- package/build/src/v1beta/schema_service_client.d.ts +416 -2
- package/build/src/v1beta/schema_service_client.js +603 -12
- package/build/src/v1beta/search_service_client.d.ts +539 -29
- package/build/src/v1beta/search_service_client.js +665 -28
- package/build/src/v1beta/serving_config_service_client.d.ts +1102 -0
- package/build/src/v1beta/serving_config_service_client.js +1563 -0
- package/build/src/v1beta/serving_config_service_client_config.json +38 -0
- package/build/src/v1beta/site_search_engine_service_client.d.ts +1712 -0
- package/build/src/v1beta/site_search_engine_service_client.js +2271 -0
- package/build/src/v1beta/site_search_engine_service_client_config.json +74 -0
- package/build/src/v1beta/user_event_service_client.d.ts +416 -2
- package/build/src/v1beta/user_event_service_client.js +603 -12
- 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.
|
@@ -73,7 +73,7 @@ class EngineServiceClient {
|
|
73
73
|
* ```
|
74
74
|
*/
|
75
75
|
constructor(opts, gaxInstance) {
|
76
|
-
var _a, _b;
|
76
|
+
var _a, _b, _c, _d;
|
77
77
|
this._terminated = false;
|
78
78
|
this.descriptors = {
|
79
79
|
page: {},
|
@@ -83,16 +83,24 @@ class EngineServiceClient {
|
|
83
83
|
};
|
84
84
|
// Ensure that options include all the required fields.
|
85
85
|
const staticMembers = this.constructor;
|
86
|
-
|
86
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
87
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
88
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
89
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
90
|
+
}
|
91
|
+
this._universeDomain =
|
92
|
+
(_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';
|
93
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
94
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
87
95
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
88
96
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
89
|
-
const clientConfig = (
|
90
|
-
const fallback = (
|
97
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
98
|
+
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');
|
91
99
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
92
100
|
// Request numeric enum values if REST transport is used.
|
93
101
|
opts.numericEnums = true;
|
94
102
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
95
|
-
if (servicePath !==
|
103
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
96
104
|
opts['scopes'] = staticMembers.scopes;
|
97
105
|
}
|
98
106
|
// Load google-gax module synchronously if needed
|
@@ -110,9 +118,9 @@ class EngineServiceClient {
|
|
110
118
|
// Set useJWTAccessWithScope on the auth object.
|
111
119
|
this.auth.useJWTAccessWithScope = true;
|
112
120
|
// Set defaultServicePath on the auth object.
|
113
|
-
this.auth.defaultServicePath =
|
121
|
+
this.auth.defaultServicePath = this._servicePath;
|
114
122
|
// Set the default scopes in auth client if needed.
|
115
|
-
if (servicePath ===
|
123
|
+
if (servicePath === this._servicePath) {
|
116
124
|
this.auth.defaultScopes = staticMembers.scopes;
|
117
125
|
}
|
118
126
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -145,10 +153,15 @@ class EngineServiceClient {
|
|
145
153
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
146
154
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
147
155
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
156
|
+
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
157
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
158
|
+
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
148
159
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
149
160
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
150
161
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
151
162
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
163
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
164
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
152
165
|
};
|
153
166
|
// Some of the methods on this service return "paged" results,
|
154
167
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -169,8 +182,11 @@ class EngineServiceClient {
|
|
169
182
|
lroOptions.httpRules = [
|
170
183
|
{
|
171
184
|
selector: 'google.longrunning.Operations.GetOperation',
|
172
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
185
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
173
186
|
additional_bindings: [
|
187
|
+
{
|
188
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
189
|
+
},
|
174
190
|
{
|
175
191
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
176
192
|
},
|
@@ -207,8 +223,11 @@ class EngineServiceClient {
|
|
207
223
|
},
|
208
224
|
{
|
209
225
|
selector: 'google.longrunning.Operations.ListOperations',
|
210
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
226
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
211
227
|
additional_bindings: [
|
228
|
+
{
|
229
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
230
|
+
},
|
212
231
|
{
|
213
232
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
214
233
|
},
|
@@ -323,19 +342,38 @@ class EngineServiceClient {
|
|
323
342
|
}
|
324
343
|
/**
|
325
344
|
* The DNS address for this API service.
|
345
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
326
346
|
* @returns {string} The DNS address for this service.
|
327
347
|
*/
|
328
348
|
static get servicePath() {
|
349
|
+
if (typeof process !== undefined &&
|
350
|
+
typeof process.emitWarning === 'function') {
|
351
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
352
|
+
}
|
329
353
|
return 'discoveryengine.googleapis.com';
|
330
354
|
}
|
331
355
|
/**
|
332
|
-
* The DNS address for this API service - same as servicePath
|
333
|
-
*
|
356
|
+
* The DNS address for this API service - same as servicePath.
|
357
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
334
358
|
* @returns {string} The DNS address for this service.
|
335
359
|
*/
|
336
360
|
static get apiEndpoint() {
|
361
|
+
if (typeof process !== undefined &&
|
362
|
+
typeof process.emitWarning === 'function') {
|
363
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
364
|
+
}
|
337
365
|
return 'discoveryengine.googleapis.com';
|
338
366
|
}
|
367
|
+
/**
|
368
|
+
* The DNS address for this API service.
|
369
|
+
* @returns {string} The DNS address for this service.
|
370
|
+
*/
|
371
|
+
get apiEndpoint() {
|
372
|
+
return this._servicePath;
|
373
|
+
}
|
374
|
+
get universeDomain() {
|
375
|
+
return this._universeDomain;
|
376
|
+
}
|
339
377
|
/**
|
340
378
|
* The port for this API service.
|
341
379
|
* @returns {number} The default port for this service.
|
@@ -1231,6 +1269,201 @@ class EngineServiceClient {
|
|
1231
1269
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1232
1270
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1233
1271
|
}
|
1272
|
+
/**
|
1273
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1274
|
+
*
|
1275
|
+
* @param {string} project
|
1276
|
+
* @param {string} location
|
1277
|
+
* @param {string} collection
|
1278
|
+
* @param {string} data_store
|
1279
|
+
* @returns {string} Resource name string.
|
1280
|
+
*/
|
1281
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1282
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1283
|
+
project: project,
|
1284
|
+
location: location,
|
1285
|
+
collection: collection,
|
1286
|
+
data_store: dataStore,
|
1287
|
+
});
|
1288
|
+
}
|
1289
|
+
/**
|
1290
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1291
|
+
*
|
1292
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1293
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1294
|
+
* @returns {string} A string representing the project.
|
1295
|
+
*/
|
1296
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1297
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1298
|
+
}
|
1299
|
+
/**
|
1300
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1301
|
+
*
|
1302
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1303
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1304
|
+
* @returns {string} A string representing the location.
|
1305
|
+
*/
|
1306
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1307
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1308
|
+
}
|
1309
|
+
/**
|
1310
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1311
|
+
*
|
1312
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1313
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1314
|
+
* @returns {string} A string representing the collection.
|
1315
|
+
*/
|
1316
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1317
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1318
|
+
}
|
1319
|
+
/**
|
1320
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1321
|
+
*
|
1322
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1323
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1324
|
+
* @returns {string} A string representing the data_store.
|
1325
|
+
*/
|
1326
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1327
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1328
|
+
}
|
1329
|
+
/**
|
1330
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1331
|
+
*
|
1332
|
+
* @param {string} project
|
1333
|
+
* @param {string} location
|
1334
|
+
* @param {string} collection
|
1335
|
+
* @param {string} data_store
|
1336
|
+
* @param {string} target_site
|
1337
|
+
* @returns {string} Resource name string.
|
1338
|
+
*/
|
1339
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1340
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1341
|
+
project: project,
|
1342
|
+
location: location,
|
1343
|
+
collection: collection,
|
1344
|
+
data_store: dataStore,
|
1345
|
+
target_site: targetSite,
|
1346
|
+
});
|
1347
|
+
}
|
1348
|
+
/**
|
1349
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1350
|
+
*
|
1351
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1352
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1353
|
+
* @returns {string} A string representing the project.
|
1354
|
+
*/
|
1355
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1356
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1357
|
+
}
|
1358
|
+
/**
|
1359
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1360
|
+
*
|
1361
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1362
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1363
|
+
* @returns {string} A string representing the location.
|
1364
|
+
*/
|
1365
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1366
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1367
|
+
}
|
1368
|
+
/**
|
1369
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1370
|
+
*
|
1371
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1372
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1373
|
+
* @returns {string} A string representing the collection.
|
1374
|
+
*/
|
1375
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1376
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1377
|
+
}
|
1378
|
+
/**
|
1379
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1380
|
+
*
|
1381
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1382
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1383
|
+
* @returns {string} A string representing the data_store.
|
1384
|
+
*/
|
1385
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1386
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1387
|
+
}
|
1388
|
+
/**
|
1389
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1390
|
+
*
|
1391
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1392
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1393
|
+
* @returns {string} A string representing the target_site.
|
1394
|
+
*/
|
1395
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1396
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1397
|
+
}
|
1398
|
+
/**
|
1399
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1400
|
+
*
|
1401
|
+
* @param {string} project
|
1402
|
+
* @param {string} location
|
1403
|
+
* @param {string} collection
|
1404
|
+
* @param {string} engine
|
1405
|
+
* @param {string} conversation
|
1406
|
+
* @returns {string} Resource name string.
|
1407
|
+
*/
|
1408
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1409
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1410
|
+
project: project,
|
1411
|
+
location: location,
|
1412
|
+
collection: collection,
|
1413
|
+
engine: engine,
|
1414
|
+
conversation: conversation,
|
1415
|
+
});
|
1416
|
+
}
|
1417
|
+
/**
|
1418
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1419
|
+
*
|
1420
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1421
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1422
|
+
* @returns {string} A string representing the project.
|
1423
|
+
*/
|
1424
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1425
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1426
|
+
}
|
1427
|
+
/**
|
1428
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1429
|
+
*
|
1430
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1431
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1432
|
+
* @returns {string} A string representing the location.
|
1433
|
+
*/
|
1434
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1435
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1436
|
+
}
|
1437
|
+
/**
|
1438
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1439
|
+
*
|
1440
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1441
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1442
|
+
* @returns {string} A string representing the collection.
|
1443
|
+
*/
|
1444
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1445
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1446
|
+
}
|
1447
|
+
/**
|
1448
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1449
|
+
*
|
1450
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1451
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1452
|
+
* @returns {string} A string representing the engine.
|
1453
|
+
*/
|
1454
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1455
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1456
|
+
}
|
1457
|
+
/**
|
1458
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1459
|
+
*
|
1460
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1461
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1462
|
+
* @returns {string} A string representing the conversation.
|
1463
|
+
*/
|
1464
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1465
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1466
|
+
}
|
1234
1467
|
/**
|
1235
1468
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1236
1469
|
*
|
@@ -1459,6 +1692,108 @@ class EngineServiceClient {
|
|
1459
1692
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1460
1693
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1461
1694
|
}
|
1695
|
+
/**
|
1696
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1697
|
+
*
|
1698
|
+
* @param {string} project
|
1699
|
+
* @param {string} location
|
1700
|
+
* @param {string} data_store
|
1701
|
+
* @returns {string} Resource name string.
|
1702
|
+
*/
|
1703
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1704
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1705
|
+
project: project,
|
1706
|
+
location: location,
|
1707
|
+
data_store: dataStore,
|
1708
|
+
});
|
1709
|
+
}
|
1710
|
+
/**
|
1711
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1712
|
+
*
|
1713
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1714
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1715
|
+
* @returns {string} A string representing the project.
|
1716
|
+
*/
|
1717
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1718
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1719
|
+
}
|
1720
|
+
/**
|
1721
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1722
|
+
*
|
1723
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1724
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1725
|
+
* @returns {string} A string representing the location.
|
1726
|
+
*/
|
1727
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1728
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1729
|
+
}
|
1730
|
+
/**
|
1731
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1732
|
+
*
|
1733
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1734
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1735
|
+
* @returns {string} A string representing the data_store.
|
1736
|
+
*/
|
1737
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1738
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1739
|
+
}
|
1740
|
+
/**
|
1741
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1742
|
+
*
|
1743
|
+
* @param {string} project
|
1744
|
+
* @param {string} location
|
1745
|
+
* @param {string} data_store
|
1746
|
+
* @param {string} target_site
|
1747
|
+
* @returns {string} Resource name string.
|
1748
|
+
*/
|
1749
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1750
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1751
|
+
project: project,
|
1752
|
+
location: location,
|
1753
|
+
data_store: dataStore,
|
1754
|
+
target_site: targetSite,
|
1755
|
+
});
|
1756
|
+
}
|
1757
|
+
/**
|
1758
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1759
|
+
*
|
1760
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1761
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1762
|
+
* @returns {string} A string representing the project.
|
1763
|
+
*/
|
1764
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1765
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1766
|
+
}
|
1767
|
+
/**
|
1768
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1769
|
+
*
|
1770
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1771
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1772
|
+
* @returns {string} A string representing the location.
|
1773
|
+
*/
|
1774
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1775
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1776
|
+
}
|
1777
|
+
/**
|
1778
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1779
|
+
*
|
1780
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1781
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1782
|
+
* @returns {string} A string representing the data_store.
|
1783
|
+
*/
|
1784
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1785
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1786
|
+
}
|
1787
|
+
/**
|
1788
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1789
|
+
*
|
1790
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1791
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1792
|
+
* @returns {string} A string representing the target_site.
|
1793
|
+
*/
|
1794
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1795
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1796
|
+
}
|
1462
1797
|
/**
|
1463
1798
|
* Terminate the gRPC channel and close the client.
|
1464
1799
|
*
|
@@ -6,5 +6,6 @@ export { EngineServiceClient } from './engine_service_client';
|
|
6
6
|
export { RecommendationServiceClient } from './recommendation_service_client';
|
7
7
|
export { SchemaServiceClient } from './schema_service_client';
|
8
8
|
export { SearchServiceClient } from './search_service_client';
|
9
|
+
export { SearchTuningServiceClient } from './search_tuning_service_client';
|
9
10
|
export { SiteSearchEngineServiceClient } from './site_search_engine_service_client';
|
10
11
|
export { UserEventServiceClient } from './user_event_service_client';
|
@@ -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.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
18
18
|
// ** All changes to this file may be overwritten. **
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = void 0;
|
20
|
+
exports.UserEventServiceClient = exports.SiteSearchEngineServiceClient = exports.SearchTuningServiceClient = exports.SearchServiceClient = exports.SchemaServiceClient = exports.RecommendationServiceClient = exports.EngineServiceClient = exports.DocumentServiceClient = exports.DataStoreServiceClient = exports.ConversationalSearchServiceClient = exports.CompletionServiceClient = void 0;
|
21
21
|
var completion_service_client_1 = require("./completion_service_client");
|
22
22
|
Object.defineProperty(exports, "CompletionServiceClient", { enumerable: true, get: function () { return completion_service_client_1.CompletionServiceClient; } });
|
23
23
|
var conversational_search_service_client_1 = require("./conversational_search_service_client");
|
@@ -34,6 +34,8 @@ var schema_service_client_1 = require("./schema_service_client");
|
|
34
34
|
Object.defineProperty(exports, "SchemaServiceClient", { enumerable: true, get: function () { return schema_service_client_1.SchemaServiceClient; } });
|
35
35
|
var search_service_client_1 = require("./search_service_client");
|
36
36
|
Object.defineProperty(exports, "SearchServiceClient", { enumerable: true, get: function () { return search_service_client_1.SearchServiceClient; } });
|
37
|
+
var search_tuning_service_client_1 = require("./search_tuning_service_client");
|
38
|
+
Object.defineProperty(exports, "SearchTuningServiceClient", { enumerable: true, get: function () { return search_tuning_service_client_1.SearchTuningServiceClient; } });
|
37
39
|
var site_search_engine_service_client_1 = require("./site_search_engine_service_client");
|
38
40
|
Object.defineProperty(exports, "SiteSearchEngineServiceClient", { enumerable: true, get: function () { return site_search_engine_service_client_1.SiteSearchEngineServiceClient; } });
|
39
41
|
var user_event_service_client_1 = require("./user_event_service_client");
|