@google-cloud/discoveryengine 2.1.0 → 2.3.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/README.md +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/protos.d.ts +5415 -578
- package/build/protos/protos.js +77830 -63391
- package/build/protos/protos.json +1537 -92
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +8 -22
- package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
- package/build/src/v1/cmek_config_service_client.js +3274 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +44 -0
- package/build/src/v1/completion_service_client.d.ts +166 -76
- package/build/src/v1/completion_service_client.js +258 -263
- package/build/src/v1/completion_service_proto_list.json +6 -1
- package/build/src/v1/control_service_client.d.ts +171 -81
- package/build/src/v1/control_service_client.js +246 -132
- package/build/src/v1/control_service_proto_list.json +6 -1
- package/build/src/v1/conversational_search_service_client.d.ts +233 -143
- package/build/src/v1/conversational_search_service_client.js +330 -226
- package/build/src/v1/conversational_search_service_proto_list.json +6 -1
- package/build/src/v1/data_store_service_client.d.ts +218 -122
- package/build/src/v1/data_store_service_client.js +273 -281
- package/build/src/v1/data_store_service_proto_list.json +6 -1
- package/build/src/v1/document_service_client.d.ts +210 -120
- package/build/src/v1/document_service_client.js +300 -301
- package/build/src/v1/document_service_proto_list.json +6 -1
- package/build/src/v1/engine_service_client.d.ts +193 -103
- package/build/src/v1/engine_service_client.js +273 -280
- package/build/src/v1/engine_service_proto_list.json +6 -1
- package/build/src/v1/gapic_metadata.json +184 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +138 -48
- package/build/src/v1/grounded_generation_service_client.js +217 -100
- package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/project_service_client.d.ts +166 -76
- package/build/src/v1/project_service_client.js +235 -223
- package/build/src/v1/project_service_proto_list.json +6 -1
- package/build/src/v1/rank_service_client.d.ts +137 -47
- package/build/src/v1/rank_service_client.js +204 -85
- package/build/src/v1/rank_service_proto_list.json +6 -1
- package/build/src/v1/recommendation_service_client.d.ts +137 -47
- package/build/src/v1/recommendation_service_client.js +202 -82
- package/build/src/v1/recommendation_service_proto_list.json +6 -1
- package/build/src/v1/schema_service_client.d.ts +201 -111
- package/build/src/v1/schema_service_client.js +264 -274
- package/build/src/v1/schema_service_proto_list.json +6 -1
- package/build/src/v1/search_service_client.d.ts +661 -571
- package/build/src/v1/search_service_client.js +216 -113
- package/build/src/v1/search_service_proto_list.json +6 -1
- package/build/src/v1/search_tuning_service_client.d.ts +167 -77
- package/build/src/v1/search_tuning_service_client.js +246 -236
- package/build/src/v1/search_tuning_service_proto_list.json +6 -1
- package/build/src/v1/serving_config_service_client.d.ts +138 -48
- package/build/src/v1/serving_config_service_client.js +201 -80
- package/build/src/v1/serving_config_service_proto_list.json +6 -1
- package/build/src/v1/site_search_engine_service_client.d.ts +238 -148
- package/build/src/v1/site_search_engine_service_client.js +324 -379
- package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
- package/build/src/v1/user_event_service_client.d.ts +167 -77
- package/build/src/v1/user_event_service_client.js +260 -254
- package/build/src/v1/user_event_service_proto_list.json +6 -1
- package/build/src/v1/user_license_service_client.d.ts +2256 -0
- package/build/src/v1/user_license_service_client.js +3194 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +44 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
- package/build/src/v1alpha/acl_config_service_client.js +94 -106
- package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
- package/build/src/v1alpha/chunk_service_client.js +98 -120
- package/build/src/v1alpha/completion_service_client.d.ts +77 -77
- package/build/src/v1alpha/completion_service_client.js +141 -281
- package/build/src/v1alpha/control_service_client.d.ts +85 -85
- package/build/src/v1alpha/control_service_client.js +129 -151
- package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
- package/build/src/v1alpha/conversational_search_service_client.js +211 -237
- package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
- package/build/src/v1alpha/data_store_service_client.js +176 -317
- package/build/src/v1alpha/document_service_client.d.ts +126 -126
- package/build/src/v1alpha/document_service_client.js +193 -329
- package/build/src/v1alpha/engine_service_client.d.ts +106 -106
- package/build/src/v1alpha/engine_service_client.js +180 -326
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
- package/build/src/v1alpha/estimate_billing_service_client.js +119 -244
- package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
- package/build/src/v1alpha/evaluation_service_client.js +150 -296
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
- package/build/src/v1alpha/grounded_generation_service_client.js +85 -100
- package/build/src/v1alpha/project_service_client.d.ts +78 -78
- package/build/src/v1alpha/project_service_client.js +139 -263
- package/build/src/v1alpha/rank_service_client.d.ts +47 -47
- package/build/src/v1alpha/rank_service_client.js +87 -104
- package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
- package/build/src/v1alpha/recommendation_service_client.js +85 -100
- package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
- package/build/src/v1alpha/sample_query_service_client.js +169 -302
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1alpha/sample_query_set_service_client.js +130 -153
- package/build/src/v1alpha/schema_service_client.d.ts +112 -112
- package/build/src/v1alpha/schema_service_client.js +147 -293
- 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 +129 -254
- package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
- package/build/src/v1alpha/serving_config_service_client.js +109 -133
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1alpha/site_search_engine_service_client.js +203 -388
- package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
- package/build/src/v1alpha/user_event_service_client.js +143 -272
- package/build/src/v1beta/completion_service_client.d.ts +78 -78
- package/build/src/v1beta/completion_service_client.js +149 -280
- package/build/src/v1beta/control_service_client.d.ts +84 -84
- package/build/src/v1beta/control_service_client.js +127 -147
- package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
- package/build/src/v1beta/conversational_search_service_client.js +209 -233
- package/build/src/v1beta/data_store_service_client.d.ts +124 -124
- package/build/src/v1beta/data_store_service_client.js +154 -289
- package/build/src/v1beta/document_service_client.d.ts +124 -124
- package/build/src/v1beta/document_service_client.js +181 -310
- package/build/src/v1beta/engine_service_client.d.ts +106 -106
- package/build/src/v1beta/engine_service_client.js +178 -316
- package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
- package/build/src/v1beta/evaluation_service_client.js +148 -286
- package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
- package/build/src/v1beta/grounded_generation_service_client.js +98 -114
- package/build/src/v1beta/project_service_client.d.ts +76 -76
- package/build/src/v1beta/project_service_client.js +116 -232
- package/build/src/v1beta/rank_service_client.d.ts +47 -47
- package/build/src/v1beta/rank_service_client.js +85 -99
- package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
- package/build/src/v1beta/recommendation_service_client.js +83 -96
- package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
- package/build/src/v1beta/sample_query_service_client.js +167 -292
- package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1beta/sample_query_set_service_client.js +128 -149
- package/build/src/v1beta/schema_service_client.d.ts +111 -111
- package/build/src/v1beta/schema_service_client.js +145 -283
- 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 +127 -244
- package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
- package/build/src/v1beta/serving_config_service_client.js +107 -129
- package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1beta/site_search_engine_service_client.js +205 -387
- package/build/src/v1beta/user_event_service_client.d.ts +78 -78
- package/build/src/v1beta/user_event_service_client.js +141 -262
- package/package.json +7 -7
- package/CHANGELOG.md +0 -267
@@ -99,26 +99,17 @@ class EvaluationServiceClient {
|
|
99
99
|
constructor(opts, gaxInstance) {
|
100
100
|
// Ensure that options include all the required fields.
|
101
101
|
const staticMembers = this.constructor;
|
102
|
-
if (opts?.universe_domain &&
|
103
|
-
opts?.universeDomain &&
|
104
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
102
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
105
103
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
106
104
|
}
|
107
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
108
|
-
|
109
|
-
: undefined;
|
110
|
-
this._universeDomain =
|
111
|
-
opts?.universeDomain ??
|
112
|
-
opts?.universe_domain ??
|
113
|
-
universeDomainEnvVar ??
|
114
|
-
'googleapis.com';
|
105
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
106
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
115
107
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
116
108
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
117
109
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
118
110
|
const port = opts?.port || staticMembers.port;
|
119
111
|
const clientConfig = opts?.clientConfig ?? {};
|
120
|
-
const fallback = opts?.fallback ??
|
121
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
112
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
122
113
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
123
114
|
// Request numeric enum values if REST transport is used.
|
124
115
|
opts.numericEnums = true;
|
@@ -148,7 +139,10 @@ class EvaluationServiceClient {
|
|
148
139
|
}
|
149
140
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
150
141
|
// Determine the client header string.
|
151
|
-
const clientHeader = [
|
142
|
+
const clientHeader = [
|
143
|
+
`gax/${this._gaxModule.version}`,
|
144
|
+
`gapic/${version}`,
|
145
|
+
];
|
152
146
|
if (typeof process === 'object' && 'versions' in process) {
|
153
147
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
154
148
|
}
|
@@ -216,127 +210,28 @@ class EvaluationServiceClient {
|
|
216
210
|
// pages). Denote the keys used for pagination and results.
|
217
211
|
this.descriptors.page = {
|
218
212
|
listEvaluations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'evaluations'),
|
219
|
-
listEvaluationResults: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'evaluationResults')
|
213
|
+
listEvaluationResults: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'evaluationResults')
|
220
214
|
};
|
221
|
-
const protoFilesRoot = this._gaxModule.
|
215
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
222
216
|
// This API contains "long-running operations", which return a
|
223
217
|
// an Operation object that allows for tracking of the operation,
|
224
218
|
// rather than holding a request open.
|
225
219
|
const lroOptions = {
|
226
220
|
auth: this.auth,
|
227
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
221
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
228
222
|
};
|
229
223
|
if (opts.fallback) {
|
230
224
|
lroOptions.protoJson = protoFilesRoot;
|
231
|
-
lroOptions.httpRules = [
|
232
|
-
{
|
233
|
-
|
234
|
-
|
235
|
-
body: '*',
|
236
|
-
additional_bindings: [
|
237
|
-
{
|
238
|
-
post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
239
|
-
body: '*',
|
240
|
-
},
|
241
|
-
],
|
242
|
-
},
|
243
|
-
{
|
244
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
245
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
246
|
-
additional_bindings: [
|
247
|
-
{
|
248
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
249
|
-
},
|
250
|
-
{
|
251
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
252
|
-
},
|
253
|
-
{
|
254
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
255
|
-
},
|
256
|
-
{
|
257
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
258
|
-
},
|
259
|
-
{
|
260
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
261
|
-
},
|
262
|
-
{
|
263
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
264
|
-
},
|
265
|
-
{
|
266
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
267
|
-
},
|
268
|
-
{
|
269
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
|
270
|
-
},
|
271
|
-
{
|
272
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
273
|
-
},
|
274
|
-
{
|
275
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
276
|
-
},
|
277
|
-
{
|
278
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
279
|
-
},
|
280
|
-
{
|
281
|
-
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
282
|
-
},
|
283
|
-
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
284
|
-
{
|
285
|
-
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
286
|
-
},
|
287
|
-
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
288
|
-
],
|
289
|
-
},
|
290
|
-
{
|
291
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
292
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
293
|
-
additional_bindings: [
|
294
|
-
{
|
295
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
296
|
-
},
|
297
|
-
{
|
298
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
299
|
-
},
|
300
|
-
{
|
301
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
302
|
-
},
|
303
|
-
{
|
304
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
305
|
-
},
|
306
|
-
{
|
307
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
308
|
-
},
|
309
|
-
{
|
310
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
311
|
-
},
|
312
|
-
{
|
313
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
314
|
-
},
|
315
|
-
{
|
316
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
|
317
|
-
},
|
318
|
-
{
|
319
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
320
|
-
},
|
321
|
-
{
|
322
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
323
|
-
},
|
324
|
-
{
|
325
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
|
326
|
-
},
|
327
|
-
{ get: '/v1beta/{name=projects/*/locations/*}/operations' },
|
328
|
-
{ get: '/v1beta/{name=projects/*}/operations' },
|
329
|
-
],
|
330
|
-
},
|
331
|
-
];
|
225
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
226
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}', }, { get: '/v1beta/{name=projects/*/operations/*}', }],
|
227
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*}/operations', }, { get: '/v1beta/{name=projects/*}/operations', }],
|
228
|
+
}];
|
332
229
|
}
|
333
|
-
this.operationsClient = this._gaxModule
|
334
|
-
.lro(lroOptions)
|
335
|
-
.operationsClient(opts);
|
230
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
336
231
|
const createEvaluationResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.Evaluation');
|
337
232
|
const createEvaluationMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata');
|
338
233
|
this.descriptors.longrunning = {
|
339
|
-
createEvaluation: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEvaluationResponse.decode.bind(createEvaluationResponse), createEvaluationMetadata.decode.bind(createEvaluationMetadata))
|
234
|
+
createEvaluation: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createEvaluationResponse.decode.bind(createEvaluationResponse), createEvaluationMetadata.decode.bind(createEvaluationMetadata))
|
340
235
|
};
|
341
236
|
// Put together the default options sent with requests.
|
342
237
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.EvaluationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -365,19 +260,13 @@ class EvaluationServiceClient {
|
|
365
260
|
}
|
366
261
|
// Put together the "service stub" for
|
367
262
|
// google.cloud.discoveryengine.v1beta.EvaluationService.
|
368
|
-
this.evaluationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
.EvaluationService, this._opts, this._providedCustomServicePath);
|
263
|
+
this.evaluationServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
264
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1beta.EvaluationService') :
|
265
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
266
|
+
this._protos.google.cloud.discoveryengine.v1beta.EvaluationService, this._opts, this._providedCustomServicePath);
|
373
267
|
// Iterate over each of the methods that the service provides
|
374
268
|
// and create an API call method for each.
|
375
|
-
const evaluationServiceStubMethods = [
|
376
|
-
'getEvaluation',
|
377
|
-
'listEvaluations',
|
378
|
-
'createEvaluation',
|
379
|
-
'listEvaluationResults',
|
380
|
-
];
|
269
|
+
const evaluationServiceStubMethods = ['getEvaluation', 'listEvaluations', 'createEvaluation', 'listEvaluationResults'];
|
381
270
|
for (const methodName of evaluationServiceStubMethods) {
|
382
271
|
const callPromise = this.evaluationServiceStub.then(stub => (...args) => {
|
383
272
|
if (this._terminated) {
|
@@ -402,8 +291,7 @@ class EvaluationServiceClient {
|
|
402
291
|
* @returns {string} The DNS address for this service.
|
403
292
|
*/
|
404
293
|
static get servicePath() {
|
405
|
-
if (typeof process === 'object' &&
|
406
|
-
typeof process.emitWarning === 'function') {
|
294
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
407
295
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
408
296
|
}
|
409
297
|
return 'discoveryengine.googleapis.com';
|
@@ -414,8 +302,7 @@ class EvaluationServiceClient {
|
|
414
302
|
* @returns {string} The DNS address for this service.
|
415
303
|
*/
|
416
304
|
static get apiEndpoint() {
|
417
|
-
if (typeof process === 'object' &&
|
418
|
-
typeof process.emitWarning === 'function') {
|
305
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
419
306
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
420
307
|
}
|
421
308
|
return 'discoveryengine.googleapis.com';
|
@@ -443,7 +330,9 @@ class EvaluationServiceClient {
|
|
443
330
|
* @returns {string[]} List of default scopes.
|
444
331
|
*/
|
445
332
|
static get scopes() {
|
446
|
-
return [
|
333
|
+
return [
|
334
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
335
|
+
];
|
447
336
|
}
|
448
337
|
/**
|
449
338
|
* Return the project ID used by this class.
|
@@ -469,13 +358,10 @@ class EvaluationServiceClient {
|
|
469
358
|
options = options || {};
|
470
359
|
options.otherArgs = options.otherArgs || {};
|
471
360
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
472
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
473
|
-
|
474
|
-
name: request.name ?? '',
|
475
|
-
});
|
476
|
-
this.initialize().catch(err => {
|
477
|
-
throw err;
|
361
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
362
|
+
'name': request.name ?? '',
|
478
363
|
});
|
364
|
+
this.initialize().catch(err => { throw err; });
|
479
365
|
this._log.info('getEvaluation request %j', request);
|
480
366
|
const wrappedCallback = callback
|
481
367
|
? (error, response, options, rawResponse) => {
|
@@ -483,11 +369,16 @@ class EvaluationServiceClient {
|
|
483
369
|
callback(error, response, options, rawResponse); // We verified callback above.
|
484
370
|
}
|
485
371
|
: undefined;
|
486
|
-
return this.innerApiCalls
|
487
|
-
.getEvaluation(request, options, wrappedCallback)
|
372
|
+
return this.innerApiCalls.getEvaluation(request, options, wrappedCallback)
|
488
373
|
?.then(([response, options, rawResponse]) => {
|
489
374
|
this._log.info('getEvaluation response %j', response);
|
490
375
|
return [response, options, rawResponse];
|
376
|
+
}).catch((error) => {
|
377
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
378
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
379
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
380
|
+
}
|
381
|
+
throw error;
|
491
382
|
});
|
492
383
|
}
|
493
384
|
createEvaluation(request, optionsOrCallback, callback) {
|
@@ -503,13 +394,10 @@ class EvaluationServiceClient {
|
|
503
394
|
options = options || {};
|
504
395
|
options.otherArgs = options.otherArgs || {};
|
505
396
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
506
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
507
|
-
|
508
|
-
parent: request.parent ?? '',
|
509
|
-
});
|
510
|
-
this.initialize().catch(err => {
|
511
|
-
throw err;
|
397
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
398
|
+
'parent': request.parent ?? '',
|
512
399
|
});
|
400
|
+
this.initialize().catch(err => { throw err; });
|
513
401
|
const wrappedCallback = callback
|
514
402
|
? (error, response, rawResponse, _) => {
|
515
403
|
this._log.info('createEvaluation response %j', rawResponse);
|
@@ -517,8 +405,7 @@ class EvaluationServiceClient {
|
|
517
405
|
}
|
518
406
|
: undefined;
|
519
407
|
this._log.info('createEvaluation request %j', request);
|
520
|
-
return this.innerApiCalls
|
521
|
-
.createEvaluation(request, options, wrappedCallback)
|
408
|
+
return this.innerApiCalls.createEvaluation(request, options, wrappedCallback)
|
522
409
|
?.then(([response, rawResponse, _]) => {
|
523
410
|
this._log.info('createEvaluation response %j', rawResponse);
|
524
411
|
return [response, rawResponse, _];
|
@@ -555,13 +442,10 @@ class EvaluationServiceClient {
|
|
555
442
|
options = options || {};
|
556
443
|
options.otherArgs = options.otherArgs || {};
|
557
444
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
558
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
559
|
-
|
560
|
-
parent: request.parent ?? '',
|
561
|
-
});
|
562
|
-
this.initialize().catch(err => {
|
563
|
-
throw err;
|
445
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
446
|
+
'parent': request.parent ?? '',
|
564
447
|
});
|
448
|
+
this.initialize().catch(err => { throw err; });
|
565
449
|
const wrappedCallback = callback
|
566
450
|
? (error, values, nextPageRequest, rawResponse) => {
|
567
451
|
this._log.info('listEvaluations values %j', values);
|
@@ -622,15 +506,12 @@ class EvaluationServiceClient {
|
|
622
506
|
options = options || {};
|
623
507
|
options.otherArgs = options.otherArgs || {};
|
624
508
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
625
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
626
|
-
|
627
|
-
|
628
|
-
});
|
509
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
510
|
+
'parent': request.parent ?? '',
|
511
|
+
});
|
629
512
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
630
513
|
const callSettings = defaultCallSettings.merge(options);
|
631
|
-
this.initialize().catch(err => {
|
632
|
-
throw err;
|
633
|
-
});
|
514
|
+
this.initialize().catch(err => { throw err; });
|
634
515
|
this._log.info('listEvaluations stream %j', request);
|
635
516
|
return this.descriptors.page.listEvaluations.createStream(this.innerApiCalls.listEvaluations, request, callSettings);
|
636
517
|
}
|
@@ -683,15 +564,12 @@ class EvaluationServiceClient {
|
|
683
564
|
options = options || {};
|
684
565
|
options.otherArgs = options.otherArgs || {};
|
685
566
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
686
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
687
|
-
|
688
|
-
|
689
|
-
});
|
567
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
568
|
+
'parent': request.parent ?? '',
|
569
|
+
});
|
690
570
|
const defaultCallSettings = this._defaults['listEvaluations'];
|
691
571
|
const callSettings = defaultCallSettings.merge(options);
|
692
|
-
this.initialize().catch(err => {
|
693
|
-
throw err;
|
694
|
-
});
|
572
|
+
this.initialize().catch(err => { throw err; });
|
695
573
|
this._log.info('listEvaluations iterate %j', request);
|
696
574
|
return this.descriptors.page.listEvaluations.asyncIterate(this.innerApiCalls['listEvaluations'], request, callSettings);
|
697
575
|
}
|
@@ -708,13 +586,10 @@ class EvaluationServiceClient {
|
|
708
586
|
options = options || {};
|
709
587
|
options.otherArgs = options.otherArgs || {};
|
710
588
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
711
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
712
|
-
|
713
|
-
evaluation: request.evaluation ?? '',
|
714
|
-
});
|
715
|
-
this.initialize().catch(err => {
|
716
|
-
throw err;
|
589
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
590
|
+
'evaluation': request.evaluation ?? '',
|
717
591
|
});
|
592
|
+
this.initialize().catch(err => { throw err; });
|
718
593
|
const wrappedCallback = callback
|
719
594
|
? (error, values, nextPageRequest, rawResponse) => {
|
720
595
|
this._log.info('listEvaluationResults values %j', values);
|
@@ -773,15 +648,12 @@ class EvaluationServiceClient {
|
|
773
648
|
options = options || {};
|
774
649
|
options.otherArgs = options.otherArgs || {};
|
775
650
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
776
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
777
|
-
|
778
|
-
|
779
|
-
});
|
651
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
652
|
+
'evaluation': request.evaluation ?? '',
|
653
|
+
});
|
780
654
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
781
655
|
const callSettings = defaultCallSettings.merge(options);
|
782
|
-
this.initialize().catch(err => {
|
783
|
-
throw err;
|
784
|
-
});
|
656
|
+
this.initialize().catch(err => { throw err; });
|
785
657
|
this._log.info('listEvaluationResults stream %j', request);
|
786
658
|
return this.descriptors.page.listEvaluationResults.createStream(this.innerApiCalls.listEvaluationResults, request, callSettings);
|
787
659
|
}
|
@@ -832,103 +704,100 @@ class EvaluationServiceClient {
|
|
832
704
|
options = options || {};
|
833
705
|
options.otherArgs = options.otherArgs || {};
|
834
706
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
835
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
836
|
-
|
837
|
-
|
838
|
-
});
|
707
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
708
|
+
'evaluation': request.evaluation ?? '',
|
709
|
+
});
|
839
710
|
const defaultCallSettings = this._defaults['listEvaluationResults'];
|
840
711
|
const callSettings = defaultCallSettings.merge(options);
|
841
|
-
this.initialize().catch(err => {
|
842
|
-
throw err;
|
843
|
-
});
|
712
|
+
this.initialize().catch(err => { throw err; });
|
844
713
|
this._log.info('listEvaluationResults iterate %j', request);
|
845
714
|
return this.descriptors.page.listEvaluationResults.asyncIterate(this.innerApiCalls['listEvaluationResults'], request, callSettings);
|
846
715
|
}
|
847
716
|
/**
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
717
|
+
* Gets information about a location.
|
718
|
+
*
|
719
|
+
* @param {Object} request
|
720
|
+
* The request object that will be sent.
|
721
|
+
* @param {string} request.name
|
722
|
+
* Resource name for the location.
|
723
|
+
* @param {object} [options]
|
724
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
725
|
+
* @returns {Promise} - The promise which resolves to an array.
|
726
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
727
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
728
|
+
* for more details and examples.
|
729
|
+
* @example
|
730
|
+
* ```
|
731
|
+
* const [response] = await client.getLocation(request);
|
732
|
+
* ```
|
733
|
+
*/
|
865
734
|
getLocation(request, options, callback) {
|
866
735
|
return this.locationsClient.getLocation(request, options, callback);
|
867
736
|
}
|
868
737
|
/**
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
738
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
739
|
+
*
|
740
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
741
|
+
* @param {Object} request
|
742
|
+
* The request object that will be sent.
|
743
|
+
* @param {string} request.name
|
744
|
+
* The resource that owns the locations collection, if applicable.
|
745
|
+
* @param {string} request.filter
|
746
|
+
* The standard list filter.
|
747
|
+
* @param {number} request.pageSize
|
748
|
+
* The standard list page size.
|
749
|
+
* @param {string} request.pageToken
|
750
|
+
* The standard list page token.
|
751
|
+
* @param {object} [options]
|
752
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
753
|
+
* @returns {Object}
|
754
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
755
|
+
* When you iterate the returned iterable, each element will be an object representing
|
756
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
757
|
+
* so you can stop the iteration when you don't need more results.
|
758
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
759
|
+
* for more details and examples.
|
760
|
+
* @example
|
761
|
+
* ```
|
762
|
+
* const iterable = client.listLocationsAsync(request);
|
763
|
+
* for await (const response of iterable) {
|
764
|
+
* // process response
|
765
|
+
* }
|
766
|
+
* ```
|
767
|
+
*/
|
899
768
|
listLocationsAsync(request, options) {
|
900
769
|
return this.locationsClient.listLocationsAsync(request, options);
|
901
770
|
}
|
902
771
|
/**
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
772
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
773
|
+
* method to poll the operation result at intervals as recommended by the API
|
774
|
+
* service.
|
775
|
+
*
|
776
|
+
* @param {Object} request - The request object that will be sent.
|
777
|
+
* @param {string} request.name - The name of the operation resource.
|
778
|
+
* @param {Object=} options
|
779
|
+
* Optional parameters. You can override the default settings for this call,
|
780
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
781
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
782
|
+
* for the details.
|
783
|
+
* @param {function(?Error, ?Object)=} callback
|
784
|
+
* The function which will be called with the result of the API call.
|
785
|
+
*
|
786
|
+
* The second parameter to the callback is an object representing
|
787
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
788
|
+
* @return {Promise} - The promise which resolves to an array.
|
789
|
+
* The first element of the array is an object representing
|
790
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
791
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
792
|
+
*
|
793
|
+
* @example
|
794
|
+
* ```
|
795
|
+
* const client = longrunning.operationsClient();
|
796
|
+
* const name = '';
|
797
|
+
* const [response] = await client.getOperation({name});
|
798
|
+
* // doThingsWith(response)
|
799
|
+
* ```
|
800
|
+
*/
|
932
801
|
getOperation(request, optionsOrCallback, callback) {
|
933
802
|
let options;
|
934
803
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1162,8 +1031,7 @@ class EvaluationServiceClient {
|
|
1162
1031
|
* @returns {string} A string representing the project.
|
1163
1032
|
*/
|
1164
1033
|
matchProjectFromEvaluationName(evaluationName) {
|
1165
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1166
|
-
.project;
|
1034
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
1167
1035
|
}
|
1168
1036
|
/**
|
1169
1037
|
* Parse the location from Evaluation resource.
|
@@ -1173,8 +1041,7 @@ class EvaluationServiceClient {
|
|
1173
1041
|
* @returns {string} A string representing the location.
|
1174
1042
|
*/
|
1175
1043
|
matchLocationFromEvaluationName(evaluationName) {
|
1176
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1177
|
-
.location;
|
1044
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
1178
1045
|
}
|
1179
1046
|
/**
|
1180
1047
|
* Parse the evaluation from Evaluation resource.
|
@@ -1184,8 +1051,7 @@ class EvaluationServiceClient {
|
|
1184
1051
|
* @returns {string} A string representing the evaluation.
|
1185
1052
|
*/
|
1186
1053
|
matchEvaluationFromEvaluationName(evaluationName) {
|
1187
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1188
|
-
.evaluation;
|
1054
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
1189
1055
|
}
|
1190
1056
|
/**
|
1191
1057
|
* Return a fully-qualified groundingConfig resource name string.
|
@@ -3456,8 +3322,7 @@ class EvaluationServiceClient {
|
|
3456
3322
|
* @returns {string} A string representing the project.
|
3457
3323
|
*/
|
3458
3324
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3459
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3460
|
-
.project;
|
3325
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3461
3326
|
}
|
3462
3327
|
/**
|
3463
3328
|
* Parse the location from SampleQuery resource.
|
@@ -3467,8 +3332,7 @@ class EvaluationServiceClient {
|
|
3467
3332
|
* @returns {string} A string representing the location.
|
3468
3333
|
*/
|
3469
3334
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3470
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3471
|
-
.location;
|
3335
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3472
3336
|
}
|
3473
3337
|
/**
|
3474
3338
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3478,8 +3342,7 @@ class EvaluationServiceClient {
|
|
3478
3342
|
* @returns {string} A string representing the sample_query_set.
|
3479
3343
|
*/
|
3480
3344
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3481
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3482
|
-
.sample_query_set;
|
3345
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3483
3346
|
}
|
3484
3347
|
/**
|
3485
3348
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3489,8 +3352,7 @@ class EvaluationServiceClient {
|
|
3489
3352
|
* @returns {string} A string representing the sample_query.
|
3490
3353
|
*/
|
3491
3354
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3492
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3493
|
-
.sample_query;
|
3355
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3494
3356
|
}
|
3495
3357
|
/**
|
3496
3358
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3549,8 +3411,8 @@ class EvaluationServiceClient {
|
|
3549
3411
|
this._log.info('ending gRPC channel');
|
3550
3412
|
this._terminated = true;
|
3551
3413
|
stub.close();
|
3552
|
-
this.locationsClient.close();
|
3553
|
-
this.operationsClient.close();
|
3414
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3415
|
+
void this.operationsClient.close();
|
3554
3416
|
});
|
3555
3417
|
}
|
3556
3418
|
return Promise.resolve();
|