@google-cloud/discoveryengine 0.1.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +202 -0
  3. package/README.md +209 -0
  4. package/build/protos/google/cloud/discoveryengine/v1beta/common.proto +93 -0
  5. package/build/protos/google/cloud/discoveryengine/v1beta/document.proto +77 -0
  6. package/build/protos/google/cloud/discoveryengine/v1beta/document_service.proto +261 -0
  7. package/build/protos/google/cloud/discoveryengine/v1beta/import_config.proto +265 -0
  8. package/build/protos/google/cloud/discoveryengine/v1beta/recommendation_service.proto +182 -0
  9. package/build/protos/google/cloud/discoveryengine/v1beta/user_event.proto +453 -0
  10. package/build/protos/google/cloud/discoveryengine/v1beta/user_event_service.proto +122 -0
  11. package/build/protos/protos.d.ts +10120 -0
  12. package/build/protos/protos.js +26118 -0
  13. package/build/protos/protos.json +2682 -0
  14. package/build/src/index.d.ts +17 -0
  15. package/build/src/index.js +37 -0
  16. package/build/src/index.js.map +1 -0
  17. package/build/src/v1beta/document_service_client.d.ts +684 -0
  18. package/build/src/v1beta/document_service_client.js +830 -0
  19. package/build/src/v1beta/document_service_client.js.map +1 -0
  20. package/build/src/v1beta/document_service_client_config.json +77 -0
  21. package/build/src/v1beta/index.d.ts +3 -0
  22. package/build/src/v1beta/index.js +27 -0
  23. package/build/src/v1beta/index.js.map +1 -0
  24. package/build/src/v1beta/recommendation_service_client.d.ts +307 -0
  25. package/build/src/v1beta/recommendation_service_client.js +407 -0
  26. package/build/src/v1beta/recommendation_service_client.js.map +1 -0
  27. package/build/src/v1beta/recommendation_service_client_config.json +43 -0
  28. package/build/src/v1beta/user_event_service_client.d.ts +445 -0
  29. package/build/src/v1beta/user_event_service_client.js +628 -0
  30. package/build/src/v1beta/user_event_service_client.js.map +1 -0
  31. package/build/src/v1beta/user_event_service_client_config.json +62 -0
  32. package/package.json +66 -0
