@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.
|
@@ -74,7 +74,7 @@ class DocumentServiceClient {
|
|
74
74
|
* ```
|
75
75
|
*/
|
76
76
|
constructor(opts, gaxInstance) {
|
77
|
-
var _a, _b;
|
77
|
+
var _a, _b, _c, _d;
|
78
78
|
this._terminated = false;
|
79
79
|
this.descriptors = {
|
80
80
|
page: {},
|
@@ -84,16 +84,24 @@ class DocumentServiceClient {
|
|
84
84
|
};
|
85
85
|
// Ensure that options include all the required fields.
|
86
86
|
const staticMembers = this.constructor;
|
87
|
-
|
87
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
88
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
89
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
90
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
91
|
+
}
|
92
|
+
this._universeDomain =
|
93
|
+
(_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';
|
94
|
+
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
95
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
88
96
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
89
97
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
90
|
-
const clientConfig = (
|
91
|
-
const fallback = (
|
98
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
99
|
+
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');
|
92
100
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
93
101
|
// Request numeric enum values if REST transport is used.
|
94
102
|
opts.numericEnums = true;
|
95
103
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
96
|
-
if (servicePath !==
|
104
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
97
105
|
opts['scopes'] = staticMembers.scopes;
|
98
106
|
}
|
99
107
|
// Load google-gax module synchronously if needed
|
@@ -111,9 +119,9 @@ class DocumentServiceClient {
|
|
111
119
|
// Set useJWTAccessWithScope on the auth object.
|
112
120
|
this.auth.useJWTAccessWithScope = true;
|
113
121
|
// Set defaultServicePath on the auth object.
|
114
|
-
this.auth.defaultServicePath =
|
122
|
+
this.auth.defaultServicePath = this._servicePath;
|
115
123
|
// Set the default scopes in auth client if needed.
|
116
|
-
if (servicePath ===
|
124
|
+
if (servicePath === this._servicePath) {
|
117
125
|
this.auth.defaultScopes = staticMembers.scopes;
|
118
126
|
}
|
119
127
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
@@ -146,11 +154,16 @@ class DocumentServiceClient {
|
|
146
154
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
147
155
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
148
156
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
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}'),
|
149
160
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
150
161
|
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
|
151
162
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
152
163
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
153
164
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
165
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
166
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
154
167
|
};
|
155
168
|
// Some of the methods on this service return "paged" results,
|
156
169
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -171,8 +184,11 @@ class DocumentServiceClient {
|
|
171
184
|
lroOptions.httpRules = [
|
172
185
|
{
|
173
186
|
selector: 'google.longrunning.Operations.GetOperation',
|
174
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
187
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
175
188
|
additional_bindings: [
|
189
|
+
{
|
190
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
191
|
+
},
|
176
192
|
{
|
177
193
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
178
194
|
},
|
@@ -209,8 +225,11 @@ class DocumentServiceClient {
|
|
209
225
|
},
|
210
226
|
{
|
211
227
|
selector: 'google.longrunning.Operations.ListOperations',
|
212
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
228
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
213
229
|
additional_bindings: [
|
230
|
+
{
|
231
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
232
|
+
},
|
214
233
|
{
|
215
234
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
216
235
|
},
|
@@ -321,19 +340,38 @@ class DocumentServiceClient {
|
|
321
340
|
}
|
322
341
|
/**
|
323
342
|
* The DNS address for this API service.
|
343
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
324
344
|
* @returns {string} The DNS address for this service.
|
325
345
|
*/
|
326
346
|
static get servicePath() {
|
347
|
+
if (typeof process !== undefined &&
|
348
|
+
typeof process.emitWarning === 'function') {
|
349
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
350
|
+
}
|
327
351
|
return 'discoveryengine.googleapis.com';
|
328
352
|
}
|
329
353
|
/**
|
330
|
-
* The DNS address for this API service - same as servicePath
|
331
|
-
*
|
354
|
+
* The DNS address for this API service - same as servicePath.
|
355
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
332
356
|
* @returns {string} The DNS address for this service.
|
333
357
|
*/
|
334
358
|
static get apiEndpoint() {
|
359
|
+
if (typeof process !== undefined &&
|
360
|
+
typeof process.emitWarning === 'function') {
|
361
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
362
|
+
}
|
335
363
|
return 'discoveryengine.googleapis.com';
|
336
364
|
}
|
365
|
+
/**
|
366
|
+
* The DNS address for this API service.
|
367
|
+
* @returns {string} The DNS address for this service.
|
368
|
+
*/
|
369
|
+
get apiEndpoint() {
|
370
|
+
return this._servicePath;
|
371
|
+
}
|
372
|
+
get universeDomain() {
|
373
|
+
return this._universeDomain;
|
374
|
+
}
|
337
375
|
/**
|
338
376
|
* The port for this API service.
|
339
377
|
* @returns {number} The default port for this service.
|
@@ -1248,6 +1286,201 @@ class DocumentServiceClient {
|
|
1248
1286
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1249
1287
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1250
1288
|
}
|
1289
|
+
/**
|
1290
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1291
|
+
*
|
1292
|
+
* @param {string} project
|
1293
|
+
* @param {string} location
|
1294
|
+
* @param {string} collection
|
1295
|
+
* @param {string} data_store
|
1296
|
+
* @returns {string} Resource name string.
|
1297
|
+
*/
|
1298
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1299
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1300
|
+
project: project,
|
1301
|
+
location: location,
|
1302
|
+
collection: collection,
|
1303
|
+
data_store: dataStore,
|
1304
|
+
});
|
1305
|
+
}
|
1306
|
+
/**
|
1307
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1308
|
+
*
|
1309
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1310
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1311
|
+
* @returns {string} A string representing the project.
|
1312
|
+
*/
|
1313
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1314
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1315
|
+
}
|
1316
|
+
/**
|
1317
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1318
|
+
*
|
1319
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1320
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1321
|
+
* @returns {string} A string representing the location.
|
1322
|
+
*/
|
1323
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1324
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1325
|
+
}
|
1326
|
+
/**
|
1327
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1328
|
+
*
|
1329
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1330
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1331
|
+
* @returns {string} A string representing the collection.
|
1332
|
+
*/
|
1333
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1334
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1335
|
+
}
|
1336
|
+
/**
|
1337
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1338
|
+
*
|
1339
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1340
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1341
|
+
* @returns {string} A string representing the data_store.
|
1342
|
+
*/
|
1343
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1344
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1345
|
+
}
|
1346
|
+
/**
|
1347
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1348
|
+
*
|
1349
|
+
* @param {string} project
|
1350
|
+
* @param {string} location
|
1351
|
+
* @param {string} collection
|
1352
|
+
* @param {string} data_store
|
1353
|
+
* @param {string} target_site
|
1354
|
+
* @returns {string} Resource name string.
|
1355
|
+
*/
|
1356
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1357
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1358
|
+
project: project,
|
1359
|
+
location: location,
|
1360
|
+
collection: collection,
|
1361
|
+
data_store: dataStore,
|
1362
|
+
target_site: targetSite,
|
1363
|
+
});
|
1364
|
+
}
|
1365
|
+
/**
|
1366
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1367
|
+
*
|
1368
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1369
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1370
|
+
* @returns {string} A string representing the project.
|
1371
|
+
*/
|
1372
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1373
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1374
|
+
}
|
1375
|
+
/**
|
1376
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1377
|
+
*
|
1378
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1379
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1380
|
+
* @returns {string} A string representing the location.
|
1381
|
+
*/
|
1382
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1383
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1384
|
+
}
|
1385
|
+
/**
|
1386
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1387
|
+
*
|
1388
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1389
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1390
|
+
* @returns {string} A string representing the collection.
|
1391
|
+
*/
|
1392
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1393
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1394
|
+
}
|
1395
|
+
/**
|
1396
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1397
|
+
*
|
1398
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1399
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1400
|
+
* @returns {string} A string representing the data_store.
|
1401
|
+
*/
|
1402
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1403
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1404
|
+
}
|
1405
|
+
/**
|
1406
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1407
|
+
*
|
1408
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1409
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1410
|
+
* @returns {string} A string representing the target_site.
|
1411
|
+
*/
|
1412
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1413
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1414
|
+
}
|
1415
|
+
/**
|
1416
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1417
|
+
*
|
1418
|
+
* @param {string} project
|
1419
|
+
* @param {string} location
|
1420
|
+
* @param {string} collection
|
1421
|
+
* @param {string} engine
|
1422
|
+
* @param {string} conversation
|
1423
|
+
* @returns {string} Resource name string.
|
1424
|
+
*/
|
1425
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1426
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1427
|
+
project: project,
|
1428
|
+
location: location,
|
1429
|
+
collection: collection,
|
1430
|
+
engine: engine,
|
1431
|
+
conversation: conversation,
|
1432
|
+
});
|
1433
|
+
}
|
1434
|
+
/**
|
1435
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1436
|
+
*
|
1437
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1438
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1439
|
+
* @returns {string} A string representing the project.
|
1440
|
+
*/
|
1441
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1442
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1443
|
+
}
|
1444
|
+
/**
|
1445
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1446
|
+
*
|
1447
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1448
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1449
|
+
* @returns {string} A string representing the location.
|
1450
|
+
*/
|
1451
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1452
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1453
|
+
}
|
1454
|
+
/**
|
1455
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1456
|
+
*
|
1457
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1458
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1459
|
+
* @returns {string} A string representing the collection.
|
1460
|
+
*/
|
1461
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1462
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1463
|
+
}
|
1464
|
+
/**
|
1465
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1466
|
+
*
|
1467
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1468
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1469
|
+
* @returns {string} A string representing the engine.
|
1470
|
+
*/
|
1471
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1472
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1473
|
+
}
|
1474
|
+
/**
|
1475
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1476
|
+
*
|
1477
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1478
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1479
|
+
* @returns {string} A string representing the conversation.
|
1480
|
+
*/
|
1481
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1482
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1483
|
+
}
|
1251
1484
|
/**
|
1252
1485
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1253
1486
|
*
|
@@ -1533,6 +1766,108 @@ class DocumentServiceClient {
|
|
1533
1766
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1534
1767
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1535
1768
|
}
|
1769
|
+
/**
|
1770
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1771
|
+
*
|
1772
|
+
* @param {string} project
|
1773
|
+
* @param {string} location
|
1774
|
+
* @param {string} data_store
|
1775
|
+
* @returns {string} Resource name string.
|
1776
|
+
*/
|
1777
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1778
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1779
|
+
project: project,
|
1780
|
+
location: location,
|
1781
|
+
data_store: dataStore,
|
1782
|
+
});
|
1783
|
+
}
|
1784
|
+
/**
|
1785
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1786
|
+
*
|
1787
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1788
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1789
|
+
* @returns {string} A string representing the project.
|
1790
|
+
*/
|
1791
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1792
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1793
|
+
}
|
1794
|
+
/**
|
1795
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1796
|
+
*
|
1797
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1798
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1799
|
+
* @returns {string} A string representing the location.
|
1800
|
+
*/
|
1801
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1802
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1803
|
+
}
|
1804
|
+
/**
|
1805
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1806
|
+
*
|
1807
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1808
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1809
|
+
* @returns {string} A string representing the data_store.
|
1810
|
+
*/
|
1811
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1812
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1813
|
+
}
|
1814
|
+
/**
|
1815
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1816
|
+
*
|
1817
|
+
* @param {string} project
|
1818
|
+
* @param {string} location
|
1819
|
+
* @param {string} data_store
|
1820
|
+
* @param {string} target_site
|
1821
|
+
* @returns {string} Resource name string.
|
1822
|
+
*/
|
1823
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1824
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1825
|
+
project: project,
|
1826
|
+
location: location,
|
1827
|
+
data_store: dataStore,
|
1828
|
+
target_site: targetSite,
|
1829
|
+
});
|
1830
|
+
}
|
1831
|
+
/**
|
1832
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1833
|
+
*
|
1834
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1835
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1836
|
+
* @returns {string} A string representing the project.
|
1837
|
+
*/
|
1838
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1839
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1840
|
+
}
|
1841
|
+
/**
|
1842
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1843
|
+
*
|
1844
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1845
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1846
|
+
* @returns {string} A string representing the location.
|
1847
|
+
*/
|
1848
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1849
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1850
|
+
}
|
1851
|
+
/**
|
1852
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1853
|
+
*
|
1854
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1855
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1856
|
+
* @returns {string} A string representing the data_store.
|
1857
|
+
*/
|
1858
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1859
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1860
|
+
}
|
1861
|
+
/**
|
1862
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1863
|
+
*
|
1864
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1865
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1866
|
+
* @returns {string} A string representing the target_site.
|
1867
|
+
*/
|
1868
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1869
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1870
|
+
}
|
1536
1871
|
/**
|
1537
1872
|
* Terminate the gRPC channel and close the client.
|
1538
1873
|
*
|