@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
@@ -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,129 +205,24 @@ 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
|
-
const protoFilesRoot = this._gaxModule.
|
210
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
217
211
|
// This API contains "long-running operations", which return a
|
218
212
|
// an Operation object that allows for tracking of the operation,
|
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,11 +370,16 @@ 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];
|
377
|
+
}).catch((error) => {
|
378
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
379
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
380
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
381
|
+
}
|
382
|
+
throw error;
|
499
383
|
});
|
500
384
|
}
|
501
385
|
createSchema(request, optionsOrCallback, callback) {
|
@@ -511,13 +395,10 @@ class SchemaServiceClient {
|
|
511
395
|
options = options || {};
|
512
396
|
options.otherArgs = options.otherArgs || {};
|
513
397
|
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;
|
398
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
399
|
+
'parent': request.parent ?? '',
|
520
400
|
});
|
401
|
+
this.initialize().catch(err => { throw err; });
|
521
402
|
const wrappedCallback = callback
|
522
403
|
? (error, response, rawResponse, _) => {
|
523
404
|
this._log.info('createSchema response %j', rawResponse);
|
@@ -525,8 +406,7 @@ class SchemaServiceClient {
|
|
525
406
|
}
|
526
407
|
: undefined;
|
527
408
|
this._log.info('createSchema request %j', request);
|
528
|
-
return this.innerApiCalls
|
529
|
-
.createSchema(request, options, wrappedCallback)
|
409
|
+
return this.innerApiCalls.createSchema(request, options, wrappedCallback)
|
530
410
|
?.then(([response, rawResponse, _]) => {
|
531
411
|
this._log.info('createSchema response %j', rawResponse);
|
532
412
|
return [response, rawResponse, _];
|
@@ -563,13 +443,10 @@ class SchemaServiceClient {
|
|
563
443
|
options = options || {};
|
564
444
|
options.otherArgs = options.otherArgs || {};
|
565
445
|
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;
|
446
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
447
|
+
'schema.name': request.schema.name ?? '',
|
572
448
|
});
|
449
|
+
this.initialize().catch(err => { throw err; });
|
573
450
|
const wrappedCallback = callback
|
574
451
|
? (error, response, rawResponse, _) => {
|
575
452
|
this._log.info('updateSchema response %j', rawResponse);
|
@@ -577,8 +454,7 @@ class SchemaServiceClient {
|
|
577
454
|
}
|
578
455
|
: undefined;
|
579
456
|
this._log.info('updateSchema request %j', request);
|
580
|
-
return this.innerApiCalls
|
581
|
-
.updateSchema(request, options, wrappedCallback)
|
457
|
+
return this.innerApiCalls.updateSchema(request, options, wrappedCallback)
|
582
458
|
?.then(([response, rawResponse, _]) => {
|
583
459
|
this._log.info('updateSchema response %j', rawResponse);
|
584
460
|
return [response, rawResponse, _];
|
@@ -615,13 +491,10 @@ class SchemaServiceClient {
|
|
615
491
|
options = options || {};
|
616
492
|
options.otherArgs = options.otherArgs || {};
|
617
493
|
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;
|
494
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
495
|
+
'name': request.name ?? '',
|
624
496
|
});
|
497
|
+
this.initialize().catch(err => { throw err; });
|
625
498
|
const wrappedCallback = callback
|
626
499
|
? (error, response, rawResponse, _) => {
|
627
500
|
this._log.info('deleteSchema response %j', rawResponse);
|
@@ -629,8 +502,7 @@ class SchemaServiceClient {
|
|
629
502
|
}
|
630
503
|
: undefined;
|
631
504
|
this._log.info('deleteSchema request %j', request);
|
632
|
-
return this.innerApiCalls
|
633
|
-
.deleteSchema(request, options, wrappedCallback)
|
505
|
+
return this.innerApiCalls.deleteSchema(request, options, wrappedCallback)
|
634
506
|
?.then(([response, rawResponse, _]) => {
|
635
507
|
this._log.info('deleteSchema response %j', rawResponse);
|
636
508
|
return [response, rawResponse, _];
|
@@ -667,13 +539,10 @@ class SchemaServiceClient {
|
|
667
539
|
options = options || {};
|
668
540
|
options.otherArgs = options.otherArgs || {};
|
669
541
|
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;
|
542
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
543
|
+
'parent': request.parent ?? '',
|
676
544
|
});
|
545
|
+
this.initialize().catch(err => { throw err; });
|
677
546
|
const wrappedCallback = callback
|
678
547
|
? (error, values, nextPageRequest, rawResponse) => {
|
679
548
|
this._log.info('listSchemas values %j', values);
|
@@ -728,15 +597,12 @@ class SchemaServiceClient {
|
|
728
597
|
options = options || {};
|
729
598
|
options.otherArgs = options.otherArgs || {};
|
730
599
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
731
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
732
|
-
|
733
|
-
|
734
|
-
});
|
600
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
601
|
+
'parent': request.parent ?? '',
|
602
|
+
});
|
735
603
|
const defaultCallSettings = this._defaults['listSchemas'];
|
736
604
|
const callSettings = defaultCallSettings.merge(options);
|
737
|
-
this.initialize().catch(err => {
|
738
|
-
throw err;
|
739
|
-
});
|
605
|
+
this.initialize().catch(err => { throw err; });
|
740
606
|
this._log.info('listSchemas stream %j', request);
|
741
607
|
return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
|
742
608
|
}
|
@@ -783,103 +649,100 @@ class SchemaServiceClient {
|
|
783
649
|
options = options || {};
|
784
650
|
options.otherArgs = options.otherArgs || {};
|
785
651
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
786
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
787
|
-
|
788
|
-
|
789
|
-
});
|
652
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
653
|
+
'parent': request.parent ?? '',
|
654
|
+
});
|
790
655
|
const defaultCallSettings = this._defaults['listSchemas'];
|
791
656
|
const callSettings = defaultCallSettings.merge(options);
|
792
|
-
this.initialize().catch(err => {
|
793
|
-
throw err;
|
794
|
-
});
|
657
|
+
this.initialize().catch(err => { throw err; });
|
795
658
|
this._log.info('listSchemas iterate %j', request);
|
796
659
|
return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
|
797
660
|
}
|
798
661
|
/**
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
662
|
+
* Gets information about a location.
|
663
|
+
*
|
664
|
+
* @param {Object} request
|
665
|
+
* The request object that will be sent.
|
666
|
+
* @param {string} request.name
|
667
|
+
* Resource name for the location.
|
668
|
+
* @param {object} [options]
|
669
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
670
|
+
* @returns {Promise} - The promise which resolves to an array.
|
671
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
672
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
673
|
+
* for more details and examples.
|
674
|
+
* @example
|
675
|
+
* ```
|
676
|
+
* const [response] = await client.getLocation(request);
|
677
|
+
* ```
|
678
|
+
*/
|
816
679
|
getLocation(request, options, callback) {
|
817
680
|
return this.locationsClient.getLocation(request, options, callback);
|
818
681
|
}
|
819
682
|
/**
|
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
|
-
|
683
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
684
|
+
*
|
685
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
686
|
+
* @param {Object} request
|
687
|
+
* The request object that will be sent.
|
688
|
+
* @param {string} request.name
|
689
|
+
* The resource that owns the locations collection, if applicable.
|
690
|
+
* @param {string} request.filter
|
691
|
+
* The standard list filter.
|
692
|
+
* @param {number} request.pageSize
|
693
|
+
* The standard list page size.
|
694
|
+
* @param {string} request.pageToken
|
695
|
+
* The standard list page token.
|
696
|
+
* @param {object} [options]
|
697
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
698
|
+
* @returns {Object}
|
699
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
700
|
+
* When you iterate the returned iterable, each element will be an object representing
|
701
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
702
|
+
* so you can stop the iteration when you don't need more results.
|
703
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
704
|
+
* for more details and examples.
|
705
|
+
* @example
|
706
|
+
* ```
|
707
|
+
* const iterable = client.listLocationsAsync(request);
|
708
|
+
* for await (const response of iterable) {
|
709
|
+
* // process response
|
710
|
+
* }
|
711
|
+
* ```
|
712
|
+
*/
|
850
713
|
listLocationsAsync(request, options) {
|
851
714
|
return this.locationsClient.listLocationsAsync(request, options);
|
852
715
|
}
|
853
716
|
/**
|
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
|
-
|
717
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
718
|
+
* method to poll the operation result at intervals as recommended by the API
|
719
|
+
* service.
|
720
|
+
*
|
721
|
+
* @param {Object} request - The request object that will be sent.
|
722
|
+
* @param {string} request.name - The name of the operation resource.
|
723
|
+
* @param {Object=} options
|
724
|
+
* Optional parameters. You can override the default settings for this call,
|
725
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
726
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
727
|
+
* for the details.
|
728
|
+
* @param {function(?Error, ?Object)=} callback
|
729
|
+
* The function which will be called with the result of the API call.
|
730
|
+
*
|
731
|
+
* The second parameter to the callback is an object representing
|
732
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
733
|
+
* @return {Promise} - The promise which resolves to an array.
|
734
|
+
* The first element of the array is an object representing
|
735
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
736
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
737
|
+
*
|
738
|
+
* @example
|
739
|
+
* ```
|
740
|
+
* const client = longrunning.operationsClient();
|
741
|
+
* const name = '';
|
742
|
+
* const [response] = await client.getOperation({name});
|
743
|
+
* // doThingsWith(response)
|
744
|
+
* ```
|
745
|
+
*/
|
883
746
|
getOperation(request, optionsOrCallback, callback) {
|
884
747
|
let options;
|
885
748
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1054,8 +917,7 @@ class SchemaServiceClient {
|
|
1054
917
|
* @returns {string} A string representing the project.
|
1055
918
|
*/
|
1056
919
|
matchProjectFromAclConfigName(aclConfigName) {
|
1057
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
1058
|
-
.project;
|
920
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).project;
|
1059
921
|
}
|
1060
922
|
/**
|
1061
923
|
* Parse the location from AclConfig resource.
|
@@ -1065,8 +927,7 @@ class SchemaServiceClient {
|
|
1065
927
|
* @returns {string} A string representing the location.
|
1066
928
|
*/
|
1067
929
|
matchLocationFromAclConfigName(aclConfigName) {
|
1068
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
1069
|
-
.location;
|
930
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).location;
|
1070
931
|
}
|
1071
932
|
/**
|
1072
933
|
* Return a fully-qualified engine resource name string.
|
@@ -1148,8 +1009,7 @@ class SchemaServiceClient {
|
|
1148
1009
|
* @returns {string} A string representing the project.
|
1149
1010
|
*/
|
1150
1011
|
matchProjectFromEvaluationName(evaluationName) {
|
1151
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1152
|
-
.project;
|
1012
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
1153
1013
|
}
|
1154
1014
|
/**
|
1155
1015
|
* Parse the location from Evaluation resource.
|
@@ -1159,8 +1019,7 @@ class SchemaServiceClient {
|
|
1159
1019
|
* @returns {string} A string representing the location.
|
1160
1020
|
*/
|
1161
1021
|
matchLocationFromEvaluationName(evaluationName) {
|
1162
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1163
|
-
.location;
|
1022
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
1164
1023
|
}
|
1165
1024
|
/**
|
1166
1025
|
* Parse the evaluation from Evaluation resource.
|
@@ -1170,8 +1029,7 @@ class SchemaServiceClient {
|
|
1170
1029
|
* @returns {string} A string representing the evaluation.
|
1171
1030
|
*/
|
1172
1031
|
matchEvaluationFromEvaluationName(evaluationName) {
|
1173
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1174
|
-
.evaluation;
|
1032
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
1175
1033
|
}
|
1176
1034
|
/**
|
1177
1035
|
* Return a fully-qualified project resource name string.
|
@@ -3238,8 +3096,7 @@ class SchemaServiceClient {
|
|
3238
3096
|
* @returns {string} A string representing the project.
|
3239
3097
|
*/
|
3240
3098
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3241
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3242
|
-
.project;
|
3099
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3243
3100
|
}
|
3244
3101
|
/**
|
3245
3102
|
* Parse the location from SampleQuery resource.
|
@@ -3249,8 +3106,7 @@ class SchemaServiceClient {
|
|
3249
3106
|
* @returns {string} A string representing the location.
|
3250
3107
|
*/
|
3251
3108
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3252
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3253
|
-
.location;
|
3109
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3254
3110
|
}
|
3255
3111
|
/**
|
3256
3112
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3260,8 +3116,7 @@ class SchemaServiceClient {
|
|
3260
3116
|
* @returns {string} A string representing the sample_query_set.
|
3261
3117
|
*/
|
3262
3118
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3263
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3264
|
-
.sample_query_set;
|
3119
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3265
3120
|
}
|
3266
3121
|
/**
|
3267
3122
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3271,8 +3126,7 @@ class SchemaServiceClient {
|
|
3271
3126
|
* @returns {string} A string representing the sample_query.
|
3272
3127
|
*/
|
3273
3128
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3274
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3275
|
-
.sample_query;
|
3129
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3276
3130
|
}
|
3277
3131
|
/**
|
3278
3132
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3331,8 +3185,8 @@ class SchemaServiceClient {
|
|
3331
3185
|
this._log.info('ending gRPC channel');
|
3332
3186
|
this._terminated = true;
|
3333
3187
|
stub.close();
|
3334
|
-
this.locationsClient.close();
|
3335
|
-
this.operationsClient.close();
|
3188
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3189
|
+
void this.operationsClient.close();
|
3336
3190
|
});
|
3337
3191
|
}
|
3338
3192
|
return Promise.resolve();
|