Class v1beta.UserEventServiceClient (0.2.0)

Stay organized with collections Save and categorize content based on your preferences.

Service for ingesting end user actions on a website to Discovery Engine API. v1beta

Package

@google-cloud/discoveryengine

Constructors

(constructor)(opts, gaxInstance)

constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);

Construct an instance of UserEventServiceClient.

Parameters
NameDescription
opts ClientOptions
gaxInstance typeof gax | typeof gax.fallback

: loaded instance of google-gax. Useful if you need to avoid loading the default gRPC version and want to use the fallback HTTP implementation. Load only fallback version and pass it to the constructor: ``` const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC const client = new UserEventServiceClient({fallback: 'rest'}, gax); ```

Properties

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

auth

auth: gax.GoogleAuth;

descriptors

descriptors: Descriptors;

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };

operationsClient

operationsClient: gax.OperationsClient;

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };

port

static get port(): number;

The port for this API service.

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static get servicePath(): string;

The DNS address for this API service.

userEventServiceStub

userEventServiceStub?: Promise<{
        [name: string]: Function;
    }>;

warn

warn: (code: string, message: string, warnType?: string) => void;

Methods

cancelOperation(request, options, callback)

cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;

Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED.

Parameters
NameDescription
request protos.google.longrunning.CancelOperationRequest

The request object that will be sent.

options gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/global.html#CallOptions for the details.

callback Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});

checkImportUserEventsProgress(name)

checkImportUserEventsProgress(name: string): Promise<LROperation<protos.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata>>;

Check the status of the long running operation returned by importUserEvents().

Parameter
NameDescription
name string

The operation name that will be passed.

