@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 SchemaServiceClient {
|
|
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 SchemaServiceClient {
|
|
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 SchemaServiceClient {
|
|
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 SchemaServiceClient {
|
|
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
|
// Some of the methods on this service return "paged" results,
|
152
165
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
@@ -167,8 +180,11 @@ class SchemaServiceClient {
|
|
167
180
|
lroOptions.httpRules = [
|
168
181
|
{
|
169
182
|
selector: 'google.longrunning.Operations.GetOperation',
|
170
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
183
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
171
184
|
additional_bindings: [
|
185
|
+
{
|
186
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
187
|
+
},
|
172
188
|
{
|
173
189
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
174
190
|
},
|
@@ -205,8 +221,11 @@ class SchemaServiceClient {
|
|
205
221
|
},
|
206
222
|
{
|
207
223
|
selector: 'google.longrunning.Operations.ListOperations',
|
208
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/
|
224
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
209
225
|
additional_bindings: [
|
226
|
+
{
|
227
|
+
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
228
|
+
},
|
210
229
|
{
|
211
230
|
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
212
231
|
},
|
@@ -318,19 +337,38 @@ class SchemaServiceClient {
|
|
318
337
|
}
|
319
338
|
/**
|
320
339
|
* The DNS address for this API service.
|
340
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
321
341
|
* @returns {string} The DNS address for this service.
|
322
342
|
*/
|
323
343
|
static get servicePath() {
|
344
|
+
if (typeof process !== undefined &&
|
345
|
+
typeof process.emitWarning === 'function') {
|
346
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
347
|
+
}
|
324
348
|
return 'discoveryengine.googleapis.com';
|
325
349
|
}
|
326
350
|
/**
|
327
|
-
* The DNS address for this API service - same as servicePath
|
328
|
-
*
|
351
|
+
* The DNS address for this API service - same as servicePath.
|
352
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
329
353
|
* @returns {string} The DNS address for this service.
|
330
354
|
*/
|
331
355
|
static get apiEndpoint() {
|
356
|
+
if (typeof process !== undefined &&
|
357
|
+
typeof process.emitWarning === 'function') {
|
358
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
359
|
+
}
|
332
360
|
return 'discoveryengine.googleapis.com';
|
333
361
|
}
|
362
|
+
/**
|
363
|
+
* The DNS address for this API service.
|
364
|
+
* @returns {string} The DNS address for this service.
|
365
|
+
*/
|
366
|
+
get apiEndpoint() {
|
367
|
+
return this._servicePath;
|
368
|
+
}
|
369
|
+
get universeDomain() {
|
370
|
+
return this._universeDomain;
|
371
|
+
}
|
334
372
|
/**
|
335
373
|
* The port for this API service.
|
336
374
|
* @returns {number} The default port for this service.
|
@@ -1135,6 +1173,201 @@ class SchemaServiceClient {
|
|
1135
1173
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1136
1174
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1137
1175
|
}
|
1176
|
+
/**
|
1177
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngine resource name string.
|
1178
|
+
*
|
1179
|
+
* @param {string} project
|
1180
|
+
* @param {string} location
|
1181
|
+
* @param {string} collection
|
1182
|
+
* @param {string} data_store
|
1183
|
+
* @returns {string} Resource name string.
|
1184
|
+
*/
|
1185
|
+
projectLocationCollectionDataStoreSiteSearchEnginePath(project, location, collection, dataStore) {
|
1186
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.render({
|
1187
|
+
project: project,
|
1188
|
+
location: location,
|
1189
|
+
collection: collection,
|
1190
|
+
data_store: dataStore,
|
1191
|
+
});
|
1192
|
+
}
|
1193
|
+
/**
|
1194
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1195
|
+
*
|
1196
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1197
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1198
|
+
* @returns {string} A string representing the project.
|
1199
|
+
*/
|
1200
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1201
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).project;
|
1202
|
+
}
|
1203
|
+
/**
|
1204
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1205
|
+
*
|
1206
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1207
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1208
|
+
* @returns {string} A string representing the location.
|
1209
|
+
*/
|
1210
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1211
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).location;
|
1212
|
+
}
|
1213
|
+
/**
|
1214
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1215
|
+
*
|
1216
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1217
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1218
|
+
* @returns {string} A string representing the collection.
|
1219
|
+
*/
|
1220
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1221
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).collection;
|
1222
|
+
}
|
1223
|
+
/**
|
1224
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngine resource.
|
1225
|
+
*
|
1226
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineName
|
1227
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine resource.
|
1228
|
+
* @returns {string} A string representing the data_store.
|
1229
|
+
*/
|
1230
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1231
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1232
|
+
}
|
1233
|
+
/**
|
1234
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1235
|
+
*
|
1236
|
+
* @param {string} project
|
1237
|
+
* @param {string} location
|
1238
|
+
* @param {string} collection
|
1239
|
+
* @param {string} data_store
|
1240
|
+
* @param {string} target_site
|
1241
|
+
* @returns {string} Resource name string.
|
1242
|
+
*/
|
1243
|
+
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePath(project, location, collection, dataStore, targetSite) {
|
1244
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1245
|
+
project: project,
|
1246
|
+
location: location,
|
1247
|
+
collection: collection,
|
1248
|
+
data_store: dataStore,
|
1249
|
+
target_site: targetSite,
|
1250
|
+
});
|
1251
|
+
}
|
1252
|
+
/**
|
1253
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1254
|
+
*
|
1255
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1256
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1257
|
+
* @returns {string} A string representing the project.
|
1258
|
+
*/
|
1259
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1260
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).project;
|
1261
|
+
}
|
1262
|
+
/**
|
1263
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1264
|
+
*
|
1265
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1266
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1267
|
+
* @returns {string} A string representing the location.
|
1268
|
+
*/
|
1269
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1270
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).location;
|
1271
|
+
}
|
1272
|
+
/**
|
1273
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1274
|
+
*
|
1275
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1276
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1277
|
+
* @returns {string} A string representing the collection.
|
1278
|
+
*/
|
1279
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1280
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).collection;
|
1281
|
+
}
|
1282
|
+
/**
|
1283
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1284
|
+
*
|
1285
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1286
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1287
|
+
* @returns {string} A string representing the data_store.
|
1288
|
+
*/
|
1289
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1290
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1291
|
+
}
|
1292
|
+
/**
|
1293
|
+
* Parse the target_site from ProjectLocationCollectionDataStoreSiteSearchEngineTargetSite resource.
|
1294
|
+
*
|
1295
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName
|
1296
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_target_site resource.
|
1297
|
+
* @returns {string} A string representing the target_site.
|
1298
|
+
*/
|
1299
|
+
matchTargetSiteFromProjectLocationCollectionDataStoreSiteSearchEngineTargetSiteName(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName) {
|
1300
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1301
|
+
}
|
1302
|
+
/**
|
1303
|
+
* Return a fully-qualified projectLocationCollectionEngineConversation resource name string.
|
1304
|
+
*
|
1305
|
+
* @param {string} project
|
1306
|
+
* @param {string} location
|
1307
|
+
* @param {string} collection
|
1308
|
+
* @param {string} engine
|
1309
|
+
* @param {string} conversation
|
1310
|
+
* @returns {string} Resource name string.
|
1311
|
+
*/
|
1312
|
+
projectLocationCollectionEngineConversationPath(project, location, collection, engine, conversation) {
|
1313
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.render({
|
1314
|
+
project: project,
|
1315
|
+
location: location,
|
1316
|
+
collection: collection,
|
1317
|
+
engine: engine,
|
1318
|
+
conversation: conversation,
|
1319
|
+
});
|
1320
|
+
}
|
1321
|
+
/**
|
1322
|
+
* Parse the project from ProjectLocationCollectionEngineConversation resource.
|
1323
|
+
*
|
1324
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1325
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1326
|
+
* @returns {string} A string representing the project.
|
1327
|
+
*/
|
1328
|
+
matchProjectFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1329
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).project;
|
1330
|
+
}
|
1331
|
+
/**
|
1332
|
+
* Parse the location from ProjectLocationCollectionEngineConversation resource.
|
1333
|
+
*
|
1334
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1335
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1336
|
+
* @returns {string} A string representing the location.
|
1337
|
+
*/
|
1338
|
+
matchLocationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1339
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).location;
|
1340
|
+
}
|
1341
|
+
/**
|
1342
|
+
* Parse the collection from ProjectLocationCollectionEngineConversation resource.
|
1343
|
+
*
|
1344
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1345
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1346
|
+
* @returns {string} A string representing the collection.
|
1347
|
+
*/
|
1348
|
+
matchCollectionFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1349
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).collection;
|
1350
|
+
}
|
1351
|
+
/**
|
1352
|
+
* Parse the engine from ProjectLocationCollectionEngineConversation resource.
|
1353
|
+
*
|
1354
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1355
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1356
|
+
* @returns {string} A string representing the engine.
|
1357
|
+
*/
|
1358
|
+
matchEngineFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1359
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).engine;
|
1360
|
+
}
|
1361
|
+
/**
|
1362
|
+
* Parse the conversation from ProjectLocationCollectionEngineConversation resource.
|
1363
|
+
*
|
1364
|
+
* @param {string} projectLocationCollectionEngineConversationName
|
1365
|
+
* A fully-qualified path representing project_location_collection_engine_conversation resource.
|
1366
|
+
* @returns {string} A string representing the conversation.
|
1367
|
+
*/
|
1368
|
+
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1369
|
+
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1370
|
+
}
|
1138
1371
|
/**
|
1139
1372
|
* Return a fully-qualified projectLocationDataStore resource name string.
|
1140
1373
|
*
|
@@ -1363,6 +1596,108 @@ class SchemaServiceClient {
|
|
1363
1596
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
1364
1597
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
1365
1598
|
}
|
1599
|
+
/**
|
1600
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngine resource name string.
|
1601
|
+
*
|
1602
|
+
* @param {string} project
|
1603
|
+
* @param {string} location
|
1604
|
+
* @param {string} data_store
|
1605
|
+
* @returns {string} Resource name string.
|
1606
|
+
*/
|
1607
|
+
projectLocationDataStoreSiteSearchEnginePath(project, location, dataStore) {
|
1608
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.render({
|
1609
|
+
project: project,
|
1610
|
+
location: location,
|
1611
|
+
data_store: dataStore,
|
1612
|
+
});
|
1613
|
+
}
|
1614
|
+
/**
|
1615
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngine resource.
|
1616
|
+
*
|
1617
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1618
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1619
|
+
* @returns {string} A string representing the project.
|
1620
|
+
*/
|
1621
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1622
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).project;
|
1623
|
+
}
|
1624
|
+
/**
|
1625
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngine resource.
|
1626
|
+
*
|
1627
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1628
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1629
|
+
* @returns {string} A string representing the location.
|
1630
|
+
*/
|
1631
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1632
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).location;
|
1633
|
+
}
|
1634
|
+
/**
|
1635
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngine resource.
|
1636
|
+
*
|
1637
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineName
|
1638
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine resource.
|
1639
|
+
* @returns {string} A string representing the data_store.
|
1640
|
+
*/
|
1641
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
1642
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
1643
|
+
}
|
1644
|
+
/**
|
1645
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
1646
|
+
*
|
1647
|
+
* @param {string} project
|
1648
|
+
* @param {string} location
|
1649
|
+
* @param {string} data_store
|
1650
|
+
* @param {string} target_site
|
1651
|
+
* @returns {string} Resource name string.
|
1652
|
+
*/
|
1653
|
+
projectLocationDataStoreSiteSearchEngineTargetSitePath(project, location, dataStore, targetSite) {
|
1654
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.render({
|
1655
|
+
project: project,
|
1656
|
+
location: location,
|
1657
|
+
data_store: dataStore,
|
1658
|
+
target_site: targetSite,
|
1659
|
+
});
|
1660
|
+
}
|
1661
|
+
/**
|
1662
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1663
|
+
*
|
1664
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1665
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1666
|
+
* @returns {string} A string representing the project.
|
1667
|
+
*/
|
1668
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1669
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).project;
|
1670
|
+
}
|
1671
|
+
/**
|
1672
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1673
|
+
*
|
1674
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1675
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1676
|
+
* @returns {string} A string representing the location.
|
1677
|
+
*/
|
1678
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1679
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).location;
|
1680
|
+
}
|
1681
|
+
/**
|
1682
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1683
|
+
*
|
1684
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1685
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1686
|
+
* @returns {string} A string representing the data_store.
|
1687
|
+
*/
|
1688
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1689
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).data_store;
|
1690
|
+
}
|
1691
|
+
/**
|
1692
|
+
* Parse the target_site from ProjectLocationDataStoreSiteSearchEngineTargetSite resource.
|
1693
|
+
*
|
1694
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineTargetSiteName
|
1695
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_target_site resource.
|
1696
|
+
* @returns {string} A string representing the target_site.
|
1697
|
+
*/
|
1698
|
+
matchTargetSiteFromProjectLocationDataStoreSiteSearchEngineTargetSiteName(projectLocationDataStoreSiteSearchEngineTargetSiteName) {
|
1699
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate.match(projectLocationDataStoreSiteSearchEngineTargetSiteName).target_site;
|
1700
|
+
}
|
1366
1701
|
/**
|
1367
1702
|
* Terminate the gRPC channel and close the client.
|
1368
1703
|
*
|