@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.
|
@@ -72,7 +72,7 @@ class UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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);
|
@@ -143,10 +151,15 @@ class UserEventServiceClient {
|
|
143
151
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
144
152
|
projectLocationCollectionDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}'),
|
145
153
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
154
|
+
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
155
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
156
|
+
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
146
157
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
147
158
|
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
148
159
|
projectLocationDataStoreConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}'),
|
149
160
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
161
|
+
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
162
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
150
163
|
};
|
151
164
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
152
165
|
// This API contains "long-running operations", which return a
|
@@ -161,8 +174,11 @@ class UserEventServiceClient {
|
|
161
174
|
lroOptions.httpRules = [
|
162
175
|
{
|
163
176
|
selector: 'google.longrunning.Operations.GetOperation',
|
164
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
177
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
165
178
|
additional_bindings: [
|
179
|
+
{
|
180
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
181
|
+
},
|
166
182
|
{
|
167
183
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
168
184
|
},
|
@@ -199,8 +215,11 @@ class UserEventServiceClient {
|
|
199
215
|
},
|
200
216
|
{
|
201
217
|
selector: 'google.longrunning.Operations.ListOperations',
|
202
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
218
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
203
219
|
additional_bindings: [
|
220
|
+
{
|
221
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
222
|
+
},
|
204
223
|
{
|
205
224
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
206
225
|
},
|
@@ -306,19 +325,38 @@ class UserEventServiceClient {
|
|
306
325
|
}
|
307
326
|
/**
|
308
327
|
* The DNS address for this API service.
|
328
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
309
329
|
* @returns {string} The DNS address for this service.
|
310
330
|
*/
|
311
331
|
static get servicePath() {
|
332
|
+
if (typeof process !== undefined &&
|
333
|
+
typeof process.emitWarning === 'function') {
|
334
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
335
|
+
}
|
312
336
|
return 'discoveryengine.googleapis.com';
|
313
337
|
}
|
314
338
|
/**
|
315
|
-
* The DNS address for this API service - same as servicePath
|
316
|
-
*
|
339
|
+
* The DNS address for this API service - same as servicePath.
|
340
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
317
341
|
* @returns {string} The DNS address for this service.
|
318
342
|
*/
|
319
343
|
static get apiEndpoint() {
|
344
|
+
if (typeof process !== undefined &&
|
345
|
+
typeof process.emitWarning === 'function') {
|
346
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
347
|
+
}
|
320
348
|
return 'discoveryengine.googleapis.com';
|
321
349
|
}
|
350
|
+
/**
|
351
|
+
* The DNS address for this API service.
|
352
|
+
* @returns {string} The DNS address for this service.
|
353
|
+
*/
|
354
|
+
get apiEndpoint() {
|
355
|
+
return this._servicePath;
|
356
|
+
}
|
357
|
+
get universeDomain() {
|
358
|
+
return this._universeDomain;
|
359
|
+
}
|
322
360
|
/**
|
323
361
|
* The port for this API service.
|
324
362
|
* @returns {number} The default port for this service.
|
@@ -982,6 +1020,201 @@ class UserEventServiceClient {
|
|
982
1020
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
983
1021
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
984
1022
|
}
|
1023
|
+
/**
|
1024
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1025
|
+
*
|
1026
|
+
* @param {string} project
|
1027
|
+
* @param {string} location
|
1028
|
+
* @param {string} collection
|
1029
|
+
* @param {string} data_store
|
1030
|
+
* @returns {string} Resource name string.
|
1031
|
+
*/
|
1032
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1033
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1034
|
+
project: project,
|
1035
|
+
location: location,
|
1036
|
+
collection: collection,
|
1037
|
+
data_store: dataStore,
|
1038
|
+
});
|
1039
|
+
}
|
1040
|
+
/**
|
1041
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1042
|
+
*
|
1043
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1044
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1045
|
+
* @returns {string} A string representing the project.
|
1046
|
+
*/
|
1047
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1048
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1049
|
+
}
|
1050
|
+
/**
|
1051
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1052
|
+
*
|
1053
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1054
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1055
|
+
* @returns {string} A string representing the location.
|
1056
|
+
*/
|
1057
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1058
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1059
|
+
}
|
1060
|
+
/**
|
1061
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1062
|
+
*
|
1063
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1064
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1065
|
+
* @returns {string} A string representing the collection.
|
1066
|
+
*/
|
1067
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1068
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1069
|
+
}
|
1070
|
+
/**
|
1071
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1072
|
+
*
|
1073
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1074
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1075
|
+
* @returns {string} A string representing the data_store.
|
1076
|
+
*/
|
1077
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1078
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1079
|
+
}
|
1080
|
+
/**
|
1081
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1082
|
+
*
|
1083
|
+
* @param {string} project
|
1084
|
+
* @param {string} location
|
1085
|
+
* @param {string} collection
|
1086
|
+
* @param {string} data_store
|
1087
|
+
* @param {string} target_site
|
1088
|
+
* @returns {string} Resource name string.
|
1089
|
+
*/
|
1090
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1091
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1092
|
+
project: project,
|
1093
|
+
location: location,
|
1094
|
+
collection: collection,
|
1095
|
+
data_store: dataStore,
|
1096
|
+
target_site: targetSite,
|
1097
|
+
});
|
1098
|
+
}
|
1099
|
+
/**
|
1100
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1101
|
+
*
|
1102
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1103
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1104
|
+
* @returns {string} A string representing the project.
|
1105
|
+
*/
|
1106
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1107
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1108
|
+
}
|
1109
|
+
/**
|
1110
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1111
|
+
*
|
1112
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1113
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1114
|
+
* @returns {string} A string representing the location.
|
1115
|
+
*/
|
1116
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1117
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1118
|
+
}
|
1119
|
+
/**
|
1120
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1121
|
+
*
|
1122
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1123
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1124
|
+
* @returns {string} A string representing the collection.
|
1125
|
+
*/
|
1126
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1127
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1128
|
+
}
|
1129
|
+
/**
|
1130
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1131
|
+
*
|
1132
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1133
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1134
|
+
* @returns {string} A string representing the data_store.
|
1135
|
+
*/
|
1136
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1137
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1138
|
+
}
|
1139
|
+
/**
|
1140
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1141
|
+
*
|
1142
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1143
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1144
|
+
* @returns {string} A string representing the target_site.
|
1145
|
+
*/
|
1146
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1147
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1148
|
+
}
|
1149
|
+
/**
|
1150
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1151
|
+
*
|
1152
|
+
* @param {string} project
|
1153
|
+
* @param {string} location
|
1154
|
+
* @param {string} collection
|
1155
|
+
* @param {string} engine
|
1156
|
+
* @param {string} conversation
|
1157
|
+
* @returns {string} Resource name string.
|
1158
|
+
*/
|
1159
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1160
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1161
|
+
project: project,
|
1162
|
+
location: location,
|
1163
|
+
collection: collection,
|
1164
|
+
engine: engine,
|
1165
|
+
conversation: conversation,
|
1166
|
+
});
|
1167
|
+
}
|
1168
|
+
/**
|
1169
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1170
|
+
*
|
1171
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1172
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1173
|
+
* @returns {string} A string representing the project.
|
1174
|
+
*/
|
1175
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1176
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1177
|
+
}
|
1178
|
+
/**
|
1179
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1180
|
+
*
|
1181
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1182
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1183
|
+
* @returns {string} A string representing the location.
|
1184
|
+
*/
|
1185
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1186
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1187
|
+
}
|
1188
|
+
/**
|
1189
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1190
|
+
*
|
1191
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1192
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1193
|
+
* @returns {string} A string representing the collection.
|
1194
|
+
*/
|
1195
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1196
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1197
|
+
}
|
1198
|
+
/**
|
1199
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1200
|
+
*
|
1201
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1202
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1203
|
+
* @returns {string} A string representing the engine.
|
1204
|
+
*/
|
1205
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1206
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1207
|
+
}
|
1208
|
+
/**
|
1209
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1210
|
+
*
|
1211
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1212
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1213
|
+
* @returns {string} A string representing the conversation.
|
1214
|
+
*/
|
1215
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1216
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1217
|
+
}
|
985
1218
|
/**
|
986
1219
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
987
1220
|
*
|
@@ -1210,6 +1443,108 @@ class UserEventServiceClient {
|
|
1210
1443
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1211
1444
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1212
1445
|
}
|
1446
|
+
/**
|
1447
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1448
|
+
*
|
1449
|
+
* @param {string} project
|
1450
|
+
* @param {string} location
|
1451
|
+
* @param {string} data_store
|
1452
|
+
* @returns {string} Resource name string.
|
1453
|
+
*/
|
1454
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1455
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1456
|
+
project: project,
|
1457
|
+
location: location,
|
1458
|
+
data_store: dataStore,
|
1459
|
+
});
|
1460
|
+
}
|
1461
|
+
/**
|
1462
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1463
|
+
*
|
1464
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1465
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1466
|
+
* @returns {string} A string representing the project.
|
1467
|
+
*/
|
1468
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1469
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1470
|
+
}
|
1471
|
+
/**
|
1472
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1473
|
+
*
|
1474
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1475
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1476
|
+
* @returns {string} A string representing the location.
|
1477
|
+
*/
|
1478
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1479
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1480
|
+
}
|
1481
|
+
/**
|
1482
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1483
|
+
*
|
1484
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1485
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1486
|
+
* @returns {string} A string representing the data_store.
|
1487
|
+
*/
|
1488
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1489
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1490
|
+
}
|
1491
|
+
/**
|
1492
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1493
|
+
*
|
1494
|
+
* @param {string} project
|
1495
|
+
* @param {string} location
|
1496
|
+
* @param {string} data_store
|
1497
|
+
* @param {string} target_site
|
1498
|
+
* @returns {string} Resource name string.
|
1499
|
+
*/
|
1500
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1501
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1502
|
+
project: project,
|
1503
|
+
location: location,
|
1504
|
+
data_store: dataStore,
|
1505
|
+
target_site: targetSite,
|
1506
|
+
});
|
1507
|
+
}
|
1508
|
+
/**
|
1509
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1510
|
+
*
|
1511
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1512
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1513
|
+
* @returns {string} A string representing the project.
|
1514
|
+
*/
|
1515
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1516
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1517
|
+
}
|
1518
|
+
/**
|
1519
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1520
|
+
*
|
1521
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1522
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1523
|
+
* @returns {string} A string representing the location.
|
1524
|
+
*/
|
1525
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1526
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1527
|
+
}
|
1528
|
+
/**
|
1529
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1530
|
+
*
|
1531
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1532
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1533
|
+
* @returns {string} A string representing the data_store.
|
1534
|
+
*/
|
1535
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1536
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1537
|
+
}
|
1538
|
+
/**
|
1539
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1540
|
+
*
|
1541
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1542
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1543
|
+
* @returns {string} A string representing the target_site.
|
1544
|
+
*/
|
1545
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1546
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1547
|
+
}
|
1213
1548
|
/**
|
1214
1549
|
* Terminate the gRPC channel and close the client.
|
1215
1550
|
*
|