@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
|
}
|
@@ -207,134 +201,29 @@ class UserEventServiceClient {
|
|
207
201
|
sampleQueryPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}/sampleQueries/{sample_query}'),
|
208
202
|
sampleQuerySetPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sampleQuerySets/{sample_query_set}'),
|
209
203
|
};
|
210
|
-
const protoFilesRoot = this._gaxModule.
|
204
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
211
205
|
// This API contains "long-running operations", which return a
|
212
206
|
// an Operation object that allows for tracking of the operation,
|
213
207
|
// rather than holding a request open.
|
214
208
|
const lroOptions = {
|
215
209
|
auth: this.auth,
|
216
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
210
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
217
211
|
};
|
218
212
|
if (opts.fallback) {
|
219
213
|
lroOptions.protoJson = protoFilesRoot;
|
220
|
-
lroOptions.httpRules = [
|
221
|
-
{
|
222
|
-
|
223
|
-
|
224
|
-
body: '*',
|
225
|
-
additional_bindings: [
|
226
|
-
{
|
227
|
-
post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
228
|
-
body: '*',
|
229
|
-
},
|
230
|
-
],
|
231
|
-
},
|
232
|
-
{
|
233
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
234
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
235
|
-
additional_bindings: [
|
236
|
-
{
|
237
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
238
|
-
},
|
239
|
-
{
|
240
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
241
|
-
},
|
242
|
-
{
|
243
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
244
|
-
},
|
245
|
-
{
|
246
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
247
|
-
},
|
248
|
-
{
|
249
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
250
|
-
},
|
251
|
-
{
|
252
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
253
|
-
},
|
254
|
-
{
|
255
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
256
|
-
},
|
257
|
-
{
|
258
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}',
|
259
|
-
},
|
260
|
-
{
|
261
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
262
|
-
},
|
263
|
-
{
|
264
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
265
|
-
},
|
266
|
-
{
|
267
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
268
|
-
},
|
269
|
-
{
|
270
|
-
get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}',
|
271
|
-
},
|
272
|
-
{
|
273
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}',
|
274
|
-
},
|
275
|
-
{ get: '/v1alpha/{name=projects/*/locations/*/operations/*}' },
|
276
|
-
{
|
277
|
-
get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}',
|
278
|
-
},
|
279
|
-
{ get: '/v1alpha/{name=projects/*/operations/*}' },
|
280
|
-
],
|
281
|
-
},
|
282
|
-
{
|
283
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
284
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
285
|
-
additional_bindings: [
|
286
|
-
{
|
287
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
288
|
-
},
|
289
|
-
{
|
290
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
291
|
-
},
|
292
|
-
{
|
293
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
294
|
-
},
|
295
|
-
{
|
296
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
297
|
-
},
|
298
|
-
{
|
299
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
300
|
-
},
|
301
|
-
{
|
302
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
303
|
-
},
|
304
|
-
{
|
305
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
306
|
-
},
|
307
|
-
{
|
308
|
-
get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations',
|
309
|
-
},
|
310
|
-
{
|
311
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
312
|
-
},
|
313
|
-
{
|
314
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
315
|
-
},
|
316
|
-
{
|
317
|
-
get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations',
|
318
|
-
},
|
319
|
-
{
|
320
|
-
get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations',
|
321
|
-
},
|
322
|
-
{ get: '/v1alpha/{name=projects/*/locations/*}/operations' },
|
323
|
-
{ get: '/v1alpha/{name=projects/*}/operations' },
|
324
|
-
],
|
325
|
-
},
|
326
|
-
];
|
214
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
215
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', additional_bindings: [{ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}', }, { get: '/v1alpha/{name=projects/*/operations/*}', }],
|
216
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations', additional_bindings: [{ get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*/identity_mapping_stores/*}/operations', }, { get: '/v1alpha/{name=projects/*/locations/*}/operations', }, { get: '/v1alpha/{name=projects/*}/operations', }],
|
217
|
+
}];
|
327
218
|
}
|
328
|
-
this.operationsClient = this._gaxModule
|
329
|
-
.lro(lroOptions)
|
330
|
-
.operationsClient(opts);
|
219
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
331
220
|
const purgeUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeUserEventsResponse');
|
332
221
|
const purgeUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.PurgeUserEventsMetadata');
|
333
222
|
const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse');
|
334
223
|
const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata');
|
335
224
|
this.descriptors.longrunning = {
|
336
225
|
purgeUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, purgeUserEventsResponse.decode.bind(purgeUserEventsResponse), purgeUserEventsMetadata.decode.bind(purgeUserEventsMetadata)),
|
337
|
-
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata))
|
226
|
+
importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata))
|
338
227
|
};
|
339
228
|
// Put together the default options sent with requests.
|
340
229
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1alpha.UserEventService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -363,19 +252,13 @@ class UserEventServiceClient {
|
|
363
252
|
}
|
364
253
|
// Put together the "service stub" for
|
365
254
|
// google.cloud.discoveryengine.v1alpha.UserEventService.
|
366
|
-
this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
.UserEventService, this._opts, this._providedCustomServicePath);
|
255
|
+
this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
256
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1alpha.UserEventService') :
|
257
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
258
|
+
this._protos.google.cloud.discoveryengine.v1alpha.UserEventService, this._opts, this._providedCustomServicePath);
|
371
259
|
// Iterate over each of the methods that the service provides
|
372
260
|
// and create an API call method for each.
|
373
|
-
const userEventServiceStubMethods = [
|
374
|
-
'writeUserEvent',
|
375
|
-
'collectUserEvent',
|
376
|
-
'purgeUserEvents',
|
377
|
-
'importUserEvents',
|
378
|
-
];
|
261
|
+
const userEventServiceStubMethods = ['writeUserEvent', 'collectUserEvent', 'purgeUserEvents', 'importUserEvents'];
|
379
262
|
for (const methodName of userEventServiceStubMethods) {
|
380
263
|
const callPromise = this.userEventServiceStub.then(stub => (...args) => {
|
381
264
|
if (this._terminated) {
|
@@ -386,7 +269,8 @@ class UserEventServiceClient {
|
|
386
269
|
}, (err) => () => {
|
387
270
|
throw err;
|
388
271
|
});
|
389
|
-
const descriptor = this.descriptors.longrunning[methodName] ||
|
272
|
+
const descriptor = this.descriptors.longrunning[methodName] ||
|
273
|
+
undefined;
|
390
274
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
391
275
|
this.innerApiCalls[methodName] = apiCall;
|
392
276
|
}
|
@@ -398,8 +282,7 @@ class UserEventServiceClient {
|
|
398
282
|
* @returns {string} The DNS address for this service.
|
399
283
|
*/
|
400
284
|
static get servicePath() {
|
401
|
-
if (typeof process === 'object' &&
|
402
|
-
typeof process.emitWarning === 'function') {
|
285
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
403
286
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
404
287
|
}
|
405
288
|
return 'discoveryengine.googleapis.com';
|
@@ -410,8 +293,7 @@ class UserEventServiceClient {
|
|
410
293
|
* @returns {string} The DNS address for this service.
|
411
294
|
*/
|
412
295
|
static get apiEndpoint() {
|
413
|
-
if (typeof process === 'object' &&
|
414
|
-
typeof process.emitWarning === 'function') {
|
296
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
415
297
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
416
298
|
}
|
417
299
|
return 'discoveryengine.googleapis.com';
|
@@ -439,7 +321,9 @@ class UserEventServiceClient {
|
|
439
321
|
* @returns {string[]} List of default scopes.
|
440
322
|
*/
|
441
323
|
static get scopes() {
|
442
|
-
return [
|
324
|
+
return [
|
325
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
326
|
+
];
|
443
327
|
}
|
444
328
|
/**
|
445
329
|
* Return the project ID used by this class.
|
@@ -465,13 +349,10 @@ class UserEventServiceClient {
|
|
465
349
|
options = options || {};
|
466
350
|
options.otherArgs = options.otherArgs || {};
|
467
351
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
468
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
469
|
-
|
470
|
-
parent: request.parent ?? '',
|
471
|
-
});
|
472
|
-
this.initialize().catch(err => {
|
473
|
-
throw err;
|
352
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
353
|
+
'parent': request.parent ?? '',
|
474
354
|
});
|
355
|
+
this.initialize().catch(err => { throw err; });
|
475
356
|
this._log.info('writeUserEvent request %j', request);
|
476
357
|
const wrappedCallback = callback
|
477
358
|
? (error, response, options, rawResponse) => {
|
@@ -479,11 +360,16 @@ class UserEventServiceClient {
|
|
479
360
|
callback(error, response, options, rawResponse); // We verified callback above.
|
480
361
|
}
|
481
362
|
: undefined;
|
482
|
-
return this.innerApiCalls
|
483
|
-
.writeUserEvent(request, options, wrappedCallback)
|
363
|
+
return this.innerApiCalls.writeUserEvent(request, options, wrappedCallback)
|
484
364
|
?.then(([response, options, rawResponse]) => {
|
485
365
|
this._log.info('writeUserEvent response %j', response);
|
486
366
|
return [response, options, rawResponse];
|
367
|
+
}).catch((error) => {
|
368
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
369
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
370
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
371
|
+
}
|
372
|
+
throw error;
|
487
373
|
});
|
488
374
|
}
|
489
375
|
collectUserEvent(request, optionsOrCallback, callback) {
|
@@ -499,13 +385,10 @@ class UserEventServiceClient {
|
|
499
385
|
options = options || {};
|
500
386
|
options.otherArgs = options.otherArgs || {};
|
501
387
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
502
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
503
|
-
|
504
|
-
parent: request.parent ?? '',
|
505
|
-
});
|
506
|
-
this.initialize().catch(err => {
|
507
|
-
throw err;
|
388
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
389
|
+
'parent': request.parent ?? '',
|
508
390
|
});
|
391
|
+
this.initialize().catch(err => { throw err; });
|
509
392
|
this._log.info('collectUserEvent request %j', request);
|
510
393
|
const wrappedCallback = callback
|
511
394
|
? (error, response, options, rawResponse) => {
|
@@ -513,11 +396,16 @@ class UserEventServiceClient {
|
|
513
396
|
callback(error, response, options, rawResponse); // We verified callback above.
|
514
397
|
}
|
515
398
|
: undefined;
|
516
|
-
return this.innerApiCalls
|
517
|
-
.collectUserEvent(request, options, wrappedCallback)
|
399
|
+
return this.innerApiCalls.collectUserEvent(request, options, wrappedCallback)
|
518
400
|
?.then(([response, options, rawResponse]) => {
|
519
401
|
this._log.info('collectUserEvent response %j', response);
|
520
402
|
return [response, options, rawResponse];
|
403
|
+
}).catch((error) => {
|
404
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
405
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
406
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
407
|
+
}
|
408
|
+
throw error;
|
521
409
|
});
|
522
410
|
}
|
523
411
|
purgeUserEvents(request, optionsOrCallback, callback) {
|
@@ -533,13 +421,10 @@ class UserEventServiceClient {
|
|
533
421
|
options = options || {};
|
534
422
|
options.otherArgs = options.otherArgs || {};
|
535
423
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
536
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
537
|
-
|
538
|
-
parent: request.parent ?? '',
|
539
|
-
});
|
540
|
-
this.initialize().catch(err => {
|
541
|
-
throw err;
|
424
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
425
|
+
'parent': request.parent ?? '',
|
542
426
|
});
|
427
|
+
this.initialize().catch(err => { throw err; });
|
543
428
|
const wrappedCallback = callback
|
544
429
|
? (error, response, rawResponse, _) => {
|
545
430
|
this._log.info('purgeUserEvents response %j', rawResponse);
|
@@ -547,8 +432,7 @@ class UserEventServiceClient {
|
|
547
432
|
}
|
548
433
|
: undefined;
|
549
434
|
this._log.info('purgeUserEvents request %j', request);
|
550
|
-
return this.innerApiCalls
|
551
|
-
.purgeUserEvents(request, options, wrappedCallback)
|
435
|
+
return this.innerApiCalls.purgeUserEvents(request, options, wrappedCallback)
|
552
436
|
?.then(([response, rawResponse, _]) => {
|
553
437
|
this._log.info('purgeUserEvents response %j', rawResponse);
|
554
438
|
return [response, rawResponse, _];
|
@@ -585,13 +469,10 @@ class UserEventServiceClient {
|
|
585
469
|
options = options || {};
|
586
470
|
options.otherArgs = options.otherArgs || {};
|
587
471
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
588
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
589
|
-
|
590
|
-
parent: request.parent ?? '',
|
591
|
-
});
|
592
|
-
this.initialize().catch(err => {
|
593
|
-
throw err;
|
472
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
473
|
+
'parent': request.parent ?? '',
|
594
474
|
});
|
475
|
+
this.initialize().catch(err => { throw err; });
|
595
476
|
const wrappedCallback = callback
|
596
477
|
? (error, response, rawResponse, _) => {
|
597
478
|
this._log.info('importUserEvents response %j', rawResponse);
|
@@ -599,8 +480,7 @@ class UserEventServiceClient {
|
|
599
480
|
}
|
600
481
|
: undefined;
|
601
482
|
this._log.info('importUserEvents request %j', request);
|
602
|
-
return this.innerApiCalls
|
603
|
-
.importUserEvents(request, options, wrappedCallback)
|
483
|
+
return this.innerApiCalls.importUserEvents(request, options, wrappedCallback)
|
604
484
|
?.then(([response, rawResponse, _]) => {
|
605
485
|
this._log.info('importUserEvents response %j', rawResponse);
|
606
486
|
return [response, rawResponse, _];
|
@@ -625,90 +505,90 @@ class UserEventServiceClient {
|
|
625
505
|
return decodeOperation;
|
626
506
|
}
|
627
507
|
/**
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
508
|
+
* Gets information about a location.
|
509
|
+
*
|
510
|
+
* @param {Object} request
|
511
|
+
* The request object that will be sent.
|
512
|
+
* @param {string} request.name
|
513
|
+
* Resource name for the location.
|
514
|
+
* @param {object} [options]
|
515
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
516
|
+
* @returns {Promise} - The promise which resolves to an array.
|
517
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
518
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
519
|
+
* for more details and examples.
|
520
|
+
* @example
|
521
|
+
* ```
|
522
|
+
* const [response] = await client.getLocation(request);
|
523
|
+
* ```
|
524
|
+
*/
|
645
525
|
getLocation(request, options, callback) {
|
646
526
|
return this.locationsClient.getLocation(request, options, callback);
|
647
527
|
}
|
648
528
|
/**
|
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
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
529
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
530
|
+
*
|
531
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
532
|
+
* @param {Object} request
|
533
|
+
* The request object that will be sent.
|
534
|
+
* @param {string} request.name
|
535
|
+
* The resource that owns the locations collection, if applicable.
|
536
|
+
* @param {string} request.filter
|
537
|
+
* The standard list filter.
|
538
|
+
* @param {number} request.pageSize
|
539
|
+
* The standard list page size.
|
540
|
+
* @param {string} request.pageToken
|
541
|
+
* The standard list page token.
|
542
|
+
* @param {object} [options]
|
543
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
544
|
+
* @returns {Object}
|
545
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
546
|
+
* When you iterate the returned iterable, each element will be an object representing
|
547
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
548
|
+
* so you can stop the iteration when you don't need more results.
|
549
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
550
|
+
* for more details and examples.
|
551
|
+
* @example
|
552
|
+
* ```
|
553
|
+
* const iterable = client.listLocationsAsync(request);
|
554
|
+
* for await (const response of iterable) {
|
555
|
+
* // process response
|
556
|
+
* }
|
557
|
+
* ```
|
558
|
+
*/
|
679
559
|
listLocationsAsync(request, options) {
|
680
560
|
return this.locationsClient.listLocationsAsync(request, options);
|
681
561
|
}
|
682
562
|
/**
|
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
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
563
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
564
|
+
* method to poll the operation result at intervals as recommended by the API
|
565
|
+
* service.
|
566
|
+
*
|
567
|
+
* @param {Object} request - The request object that will be sent.
|
568
|
+
* @param {string} request.name - The name of the operation resource.
|
569
|
+
* @param {Object=} options
|
570
|
+
* Optional parameters. You can override the default settings for this call,
|
571
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
572
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
573
|
+
* for the details.
|
574
|
+
* @param {function(?Error, ?Object)=} callback
|
575
|
+
* The function which will be called with the result of the API call.
|
576
|
+
*
|
577
|
+
* The second parameter to the callback is an object representing
|
578
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
579
|
+
* @return {Promise} - The promise which resolves to an array.
|
580
|
+
* The first element of the array is an object representing
|
581
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
582
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
583
|
+
*
|
584
|
+
* @example
|
585
|
+
* ```
|
586
|
+
* const client = longrunning.operationsClient();
|
587
|
+
* const name = '';
|
588
|
+
* const [response] = await client.getOperation({name});
|
589
|
+
* // doThingsWith(response)
|
590
|
+
* ```
|
591
|
+
*/
|
712
592
|
getOperation(request, optionsOrCallback, callback) {
|
713
593
|
let options;
|
714
594
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -883,8 +763,7 @@ class UserEventServiceClient {
|
|
883
763
|
* @returns {string} A string representing the project.
|
884
764
|
*/
|
885
765
|
matchProjectFromAclConfigName(aclConfigName) {
|
886
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
887
|
-
.project;
|
766
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).project;
|
888
767
|
}
|
889
768
|
/**
|
890
769
|
* Parse the location from AclConfig resource.
|
@@ -894,8 +773,7 @@ class UserEventServiceClient {
|
|
894
773
|
* @returns {string} A string representing the location.
|
895
774
|
*/
|
896
775
|
matchLocationFromAclConfigName(aclConfigName) {
|
897
|
-
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName)
|
898
|
-
.location;
|
776
|
+
return this.pathTemplates.aclConfigPathTemplate.match(aclConfigName).location;
|
899
777
|
}
|
900
778
|
/**
|
901
779
|
* Return a fully-qualified engine resource name string.
|
@@ -977,8 +855,7 @@ class UserEventServiceClient {
|
|
977
855
|
* @returns {string} A string representing the project.
|
978
856
|
*/
|
979
857
|
matchProjectFromEvaluationName(evaluationName) {
|
980
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
981
|
-
.project;
|
858
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).project;
|
982
859
|
}
|
983
860
|
/**
|
984
861
|
* Parse the location from Evaluation resource.
|
@@ -988,8 +865,7 @@ class UserEventServiceClient {
|
|
988
865
|
* @returns {string} A string representing the location.
|
989
866
|
*/
|
990
867
|
matchLocationFromEvaluationName(evaluationName) {
|
991
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
992
|
-
.location;
|
868
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).location;
|
993
869
|
}
|
994
870
|
/**
|
995
871
|
* Parse the evaluation from Evaluation resource.
|
@@ -999,8 +875,7 @@ class UserEventServiceClient {
|
|
999
875
|
* @returns {string} A string representing the evaluation.
|
1000
876
|
*/
|
1001
877
|
matchEvaluationFromEvaluationName(evaluationName) {
|
1002
|
-
return this.pathTemplates.evaluationPathTemplate.match(evaluationName)
|
1003
|
-
.evaluation;
|
878
|
+
return this.pathTemplates.evaluationPathTemplate.match(evaluationName).evaluation;
|
1004
879
|
}
|
1005
880
|
/**
|
1006
881
|
* Return a fully-qualified project resource name string.
|
@@ -3067,8 +2942,7 @@ class UserEventServiceClient {
|
|
3067
2942
|
* @returns {string} A string representing the project.
|
3068
2943
|
*/
|
3069
2944
|
matchProjectFromSampleQueryName(sampleQueryName) {
|
3070
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3071
|
-
.project;
|
2945
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).project;
|
3072
2946
|
}
|
3073
2947
|
/**
|
3074
2948
|
* Parse the location from SampleQuery resource.
|
@@ -3078,8 +2952,7 @@ class UserEventServiceClient {
|
|
3078
2952
|
* @returns {string} A string representing the location.
|
3079
2953
|
*/
|
3080
2954
|
matchLocationFromSampleQueryName(sampleQueryName) {
|
3081
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3082
|
-
.location;
|
2955
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).location;
|
3083
2956
|
}
|
3084
2957
|
/**
|
3085
2958
|
* Parse the sample_query_set from SampleQuery resource.
|
@@ -3089,8 +2962,7 @@ class UserEventServiceClient {
|
|
3089
2962
|
* @returns {string} A string representing the sample_query_set.
|
3090
2963
|
*/
|
3091
2964
|
matchSampleQuerySetFromSampleQueryName(sampleQueryName) {
|
3092
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3093
|
-
.sample_query_set;
|
2965
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query_set;
|
3094
2966
|
}
|
3095
2967
|
/**
|
3096
2968
|
* Parse the sample_query from SampleQuery resource.
|
@@ -3100,8 +2972,7 @@ class UserEventServiceClient {
|
|
3100
2972
|
* @returns {string} A string representing the sample_query.
|
3101
2973
|
*/
|
3102
2974
|
matchSampleQueryFromSampleQueryName(sampleQueryName) {
|
3103
|
-
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName)
|
3104
|
-
.sample_query;
|
2975
|
+
return this.pathTemplates.sampleQueryPathTemplate.match(sampleQueryName).sample_query;
|
3105
2976
|
}
|
3106
2977
|
/**
|
3107
2978
|
* Return a fully-qualified sampleQuerySet resource name string.
|
@@ -3160,8 +3031,8 @@ class UserEventServiceClient {
|
|
3160
3031
|
this._log.info('ending gRPC channel');
|
3161
3032
|
this._terminated = true;
|
3162
3033
|
stub.close();
|
3163
|
-
this.locationsClient.close();
|
3164
|
-
this.operationsClient.close();
|
3034
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3035
|
+
void this.operationsClient.close();
|
3165
3036
|
});
|
3166
3037
|
}
|
3167
3038
|
return Promise.resolve();
|