Returns
TypeDescription
Promise<LROperation<protos.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata>>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The Inline source for the input content for UserEvents.
   */
  // const inlineSource = {}
  /**
   *  Required. Google Cloud Storage location for the input content.
   */
  // const gcsSource = {}
  /**
   *  Required. BigQuery input source.
   */
  // const bigquerySource = {}
  /**
   *  Required. Parent DataStore resource name, of the form
   *  `projects/{project}/locations/{location}/dataStores/{data_store}`
   */
  // const parent = 'abc123'
  /**
   *  The desired location of errors incurred during the Import. Cannot be set
   *  for inline user event imports.
   */
  // const errorConfig = {}

  // Imports the Discoveryengine library
  const {UserEventServiceClient} = require('@google-cloud/discoveryengine').v1beta;

  // Instantiates a client
  const discoveryengineClient = new UserEventServiceClient();

  async function callImportUserEvents() {
    // Construct request
    const request = {
      inlineSource,
      gcsSource,
      bigquerySource,
      parent,
    };

    // Run request
    const [operation] = await discoveryengineClient.importUserEvents(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportUserEvents();

close()

close(): Promise<void>;

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
TypeDescription
Promise<void>

{Promise} A promise that resolves when the client is closed.

collectUserEvent(request, options)

collectUserEvent(request?: protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest, options?: CallOptions): Promise<[
        protos.google.api.IHttpBody,
        (protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | undefined),
        {} | undefined
    ]>;

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain.

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.api.IHttpBody, (protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing [HttpBody]. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The parent DataStore resource name, such as
   *  `projects/{project}/locations/{location}/dataStores/{data_store}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. URL encoded UserEvent proto with a length limit of 2,000,000
   *  characters.
   */
  // const userEvent = 'abc123'
  /**
   *  The URL including cgi-parameters but excluding the hash fragment with a
   *  length limit of 5,000 characters. This is often more useful than the
   *  referer URL, because many browsers only send the domain for 3rd party
   *  requests.
   */
  // const uri = 'abc123'
  /**
   *  The event timestamp in milliseconds. This prevents browser caching of
   *  otherwise identical get requests. The name is abbreviated to reduce the
   *  payload bytes.
   */
  // const ets = 1234

  // Imports the Discoveryengine library
  const {UserEventServiceClient} = require('@google-cloud/discoveryengine').v1beta;

  // Instantiates a client
  const discoveryengineClient = new UserEventServiceClient();

  async function callCollectUserEvent() {
    // Construct request
    const request = {
      parent,
      userEvent,
    };

    // Run request
    const response = await discoveryengineClient.collectUserEvent(request);
    console.log(response);
  }

  callCollectUserEvent();

collectUserEvent(request, options, callback)

collectUserEvent(request: protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest, options: CallOptions, callback: Callback<protos.google.api.IHttpBody, protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest
options CallOptions
callback Callback<protos.google.api.IHttpBody, protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

collectUserEvent(request, callback)

collectUserEvent(request: protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest, callback: Callback<protos.google.api.IHttpBody, protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest
callback Callback<protos.google.api.IHttpBody, protos.google.cloud.discoveryengine.v1beta.ICollectUserEventRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

dataStorePath(project, location, dataStore)

dataStorePath(project: string, location: string, dataStore: string): string;

Return a fully-qualified dataStore resource name string.

Parameters
NameDescription
project string
location string
dataStore string
Returns
TypeDescription
string

{string} Resource name string.

deleteOperation(request, options, callback)

deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;

Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.

Parameters
NameDescription
request protos.google.longrunning.DeleteOperationRequest

The request object that will be sent.

options gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/global.html#CallOptions for the details.

callback Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<protos.google.protobuf.Empty>
Example

const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});

documentPath(project, location, dataStore, branch, document)

documentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;

Return a fully-qualified document resource name string.

Parameters
NameDescription
project string
location string
dataStore string
branch string
document string
Returns
TypeDescription
string

{string} Resource name string.

getOperation(request, options, callback)

getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;

Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

Parameters
NameDescription
request protos.google.longrunning.GetOperationRequest

The request object that will be sent.

options gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/global.html#CallOptions for the details.

callback Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>

The function which will be called with the result of the API call.

The second parameter to the callback is an object representing [google.longrunning.Operation]. {Promise} - The promise which resolves to an array. The first element of the array is an object representing [google.longrunning.Operation]. The promise has a method named "cancel" which cancels the ongoing API call.

Returns
TypeDescription
Promise<[protos.google.longrunning.Operation]>
Example

const client = longrunning.operationsClient();
const name = '';
const [response] = await client.getOperation({name});
// doThingsWith(response)

getProjectId()

getProjectId(): Promise<string>;
Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
NameDescription
callback Callback<string, undefined, undefined>
Returns
TypeDescription
void

importUserEvents(request, options)

importUserEvents(request?: protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest, options?: CallOptions): Promise<[
        LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>,
        protos.google.longrunning.IOperation | undefined,
        {} | undefined
    ]>;

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.

Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.

Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>, protos.google.longrunning.IOperation | undefined, {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its promise() method returns a promise you can await for. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The Inline source for the input content for UserEvents.
   */
  // const inlineSource = {}
  /**
   *  Required. Google Cloud Storage location for the input content.
   */
  // const gcsSource = {}
  /**
   *  Required. BigQuery input source.
   */
  // const bigquerySource = {}
  /**
   *  Required. Parent DataStore resource name, of the form
   *  `projects/{project}/locations/{location}/dataStores/{data_store}`
   */
  // const parent = 'abc123'
  /**
   *  The desired location of errors incurred during the Import. Cannot be set
   *  for inline user event imports.
   */
  // const errorConfig = {}

  // Imports the Discoveryengine library
  const {UserEventServiceClient} = require('@google-cloud/discoveryengine').v1beta;

  // Instantiates a client
  const discoveryengineClient = new UserEventServiceClient();

  async function callImportUserEvents() {
    // Construct request
    const request = {
      inlineSource,
      gcsSource,
      bigquerySource,
      parent,
    };

    // Run request
    const [operation] = await discoveryengineClient.importUserEvents(request);
    const [response] = await operation.promise();
    console.log(response);
  }

  callImportUserEvents();

importUserEvents(request, options, callback)

importUserEvents(request: protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest
options CallOptions
callback Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

importUserEvents(request, callback)

importUserEvents(request: protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest, callback: Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IImportUserEventsRequest
callback Callback<LROperation<protos.google.cloud.discoveryengine.v1beta.IImportUserEventsResponse, protos.google.cloud.discoveryengine.v1beta.IImportUserEventsMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

initialize()

initialize(): Promise<{
        [name: string]: Function;
    }>;

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
TypeDescription
Promise<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listOperationsAsync(request, options)

listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;

Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. Returns an iterable object.

For-await-of syntax is used with the iterable to recursively get response element on-demand.

Parameters
NameDescription
request protos.google.longrunning.ListOperationsRequest

The request object that will be sent.

options gax.CallOptions

Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/global.html#CallOptions for the details.

Returns
TypeDescription
AsyncIterable<protos.google.longrunning.ListOperationsResponse>

{Object} An iterable Object that conforms to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols.

Example

const client = longrunning.operationsClient();
for await (const response of client.listOperationsAsync(request));
// doThingsWith(response)

matchBranchFromDocumentName(documentName)

matchBranchFromDocumentName(documentName: string): string | number;

Parse the branch from Document resource.

Parameter
NameDescription
documentName string

A fully-qualified path representing Document resource.

Returns
TypeDescription
string | number

{string} A string representing the branch.

matchDataStoreFromDataStoreName(dataStoreName)

matchDataStoreFromDataStoreName(dataStoreName: string): string | number;

Parse the data_store from DataStore resource.

Parameter
NameDescription
dataStoreName string

A fully-qualified path representing DataStore resource.

Returns
TypeDescription
string | number

{string} A string representing the data_store.

matchDataStoreFromDocumentName(documentName)

matchDataStoreFromDocumentName(documentName: string): string | number;

Parse the data_store from Document resource.

Parameter
NameDescription
documentName string

A fully-qualified path representing Document resource.

Returns
TypeDescription
string | number

{string} A string representing the data_store.

matchDocumentFromDocumentName(documentName)

matchDocumentFromDocumentName(documentName: string): string | number;

Parse the document from Document resource.

Parameter
NameDescription
documentName string

A fully-qualified path representing Document resource.

Returns
TypeDescription
string | number

{string} A string representing the document.

matchLocationFromDataStoreName(dataStoreName)

matchLocationFromDataStoreName(dataStoreName: string): string | number;

Parse the location from DataStore resource.

Parameter
NameDescription
dataStoreName string

A fully-qualified path representing DataStore resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchLocationFromDocumentName(documentName)

matchLocationFromDocumentName(documentName: string): string | number;

Parse the location from Document resource.

Parameter
NameDescription
documentName string

A fully-qualified path representing Document resource.

Returns
TypeDescription
string | number

{string} A string representing the location.

matchProjectFromDataStoreName(dataStoreName)

matchProjectFromDataStoreName(dataStoreName: string): string | number;

Parse the project from DataStore resource.

Parameter
NameDescription
dataStoreName string

A fully-qualified path representing DataStore resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromDocumentName(documentName)

matchProjectFromDocumentName(documentName: string): string | number;

Parse the project from Document resource.

Parameter
NameDescription
documentName string

A fully-qualified path representing Document resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

writeUserEvent(request, options)

writeUserEvent(request?: protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest, options?: CallOptions): Promise<[
        protos.google.cloud.discoveryengine.v1beta.IUserEvent,
        (protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | undefined),
        {} | undefined
    ]>;

Writes a single user event.

Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Promise<[ protos.google.cloud.discoveryengine.v1beta.IUserEvent, (protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | undefined), {} | undefined ]>

{Promise} - The promise which resolves to an array. The first element of the array is an object representing [UserEvent]. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) for more details and examples.

Example

  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. The parent DataStore resource name, such as
   *  `projects/{project}/locations/{location}/dataStores/{data_store}`.
   */
  // const parent = 'abc123'
  /**
   *  Required. User event to write.
   */
  // const userEvent = {}

  // Imports the Discoveryengine library
  const {UserEventServiceClient} = require('@google-cloud/discoveryengine').v1beta;

  // Instantiates a client
  const discoveryengineClient = new UserEventServiceClient();

  async function callWriteUserEvent() {
    // Construct request
    const request = {
      parent,
      userEvent,
    };

    // Run request
    const response = await discoveryengineClient.writeUserEvent(request);
    console.log(response);
  }

  callWriteUserEvent();

writeUserEvent(request, options, callback)

writeUserEvent(request: protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest, options: CallOptions, callback: Callback<protos.google.cloud.discoveryengine.v1beta.IUserEvent, protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest
options CallOptions
callback Callback<protos.google.cloud.discoveryengine.v1beta.IUserEvent, protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

writeUserEvent(request, callback)

writeUserEvent(request: protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest, callback: Callback<protos.google.cloud.discoveryengine.v1beta.IUserEvent, protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest
callback Callback<protos.google.cloud.discoveryengine.v1beta.IUserEvent, protos.google.cloud.discoveryengine.v1beta.IWriteUserEventRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void