@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
@@ -98,26 +98,17 @@ class CompletionServiceClient {
|
|
98
98
|
constructor(opts, gaxInstance) {
|
99
99
|
// Ensure that options include all the required fields.
|
100
100
|
const staticMembers = this.constructor;
|
101
|
-
if (opts?.universe_domain &&
|
102
|
-
opts?.universeDomain &&
|
103
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
101
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
104
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
105
103
|
}
|
106
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
107
|
-
|
108
|
-
: undefined;
|
109
|
-
this._universeDomain =
|
110
|
-
opts?.universeDomain ??
|
111
|
-
opts?.universe_domain ??
|
112
|
-
universeDomainEnvVar ??
|
113
|
-
'googleapis.com';
|
104
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
105
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
114
106
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
115
107
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
116
108
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
117
109
|
const port = opts?.port || staticMembers.port;
|
118
110
|
const clientConfig = opts?.clientConfig ?? {};
|
119
|
-
const fallback = opts?.fallback ??
|
120
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
111
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
121
112
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
122
113
|
// Request numeric enum values if REST transport is used.
|
123
114
|
opts.numericEnums = true;
|
@@ -147,7 +138,10 @@ class CompletionServiceClient {
|
|
147
138
|
}
|
148
139
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
149
140
|
// Determine the client header string.
|
150
|
-
const clientHeader = [
|
141
|
+
const clientHeader = [
|
142
|
+
`gax/${this._gaxModule.version}`,
|
143
|
+
`gapic/${version}`,
|
144
|
+
];
|
151
145
|
if (typeof process === 'object' && 'versions' in process) {
|
152
146
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
153
147
|
}
|
@@ -213,121 +207,16 @@ class CompletionServiceClient {
|
|
213
207
|
// rather than holding a request open.
|
214
208
|
const lroOptions = {
|
215
209
|
auth: this.auth,
|
216
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
210
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
217
211
|
};
|
218
212
|
if (opts.fallback) {
|
219
213
|
lroOptions.protoJson = protoFilesRoot;
|
220
|
-
lroOptions.httpRules = [
|
221
|
-
{
|
222
|
-
|
223
|
-
|
224
|
-
body: '*',
|
225
|
-
additional_bindings: [
|
226
|
-
{
|
227
|
-
post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
228
|
-
body: '*',
|
229
|
-
},
|
230
|
-
],
|
231
|
-
},
|
232
|
-
{
|
233
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
234
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
235
|
-
additional_bindings: [
|
236
|
-
{
|
237
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
238
|
-
},
|
239
|
-
{
|
240
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
241
|
-
},
|
242
|
-
{
|
243
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
244
|
-
},
|
245
|
-
{
|
246
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
247
|
-
},
|
248
|
-
{
|
249
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
250
|
-
},
|
251
|
-
{
|
252
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
253
|
-
},
|
254
|
-
{
|
255
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
256
|
-
},
|
257
|
-
{
|
258
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}',
|
259
|
-
},
|
260
|
-
{
|
261
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
262
|
-
},
|
263
|
-
{
|
264
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
265
|
-
},
|
266
|
-
{
|
267
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
268
|
-
},
|
269
|
-
{
|
270
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
271
|
-
},
|
272
|
-
{
|
273
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
274
|
-
},
|
275
|
-
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
276
|
-
{
|
277
|
-
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
278
|
-
},
|
279
|
-
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
280
|
-
],
|
281
|
-
},
|
282
|
-
{
|
283
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
284
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
285
|
-
additional_bindings: [
|
286
|
-
{
|
287
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
288
|
-
},
|
289
|
-
{
|
290
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
291
|
-
},
|
292
|
-
{
|
293
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
294
|
-
},
|
295
|
-
{
|
296
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
297
|
-
},
|
298
|
-
{
|
299
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
300
|
-
},
|
301
|
-
{
|
302
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
303
|
-
},
|
304
|
-
{
|
305
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
306
|
-
},
|
307
|
-
{
|
308
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations',
|
309
|
-
},
|
310
|
-
{
|
311
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
312
|
-
},
|
313
|
-
{
|
314
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
315
|
-
},
|
316
|
-
{
|
317
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
318
|
-
},
|
319
|
-
{
|
320
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
321
|
-
},
|
322
|
-
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
323
|
-
{ get: '/v1alpha/{name=projects/*}/operations' },
|
324
|
-
],
|
325
|
-
},
|
326
|
-
];
|
214
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
215
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', additional_bindings: [{ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/operations/*}', }],
|
216
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations', additional_bindings: [{ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*}/operations', }, { get: '/v1alpha/{name=projects/*}/operations', }],
|
217
|
+
}];
|
327
218
|
}
|
328
|
-
this.operationsClient = this._gaxModule
|
329
|
-
.lro(lroOptions)
|
330
|
-
.operationsClient(opts);
|
219
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
331
220
|
const importSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse');
|
332
221
|
const importSuggestionDenyListEntriesMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata');
|
333
222
|
const purgeSuggestionDenyListEntriesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse');
|
@@ -340,7 +229,7 @@ class CompletionServiceClient {
|
|
340
229
|
importSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importSuggestionDenyListEntriesResponse.decode.bind(importSuggestionDenyListEntriesResponse), importSuggestionDenyListEntriesMetadata.decode.bind(importSuggestionDenyListEntriesMetadata)),
|
341
230
|
purgeSuggestionDenyListEntries: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeSuggestionDenyListEntriesResponse.decode.bind(purgeSuggestionDenyListEntriesResponse), purgeSuggestionDenyListEntriesMetadata.decode.bind(purgeSuggestionDenyListEntriesMetadata)),
|
342
231
|
importCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importCompletionSuggestionsResponse.decode.bind(importCompletionSuggestionsResponse), importCompletionSuggestionsMetadata.decode.bind(importCompletionSuggestionsMetadata)),
|
343
|
-
purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata))
|
232
|
+
purgeCompletionSuggestions: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeCompletionSuggestionsResponse.decode.bind(purgeCompletionSuggestionsResponse), purgeCompletionSuggestionsMetadata.decode.bind(purgeCompletionSuggestionsMetadata))
|
344
233
|
};
|
345
234
|
// Put together the default options sent with requests.
|
346
235
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.CompletionService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -369,20 +258,13 @@ class CompletionServiceClient {
|
|
369
258
|
}
|
370
259
|
// Put together the "service stub" for
|
371
260
|
// google.cloud.discoveryengine.v1alpha.CompletionService.
|
372
|
-
this.completionServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
.CompletionService, this._opts, this._providedCustomServicePath);
|
261
|
+
this.completionServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
262
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1alpha.CompletionService') :
|
263
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
264
|
+
this._protos.google.cloud.discoveryengine.v1alpha.CompletionService, this._opts, this._providedCustomServicePath);
|
377
265
|
// Iterate over each of the methods that the service provides
|
378
266
|
// and create an API call method for each.
|
379
|
-
const completionServiceStubMethods = [
|
380
|
-
'completeQuery',
|
381
|
-
'importSuggestionDenyListEntries',
|
382
|
-
'purgeSuggestionDenyListEntries',
|
383
|
-
'importCompletionSuggestions',
|
384
|
-
'purgeCompletionSuggestions',
|
385
|
-
];
|
267
|
+
const completionServiceStubMethods = ['completeQuery', 'importSuggestionDenyListEntries', 'purgeSuggestionDenyListEntries', 'importCompletionSuggestions', 'purgeCompletionSuggestions'];
|
386
268
|
for (const methodName of completionServiceStubMethods) {
|
387
269
|
const callPromise = this.completionServiceStub.then(stub => (...args) => {
|
388
270
|
if (this._terminated) {
|
@@ -393,7 +275,8 @@ class CompletionServiceClient {
|
|
393
275
|
}, (err) => () => {
|
394
276
|
throw err;
|
395
277
|
});
|
396
|
-
const descriptor = this.descriptors.longrunning[methodName] ||
|
278
|
+
const descriptor = this.descriptors.longrunning[methodName] ||
|
279
|
+
undefined;
|
397
280
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
398
281
|
this.innerApiCalls[methodName] = apiCall;
|
399
282
|
}
|
@@ -405,8 +288,7 @@ class CompletionServiceClient {
|
|
405
288
|
* @returns {string} The DNS address for this service.
|
406
289
|
*/
|
407
290
|
static get servicePath() {
|
408
|
-
if (typeof process === 'object' &&
|
409
|
-
typeof process.emitWarning === 'function') {
|
291
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
410
292
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
411
293
|
}
|
412
294
|
return 'discoveryengine.googleapis.com';
|
@@ -417,8 +299,7 @@ class CompletionServiceClient {
|
|
417
299
|
* @returns {string} The DNS address for this service.
|
418
300
|
*/
|
419
301
|
static get apiEndpoint() {
|
420
|
-
if (typeof process === 'object' &&
|
421
|
-
typeof process.emitWarning === 'function') {
|
302
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
422
303
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
423
304
|
}
|
424
305
|
return 'discoveryengine.googleapis.com';
|
@@ -446,7 +327,9 @@ class CompletionServiceClient {
|
|
446
327
|
* @returns {string[]} List of default scopes.
|
447
328
|
*/
|
448
329
|
static get scopes() {
|
449
|
-
return [
|
330
|
+
return [
|
331
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
332
|
+
];
|
450
333
|
}
|
451
334
|
/**
|
452
335
|
* Return the project ID used by this class.
|
@@ -472,13 +355,10 @@ class CompletionServiceClient {
|
|
472
355
|
options = options || {};
|
473
356
|
options.otherArgs = options.otherArgs || {};
|
474
357
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
475
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
476
|
-
|
477
|
-
data_store: request.dataStore ?? '',
|
478
|
-
});
|
479
|
-
this.initialize().catch(err => {
|
480
|
-
throw err;
|
358
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
359
|
+
'data_store': request.dataStore ?? '',
|
481
360
|
});
|
361
|
+
this.initialize().catch(err => { throw err; });
|
482
362
|
this._log.info('completeQuery request %j', request);
|
483
363
|
const wrappedCallback = callback
|
484
364
|
? (error, response, options, rawResponse) => {
|
@@ -486,8 +366,7 @@ class CompletionServiceClient {
|
|
486
366
|
callback(error, response, options, rawResponse); // We verified callback above.
|
487
367
|
}
|
488
368
|
: undefined;
|
489
|
-
return this.innerApiCalls
|
490
|
-
.completeQuery(request, options, wrappedCallback)
|
369
|
+
return this.innerApiCalls.completeQuery(request, options, wrappedCallback)
|
491
370
|
?.then(([response, options, rawResponse]) => {
|
492
371
|
this._log.info('completeQuery response %j', response);
|
493
372
|
return [response, options, rawResponse];
|
@@ -506,13 +385,10 @@ class CompletionServiceClient {
|
|
506
385
|
options = options || {};
|
507
386
|
options.otherArgs = options.otherArgs || {};
|
508
387
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
509
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
510
|
-
|
511
|
-
parent: request.parent ?? '',
|
512
|
-
});
|
513
|
-
this.initialize().catch(err => {
|
514
|
-
throw err;
|
388
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
389
|
+
'parent': request.parent ?? '',
|
515
390
|
});
|
391
|
+
this.initialize().catch(err => { throw err; });
|
516
392
|
const wrappedCallback = callback
|
517
393
|
? (error, response, rawResponse, _) => {
|
518
394
|
this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
|
@@ -520,8 +396,7 @@ class CompletionServiceClient {
|
|
520
396
|
}
|
521
397
|
: undefined;
|
522
398
|
this._log.info('importSuggestionDenyListEntries request %j', request);
|
523
|
-
return this.innerApiCalls
|
524
|
-
.importSuggestionDenyListEntries(request, options, wrappedCallback)
|
399
|
+
return this.innerApiCalls.importSuggestionDenyListEntries(request, options, wrappedCallback)
|
525
400
|
?.then(([response, rawResponse, _]) => {
|
526
401
|
this._log.info('importSuggestionDenyListEntries response %j', rawResponse);
|
527
402
|
return [response, rawResponse, _];
|
@@ -558,13 +433,10 @@ class CompletionServiceClient {
|
|
558
433
|
options = options || {};
|
559
434
|
options.otherArgs = options.otherArgs || {};
|
560
435
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
561
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
562
|
-
|
563
|
-
parent: request.parent ?? '',
|
564
|
-
});
|
565
|
-
this.initialize().catch(err => {
|
566
|
-
throw err;
|
436
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
437
|
+
'parent': request.parent ?? '',
|
567
438
|
});
|
439
|
+
this.initialize().catch(err => { throw err; });
|
568
440
|
const wrappedCallback = callback
|
569
441
|
? (error, response, rawResponse, _) => {
|
570
442
|
this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
|
@@ -572,8 +444,7 @@ class CompletionServiceClient {
|
|
572
444
|
}
|
573
445
|
: undefined;
|
574
446
|
this._log.info('purgeSuggestionDenyListEntries request %j', request);
|
575
|
-
return this.innerApiCalls
|
576
|
-
.purgeSuggestionDenyListEntries(request, options, wrappedCallback)
|
447
|
+
return this.innerApiCalls.purgeSuggestionDenyListEntries(request, options, wrappedCallback)
|
577
448
|
?.then(([response, rawResponse, _]) => {
|
578
449
|
this._log.info('purgeSuggestionDenyListEntries response %j', rawResponse);
|
579
450
|
return [response, rawResponse, _];
|
@@ -610,13 +481,10 @@ class CompletionServiceClient {
|
|
610
481
|
options = options || {};
|
611
482
|
options.otherArgs = options.otherArgs || {};
|
612
483
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
613
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
614
|
-
|
615
|
-
parent: request.parent ?? '',
|
616
|
-
});
|
617
|
-
this.initialize().catch(err => {
|
618
|
-
throw err;
|
484
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
485
|
+
'parent': request.parent ?? '',
|
619
486
|
});
|
487
|
+
this.initialize().catch(err => { throw err; });
|
620
488
|
const wrappedCallback = callback
|
621
489
|
? (error, response, rawResponse, _) => {
|
622
490
|
this._log.info('importCompletionSuggestions response %j', rawResponse);
|
@@ -624,8 +492,7 @@ class CompletionServiceClient {
|
|
624
492
|
}
|
625
493
|
: undefined;
|
626
494
|
this._log.info('importCompletionSuggestions request %j', request);
|
627
|
-
return this.innerApiCalls
|
628
|
-
.importCompletionSuggestions(request, options, wrappedCallback)
|
495
|
+
return this.innerApiCalls.importCompletionSuggestions(request, options, wrappedCallback)
|
629
496
|
?.then(([response, rawResponse, _]) => {
|
630
497
|
this._log.info('importCompletionSuggestions response %j', rawResponse);
|
631
498
|
return [response, rawResponse, _];
|
@@ -662,13 +529,10 @@ class CompletionServiceClient {
|
|
662
529
|
options = options || {};
|
663
530
|
options.otherArgs = options.otherArgs || {};
|
664
531
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
665
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
666
|
-
|
667
|
-
parent: request.parent ?? '',
|
668
|
-
});
|
669
|
-
this.initialize().catch(err => {
|
670
|
-
throw err;
|
532
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
533
|
+
'parent': request.parent ?? '',
|
671
534
|
});
|
535
|
+
this.initialize().catch(err => { throw err; });
|
672
536
|
const wrappedCallback = callback
|
673
537
|
? (error, response, rawResponse, _) => {
|
674
538
|
this._log.info('purgeCompletionSuggestions response %j', rawResponse);
|
@@ -676,8 +540,7 @@ class CompletionServiceClient {
|
|
676
540
|
}
|
677
541
|
: undefined;
|
678
542
|
this._log.info('purgeCompletionSuggestions request %j', request);
|
679
|
-
return this.innerApiCalls
|
680
|
-
.purgeCompletionSuggestions(request, options, wrappedCallback)
|
543
|
+
return this.innerApiCalls.purgeCompletionSuggestions(request, options, wrappedCallback)
|
681
544
|
?.then(([response, rawResponse, _]) => {
|
682
545
|
this._log.info('purgeCompletionSuggestions response %j', rawResponse);
|
683
546
|
return [response, rawResponse, _];
|
@@ -702,90 +565,90 @@ class CompletionServiceClient {
|
|
702
565
|
return decodeOperation;
|
703
566
|
}
|
704
567
|
/**
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
568
|
+
* Gets information about a location.
|
569
|
+
*
|
570
|
+
* @param {Object} request
|
571
|
+
* The request object that will be sent.
|
572
|
+
* @param {string} request.name
|
573
|
+
* Resource name for the location.
|
574
|
+
* @param {object} [options]
|
575
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
576
|
+
* @returns {Promise} - The promise which resolves to an array.
|
577
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
578
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
579
|
+
* for more details and examples.
|
580
|
+
* @example
|
581
|
+
* ```
|
582
|
+
* const [response] = await client.getLocation(request);
|
583
|
+
* ```
|
584
|
+
*/
|
722
585
|
getLocation(request, options, callback) {
|
723
586
|
return this.locationsClient.getLocation(request, options, callback);
|
724
587
|
}
|
725
588
|
/**
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
589
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
590
|
+
*
|
591
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
592
|
+
* @param {Object} request
|
593
|
+
* The request object that will be sent.
|
594
|
+
* @param {string} request.name
|
595
|
+
* The resource that owns the locations collection, if applicable.
|
596
|
+
* @param {string} request.filter
|
597
|
+
* The standard list filter.
|
598
|
+
* @param {number} request.pageSize
|
599
|
+
* The standard list page size.
|
600
|
+
* @param {string} request.pageToken
|
601
|
+
* The standard list page token.
|
602
|
+
* @param {object} [options]
|
603
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
604
|
+
* @returns {Object}
|
605
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
606
|
+
* When you iterate the returned iterable, each element will be an object representing
|
607
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
608
|
+
* so you can stop the iteration when you don't need more results.
|
609
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
610
|
+
* for more details and examples.
|
611
|
+
* @example
|
612
|
+
* ```
|
613
|
+
* const iterable = client.listLocationsAsync(request);
|
614
|
+
* for await (const response of iterable) {
|
615
|
+
* // process response
|
616
|
+
* }
|
617
|
+
* ```
|
618
|
+
*/
|
756
619
|
listLocationsAsync(request, options) {
|
757
620
|
return this.locationsClient.listLocationsAsync(request, options);
|
758
621
|
}
|
759
622
|
/**
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
623
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
624
|
+
* method to poll the operation result at intervals as recommended by the API
|
625
|
+
* service.
|
626
|
+
*
|
627
|
+
* @param {Object} request - The request object that will be sent.
|
628
|
+
* @param {string} request.name - The name of the operation resource.
|
629
|
+
* @param {Object=} options
|
630
|
+
* Optional parameters. You can override the default settings for this call,
|
631
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
632
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
633
|
+
* for the details.
|
634
|
+
* @param {function(?Error, ?Object)=} callback
|
635
|
+
* The function which will be called with the result of the API call.
|
636
|
+
*
|
637
|
+
* The second parameter to the callback is an object representing
|
638
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
639
|
+
* @return {Promise} - The promise which resolves to an array.
|
640
|
+
* The first element of the array is an object representing
|
641
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
642
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
643
|
+
*
|
644
|
+
* @example
|
645
|
+
* ```
|
646
|
+
* const client = longrunning.operationsClient();
|
647
|
+
* const name = '';
|
648
|
+
* const [response] = await client.getOperation({name});
|
649
|
+
* // doThingsWith(response)
|
650
|
+
* ```
|
651
|
+
*/
|
789
652
|
getOperation(request, optionsOrCallback, callback) {
|
790
653
|
let options;
|
791
654
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -960,8 +823,7 @@ class CompletionServiceClient {
|
|
960
823
|
* @returns {string} A string representing the project.
|
961
824
|
*/
|
962
825
|
matchProjectFromAclConfigName(aclConfigName) {
|
963
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
964
|
-
.project;
|
826
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).project;
|
965
827
|
}
|
966
828
|
/**
|
967
829
|
* Parse the location from AclConfig resource.
|
@@ -971,8 +833,7 @@ class CompletionServiceClient {
|
|
971
833
|
* @returns {string} A string representing the location.
|
972
834
|
*/
|
973
835
|
matchLocationFromAclConfigName(aclConfigName) {
|
974
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
975
|
-
.location;
|
836
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).location;
|
976
837
|
}
|
977
838
|
/**
|
978
839
|
* Return a fully-qualified engine resource name string.
|
@@ -1054,8 +915,7 @@ class CompletionServiceClient {
|
|
1054
915
|
* @returns {string} A string representing the project.
|
1055
916
|
*/
|
1056
917
|
matchProjectFromEvaluationName(evaluationName) {
|
1057
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1058
|
-
.project;
|
918
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
1059
919
|
}
|
1060
920
|
/**
|
1061
921
|
* Parse the location from Evaluation resource.
|
@@ -1065,8 +925,7 @@ class CompletionServiceClient {
|
|
1065
925
|
* @returns {string} A string representing the location.
|
1066
926
|
*/
|
1067
927
|
matchLocationFromEvaluationName(evaluationName) {
|
1068
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1069
|
-
.location;
|
928
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
1070
929
|
}
|
1071
930
|
/**
|
1072
931
|
* Parse the evaluation from Evaluation resource.
|
@@ -1076,8 +935,7 @@ class CompletionServiceClient {
|
|
1076
935
|
* @returns {string} A string representing the evaluation.
|
1077
936
|
*/
|
1078
937
|
matchEvaluationFromEvaluationName(evaluationName) {
|
1079
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1080
|
-
.evaluation;
|
938
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
1081
939
|
}
|
1082
940
|
/**
|
1083
941
|
* Return a fully-qualified project resource name string.
|
@@ -3144,8 +3002,7 @@ class CompletionServiceClient {
|
|
3144
3002
|
* @returns {string} A string representing the project.
|
3145
3003
|
*/
|
3146
3004
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3147
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3148
|
-
.project;
|
3005
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3149
3006
|
}
|
3150
3007
|
/**
|
3151
3008
|
* Parse the location from SampleQuery resource.
|
@@ -3155,8 +3012,7 @@ class CompletionServiceClient {
|
|
3155
3012
|
* @returns {string} A string representing the location.
|
3156
3013
|
*/
|
3157
3014
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3158
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3159
|
-
.location;
|
3015
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3160
3016
|
}
|
3161
3017
|
/**
|
3162
3018
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3166,8 +3022,7 @@ class CompletionServiceClient {
|
|
3166
3022
|
* @returns {string} A string representing the sample_query_set.
|
3167
3023
|
*/
|
3168
3024
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3169
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3170
|
-
.sample_query_set;
|
3025
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3171
3026
|
}
|
3172
3027
|
/**
|
3173
3028
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3177,8 +3032,7 @@ class CompletionServiceClient {
|
|
3177
3032
|
* @returns {string} A string representing the sample_query.
|
3178
3033
|
*/
|
3179
3034
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3180
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3181
|
-
.sample_query;
|
3035
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3182
3036
|
}
|
3183
3037
|
/**
|
3184
3038
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3237,8 +3091,8 @@ class CompletionServiceClient {
|
|
3237
3091
|
this._log.info('ending gRPC channel');
|
3238
3092
|
this._terminated = true;
|
3239
3093
|
stub.close();
|
3240
|
-
this.locationsClient.close();
|
3241
|
-
this.operationsClient.close();
|
3094
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3095
|
+
void this.operationsClient.close();
|
3242
3096
|
});
|
3243
3097
|
}
|
3244
3098
|
return Promise.resolve();
|