@google-cloud/discoveryengine 2.0.1 → 2.2.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 +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +2 -1
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +35 -6
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +113 -2
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +168 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +23 -4
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +7 -2
- package/build/protos/google/cloud/discoveryengine/v1/document_service.proto +1 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +16 -3
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +70 -9
- package/build/protos/google/cloud/discoveryengine/v1/import_config.proto +20 -1
- package/build/protos/google/cloud/discoveryengine/v1/purge_config.proto +9 -5
- package/build/protos/google/cloud/discoveryengine/v1/rank_service.proto +3 -1
- package/build/protos/google/cloud/discoveryengine/v1/recommendation_service.proto +2 -2
- package/build/protos/google/cloud/discoveryengine/v1/safety.proto +107 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +96 -8
- package/build/protos/google/cloud/discoveryengine/v1/serving_config.proto +271 -0
- package/build/protos/google/cloud/discoveryengine/v1/serving_config_service.proto +75 -0
- package/build/protos/google/cloud/discoveryengine/v1/session.proto +19 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +27 -3
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine_service.proto +184 -5
- package/build/protos/google/cloud/discoveryengine/v1/user_event.proto +34 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_event_service.proto +16 -4
- package/build/protos/protos.d.ts +4390 -300
- package/build/protos/protos.js +13785 -2922
- package/build/protos/protos.json +1355 -14
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +4 -21
- package/build/src/v1/completion_service_client.d.ts +313 -76
- package/build/src/v1/completion_service_client.js +451 -262
- package/build/src/v1/completion_service_proto_list.json +3 -0
- package/build/src/v1/control_service_client.d.ts +318 -81
- package/build/src/v1/control_service_client.js +422 -132
- package/build/src/v1/control_service_proto_list.json +3 -0
- package/build/src/v1/conversational_search_service_client.d.ts +341 -134
- package/build/src/v1/conversational_search_service_client.js +395 -223
- package/build/src/v1/conversational_search_service_client_config.json +5 -0
- package/build/src/v1/conversational_search_service_proto_list.json +3 -0
- package/build/src/v1/data_store_service_client.d.ts +359 -122
- package/build/src/v1/data_store_service_client.js +460 -280
- package/build/src/v1/data_store_service_proto_list.json +3 -0
- package/build/src/v1/document_service_client.d.ts +364 -121
- package/build/src/v1/document_service_client.js +469 -300
- package/build/src/v1/document_service_proto_list.json +3 -0
- package/build/src/v1/engine_service_client.d.ts +340 -103
- package/build/src/v1/engine_service_client.js +460 -279
- package/build/src/v1/engine_service_proto_list.json +3 -0
- package/build/src/v1/gapic_metadata.json +59 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +286 -51
- package/build/src/v1/grounded_generation_service_client.js +405 -100
- package/build/src/v1/grounded_generation_service_proto_list.json +3 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/project_service_client.d.ts +313 -76
- package/build/src/v1/project_service_client.js +434 -222
- package/build/src/v1/project_service_proto_list.json +3 -0
- package/build/src/v1/rank_service_client.d.ts +285 -48
- package/build/src/v1/rank_service_client.js +398 -85
- package/build/src/v1/rank_service_proto_list.json +3 -0
- package/build/src/v1/recommendation_service_client.d.ts +142 -49
- package/build/src/v1/recommendation_service_client.js +198 -82
- package/build/src/v1/recommendation_service_proto_list.json +3 -0
- package/build/src/v1/schema_service_client.d.ts +348 -111
- package/build/src/v1/schema_service_client.js +457 -273
- package/build/src/v1/schema_service_proto_list.json +3 -0
- package/build/src/v1/search_service_client.d.ts +748 -559
- package/build/src/v1/search_service_client.js +302 -133
- package/build/src/v1/search_service_proto_list.json +3 -0
- package/build/src/v1/search_tuning_service_client.d.ts +314 -77
- package/build/src/v1/search_tuning_service_client.js +439 -235
- package/build/src/v1/search_tuning_service_proto_list.json +3 -0
- package/build/src/v1/serving_config_service_client.d.ts +1851 -0
- package/build/src/v1/serving_config_service_client.js +2642 -0
- package/build/src/v1/serving_config_service_client_config.json +30 -0
- package/build/src/v1/serving_config_service_proto_list.json +39 -0
- package/build/src/v1/site_search_engine_service_client.d.ts +504 -151
- package/build/src/v1/site_search_engine_service_client.js +625 -351
- package/build/src/v1/site_search_engine_service_client_config.json +12 -0
- package/build/src/v1/site_search_engine_service_proto_list.json +3 -0
- package/build/src/v1/user_event_service_client.d.ts +335 -86
- package/build/src/v1/user_event_service_client.js +447 -253
- package/build/src/v1/user_event_service_proto_list.json +3 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
- package/build/src/v1alpha/acl_config_service_client.js +82 -106
- package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
- package/build/src/v1alpha/chunk_service_client.js +92 -120
- package/build/src/v1alpha/completion_service_client.d.ts +77 -77
- package/build/src/v1alpha/completion_service_client.js +134 -280
- package/build/src/v1alpha/control_service_client.d.ts +85 -85
- package/build/src/v1alpha/control_service_client.js +105 -151
- package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
- package/build/src/v1alpha/conversational_search_service_client.js +145 -237
- package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
- package/build/src/v1alpha/data_store_service_client.js +151 -316
- package/build/src/v1alpha/document_service_client.d.ts +126 -126
- package/build/src/v1alpha/document_service_client.js +156 -328
- package/build/src/v1alpha/engine_service_client.d.ts +106 -106
- package/build/src/v1alpha/engine_service_client.js +155 -325
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
- package/build/src/v1alpha/estimate_billing_service_client.js +118 -243
- package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
- package/build/src/v1alpha/evaluation_service_client.js +143 -295
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
- package/build/src/v1alpha/grounded_generation_service_client.js +79 -100
- package/build/src/v1alpha/project_service_client.d.ts +78 -78
- package/build/src/v1alpha/project_service_client.js +126 -262
- package/build/src/v1alpha/rank_service_client.d.ts +47 -47
- package/build/src/v1alpha/rank_service_client.js +81 -104
- package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
- package/build/src/v1alpha/recommendation_service_client.js +79 -100
- package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
- package/build/src/v1alpha/sample_query_service_client.js +144 -301
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1alpha/sample_query_set_service_client.js +106 -153
- package/build/src/v1alpha/schema_service_client.d.ts +112 -112
- package/build/src/v1alpha/schema_service_client.js +140 -292
- package/build/src/v1alpha/search_service_client.d.ts +327 -327
- package/build/src/v1alpha/search_service_client.js +88 -112
- package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1alpha/search_tuning_service_client.js +122 -253
- package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
- package/build/src/v1alpha/serving_config_service_client.js +97 -133
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1alpha/site_search_engine_service_client.js +184 -387
- package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
- package/build/src/v1alpha/user_event_service_client.js +130 -271
- package/build/src/v1beta/completion_service_client.d.ts +78 -78
- package/build/src/v1beta/completion_service_client.js +136 -279
- package/build/src/v1beta/control_service_client.d.ts +84 -84
- package/build/src/v1beta/control_service_client.js +103 -147
- package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
- package/build/src/v1beta/conversational_search_service_client.js +143 -233
- package/build/src/v1beta/data_store_service_client.d.ts +124 -124
- package/build/src/v1beta/data_store_service_client.js +141 -288
- package/build/src/v1beta/document_service_client.d.ts +124 -124
- package/build/src/v1beta/document_service_client.js +150 -309
- package/build/src/v1beta/engine_service_client.d.ts +106 -106
- package/build/src/v1beta/engine_service_client.js +153 -315
- package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
- package/build/src/v1beta/evaluation_service_client.js +141 -285
- package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
- package/build/src/v1beta/grounded_generation_service_client.js +86 -114
- package/build/src/v1beta/project_service_client.d.ts +76 -76
- package/build/src/v1beta/project_service_client.js +115 -231
- package/build/src/v1beta/rank_service_client.d.ts +47 -47
- package/build/src/v1beta/rank_service_client.js +79 -99
- package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
- package/build/src/v1beta/recommendation_service_client.js +77 -96
- package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
- package/build/src/v1beta/sample_query_service_client.js +142 -291
- package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1beta/sample_query_set_service_client.js +104 -149
- package/build/src/v1beta/schema_service_client.d.ts +111 -111
- package/build/src/v1beta/schema_service_client.js +138 -282
- package/build/src/v1beta/search_service_client.d.ts +665 -665
- package/build/src/v1beta/search_service_client.js +97 -128
- package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1beta/search_tuning_service_client.js +120 -243
- package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
- package/build/src/v1beta/serving_config_service_client.js +95 -129
- package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1beta/site_search_engine_service_client.js +186 -386
- package/build/src/v1beta/user_event_service_client.d.ts +78 -78
- package/build/src/v1beta/user_event_service_client.js +128 -261
- package/package.json +4 -4
@@ -97,26 +97,17 @@ class RankServiceClient {
|
|
97
97
|
constructor(opts, gaxInstance) {
|
98
98
|
// Ensure that options include all the required fields.
|
99
99
|
const staticMembers = this.constructor;
|
100
|
-
if (opts?.universe_domain &&
|
101
|
-
opts?.universeDomain &&
|
102
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
100
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
103
101
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
104
102
|
}
|
105
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
106
|
-
|
107
|
-
: undefined;
|
108
|
-
this._universeDomain =
|
109
|
-
opts?.universeDomain ??
|
110
|
-
opts?.universe_domain ??
|
111
|
-
universeDomainEnvVar ??
|
112
|
-
'googleapis.com';
|
103
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
104
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
113
105
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
114
106
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
115
107
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
116
108
|
const port = opts?.port || staticMembers.port;
|
117
109
|
const clientConfig = opts?.clientConfig ?? {};
|
118
|
-
const fallback = opts?.fallback ??
|
119
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
110
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
120
111
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
121
112
|
// Request numeric enum values if REST transport is used.
|
122
113
|
opts.numericEnums = true;
|
@@ -146,7 +137,10 @@ class RankServiceClient {
|
|
146
137
|
}
|
147
138
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
148
139
|
// Determine the client header string.
|
149
|
-
const clientHeader = [
|
140
|
+
const clientHeader = [
|
141
|
+
`gax/${this._gaxModule.version}`,
|
142
|
+
`gapic/${version}`,
|
143
|
+
];
|
150
144
|
if (typeof process === 'object' && 'versions' in process) {
|
151
145
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
152
146
|
}
|
@@ -178,12 +172,15 @@ class RankServiceClient {
|
|
178
172
|
projectLocationCollectionDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
179
173
|
projectLocationCollectionDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig'),
|
180
174
|
projectLocationCollectionDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}'),
|
175
|
+
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
181
176
|
projectLocationCollectionDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}'),
|
182
177
|
projectLocationCollectionDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
183
178
|
projectLocationCollectionDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine'),
|
179
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
184
180
|
projectLocationCollectionDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
185
181
|
projectLocationCollectionEngineControlPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}'),
|
186
182
|
projectLocationCollectionEngineConversationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}'),
|
183
|
+
projectLocationCollectionEngineServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}'),
|
187
184
|
projectLocationCollectionEngineSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}'),
|
188
185
|
projectLocationCollectionEngineSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}'),
|
189
186
|
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
|
@@ -194,9 +191,11 @@ class RankServiceClient {
|
|
194
191
|
projectLocationDataStoreCustomTuningModelPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}'),
|
195
192
|
projectLocationDataStoreDocumentProcessingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig'),
|
196
193
|
projectLocationDataStoreSchemaPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}'),
|
194
|
+
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
|
197
195
|
projectLocationDataStoreSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}'),
|
198
196
|
projectLocationDataStoreSessionAnswerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}'),
|
199
197
|
projectLocationDataStoreSiteSearchEnginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine'),
|
198
|
+
projectLocationDataStoreSiteSearchEngineSitemapPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}'),
|
200
199
|
projectLocationDataStoreSiteSearchEngineTargetSitePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}'),
|
201
200
|
rankingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/rankingConfigs/{ranking_config}'),
|
202
201
|
};
|
@@ -227,10 +226,10 @@ class RankServiceClient {
|
|
227
226
|
}
|
228
227
|
// Put together the "service stub" for
|
229
228
|
// google.cloud.discoveryengine.v1.RankService.
|
230
|
-
this.rankServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
231
|
-
|
232
|
-
|
233
|
-
|
229
|
+
this.rankServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
230
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.RankService') :
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
232
|
+
this._protos.google.cloud.discoveryengine.v1.RankService, this._opts, this._providedCustomServicePath);
|
234
233
|
// Iterate over each of the methods that the service provides
|
235
234
|
// and create an API call method for each.
|
236
235
|
const rankServiceStubMethods = ['rank'];
|
@@ -256,8 +255,7 @@ class RankServiceClient {
|
|
256
255
|
* @returns {string} The DNS address for this service.
|
257
256
|
*/
|
258
257
|
static get servicePath() {
|
259
|
-
if (typeof process === 'object' &&
|
260
|
-
typeof process.emitWarning === 'function') {
|
258
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
261
259
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
262
260
|
}
|
263
261
|
return 'discoveryengine.googleapis.com';
|
@@ -268,8 +266,7 @@ class RankServiceClient {
|
|
268
266
|
* @returns {string} The DNS address for this service.
|
269
267
|
*/
|
270
268
|
static get apiEndpoint() {
|
271
|
-
if (typeof process === 'object' &&
|
272
|
-
typeof process.emitWarning === 'function') {
|
269
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
273
270
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
274
271
|
}
|
275
272
|
return 'discoveryengine.googleapis.com';
|
@@ -297,7 +294,9 @@ class RankServiceClient {
|
|
297
294
|
* @returns {string[]} List of default scopes.
|
298
295
|
*/
|
299
296
|
static get scopes() {
|
300
|
-
return [
|
297
|
+
return [
|
298
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
299
|
+
];
|
301
300
|
}
|
302
301
|
/**
|
303
302
|
* Return the project ID used by this class.
|
@@ -323,13 +322,10 @@ class RankServiceClient {
|
|
323
322
|
options = options || {};
|
324
323
|
options.otherArgs = options.otherArgs || {};
|
325
324
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
326
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
327
|
-
|
328
|
-
ranking_config: request.rankingConfig ?? '',
|
329
|
-
});
|
330
|
-
this.initialize().catch(err => {
|
331
|
-
throw err;
|
325
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
326
|
+
'ranking_config': request.rankingConfig ?? '',
|
332
327
|
});
|
328
|
+
this.initialize().catch(err => { throw err; });
|
333
329
|
this._log.info('rank request %j', request);
|
334
330
|
const wrappedCallback = callback
|
335
331
|
? (error, response, options, rawResponse) => {
|
@@ -337,65 +333,64 @@ class RankServiceClient {
|
|
337
333
|
callback(error, response, options, rawResponse); // We verified callback above.
|
338
334
|
}
|
339
335
|
: undefined;
|
340
|
-
return this.innerApiCalls
|
341
|
-
.rank(request, options, wrappedCallback)
|
336
|
+
return this.innerApiCalls.rank(request, options, wrappedCallback)
|
342
337
|
?.then(([response, options, rawResponse]) => {
|
343
338
|
this._log.info('rank response %j', response);
|
344
339
|
return [response, options, rawResponse];
|
345
340
|
});
|
346
341
|
}
|
347
342
|
/**
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
343
|
+
* Gets information about a location.
|
344
|
+
*
|
345
|
+
* @param {Object} request
|
346
|
+
* The request object that will be sent.
|
347
|
+
* @param {string} request.name
|
348
|
+
* Resource name for the location.
|
349
|
+
* @param {object} [options]
|
350
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
351
|
+
* @returns {Promise} - The promise which resolves to an array.
|
352
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
353
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
354
|
+
* for more details and examples.
|
355
|
+
* @example
|
356
|
+
* ```
|
357
|
+
* const [response] = await client.getLocation(request);
|
358
|
+
* ```
|
359
|
+
*/
|
365
360
|
getLocation(request, options, callback) {
|
366
361
|
return this.locationsClient.getLocation(request, options, callback);
|
367
362
|
}
|
368
363
|
/**
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
364
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
365
|
+
*
|
366
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
367
|
+
* @param {Object} request
|
368
|
+
* The request object that will be sent.
|
369
|
+
* @param {string} request.name
|
370
|
+
* The resource that owns the locations collection, if applicable.
|
371
|
+
* @param {string} request.filter
|
372
|
+
* The standard list filter.
|
373
|
+
* @param {number} request.pageSize
|
374
|
+
* The standard list page size.
|
375
|
+
* @param {string} request.pageToken
|
376
|
+
* The standard list page token.
|
377
|
+
* @param {object} [options]
|
378
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
379
|
+
* @returns {Object}
|
380
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
381
|
+
* When you iterate the returned iterable, each element will be an object representing
|
382
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
383
|
+
* so you can stop the iteration when you don't need more results.
|
384
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
385
|
+
* for more details and examples.
|
386
|
+
* @example
|
387
|
+
* ```
|
388
|
+
* const iterable = client.listLocationsAsync(request);
|
389
|
+
* for await (const response of iterable) {
|
390
|
+
* // process response
|
391
|
+
* }
|
392
|
+
* ```
|
393
|
+
*/
|
399
394
|
listLocationsAsync(request, options) {
|
400
395
|
return this.locationsClient.listLocationsAsync(request, options);
|
401
396
|
}
|
@@ -1044,6 +1039,75 @@ class RankServiceClient {
|
|
1044
1039
|
matchSchemaFromProjectLocationCollectionDataStoreSchemaName(projectLocationCollectionDataStoreSchemaName) {
|
1045
1040
|
return this.pathTemplates.projectLocationCollectionDataStoreSchemaPathTemplate.match(projectLocationCollectionDataStoreSchemaName).schema;
|
1046
1041
|
}
|
1042
|
+
/**
|
1043
|
+
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
|
1044
|
+
*
|
1045
|
+
* @param {string} project
|
1046
|
+
* @param {string} location
|
1047
|
+
* @param {string} collection
|
1048
|
+
* @param {string} data_store
|
1049
|
+
* @param {string} serving_config
|
1050
|
+
* @returns {string} Resource name string.
|
1051
|
+
*/
|
1052
|
+
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
|
1053
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
|
1054
|
+
project: project,
|
1055
|
+
location: location,
|
1056
|
+
collection: collection,
|
1057
|
+
data_store: dataStore,
|
1058
|
+
serving_config: servingConfig,
|
1059
|
+
});
|
1060
|
+
}
|
1061
|
+
/**
|
1062
|
+
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
|
1063
|
+
*
|
1064
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1065
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1066
|
+
* @returns {string} A string representing the project.
|
1067
|
+
*/
|
1068
|
+
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1069
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
|
1070
|
+
}
|
1071
|
+
/**
|
1072
|
+
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
|
1073
|
+
*
|
1074
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1075
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1076
|
+
* @returns {string} A string representing the location.
|
1077
|
+
*/
|
1078
|
+
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1079
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
|
1080
|
+
}
|
1081
|
+
/**
|
1082
|
+
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
|
1083
|
+
*
|
1084
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1085
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1086
|
+
* @returns {string} A string representing the collection.
|
1087
|
+
*/
|
1088
|
+
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1089
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
|
1090
|
+
}
|
1091
|
+
/**
|
1092
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
|
1093
|
+
*
|
1094
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1095
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1096
|
+
* @returns {string} A string representing the data_store.
|
1097
|
+
*/
|
1098
|
+
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1099
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
|
1100
|
+
}
|
1101
|
+
/**
|
1102
|
+
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
|
1103
|
+
*
|
1104
|
+
* @param {string} projectLocationCollectionDataStoreServingConfigName
|
1105
|
+
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
|
1106
|
+
* @returns {string} A string representing the serving_config.
|
1107
|
+
*/
|
1108
|
+
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
|
1109
|
+
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
|
1110
|
+
}
|
1047
1111
|
/**
|
1048
1112
|
* Return a fully-qualified projectLocationCollectionDataStoreSession resource name string.
|
1049
1113
|
*
|
@@ -1251,6 +1315,75 @@ class RankServiceClient {
|
|
1251
1315
|
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineName(projectLocationCollectionDataStoreSiteSearchEngineName) {
|
1252
1316
|
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEnginePathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineName).data_store;
|
1253
1317
|
}
|
1318
|
+
/**
|
1319
|
+
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineSitemap resource name string.
|
1320
|
+
*
|
1321
|
+
* @param {string} project
|
1322
|
+
* @param {string} location
|
1323
|
+
* @param {string} collection
|
1324
|
+
* @param {string} data_store
|
1325
|
+
* @param {string} sitemap
|
1326
|
+
* @returns {string} Resource name string.
|
1327
|
+
*/
|
1328
|
+
projectLocationCollectionDataStoreSiteSearchEngineSitemapPath(project, location, collection, dataStore, sitemap) {
|
1329
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
1330
|
+
project: project,
|
1331
|
+
location: location,
|
1332
|
+
collection: collection,
|
1333
|
+
data_store: dataStore,
|
1334
|
+
sitemap: sitemap,
|
1335
|
+
});
|
1336
|
+
}
|
1337
|
+
/**
|
1338
|
+
* Parse the project from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1339
|
+
*
|
1340
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1341
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1342
|
+
* @returns {string} A string representing the project.
|
1343
|
+
*/
|
1344
|
+
matchProjectFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1345
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).project;
|
1346
|
+
}
|
1347
|
+
/**
|
1348
|
+
* Parse the location from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1349
|
+
*
|
1350
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1351
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1352
|
+
* @returns {string} A string representing the location.
|
1353
|
+
*/
|
1354
|
+
matchLocationFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1355
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).location;
|
1356
|
+
}
|
1357
|
+
/**
|
1358
|
+
* Parse the collection from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1359
|
+
*
|
1360
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1361
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1362
|
+
* @returns {string} A string representing the collection.
|
1363
|
+
*/
|
1364
|
+
matchCollectionFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1365
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).collection;
|
1366
|
+
}
|
1367
|
+
/**
|
1368
|
+
* Parse the data_store from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1369
|
+
*
|
1370
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1371
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1372
|
+
* @returns {string} A string representing the data_store.
|
1373
|
+
*/
|
1374
|
+
matchDataStoreFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1375
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).data_store;
|
1376
|
+
}
|
1377
|
+
/**
|
1378
|
+
* Parse the sitemap from ProjectLocationCollectionDataStoreSiteSearchEngineSitemap resource.
|
1379
|
+
*
|
1380
|
+
* @param {string} projectLocationCollectionDataStoreSiteSearchEngineSitemapName
|
1381
|
+
* A fully-qualified path representing project_location_collection_data_store_siteSearchEngine_sitemap resource.
|
1382
|
+
* @returns {string} A string representing the sitemap.
|
1383
|
+
*/
|
1384
|
+
matchSitemapFromProjectLocationCollectionDataStoreSiteSearchEngineSitemapName(projectLocationCollectionDataStoreSiteSearchEngineSitemapName) {
|
1385
|
+
return this.pathTemplates.projectLocationCollectionDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationCollectionDataStoreSiteSearchEngineSitemapName).sitemap;
|
1386
|
+
}
|
1254
1387
|
/**
|
1255
1388
|
* Return a fully-qualified projectLocationCollectionDataStoreSiteSearchEngineTargetSite resource name string.
|
1256
1389
|
*
|
@@ -1458,6 +1591,75 @@ class RankServiceClient {
|
|
1458
1591
|
matchConversationFromProjectLocationCollectionEngineConversationName(projectLocationCollectionEngineConversationName) {
|
1459
1592
|
return this.pathTemplates.projectLocationCollectionEngineConversationPathTemplate.match(projectLocationCollectionEngineConversationName).conversation;
|
1460
1593
|
}
|
1594
|
+
/**
|
1595
|
+
* Return a fully-qualified projectLocationCollectionEngineServingConfig resource name string.
|
1596
|
+
*
|
1597
|
+
* @param {string} project
|
1598
|
+
* @param {string} location
|
1599
|
+
* @param {string} collection
|
1600
|
+
* @param {string} engine
|
1601
|
+
* @param {string} serving_config
|
1602
|
+
* @returns {string} Resource name string.
|
1603
|
+
*/
|
1604
|
+
projectLocationCollectionEngineServingConfigPath(project, location, collection, engine, servingConfig) {
|
1605
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.render({
|
1606
|
+
project: project,
|
1607
|
+
location: location,
|
1608
|
+
collection: collection,
|
1609
|
+
engine: engine,
|
1610
|
+
serving_config: servingConfig,
|
1611
|
+
});
|
1612
|
+
}
|
1613
|
+
/**
|
1614
|
+
* Parse the project from ProjectLocationCollectionEngineServingConfig resource.
|
1615
|
+
*
|
1616
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1617
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1618
|
+
* @returns {string} A string representing the project.
|
1619
|
+
*/
|
1620
|
+
matchProjectFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1621
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).project;
|
1622
|
+
}
|
1623
|
+
/**
|
1624
|
+
* Parse the location from ProjectLocationCollectionEngineServingConfig resource.
|
1625
|
+
*
|
1626
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1627
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1628
|
+
* @returns {string} A string representing the location.
|
1629
|
+
*/
|
1630
|
+
matchLocationFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1631
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).location;
|
1632
|
+
}
|
1633
|
+
/**
|
1634
|
+
* Parse the collection from ProjectLocationCollectionEngineServingConfig resource.
|
1635
|
+
*
|
1636
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1637
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1638
|
+
* @returns {string} A string representing the collection.
|
1639
|
+
*/
|
1640
|
+
matchCollectionFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1641
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).collection;
|
1642
|
+
}
|
1643
|
+
/**
|
1644
|
+
* Parse the engine from ProjectLocationCollectionEngineServingConfig resource.
|
1645
|
+
*
|
1646
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1647
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1648
|
+
* @returns {string} A string representing the engine.
|
1649
|
+
*/
|
1650
|
+
matchEngineFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1651
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).engine;
|
1652
|
+
}
|
1653
|
+
/**
|
1654
|
+
* Parse the serving_config from ProjectLocationCollectionEngineServingConfig resource.
|
1655
|
+
*
|
1656
|
+
* @param {string} projectLocationCollectionEngineServingConfigName
|
1657
|
+
* A fully-qualified path representing project_location_collection_engine_serving_config resource.
|
1658
|
+
* @returns {string} A string representing the serving_config.
|
1659
|
+
*/
|
1660
|
+
matchServingConfigFromProjectLocationCollectionEngineServingConfigName(projectLocationCollectionEngineServingConfigName) {
|
1661
|
+
return this.pathTemplates.projectLocationCollectionEngineServingConfigPathTemplate.match(projectLocationCollectionEngineServingConfigName).serving_config;
|
1662
|
+
}
|
1461
1663
|
/**
|
1462
1664
|
* Return a fully-qualified projectLocationCollectionEngineSession resource name string.
|
1463
1665
|
*
|
@@ -2076,6 +2278,63 @@ class RankServiceClient {
|
|
2076
2278
|
matchSchemaFromProjectLocationDataStoreSchemaName(projectLocationDataStoreSchemaName) {
|
2077
2279
|
return this.pathTemplates.projectLocationDataStoreSchemaPathTemplate.match(projectLocationDataStoreSchemaName).schema;
|
2078
2280
|
}
|
2281
|
+
/**
|
2282
|
+
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
|
2283
|
+
*
|
2284
|
+
* @param {string} project
|
2285
|
+
* @param {string} location
|
2286
|
+
* @param {string} data_store
|
2287
|
+
* @param {string} serving_config
|
2288
|
+
* @returns {string} Resource name string.
|
2289
|
+
*/
|
2290
|
+
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
|
2291
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
|
2292
|
+
project: project,
|
2293
|
+
location: location,
|
2294
|
+
data_store: dataStore,
|
2295
|
+
serving_config: servingConfig,
|
2296
|
+
});
|
2297
|
+
}
|
2298
|
+
/**
|
2299
|
+
* Parse the project from ProjectLocationDataStoreServingConfig resource.
|
2300
|
+
*
|
2301
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2302
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2303
|
+
* @returns {string} A string representing the project.
|
2304
|
+
*/
|
2305
|
+
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2306
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
|
2307
|
+
}
|
2308
|
+
/**
|
2309
|
+
* Parse the location from ProjectLocationDataStoreServingConfig resource.
|
2310
|
+
*
|
2311
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2312
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2313
|
+
* @returns {string} A string representing the location.
|
2314
|
+
*/
|
2315
|
+
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2316
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
|
2317
|
+
}
|
2318
|
+
/**
|
2319
|
+
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
|
2320
|
+
*
|
2321
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2322
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2323
|
+
* @returns {string} A string representing the data_store.
|
2324
|
+
*/
|
2325
|
+
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2326
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
|
2327
|
+
}
|
2328
|
+
/**
|
2329
|
+
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
|
2330
|
+
*
|
2331
|
+
* @param {string} projectLocationDataStoreServingConfigName
|
2332
|
+
* A fully-qualified path representing project_location_data_store_serving_config resource.
|
2333
|
+
* @returns {string} A string representing the serving_config.
|
2334
|
+
*/
|
2335
|
+
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
|
2336
|
+
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
|
2337
|
+
}
|
2079
2338
|
/**
|
2080
2339
|
* Return a fully-qualified projectLocationDataStoreSession resource name string.
|
2081
2340
|
*
|
@@ -2247,6 +2506,63 @@ class RankServiceClient {
|
|
2247
2506
|
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineName(projectLocationDataStoreSiteSearchEngineName) {
|
2248
2507
|
return this.pathTemplates.projectLocationDataStoreSiteSearchEnginePathTemplate.match(projectLocationDataStoreSiteSearchEngineName).data_store;
|
2249
2508
|
}
|
2509
|
+
/**
|
2510
|
+
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineSitemap resource name string.
|
2511
|
+
*
|
2512
|
+
* @param {string} project
|
2513
|
+
* @param {string} location
|
2514
|
+
* @param {string} data_store
|
2515
|
+
* @param {string} sitemap
|
2516
|
+
* @returns {string} Resource name string.
|
2517
|
+
*/
|
2518
|
+
projectLocationDataStoreSiteSearchEngineSitemapPath(project, location, dataStore, sitemap) {
|
2519
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.render({
|
2520
|
+
project: project,
|
2521
|
+
location: location,
|
2522
|
+
data_store: dataStore,
|
2523
|
+
sitemap: sitemap,
|
2524
|
+
});
|
2525
|
+
}
|
2526
|
+
/**
|
2527
|
+
* Parse the project from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2528
|
+
*
|
2529
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2530
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2531
|
+
* @returns {string} A string representing the project.
|
2532
|
+
*/
|
2533
|
+
matchProjectFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2534
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).project;
|
2535
|
+
}
|
2536
|
+
/**
|
2537
|
+
* Parse the location from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2538
|
+
*
|
2539
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2540
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2541
|
+
* @returns {string} A string representing the location.
|
2542
|
+
*/
|
2543
|
+
matchLocationFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2544
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).location;
|
2545
|
+
}
|
2546
|
+
/**
|
2547
|
+
* Parse the data_store from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2548
|
+
*
|
2549
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2550
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2551
|
+
* @returns {string} A string representing the data_store.
|
2552
|
+
*/
|
2553
|
+
matchDataStoreFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2554
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).data_store;
|
2555
|
+
}
|
2556
|
+
/**
|
2557
|
+
* Parse the sitemap from ProjectLocationDataStoreSiteSearchEngineSitemap resource.
|
2558
|
+
*
|
2559
|
+
* @param {string} projectLocationDataStoreSiteSearchEngineSitemapName
|
2560
|
+
* A fully-qualified path representing project_location_data_store_siteSearchEngine_sitemap resource.
|
2561
|
+
* @returns {string} A string representing the sitemap.
|
2562
|
+
*/
|
2563
|
+
matchSitemapFromProjectLocationDataStoreSiteSearchEngineSitemapName(projectLocationDataStoreSiteSearchEngineSitemapName) {
|
2564
|
+
return this.pathTemplates.projectLocationDataStoreSiteSearchEngineSitemapPathTemplate.match(projectLocationDataStoreSiteSearchEngineSitemapName).sitemap;
|
2565
|
+
}
|
2250
2566
|
/**
|
2251
2567
|
* Return a fully-qualified projectLocationDataStoreSiteSearchEngineTargetSite resource name string.
|
2252
2568
|
*
|
@@ -2327,8 +2643,7 @@ class RankServiceClient {
|
|
2327
2643
|
* @returns {string} A string representing the project.
|
2328
2644
|
*/
|
2329
2645
|
matchProjectFromRankingConfigName(rankingConfigName) {
|
2330
|
-
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
|
2331
|
-
.project;
|
2646
|
+
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName).project;
|
2332
2647
|
}
|
2333
2648
|
/**
|
2334
2649
|
* Parse the location from RankingConfig resource.
|
@@ -2338,8 +2653,7 @@ class RankServiceClient {
|
|
2338
2653
|
* @returns {string} A string representing the location.
|
2339
2654
|
*/
|
2340
2655
|
matchLocationFromRankingConfigName(rankingConfigName) {
|
2341
|
-
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
|
2342
|
-
.location;
|
2656
|
+
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName).location;
|
2343
2657
|
}
|
2344
2658
|
/**
|
2345
2659
|
* Parse the ranking_config from RankingConfig resource.
|
@@ -2349,8 +2663,7 @@ class RankServiceClient {
|
|
2349
2663
|
* @returns {string} A string representing the ranking_config.
|
2350
2664
|
*/
|
2351
2665
|
matchRankingConfigFromRankingConfigName(rankingConfigName) {
|
2352
|
-
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName)
|
2353
|
-
.ranking_config;
|
2666
|
+
return this.pathTemplates.rankingConfigPathTemplate.match(rankingConfigName).ranking_config;
|
2354
2667
|
}
|
2355
2668
|
/**
|
2356
2669
|
* Terminate the gRPC channel and close the client.
|
@@ -2364,7 +2677,7 @@ class RankServiceClient {
|
|
2364
2677
|
this._log.info('ending gRPC channel');
|
2365
2678
|
this._terminated = true;
|
2366
2679
|
stub.close();
|
2367
|
-
this.locationsClient.close();
|
2680
|
+
this.locationsClient.close().catch(err => { throw err; });
|
2368
2681
|
});
|
2369
2682
|
}
|
2370
2683
|
return Promise.resolve();
|