@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 SchemaServiceClient {
|
|
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 SchemaServiceClient {
|
|
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
|
}
|
@@ -211,7 +205,7 @@ class SchemaServiceClient {
|
|
211
205
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
212
206
|
// pages). Denote the keys used for pagination and results.
|
213
207
|
this.descriptors.page = {
|
214
|
-
listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
|
208
|
+
listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
|
215
209
|
};
|
216
210
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
217
211
|
// This API contains "long-running operations", which return a
|
@@ -219,121 +213,16 @@ class SchemaServiceClient {
|
|
219
213
|
// rather than holding a request open.
|
220
214
|
const lroOptions = {
|
221
215
|
auth: this.auth,
|
222
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
216
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
223
217
|
};
|
224
218
|
if (opts.fallback) {
|
225
219
|
lroOptions.protoJson = protoFilesRoot;
|
226
|
-
lroOptions.httpRules = [
|
227
|
-
{
|
228
|
-
|
229
|
-
|
230
|
-
body: '*',
|
231
|
-
additional_bindings: [
|
232
|
-
{
|
233
|
-
post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
234
|
-
body: '*',
|
235
|
-
},
|
236
|
-
],
|
237
|
-
},
|
238
|
-
{
|
239
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
240
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
241
|
-
additional_bindings: [
|
242
|
-
{
|
243
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
244
|
-
},
|
245
|
-
{
|
246
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
247
|
-
},
|
248
|
-
{
|
249
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
250
|
-
},
|
251
|
-
{
|
252
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
253
|
-
},
|
254
|
-
{
|
255
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
256
|
-
},
|
257
|
-
{
|
258
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
259
|
-
},
|
260
|
-
{
|
261
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
262
|
-
},
|
263
|
-
{
|
264
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}',
|
265
|
-
},
|
266
|
-
{
|
267
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
268
|
-
},
|
269
|
-
{
|
270
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
271
|
-
},
|
272
|
-
{
|
273
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
274
|
-
},
|
275
|
-
{
|
276
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
277
|
-
},
|
278
|
-
{
|
279
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
280
|
-
},
|
281
|
-
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
282
|
-
{
|
283
|
-
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
284
|
-
},
|
285
|
-
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
286
|
-
],
|
287
|
-
},
|
288
|
-
{
|
289
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
290
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
291
|
-
additional_bindings: [
|
292
|
-
{
|
293
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
294
|
-
},
|
295
|
-
{
|
296
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
297
|
-
},
|
298
|
-
{
|
299
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
300
|
-
},
|
301
|
-
{
|
302
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
303
|
-
},
|
304
|
-
{
|
305
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
306
|
-
},
|
307
|
-
{
|
308
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
309
|
-
},
|
310
|
-
{
|
311
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
312
|
-
},
|
313
|
-
{
|
314
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations',
|
315
|
-
},
|
316
|
-
{
|
317
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
318
|
-
},
|
319
|
-
{
|
320
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
321
|
-
},
|
322
|
-
{
|
323
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
324
|
-
},
|
325
|
-
{
|
326
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
327
|
-
},
|
328
|
-
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
329
|
-
{ get: '/v1alpha/{name=projects/*}/operations' },
|
330
|
-
],
|
331
|
-
},
|
332
|
-
];
|
220
|
+
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: '*', }],
|
221
|
+
}, { 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/*}', }],
|
222
|
+
}, { 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', }],
|
223
|
+
}];
|
333
224
|
}
|
334
|
-
this.operationsClient = this._gaxModule
|
335
|
-
.lro(lroOptions)
|
336
|
-
.operationsClient(opts);
|
225
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
337
226
|
const createSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.Schema');
|
338
227
|
const createSchemaMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.CreateSchemaMetadata');
|
339
228
|
const updateSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.Schema');
|
@@ -343,7 +232,7 @@ class SchemaServiceClient {
|
|
343
232
|
this.descriptors.longrunning = {
|
344
233
|
createSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createSchemaResponse.decode.bind(createSchemaResponse), createSchemaMetadata.decode.bind(createSchemaMetadata)),
|
345
234
|
updateSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateSchemaResponse.decode.bind(updateSchemaResponse), updateSchemaMetadata.decode.bind(updateSchemaMetadata)),
|
346
|
-
deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
|
235
|
+
deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
|
347
236
|
};
|
348
237
|
// Put together the default options sent with requests.
|
349
238
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.SchemaService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -372,20 +261,13 @@ class SchemaServiceClient {
|
|
372
261
|
}
|
373
262
|
// Put together the "service stub" for
|
374
263
|
// google.cloud.discoveryengine.v1alpha.SchemaService.
|
375
|
-
this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
.SchemaService, this._opts, this._providedCustomServicePath);
|
264
|
+
this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
265
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1alpha.SchemaService') :
|
266
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
267
|
+
this._protos.google.cloud.discoveryengine.v1alpha.SchemaService, this._opts, this._providedCustomServicePath);
|
380
268
|
// Iterate over each of the methods that the service provides
|
381
269
|
// and create an API call method for each.
|
382
|
-
const schemaServiceStubMethods = [
|
383
|
-
'getSchema',
|
384
|
-
'listSchemas',
|
385
|
-
'createSchema',
|
386
|
-
'updateSchema',
|
387
|
-
'deleteSchema',
|
388
|
-
];
|
270
|
+
const schemaServiceStubMethods = ['getSchema', 'listSchemas', 'createSchema', 'updateSchema', 'deleteSchema'];
|
389
271
|
for (const methodName of schemaServiceStubMethods) {
|
390
272
|
const callPromise = this.schemaServiceStub.then(stub => (...args) => {
|
391
273
|
if (this._terminated) {
|
@@ -410,8 +292,7 @@ class SchemaServiceClient {
|
|
410
292
|
* @returns {string} The DNS address for this service.
|
411
293
|
*/
|
412
294
|
static get servicePath() {
|
413
|
-
if (typeof process === 'object' &&
|
414
|
-
typeof process.emitWarning === 'function') {
|
295
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
415
296
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
416
297
|
}
|
417
298
|
return 'discoveryengine.googleapis.com';
|
@@ -422,8 +303,7 @@ class SchemaServiceClient {
|
|
422
303
|
* @returns {string} The DNS address for this service.
|
423
304
|
*/
|
424
305
|
static get apiEndpoint() {
|
425
|
-
if (typeof process === 'object' &&
|
426
|
-
typeof process.emitWarning === 'function') {
|
306
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
427
307
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
428
308
|
}
|
429
309
|
return 'discoveryengine.googleapis.com';
|
@@ -451,7 +331,9 @@ class SchemaServiceClient {
|
|
451
331
|
* @returns {string[]} List of default scopes.
|
452
332
|
*/
|
453
333
|
static get scopes() {
|
454
|
-
return [
|
334
|
+
return [
|
335
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
336
|
+
];
|
455
337
|
}
|
456
338
|
/**
|
457
339
|
* Return the project ID used by this class.
|
@@ -477,13 +359,10 @@ class SchemaServiceClient {
|
|
477
359
|
options = options || {};
|
478
360
|
options.otherArgs = options.otherArgs || {};
|
479
361
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
480
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
481
|
-
|
482
|
-
name: request.name ?? '',
|
483
|
-
});
|
484
|
-
this.initialize().catch(err => {
|
485
|
-
throw err;
|
362
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
363
|
+
'name': request.name ?? '',
|
486
364
|
});
|
365
|
+
this.initialize().catch(err => { throw err; });
|
487
366
|
this._log.info('getSchema request %j', request);
|
488
367
|
const wrappedCallback = callback
|
489
368
|
? (error, response, options, rawResponse) => {
|
@@ -491,8 +370,7 @@ class SchemaServiceClient {
|
|
491
370
|
callback(error, response, options, rawResponse); // We verified callback above.
|
492
371
|
}
|
493
372
|
: undefined;
|
494
|
-
return this.innerApiCalls
|
495
|
-
.getSchema(request, options, wrappedCallback)
|
373
|
+
return this.innerApiCalls.getSchema(request, options, wrappedCallback)
|
496
374
|
?.then(([response, options, rawResponse]) => {
|
497
375
|
this._log.info('getSchema response %j', response);
|
498
376
|
return [response, options, rawResponse];
|
@@ -511,13 +389,10 @@ class SchemaServiceClient {
|
|
511
389
|
options = options || {};
|
512
390
|
options.otherArgs = options.otherArgs || {};
|
513
391
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
514
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
515
|
-
|
516
|
-
parent: request.parent ?? '',
|
517
|
-
});
|
518
|
-
this.initialize().catch(err => {
|
519
|
-
throw err;
|
392
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
393
|
+
'parent': request.parent ?? '',
|
520
394
|
});
|
395
|
+
this.initialize().catch(err => { throw err; });
|
521
396
|
const wrappedCallback = callback
|
522
397
|
? (error, response, rawResponse, _) => {
|
523
398
|
this._log.info('createSchema response %j', rawResponse);
|
@@ -525,8 +400,7 @@ class SchemaServiceClient {
|
|
525
400
|
}
|
526
401
|
: undefined;
|
527
402
|
this._log.info('createSchema request %j', request);
|
528
|
-
return this.innerApiCalls
|
529
|
-
.createSchema(request, options, wrappedCallback)
|
403
|
+
return this.innerApiCalls.createSchema(request, options, wrappedCallback)
|
530
404
|
?.then(([response, rawResponse, _]) => {
|
531
405
|
this._log.info('createSchema response %j', rawResponse);
|
532
406
|
return [response, rawResponse, _];
|
@@ -563,13 +437,10 @@ class SchemaServiceClient {
|
|
563
437
|
options = options || {};
|
564
438
|
options.otherArgs = options.otherArgs || {};
|
565
439
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
566
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
567
|
-
|
568
|
-
'schema.name': request.schema.name ?? '',
|
569
|
-
});
|
570
|
-
this.initialize().catch(err => {
|
571
|
-
throw err;
|
440
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
441
|
+
'schema.name': request.schema.name ?? '',
|
572
442
|
});
|
443
|
+
this.initialize().catch(err => { throw err; });
|
573
444
|
const wrappedCallback = callback
|
574
445
|
? (error, response, rawResponse, _) => {
|
575
446
|
this._log.info('updateSchema response %j', rawResponse);
|
@@ -577,8 +448,7 @@ class SchemaServiceClient {
|
|
577
448
|
}
|
578
449
|
: undefined;
|
579
450
|
this._log.info('updateSchema request %j', request);
|
580
|
-
return this.innerApiCalls
|
581
|
-
.updateSchema(request, options, wrappedCallback)
|
451
|
+
return this.innerApiCalls.updateSchema(request, options, wrappedCallback)
|
582
452
|
?.then(([response, rawResponse, _]) => {
|
583
453
|
this._log.info('updateSchema response %j', rawResponse);
|
584
454
|
return [response, rawResponse, _];
|
@@ -615,13 +485,10 @@ class SchemaServiceClient {
|
|
615
485
|
options = options || {};
|
616
486
|
options.otherArgs = options.otherArgs || {};
|
617
487
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
618
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
619
|
-
|
620
|
-
name: request.name ?? '',
|
621
|
-
});
|
622
|
-
this.initialize().catch(err => {
|
623
|
-
throw err;
|
488
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
489
|
+
'name': request.name ?? '',
|
624
490
|
});
|
491
|
+
this.initialize().catch(err => { throw err; });
|
625
492
|
const wrappedCallback = callback
|
626
493
|
? (error, response, rawResponse, _) => {
|
627
494
|
this._log.info('deleteSchema response %j', rawResponse);
|
@@ -629,8 +496,7 @@ class SchemaServiceClient {
|
|
629
496
|
}
|
630
497
|
: undefined;
|
631
498
|
this._log.info('deleteSchema request %j', request);
|
632
|
-
return this.innerApiCalls
|
633
|
-
.deleteSchema(request, options, wrappedCallback)
|
499
|
+
return this.innerApiCalls.deleteSchema(request, options, wrappedCallback)
|
634
500
|
?.then(([response, rawResponse, _]) => {
|
635
501
|
this._log.info('deleteSchema response %j', rawResponse);
|
636
502
|
return [response, rawResponse, _];
|
@@ -667,13 +533,10 @@ class SchemaServiceClient {
|
|
667
533
|
options = options || {};
|
668
534
|
options.otherArgs = options.otherArgs || {};
|
669
535
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
670
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
671
|
-
|
672
|
-
parent: request.parent ?? '',
|
673
|
-
});
|
674
|
-
this.initialize().catch(err => {
|
675
|
-
throw err;
|
536
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
537
|
+
'parent': request.parent ?? '',
|
676
538
|
});
|
539
|
+
this.initialize().catch(err => { throw err; });
|
677
540
|
const wrappedCallback = callback
|
678
541
|
? (error, values, nextPageRequest, rawResponse) => {
|
679
542
|
this._log.info('listSchemas values %j', values);
|
@@ -728,15 +591,12 @@ class SchemaServiceClient {
|
|
728
591
|
options = options || {};
|
729
592
|
options.otherArgs = options.otherArgs || {};
|
730
593
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
731
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
732
|
-
|
733
|
-
|
734
|
-
});
|
594
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
595
|
+
'parent': request.parent ?? '',
|
596
|
+
});
|
735
597
|
const defaultCallSettings = this._defaults['listSchemas'];
|
736
598
|
const callSettings = defaultCallSettings.merge(options);
|
737
|
-
this.initialize().catch(err => {
|
738
|
-
throw err;
|
739
|
-
});
|
599
|
+
this.initialize().catch(err => { throw err; });
|
740
600
|
this._log.info('listSchemas stream %j', request);
|
741
601
|
return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
|
742
602
|
}
|
@@ -783,103 +643,100 @@ class SchemaServiceClient {
|
|
783
643
|
options = options || {};
|
784
644
|
options.otherArgs = options.otherArgs || {};
|
785
645
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
786
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
787
|
-
|
788
|
-
|
789
|
-
});
|
646
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
647
|
+
'parent': request.parent ?? '',
|
648
|
+
});
|
790
649
|
const defaultCallSettings = this._defaults['listSchemas'];
|
791
650
|
const callSettings = defaultCallSettings.merge(options);
|
792
|
-
this.initialize().catch(err => {
|
793
|
-
throw err;
|
794
|
-
});
|
651
|
+
this.initialize().catch(err => { throw err; });
|
795
652
|
this._log.info('listSchemas iterate %j', request);
|
796
653
|
return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
|
797
654
|
}
|
798
655
|
/**
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
656
|
+
* Gets information about a location.
|
657
|
+
*
|
658
|
+
* @param {Object} request
|
659
|
+
* The request object that will be sent.
|
660
|
+
* @param {string} request.name
|
661
|
+
* Resource name for the location.
|
662
|
+
* @param {object} [options]
|
663
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
664
|
+
* @returns {Promise} - The promise which resolves to an array.
|
665
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
666
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
667
|
+
* for more details and examples.
|
668
|
+
* @example
|
669
|
+
* ```
|
670
|
+
* const [response] = await client.getLocation(request);
|
671
|
+
* ```
|
672
|
+
*/
|
816
673
|
getLocation(request, options, callback) {
|
817
674
|
return this.locationsClient.getLocation(request, options, callback);
|
818
675
|
}
|
819
676
|
/**
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
677
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
678
|
+
*
|
679
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
680
|
+
* @param {Object} request
|
681
|
+
* The request object that will be sent.
|
682
|
+
* @param {string} request.name
|
683
|
+
* The resource that owns the locations collection, if applicable.
|
684
|
+
* @param {string} request.filter
|
685
|
+
* The standard list filter.
|
686
|
+
* @param {number} request.pageSize
|
687
|
+
* The standard list page size.
|
688
|
+
* @param {string} request.pageToken
|
689
|
+
* The standard list page token.
|
690
|
+
* @param {object} [options]
|
691
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
692
|
+
* @returns {Object}
|
693
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
694
|
+
* When you iterate the returned iterable, each element will be an object representing
|
695
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
696
|
+
* so you can stop the iteration when you don't need more results.
|
697
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
698
|
+
* for more details and examples.
|
699
|
+
* @example
|
700
|
+
* ```
|
701
|
+
* const iterable = client.listLocationsAsync(request);
|
702
|
+
* for await (const response of iterable) {
|
703
|
+
* // process response
|
704
|
+
* }
|
705
|
+
* ```
|
706
|
+
*/
|
850
707
|
listLocationsAsync(request, options) {
|
851
708
|
return this.locationsClient.listLocationsAsync(request, options);
|
852
709
|
}
|
853
710
|
/**
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
711
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
712
|
+
* method to poll the operation result at intervals as recommended by the API
|
713
|
+
* service.
|
714
|
+
*
|
715
|
+
* @param {Object} request - The request object that will be sent.
|
716
|
+
* @param {string} request.name - The name of the operation resource.
|
717
|
+
* @param {Object=} options
|
718
|
+
* Optional parameters. You can override the default settings for this call,
|
719
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
720
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
721
|
+
* for the details.
|
722
|
+
* @param {function(?Error, ?Object)=} callback
|
723
|
+
* The function which will be called with the result of the API call.
|
724
|
+
*
|
725
|
+
* The second parameter to the callback is an object representing
|
726
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
727
|
+
* @return {Promise} - The promise which resolves to an array.
|
728
|
+
* The first element of the array is an object representing
|
729
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
730
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
731
|
+
*
|
732
|
+
* @example
|
733
|
+
* ```
|
734
|
+
* const client = longrunning.operationsClient();
|
735
|
+
* const name = '';
|
736
|
+
* const [response] = await client.getOperation({name});
|
737
|
+
* // doThingsWith(response)
|
738
|
+
* ```
|
739
|
+
*/
|
883
740
|
getOperation(request, optionsOrCallback, callback) {
|
884
741
|
let options;
|
885
742
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1054,8 +911,7 @@ class SchemaServiceClient {
|
|
1054
911
|
* @returns {string} A string representing the project.
|
1055
912
|
*/
|
1056
913
|
matchProjectFromAclConfigName(aclConfigName) {
|
1057
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
1058
|
-
.project;
|
914
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).project;
|
1059
915
|
}
|
1060
916
|
/**
|
1061
917
|
* Parse the location from AclConfig resource.
|
@@ -1065,8 +921,7 @@ class SchemaServiceClient {
|
|
1065
921
|
* @returns {string} A string representing the location.
|
1066
922
|
*/
|
1067
923
|
matchLocationFromAclConfigName(aclConfigName) {
|
1068
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
1069
|
-
.location;
|
924
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).location;
|
1070
925
|
}
|
1071
926
|
/**
|
1072
927
|
* Return a fully-qualified engine resource name string.
|
@@ -1148,8 +1003,7 @@ class SchemaServiceClient {
|
|
1148
1003
|
* @returns {string} A string representing the project.
|
1149
1004
|
*/
|
1150
1005
|
matchProjectFromEvaluationName(evaluationName) {
|
1151
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1152
|
-
.project;
|
1006
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
1153
1007
|
}
|
1154
1008
|
/**
|
1155
1009
|
* Parse the location from Evaluation resource.
|
@@ -1159,8 +1013,7 @@ class SchemaServiceClient {
|
|
1159
1013
|
* @returns {string} A string representing the location.
|
1160
1014
|
*/
|
1161
1015
|
matchLocationFromEvaluationName(evaluationName) {
|
1162
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1163
|
-
.location;
|
1016
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
1164
1017
|
}
|
1165
1018
|
/**
|
1166
1019
|
* Parse the evaluation from Evaluation resource.
|
@@ -1170,8 +1023,7 @@ class SchemaServiceClient {
|
|
1170
1023
|
* @returns {string} A string representing the evaluation.
|
1171
1024
|
*/
|
1172
1025
|
matchEvaluationFromEvaluationName(evaluationName) {
|
1173
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1174
|
-
.evaluation;
|
1026
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
1175
1027
|
}
|
1176
1028
|
/**
|
1177
1029
|
* Return a fully-qualified project resource name string.
|
@@ -3238,8 +3090,7 @@ class SchemaServiceClient {
|
|
3238
3090
|
* @returns {string} A string representing the project.
|
3239
3091
|
*/
|
3240
3092
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3241
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3242
|
-
.project;
|
3093
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3243
3094
|
}
|
3244
3095
|
/**
|
3245
3096
|
* Parse the location from SampleQuery resource.
|
@@ -3249,8 +3100,7 @@ class SchemaServiceClient {
|
|
3249
3100
|
* @returns {string} A string representing the location.
|
3250
3101
|
*/
|
3251
3102
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3252
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3253
|
-
.location;
|
3103
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3254
3104
|
}
|
3255
3105
|
/**
|
3256
3106
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3260,8 +3110,7 @@ class SchemaServiceClient {
|
|
3260
3110
|
* @returns {string} A string representing the sample_query_set.
|
3261
3111
|
*/
|
3262
3112
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3263
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3264
|
-
.sample_query_set;
|
3113
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3265
3114
|
}
|
3266
3115
|
/**
|
3267
3116
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3271,8 +3120,7 @@ class SchemaServiceClient {
|
|
3271
3120
|
* @returns {string} A string representing the sample_query.
|
3272
3121
|
*/
|
3273
3122
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3274
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3275
|
-
.sample_query;
|
3123
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3276
3124
|
}
|
3277
3125
|
/**
|
3278
3126
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3331,8 +3179,8 @@ class SchemaServiceClient {
|
|
3331
3179
|
this._log.info('ending gRPC channel');
|
3332
3180
|
this._terminated = true;
|
3333
3181
|
stub.close();
|
3334
|
-
this.locationsClient.close();
|
3335
|
-
this.operationsClient.close();
|
3182
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3183
|
+
void this.operationsClient.close();
|
3336
3184
|
});
|
3337
3185
|
}
|
3338
3186
|
return Promise.resolve();
|