@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 UserEventServiceClient {
|
|
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 UserEventServiceClient {
|
|
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
|
}
|
@@ -209,128 +203,29 @@ class UserEventServiceClient {
|
|
209
203
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
210
204
|
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
211
205
|
};
|
212
|
-
const protoFilesRoot = this._gaxModule.
|
206
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
213
207
|
// This API contains "long-running operations", which return a
|
214
208
|
// an Operation object that allows for tracking of the operation,
|
215
209
|
// rather than holding a request open.
|
216
210
|
const lroOptions = {
|
217
211
|
auth: this.auth,
|
218
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
212
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
219
213
|
};
|
220
214
|
if (opts.fallback) {
|
221
215
|
lroOptions.protoJson = protoFilesRoot;
|
222
|
-
lroOptions.httpRules = [
|
223
|
-
{
|
224
|
-
|
225
|
-
|
226
|
-
body: '*',
|
227
|
-
additional_bindings: [
|
228
|
-
{
|
229
|
-
post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
230
|
-
body: '*',
|
231
|
-
},
|
232
|
-
],
|
233
|
-
},
|
234
|
-
{
|
235
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
236
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
237
|
-
additional_bindings: [
|
238
|
-
{
|
239
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
240
|
-
},
|
241
|
-
{
|
242
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
243
|
-
},
|
244
|
-
{
|
245
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
246
|
-
},
|
247
|
-
{
|
248
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
249
|
-
},
|
250
|
-
{
|
251
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
252
|
-
},
|
253
|
-
{
|
254
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
255
|
-
},
|
256
|
-
{
|
257
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
258
|
-
},
|
259
|
-
{
|
260
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
|
261
|
-
},
|
262
|
-
{
|
263
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
264
|
-
},
|
265
|
-
{
|
266
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
267
|
-
},
|
268
|
-
{
|
269
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
270
|
-
},
|
271
|
-
{
|
272
|
-
get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
273
|
-
},
|
274
|
-
{ get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
|
275
|
-
{
|
276
|
-
get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
277
|
-
},
|
278
|
-
{ get: '/v1beta/{name=projects/*/operations/*}' },
|
279
|
-
],
|
280
|
-
},
|
281
|
-
{
|
282
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
283
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
284
|
-
additional_bindings: [
|
285
|
-
{
|
286
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
287
|
-
},
|
288
|
-
{
|
289
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
290
|
-
},
|
291
|
-
{
|
292
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
293
|
-
},
|
294
|
-
{
|
295
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
296
|
-
},
|
297
|
-
{
|
298
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
299
|
-
},
|
300
|
-
{
|
301
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
302
|
-
},
|
303
|
-
{
|
304
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
305
|
-
},
|
306
|
-
{
|
307
|
-
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
|
308
|
-
},
|
309
|
-
{
|
310
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
311
|
-
},
|
312
|
-
{
|
313
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
314
|
-
},
|
315
|
-
{
|
316
|
-
get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
|
317
|
-
},
|
318
|
-
{ get: '/v1beta/{name=projects/*/locations/*}/operations' },
|
319
|
-
{ get: '/v1beta/{name=projects/*}/operations' },
|
320
|
-
],
|
321
|
-
},
|
322
|
-
];
|
216
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
217
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/operations/*}', }, { get: '/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}', }, { get: '/v1beta/{name=projects/*/operations/*}', }],
|
218
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations', additional_bindings: [{ get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1beta/{name=projects/*/locations/*}/operations', }, { get: '/v1beta/{name=projects/*}/operations', }],
|
219
|
+
}];
|
323
220
|
}
|
324
|
-
this.operationsClient = this._gaxModule
|
325
|
-
.lro(lroOptions)
|
326
|
-
.operationsClient(opts);
|
221
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
327
222
|
const purgeUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse');
|
328
223
|
const purgeUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata');
|
329
224
|
const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse');
|
330
225
|
const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata');
|
331
226
|
this.descriptors.longrunning = {
|
332
227
|
purgeUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeUserEventsResponse.decode.bind(purgeUserEventsResponse), purgeUserEventsMetadata.decode.bind(purgeUserEventsMetadata)),
|
333
|
-
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata))
|
228
|
+
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata))
|
334
229
|
};
|
335
230
|
// Put together the default options sent with requests.
|
336
231
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.UserEventService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -359,19 +254,13 @@ class UserEventServiceClient {
|
|
359
254
|
}
|
360
255
|
// Put together the "service stub" for
|
361
256
|
// google.cloud.discoveryengine.v1beta.UserEventService.
|
362
|
-
this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
.UserEventService, this._opts, this._providedCustomServicePath);
|
257
|
+
this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
258
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1beta.UserEventService') :
|
259
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
260
|
+
this._protos.google.cloud.discoveryengine.v1beta.UserEventService, this._opts, this._providedCustomServicePath);
|
367
261
|
// Iterate over each of the methods that the service provides
|
368
262
|
// and create an API call method for each.
|
369
|
-
const userEventServiceStubMethods = [
|
370
|
-
'writeUserEvent',
|
371
|
-
'collectUserEvent',
|
372
|
-
'purgeUserEvents',
|
373
|
-
'importUserEvents',
|
374
|
-
];
|
263
|
+
const userEventServiceStubMethods = ['writeUserEvent', 'collectUserEvent', 'purgeUserEvents', 'importUserEvents'];
|
375
264
|
for (const methodName of userEventServiceStubMethods) {
|
376
265
|
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
377
266
|
if (this._terminated) {
|
@@ -382,7 +271,8 @@ class UserEventServiceClient {
|
|
382
271
|
}, (err) => () => {
|
383
272
|
throw err;
|
384
273
|
});
|
385
|
-
const descriptor = this.descriptors.longrunning[methodName] ||
|
274
|
+
const descriptor = this.descriptors.longrunning[methodName] ||
|
275
|
+
undefined;
|
386
276
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
387
277
|
this.innerApiCalls[methodName] = apiCall;
|
388
278
|
}
|
@@ -394,8 +284,7 @@ class UserEventServiceClient {
|
|
394
284
|
* @returns {string} The DNS address for this service.
|
395
285
|
*/
|
396
286
|
static get servicePath() {
|
397
|
-
if (typeof process === 'object' &&
|
398
|
-
typeof process.emitWarning === 'function') {
|
287
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
399
288
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
400
289
|
}
|
401
290
|
return 'discoveryengine.googleapis.com';
|
@@ -406,8 +295,7 @@ class UserEventServiceClient {
|
|
406
295
|
* @returns {string} The DNS address for this service.
|
407
296
|
*/
|
408
297
|
static get apiEndpoint() {
|
409
|
-
if (typeof process === 'object' &&
|
410
|
-
typeof process.emitWarning === 'function') {
|
298
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
411
299
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
412
300
|
}
|
413
301
|
return 'discoveryengine.googleapis.com';
|
@@ -435,7 +323,9 @@ class UserEventServiceClient {
|
|
435
323
|
* @returns {string[]} List of default scopes.
|
436
324
|
*/
|
437
325
|
static get scopes() {
|
438
|
-
return [
|
326
|
+
return [
|
327
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
328
|
+
];
|
439
329
|
}
|
440
330
|
/**
|
441
331
|
* Return the project ID used by this class.
|
@@ -461,13 +351,10 @@ class UserEventServiceClient {
|
|
461
351
|
options = options || {};
|
462
352
|
options.otherArgs = options.otherArgs || {};
|
463
353
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
464
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
465
|
-
|
466
|
-
parent: request.parent ?? '',
|
467
|
-
});
|
468
|
-
this.initialize().catch(err => {
|
469
|
-
throw err;
|
354
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
355
|
+
'parent': request.parent ?? '',
|
470
356
|
});
|
357
|
+
this.initialize().catch(err => { throw err; });
|
471
358
|
this._log.info('writeUserEvent request %j', request);
|
472
359
|
const wrappedCallback = callback
|
473
360
|
? (error, response, options, rawResponse) => {
|
@@ -475,11 +362,16 @@ class UserEventServiceClient {
|
|
475
362
|
callback(error, response, options, rawResponse); // We verified callback above.
|
476
363
|
}
|
477
364
|
: undefined;
|
478
|
-
return this.innerApiCalls
|
479
|
-
.writeUserEvent(request, options, wrappedCallback)
|
365
|
+
return this.innerApiCalls.writeUserEvent(request, options, wrappedCallback)
|
480
366
|
?.then(([response, options, rawResponse]) => {
|
481
367
|
this._log.info('writeUserEvent response %j', response);
|
482
368
|
return [response, options, rawResponse];
|
369
|
+
}).catch((error) => {
|
370
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
371
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
372
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
373
|
+
}
|
374
|
+
throw error;
|
483
375
|
});
|
484
376
|
}
|
485
377
|
collectUserEvent(request, optionsOrCallback, callback) {
|
@@ -495,13 +387,10 @@ class UserEventServiceClient {
|
|
495
387
|
options = options || {};
|
496
388
|
options.otherArgs = options.otherArgs || {};
|
497
389
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
498
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
499
|
-
|
500
|
-
parent: request.parent ?? '',
|
501
|
-
});
|
502
|
-
this.initialize().catch(err => {
|
503
|
-
throw err;
|
390
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
391
|
+
'parent': request.parent ?? '',
|
504
392
|
});
|
393
|
+
this.initialize().catch(err => { throw err; });
|
505
394
|
this._log.info('collectUserEvent request %j', request);
|
506
395
|
const wrappedCallback = callback
|
507
396
|
? (error, response, options, rawResponse) => {
|
@@ -509,11 +398,16 @@ class UserEventServiceClient {
|
|
509
398
|
callback(error, response, options, rawResponse); // We verified callback above.
|
510
399
|
}
|
511
400
|
: undefined;
|
512
|
-
return this.innerApiCalls
|
513
|
-
.collectUserEvent(request, options, wrappedCallback)
|
401
|
+
return this.innerApiCalls.collectUserEvent(request, options, wrappedCallback)
|
514
402
|
?.then(([response, options, rawResponse]) => {
|
515
403
|
this._log.info('collectUserEvent response %j', response);
|
516
404
|
return [response, options, rawResponse];
|
405
|
+
}).catch((error) => {
|
406
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
407
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
408
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
409
|
+
}
|
410
|
+
throw error;
|
517
411
|
});
|
518
412
|
}
|
519
413
|
purgeUserEvents(request, optionsOrCallback, callback) {
|
@@ -529,13 +423,10 @@ class UserEventServiceClient {
|
|
529
423
|
options = options || {};
|
530
424
|
options.otherArgs = options.otherArgs || {};
|
531
425
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
532
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
533
|
-
|
534
|
-
parent: request.parent ?? '',
|
535
|
-
});
|
536
|
-
this.initialize().catch(err => {
|
537
|
-
throw err;
|
426
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
427
|
+
'parent': request.parent ?? '',
|
538
428
|
});
|
429
|
+
this.initialize().catch(err => { throw err; });
|
539
430
|
const wrappedCallback = callback
|
540
431
|
? (error, response, rawResponse, _) => {
|
541
432
|
this._log.info('purgeUserEvents response %j', rawResponse);
|
@@ -543,8 +434,7 @@ class UserEventServiceClient {
|
|
543
434
|
}
|
544
435
|
: undefined;
|
545
436
|
this._log.info('purgeUserEvents request %j', request);
|
546
|
-
return this.innerApiCalls
|
547
|
-
.purgeUserEvents(request, options, wrappedCallback)
|
437
|
+
return this.innerApiCalls.purgeUserEvents(request, options, wrappedCallback)
|
548
438
|
?.then(([response, rawResponse, _]) => {
|
549
439
|
this._log.info('purgeUserEvents response %j', rawResponse);
|
550
440
|
return [response, rawResponse, _];
|
@@ -581,13 +471,10 @@ class UserEventServiceClient {
|
|
581
471
|
options = options || {};
|
582
472
|
options.otherArgs = options.otherArgs || {};
|
583
473
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
584
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
585
|
-
|
586
|
-
parent: request.parent ?? '',
|
587
|
-
});
|
588
|
-
this.initialize().catch(err => {
|
589
|
-
throw err;
|
474
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
475
|
+
'parent': request.parent ?? '',
|
590
476
|
});
|
477
|
+
this.initialize().catch(err => { throw err; });
|
591
478
|
const wrappedCallback = callback
|
592
479
|
? (error, response, rawResponse, _) => {
|
593
480
|
this._log.info('importUserEvents response %j', rawResponse);
|
@@ -595,8 +482,7 @@ class UserEventServiceClient {
|
|
595
482
|
}
|
596
483
|
: undefined;
|
597
484
|
this._log.info('importUserEvents request %j', request);
|
598
|
-
return this.innerApiCalls
|
599
|
-
.importUserEvents(request, options, wrappedCallback)
|
485
|
+
return this.innerApiCalls.importUserEvents(request, options, wrappedCallback)
|
600
486
|
?.then(([response, rawResponse, _]) => {
|
601
487
|
this._log.info('importUserEvents response %j', rawResponse);
|
602
488
|
return [response, rawResponse, _];
|
@@ -621,90 +507,90 @@ class UserEventServiceClient {
|
|
621
507
|
return decodeOperation;
|
622
508
|
}
|
623
509
|
/**
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
510
|
+
* Gets information about a location.
|
511
|
+
*
|
512
|
+
* @param {Object} request
|
513
|
+
* The request object that will be sent.
|
514
|
+
* @param {string} request.name
|
515
|
+
* Resource name for the location.
|
516
|
+
* @param {object} [options]
|
517
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
518
|
+
* @returns {Promise} - The promise which resolves to an array.
|
519
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
520
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
521
|
+
* for more details and examples.
|
522
|
+
* @example
|
523
|
+
* ```
|
524
|
+
* const [response] = await client.getLocation(request);
|
525
|
+
* ```
|
526
|
+
*/
|
641
527
|
getLocation(request, options, callback) {
|
642
528
|
return this.locationsClient.getLocation(request, options, callback);
|
643
529
|
}
|
644
530
|
/**
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
531
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
532
|
+
*
|
533
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
534
|
+
* @param {Object} request
|
535
|
+
* The request object that will be sent.
|
536
|
+
* @param {string} request.name
|
537
|
+
* The resource that owns the locations collection, if applicable.
|
538
|
+
* @param {string} request.filter
|
539
|
+
* The standard list filter.
|
540
|
+
* @param {number} request.pageSize
|
541
|
+
* The standard list page size.
|
542
|
+
* @param {string} request.pageToken
|
543
|
+
* The standard list page token.
|
544
|
+
* @param {object} [options]
|
545
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
546
|
+
* @returns {Object}
|
547
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
548
|
+
* When you iterate the returned iterable, each element will be an object representing
|
549
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
550
|
+
* so you can stop the iteration when you don't need more results.
|
551
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
552
|
+
* for more details and examples.
|
553
|
+
* @example
|
554
|
+
* ```
|
555
|
+
* const iterable = client.listLocationsAsync(request);
|
556
|
+
* for await (const response of iterable) {
|
557
|
+
* // process response
|
558
|
+
* }
|
559
|
+
* ```
|
560
|
+
*/
|
675
561
|
listLocationsAsync(request, options) {
|
676
562
|
return this.locationsClient.listLocationsAsync(request, options);
|
677
563
|
}
|
678
564
|
/**
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
565
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
566
|
+
* method to poll the operation result at intervals as recommended by the API
|
567
|
+
* service.
|
568
|
+
*
|
569
|
+
* @param {Object} request - The request object that will be sent.
|
570
|
+
* @param {string} request.name - The name of the operation resource.
|
571
|
+
* @param {Object=} options
|
572
|
+
* Optional parameters. You can override the default settings for this call,
|
573
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
574
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
575
|
+
* for the details.
|
576
|
+
* @param {function(?Error, ?Object)=} callback
|
577
|
+
* The function which will be called with the result of the API call.
|
578
|
+
*
|
579
|
+
* The second parameter to the callback is an object representing
|
580
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
581
|
+
* @return {Promise} - The promise which resolves to an array.
|
582
|
+
* The first element of the array is an object representing
|
583
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
584
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
585
|
+
*
|
586
|
+
* @example
|
587
|
+
* ```
|
588
|
+
* const client = longrunning.operationsClient();
|
589
|
+
* const name = '';
|
590
|
+
* const [response] = await client.getOperation({name});
|
591
|
+
* // doThingsWith(response)
|
592
|
+
* ```
|
593
|
+
*/
|
708
594
|
getOperation(request, optionsOrCallback, callback) {
|
709
595
|
let options;
|
710
596
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -938,8 +824,7 @@ class UserEventServiceClient {
|
|
938
824
|
* @returns {string} A string representing the project.
|
939
825
|
*/
|
940
826
|
matchProjectFromEvaluationName(evaluationName) {
|
941
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
942
|
-
.project;
|
827
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
943
828
|
}
|
944
829
|
/**
|
945
830
|
* Parse the location from Evaluation resource.
|
@@ -949,8 +834,7 @@ class UserEventServiceClient {
|
|
949
834
|
* @returns {string} A string representing the location.
|
950
835
|
*/
|
951
836
|
matchLocationFromEvaluationName(evaluationName) {
|
952
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
953
|
-
.location;
|
837
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
954
838
|
}
|
955
839
|
/**
|
956
840
|
* Parse the evaluation from Evaluation resource.
|
@@ -960,8 +844,7 @@ class UserEventServiceClient {
|
|
960
844
|
* @returns {string} A string representing the evaluation.
|
961
845
|
*/
|
962
846
|
matchEvaluationFromEvaluationName(evaluationName) {
|
963
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
964
|
-
.evaluation;
|
847
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
965
848
|
}
|
966
849
|
/**
|
967
850
|
* Return a fully-qualified groundingConfig resource name string.
|
@@ -3199,8 +3082,7 @@ class UserEventServiceClient {
|
|
3199
3082
|
* @returns {string} A string representing the project.
|
3200
3083
|
*/
|
3201
3084
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3202
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3203
|
-
.project;
|
3085
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3204
3086
|
}
|
3205
3087
|
/**
|
3206
3088
|
* Parse the location from SampleQuery resource.
|
@@ -3210,8 +3092,7 @@ class UserEventServiceClient {
|
|
3210
3092
|
* @returns {string} A string representing the location.
|
3211
3093
|
*/
|
3212
3094
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3213
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3214
|
-
.location;
|
3095
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3215
3096
|
}
|
3216
3097
|
/**
|
3217
3098
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3221,8 +3102,7 @@ class UserEventServiceClient {
|
|
3221
3102
|
* @returns {string} A string representing the sample_query_set.
|
3222
3103
|
*/
|
3223
3104
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3224
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3225
|
-
.sample_query_set;
|
3105
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3226
3106
|
}
|
3227
3107
|
/**
|
3228
3108
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3232,8 +3112,7 @@ class UserEventServiceClient {
|
|
3232
3112
|
* @returns {string} A string representing the sample_query.
|
3233
3113
|
*/
|
3234
3114
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3235
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3236
|
-
.sample_query;
|
3115
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3237
3116
|
}
|
3238
3117
|
/**
|
3239
3118
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3292,8 +3171,8 @@ class UserEventServiceClient {
|
|
3292
3171
|
this._log.info('ending gRPC channel');
|
3293
3172
|
this._terminated = true;
|
3294
3173
|
stub.close();
|
3295
|
-
this.locationsClient.close();
|
3296
|
-
this.operationsClient.close();
|
3174
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3175
|
+
void this.operationsClient.close();
|
3297
3176
|
});
|
3298
3177
|
}
|
3299
3178
|
return Promise.resolve();
|