Class protos.google.cloud.discoveryengine.v1alpha.UserEventService (1.4.1)

Represents a UserEventService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.UserEventService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new UserEventService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

collectUserEvent(request, callback)

public collectUserEvent(request: google.cloud.discoveryengine.v1alpha.ICollectUserEventRequest, callback: google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEventCallback): void;

Calls CollectUserEvent.

Parameters
NameDescription
request ICollectUserEventRequest

CollectUserEventRequest message or plain object

callback CollectUserEventCallback

Node-style callback called with the error, if any, and HttpBody

Returns
TypeDescription
void

collectUserEvent(request)

public collectUserEvent(request: google.cloud.discoveryengine.v1alpha.ICollectUserEventRequest): Promise<google.api.HttpBody>;

Calls CollectUserEvent.

Parameter
NameDescription
request ICollectUserEventRequest

CollectUserEventRequest message or plain object

Returns
TypeDescription
Promise<google.api.HttpBody>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): UserEventService;

Creates new UserEventService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
UserEventService

RPC service. Useful where requests and/or responses are streamed.

importUserEvents(request, callback)

public importUserEvents(request: google.cloud.discoveryengine.v1alpha.IImportUserEventsRequest, callback: google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEventsCallback): void;

Calls ImportUserEvents.

Parameters
NameDescription
request IImportUserEventsRequest

ImportUserEventsRequest message or plain object

callback ImportUserEventsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

importUserEvents(request)

public importUserEvents(request: google.cloud.discoveryengine.v1alpha.IImportUserEventsRequest): Promise<google.longrunning.Operation>;

Calls ImportUserEvents.

Parameter
NameDescription
request IImportUserEventsRequest

ImportUserEventsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

purgeUserEvents(request, callback)

public purgeUserEvents(request: google.cloud.discoveryengine.v1alpha.IPurgeUserEventsRequest, callback: google.cloud.discoveryengine.v1alpha.UserEventService.PurgeUserEventsCallback): void;

Calls PurgeUserEvents.

Parameters
NameDescription
request IPurgeUserEventsRequest

PurgeUserEventsRequest message or plain object

callback PurgeUserEventsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

purgeUserEvents(request)

public purgeUserEvents(request: google.cloud.discoveryengine.v1alpha.IPurgeUserEventsRequest): Promise<google.longrunning.Operation>;

Calls PurgeUserEvents.

Parameter
NameDescription
request IPurgeUserEventsRequest

PurgeUserEventsRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

writeUserEvent(request, callback)

public writeUserEvent(request: google.cloud.discoveryengine.v1alpha.IWriteUserEventRequest, callback: google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventCallback): void;

Calls WriteUserEvent.

Parameters
NameDescription
request IWriteUserEventRequest

WriteUserEventRequest message or plain object

callback WriteUserEventCallback

Node-style callback called with the error, if any, and UserEvent

Returns
TypeDescription
void

writeUserEvent(request)

public writeUserEvent(request: google.cloud.discoveryengine.v1alpha.IWriteUserEventRequest): Promise<google.cloud.discoveryengine.v1alpha.UserEvent>;

Calls WriteUserEvent.

Parameter
NameDescription
request IWriteUserEventRequest

WriteUserEventRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1alpha.UserEvent>

Promise