@@ -0,0 +1,628 @@
1
+ "use strict";
2
+ // Copyright 2022 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // https://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ //
16
+ // ** This file is automatically generated by gapic-generator-typescript. **
17
+ // ** https://github.com/googleapis/gapic-generator-typescript **
18
+ // ** All changes to this file may be overwritten. **
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.UserEventServiceClient = void 0;
21
+ const jsonProtos = require("../../protos/protos.json");
22
+ /**
23
+ * Client JSON configuration object, loaded from
24
+ * `src/v1beta/user_event_service_client_config.json`.
25
+ * This file defines retry strategy and timeouts for all API methods in this library.
26
+ */
27
+ const gapicConfig = require("./user_event_service_client_config.json");
28
+ const version = require('../../../package.json').version;
29
+ /**
30
+ * Service for ingesting end user actions on a website to Discovery Engine API.
31
+ * @class
32
+ * @memberof v1beta
33
+ */
34
+ class UserEventServiceClient {
35
+ /**
36
+ * Construct an instance of UserEventServiceClient.
37
+ *
38
+ * @param {object} [options] - The configuration object.
39
+ * The options accepted by the constructor are described in detail
40
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
41
+ * The common options are:
42
+ * @param {object} [options.credentials] - Credentials object.
43
+ * @param {string} [options.credentials.client_email]
44
+ * @param {string} [options.credentials.private_key]
45
+ * @param {string} [options.email] - Account email address. Required when
46
+ * using a .pem or .p12 keyFilename.
47
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
48
+ * .p12 key downloaded from the Google Developers Console. If you provide
49
+ * a path to a JSON file, the projectId option below is not necessary.
50
+ * NOTE: .pem and .p12 require you to specify options.email as well.
51
+ * @param {number} [options.port] - The port on which to connect to
52
+ * the remote host.
53
+ * @param {string} [options.projectId] - The project ID from the Google
54
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
55
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
56
+ * app is running in an environment which supports
57
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
58
+ * your project ID will be detected automatically.
59
+ * @param {string} [options.apiEndpoint] - The domain name of the
60
+ * API remote host.
61
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
+ * Follows the structure of {@link gapicConfig}.
63
+ * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
64
+ * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
65
+ * For more information, please check the
66
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
67
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
68
+ * need to avoid loading the default gRPC version and want to use the fallback
69
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
70
+ * ```
71
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
72
+ * const client = new UserEventServiceClient({fallback: 'rest'}, gax);
73
+ * ```
74
+ */
75
+ constructor(opts, gaxInstance) {
76
+ var _a, _b;
77
+ this._terminated = false;
78
+ this.descriptors = {
79
+ page: {},
80
+ stream: {},
81
+ longrunning: {},
82
+ batching: {},
83
+ };
84
+ // Ensure that options include all the required fields.
85
+ const staticMembers = this.constructor;
86
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
87
+ this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
88
+ const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
89
+ const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
90
+ const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
91
+ opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
92
+ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
93
+ if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
94
+ opts['scopes'] = staticMembers.scopes;
95
+ }
96
+ // Load google-gax module synchronously if needed
97
+ if (!gaxInstance) {
98
+ gaxInstance = require('google-gax');
99
+ }
100
+ // Choose either gRPC or proto-over-HTTP implementation of google-gax.
101
+ this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
102
+ // Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
103
+ this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
104
+ // Save options to use in initialize() method.
105
+ this._opts = opts;
106
+ // Save the auth object to the client, for use by other methods.
107
+ this.auth = this._gaxGrpc.auth;
108
+ // Set useJWTAccessWithScope on the auth object.
109
+ this.auth.useJWTAccessWithScope = true;
110
+ // Set defaultServicePath on the auth object.
111
+ this.auth.defaultServicePath = staticMembers.servicePath;
112
+ // Set the default scopes in auth client if needed.
113
+ if (servicePath === staticMembers.servicePath) {
114
+ this.auth.defaultScopes = staticMembers.scopes;
115
+ }
116
+ // Determine the client header string.
117
+ const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
118
+ if (typeof process !== 'undefined' && 'versions' in process) {
119
+ clientHeader.push(`gl-node/${process.versions.node}`);
120
+ }
121
+ else {
122
+ clientHeader.push(`gl-web/${this._gaxModule.version}`);
123
+ }
124
+ if (!opts.fallback) {
125
+ clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
126
+ }
127
+ else if (opts.fallback === 'rest') {
128
+ clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
129
+ }
130
+ if (opts.libName && opts.libVersion) {
131
+ clientHeader.push(`${opts.libName}/${opts.libVersion}`);
132
+ }
133
+ // Load the applicable protos.
134
+ this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos);
135
+ // This API contains "path templates"; forward-slash-separated
136
+ // identifiers to uniquely identify resources within the API.
137
+ // Create useful helper objects for these.
138
+ this.pathTemplates = {
139
+ dataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
140
+ documentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
141
+ };
142
+ const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
143
+ // This API contains "long-running operations", which return a
144
+ // an Operation object that allows for tracking of the operation,
145
+ // rather than holding a request open.
146
+ const lroOptions = {
147
+ auth: this.auth,
148
+ grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
149
+ };
150
+ if (opts.fallback === 'rest') {
151
+ lroOptions.protoJson = protoFilesRoot;
152
+ lroOptions.httpRules = [
153
+ {
154
+ selector: 'google.longrunning.Operations.GetOperation',
155
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
156
+ additional_bindings: [
157
+ {
158
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}',
159
+ },
160
+ { get: '/v1beta/{name=projects/*/locations/*/operations/*}' },
161
+ { get: '/v1beta/{name=projects/*/operations/*}' },
162
+ ],
163
+ },
164
+ {
165
+ selector: 'google.longrunning.Operations.ListOperations',
166
+ get: '/v1beta/{name=projects/*/locations/*/dataStores/*}/operations',
167
+ additional_bindings: [
168
+ { get: '/v1beta/{name=projects/*/locations/*}/operations' },
169
+ { get: '/v1beta/{name=projects/*}/operations' },
170
+ ],
171
+ },
172
+ ];
173
+ }
174
+ this.operationsClient = this._gaxModule
175
+ .lro(lroOptions)
176
+ .operationsClient(opts);
177
+ const importUserEventsResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse');
178
+ const importUserEventsMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata');
179
+ this.descriptors.longrunning = {
180
+ importUserEvents: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importUserEventsResponse.decode.bind(importUserEventsResponse), importUserEventsMetadata.decode.bind(importUserEventsMetadata)),
181
+ };
182
+ // Put together the default options sent with requests.
183
+ this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1beta.UserEventService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
184
+ // Set up a dictionary of "inner API calls"; the core implementation
185
+ // of calling the API is handled in `google-gax`, with this code
186
+ // merely providing the destination and request information.
187
+ this.innerApiCalls = {};
188
+ // Add a warn function to the client constructor so it can be easily tested.
189
+ this.warn = this._gaxModule.warn;
190
+ }
191
+ /**
192
+ * Initialize the client.
193
+ * Performs asynchronous operations (such as authentication) and prepares the client.
194
+ * This function will be called automatically when any class method is called for the
195
+ * first time, but if you need to initialize it before calling an actual method,
196
+ * feel free to call initialize() directly.
197
+ *
198
+ * You can await on this method if you want to make sure the client is initialized.
199
+ *
200
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
201
+ */
202
+ initialize() {
203
+ // If the client stub promise is already initialized, return immediately.
204
+ if (this.userEventServiceStub) {
205
+ return this.userEventServiceStub;
206
+ }
207
+ // Put together the "service stub" for
208
+ // google.cloud.discoveryengine.v1beta.UserEventService.
209
+ this.userEventServiceStub = this._gaxGrpc.createStub(this._opts.fallback
210
+ ? this._protos.lookupService('google.cloud.discoveryengine.v1beta.UserEventService')
211
+ : // eslint-disable-next-line @typescript-eslint/no-explicit-any
212
+ this._protos.google.cloud.discoveryengine.v1beta
213
+ .UserEventService, this._opts, this._providedCustomServicePath);
214
+ // Iterate over each of the methods that the service provides
215
+ // and create an API call method for each.
216
+ const userEventServiceStubMethods = [
217
+ 'writeUserEvent',
218
+ 'collectUserEvent',
219
+ 'importUserEvents',
220
+ ];
221
+ for (const methodName of userEventServiceStubMethods) {
222
+ const callPromise = this.userEventServiceStub.then(stub => (...args) => {
223
+ if (this._terminated) {
224
+ return Promise.reject('The client has already been closed.');
225
+ }
226
+ const func = stub[methodName];
227
+ return func.apply(stub, args);
228
+ }, (err) => () => {
229
+ throw err;
230
+ });
231
+ const descriptor = this.descriptors.longrunning[methodName] || undefined;
232
+ const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
233
+ this.innerApiCalls[methodName] = apiCall;
234
+ }
235
+ return this.userEventServiceStub;
236
+ }
237
+ /**
238
+ * The DNS address for this API service.
239
+ * @returns {string} The DNS address for this service.
240
+ */
241
+ static get servicePath() {
242
+ return 'discoveryengine.googleapis.com';
243
+ }
244
+ /**
245
+ * The DNS address for this API service - same as servicePath(),
246
+ * exists for compatibility reasons.
247
+ * @returns {string} The DNS address for this service.
248
+ */
249
+ static get apiEndpoint() {
250
+ return 'discoveryengine.googleapis.com';
251
+ }
252
+ /**
253
+ * The port for this API service.
254
+ * @returns {number} The default port for this service.
255
+ */
256
+ static get port() {
257
+ return 443;
258
+ }
259
+ /**
260
+ * The scopes needed to make gRPC calls for every method defined
261
+ * in this service.
262
+ * @returns {string[]} List of default scopes.
263
+ */
264
+ static get scopes() {
265
+ return ['https://www.googleapis.com/auth/cloud-platform'];
266
+ }
267
+ /**
268
+ * Return the project ID used by this class.
269
+ * @returns {Promise} A promise that resolves to string containing the project ID.
270
+ */
271
+ getProjectId(callback) {
272
+ if (callback) {
273
+ this.auth.getProjectId(callback);
274
+ return;
275
+ }
276
+ return this.auth.getProjectId();
277
+ }
278
+ writeUserEvent(request, optionsOrCallback, callback) {
279
+ var _a;
280
+ request = request || {};
281
+ let options;
282
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
283
+ callback = optionsOrCallback;
284
+ options = {};
285
+ }
286
+ else {
287
+ options = optionsOrCallback;
288
+ }
289
+ options = options || {};
290
+ options.otherArgs = options.otherArgs || {};
291
+ options.otherArgs.headers = options.otherArgs.headers || {};
292
+ options.otherArgs.headers['x-goog-request-params'] =
293
+ this._gaxModule.routingHeader.fromParams({
294
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
295
+ });
296
+ this.initialize();
297
+ return this.innerApiCalls.writeUserEvent(request, options, callback);
298
+ }
299
+ collectUserEvent(request, optionsOrCallback, callback) {
300
+ var _a;
301
+ request = request || {};
302
+ let options;
303
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
304
+ callback = optionsOrCallback;
305
+ options = {};
306
+ }
307
+ else {
308
+ options = optionsOrCallback;
309
+ }
310
+ options = options || {};
311
+ options.otherArgs = options.otherArgs || {};
312
+ options.otherArgs.headers = options.otherArgs.headers || {};
313
+ options.otherArgs.headers['x-goog-request-params'] =
314
+ this._gaxModule.routingHeader.fromParams({
315
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
316
+ });
317
+ this.initialize();
318
+ return this.innerApiCalls.collectUserEvent(request, options, callback);
319
+ }
320
+ importUserEvents(request, optionsOrCallback, callback) {
321
+ var _a;
322
+ request = request || {};
323
+ let options;
324
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
325
+ callback = optionsOrCallback;
326
+ options = {};
327
+ }
328
+ else {
329
+ options = optionsOrCallback;
330
+ }
331
+ options = options || {};
332
+ options.otherArgs = options.otherArgs || {};
333
+ options.otherArgs.headers = options.otherArgs.headers || {};
334
+ options.otherArgs.headers['x-goog-request-params'] =
335
+ this._gaxModule.routingHeader.fromParams({
336
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
337
+ });
338
+ this.initialize();
339
+ return this.innerApiCalls.importUserEvents(request, options, callback);
340
+ }
341
+ /**
342
+ * Check the status of the long running operation returned by `importUserEvents()`.
343
+ * @param {String} name
344
+ * The operation name that will be passed.
345
+ * @returns {Promise} - The promise which resolves to an object.
346
+ * The decoded operation object has result and metadata field to get information from.
347
+ * Please see the
348
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
349
+ * for more details and examples.
350
+ * @example <caption>include:samples/generated/v1beta/user_event_service.import_user_events.js</caption>
351
+ * region_tag:discoveryengine_v1beta_generated_UserEventService_ImportUserEvents_async
352
+ */
353
+ async checkImportUserEventsProgress(name) {
354
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
355
+ const [operation] = await this.operationsClient.getOperation(request);
356
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importUserEvents, this._gaxModule.createDefaultBackoffSettings());
357
+ return decodeOperation;
358
+ }
359
+ /**
360
+ * Gets the latest state of a long-running operation. Clients can use this
361
+ * method to poll the operation result at intervals as recommended by the API
362
+ * service.
363
+ *
364
+ * @param {Object} request - The request object that will be sent.
365
+ * @param {string} request.name - The name of the operation resource.
366
+ * @param {Object=} options
367
+ * Optional parameters. You can override the default settings for this call,
368
+ * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
369
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
370
+ * details.
371
+ * @param {function(?Error, ?Object)=} callback
372
+ * The function which will be called with the result of the API call.
373
+ *
374
+ * The second parameter to the callback is an object representing
375
+ * [google.longrunning.Operation]{@link
376
+ * external:"google.longrunning.Operation"}.
377
+ * @return {Promise} - The promise which resolves to an array.
378
+ * The first element of the array is an object representing
379
+ * [google.longrunning.Operation]{@link
380
+ * external:"google.longrunning.Operation"}. The promise has a method named
381
+ * "cancel" which cancels the ongoing API call.
382
+ *
383
+ * @example
384
+ * ```
385
+ * const client = longrunning.operationsClient();
386
+ * const name = '';
387
+ * const [response] = await client.getOperation({name});
388
+ * // doThingsWith(response)
389
+ * ```
390
+ */
391
+ getOperation(request, options, callback) {
392
+ return this.operationsClient.getOperation(request, options, callback);
393
+ }
394
+ /**
395
+ * Lists operations that match the specified filter in the request. If the
396
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
397
+ *
398
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
399
+ *
400
+ * @param {Object} request - The request object that will be sent.
401
+ * @param {string} request.name - The name of the operation collection.
402
+ * @param {string} request.filter - The standard list filter.
403
+ * @param {number=} request.pageSize -
404
+ * The maximum number of resources contained in the underlying API
405
+ * response. If page streaming is performed per-resource, this
406
+ * parameter does not affect the return value. If page streaming is
407
+ * performed per-page, this determines the maximum number of
408
+ * resources in a page.
409
+ * @param {Object=} options
410
+ * Optional parameters. You can override the default settings for this call,
411
+ * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
412
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
413
+ * details.
414
+ * @returns {Object}
415
+ * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols.
416
+ *
417
+ * @example
418
+ * ```
419
+ * const client = longrunning.operationsClient();
420
+ * for await (const response of client.listOperationsAsync(request));
421
+ * // doThingsWith(response)
422
+ * ```
423
+ */
424
+ listOperationsAsync(request, options) {
425
+ return this.operationsClient.listOperationsAsync(request, options);
426
+ }
427
+ /**
428
+ * Starts asynchronous cancellation on a long-running operation. The server
429
+ * makes a best effort to cancel the operation, but success is not
430
+ * guaranteed. If the server doesn't support this method, it returns
431
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
432
+ * {@link Operations.GetOperation} or
433
+ * other methods to check whether the cancellation succeeded or whether the
434
+ * operation completed despite cancellation. On successful cancellation,
435
+ * the operation is not deleted; instead, it becomes an operation with
436
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
437
+ * 1, corresponding to `Code.CANCELLED`.
438
+ *
439
+ * @param {Object} request - The request object that will be sent.
440
+ * @param {string} request.name - The name of the operation resource to be cancelled.
441
+ * @param {Object=} options
442
+ * Optional parameters. You can override the default settings for this call,
443
+ * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
444
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
445
+ * details.
446
+ * @param {function(?Error)=} callback
447
+ * The function which will be called with the result of the API call.
448
+ * @return {Promise} - The promise which resolves when API call finishes.
449
+ * The promise has a method named "cancel" which cancels the ongoing API
450
+ * call.
451
+ *
452
+ * @example
453
+ * ```
454
+ * const client = longrunning.operationsClient();
455
+ * await client.cancelOperation({name: ''});
456
+ * ```
457
+ */
458
+ cancelOperation(request, options, callback) {
459
+ return this.operationsClient.cancelOperation(request, options, callback);
460
+ }
461
+ /**
462
+ * Deletes a long-running operation. This method indicates that the client is
463
+ * no longer interested in the operation result. It does not cancel the
464
+ * operation. If the server doesn't support this method, it returns
465
+ * `google.rpc.Code.UNIMPLEMENTED`.
466
+ *
467
+ * @param {Object} request - The request object that will be sent.
468
+ * @param {string} request.name - The name of the operation resource to be deleted.
469
+ * @param {Object=} options
470
+ * Optional parameters. You can override the default settings for this call,
471
+ * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link
472
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the
473
+ * details.
474
+ * @param {function(?Error)=} callback
475
+ * The function which will be called with the result of the API call.
476
+ * @return {Promise} - The promise which resolves when API call finishes.
477
+ * The promise has a method named "cancel" which cancels the ongoing API
478
+ * call.
479
+ *
480
+ * @example
481
+ * ```
482
+ * const client = longrunning.operationsClient();
483
+ * await client.deleteOperation({name: ''});
484
+ * ```
485
+ */
486
+ deleteOperation(request, options, callback) {
487
+ return this.operationsClient.deleteOperation(request, options, callback);
488
+ }
489
+ // --------------------
490
+ // -- Path templates --
491
+ // --------------------
492
+ /**
493
+ * Return a fully-qualified dataStore resource name string.
494
+ *
495
+ * @param {string} project
496
+ * @param {string} location
497
+ * @param {string} data_store
498
+ * @returns {string} Resource name string.
499
+ */
500
+ dataStorePath(project, location, dataStore) {
501
+ return this.pathTemplates.dataStorePathTemplate.render({
502
+ project: project,
503
+ location: location,
504
+ data_store: dataStore,
505
+ });
506
+ }
507
+ /**
508
+ * Parse the project from DataStore resource.
509
+ *
510
+ * @param {string} dataStoreName
511
+ * A fully-qualified path representing DataStore resource.
512
+ * @returns {string} A string representing the project.
513
+ */
514
+ matchProjectFromDataStoreName(dataStoreName) {
515
+ return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
516
+ .project;
517
+ }
518
+ /**
519
+ * Parse the location from DataStore resource.
520
+ *
521
+ * @param {string} dataStoreName
522
+ * A fully-qualified path representing DataStore resource.
523
+ * @returns {string} A string representing the location.
524
+ */
525
+ matchLocationFromDataStoreName(dataStoreName) {
526
+ return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
527
+ .location;
528
+ }
529
+ /**
530
+ * Parse the data_store from DataStore resource.
531
+ *
532
+ * @param {string} dataStoreName
533
+ * A fully-qualified path representing DataStore resource.
534
+ * @returns {string} A string representing the data_store.
535
+ */
536
+ matchDataStoreFromDataStoreName(dataStoreName) {
537
+ return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
538
+ .data_store;
539
+ }
540
+ /**
541
+ * Return a fully-qualified document resource name string.
542
+ *
543
+ * @param {string} project
544
+ * @param {string} location
545
+ * @param {string} data_store
546
+ * @param {string} branch
547
+ * @param {string} document
548
+ * @returns {string} Resource name string.
549
+ */
550
+ documentPath(project, location, dataStore, branch, document) {
551
+ return this.pathTemplates.documentPathTemplate.render({
552
+ project: project,
553
+ location: location,
554
+ data_store: dataStore,
555
+ branch: branch,
556
+ document: document,
557
+ });
558
+ }
559
+ /**
560
+ * Parse the project from Document resource.
561
+ *
562
+ * @param {string} documentName
563
+ * A fully-qualified path representing Document resource.
564
+ * @returns {string} A string representing the project.
565
+ */
566
+ matchProjectFromDocumentName(documentName) {
567
+ return this.pathTemplates.documentPathTemplate.match(documentName).project;
568
+ }
569
+ /**
570
+ * Parse the location from Document resource.
571
+ *
572
+ * @param {string} documentName
573
+ * A fully-qualified path representing Document resource.
574
+ * @returns {string} A string representing the location.
575
+ */
576
+ matchLocationFromDocumentName(documentName) {
577
+ return this.pathTemplates.documentPathTemplate.match(documentName).location;
578
+ }
579
+ /**
580
+ * Parse the data_store from Document resource.
581
+ *
582
+ * @param {string} documentName
583
+ * A fully-qualified path representing Document resource.
584
+ * @returns {string} A string representing the data_store.
585
+ */
586
+ matchDataStoreFromDocumentName(documentName) {
587
+ return this.pathTemplates.documentPathTemplate.match(documentName)
588
+ .data_store;
589
+ }
590
+ /**
591
+ * Parse the branch from Document resource.
592
+ *
593
+ * @param {string} documentName
594
+ * A fully-qualified path representing Document resource.
595
+ * @returns {string} A string representing the branch.
596
+ */
597
+ matchBranchFromDocumentName(documentName) {
598
+ return this.pathTemplates.documentPathTemplate.match(documentName).branch;
599
+ }
600
+ /**
601
+ * Parse the document from Document resource.
602
+ *
603
+ * @param {string} documentName
604
+ * A fully-qualified path representing Document resource.
605
+ * @returns {string} A string representing the document.
606
+ */
607
+ matchDocumentFromDocumentName(documentName) {
608
+ return this.pathTemplates.documentPathTemplate.match(documentName).document;
609
+ }
610
+ /**
611
+ * Terminate the gRPC channel and close the client.
612
+ *
613
+ * The client will no longer be usable and all future behavior is undefined.
614
+ * @returns {Promise} A promise that resolves when the client is closed.
615
+ */
616
+ close() {
617
+ if (this.userEventServiceStub && !this._terminated) {
618
+ return this.userEventServiceStub.then(stub => {
619
+ this._terminated = true;
620
+ stub.close();
621
+ this.operationsClient.close();
622
+ });
623
+ }
624
+ return Promise.resolve();
625
+ }
626
+ }
627
+ exports.UserEventServiceClient = UserEventServiceClient;
628
+ //# sourceMappingURL=user_event_service_client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_event_service_client.js","sourceRoot":"","sources":["../../../src/v1beta/user_event_service_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,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