Represents a UserEventService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2.UserEventServicePackage
@google-cloud/retail!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new UserEventService service.
Name | Description |
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.retail.v2.ICollectUserEventRequest, callback: google.cloud.retail.v2.UserEventService.CollectUserEventCallback): void;
Calls CollectUserEvent.
Name | Description |
request |
google.cloud.retail.v2.ICollectUserEventRequest
CollectUserEventRequest message or plain object |
callback |
google.cloud.retail.v2.UserEventService.CollectUserEventCallback
Node-style callback called with the error, if any, and HttpBody |
Type | Description |
void |
collectUserEvent(request)
public collectUserEvent(request: google.cloud.retail.v2.ICollectUserEventRequest): Promise<google.api.HttpBody>;
Calls CollectUserEvent.
Name | Description |
request |
google.cloud.retail.v2.ICollectUserEventRequest
CollectUserEventRequest message or plain object |
Type | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
UserEventService | RPC service. Useful where requests and/or responses are streamed. |
importUserEvents(request, callback)
public importUserEvents(request: google.cloud.retail.v2.IImportUserEventsRequest, callback: google.cloud.retail.v2.UserEventService.ImportUserEventsCallback): void;
Calls ImportUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IImportUserEventsRequest
ImportUserEventsRequest message or plain object |
callback |
google.cloud.retail.v2.UserEventService.ImportUserEventsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importUserEvents(request)
public importUserEvents(request: google.cloud.retail.v2.IImportUserEventsRequest): Promise<google.longrunning.Operation>;
Calls ImportUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IImportUserEventsRequest
ImportUserEventsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
purgeUserEvents(request, callback)
public purgeUserEvents(request: google.cloud.retail.v2.IPurgeUserEventsRequest, callback: google.cloud.retail.v2.UserEventService.PurgeUserEventsCallback): void;
Calls PurgeUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IPurgeUserEventsRequest
PurgeUserEventsRequest message or plain object |
callback |
google.cloud.retail.v2.UserEventService.PurgeUserEventsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
purgeUserEvents(request)
public purgeUserEvents(request: google.cloud.retail.v2.IPurgeUserEventsRequest): Promise<google.longrunning.Operation>;
Calls PurgeUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IPurgeUserEventsRequest
PurgeUserEventsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
rejoinUserEvents(request, callback)
public rejoinUserEvents(request: google.cloud.retail.v2.IRejoinUserEventsRequest, callback: google.cloud.retail.v2.UserEventService.RejoinUserEventsCallback): void;
Calls RejoinUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IRejoinUserEventsRequest
RejoinUserEventsRequest message or plain object |
callback |
google.cloud.retail.v2.UserEventService.RejoinUserEventsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
rejoinUserEvents(request)
public rejoinUserEvents(request: google.cloud.retail.v2.IRejoinUserEventsRequest): Promise<google.longrunning.Operation>;
Calls RejoinUserEvents.
Name | Description |
request |
google.cloud.retail.v2.IRejoinUserEventsRequest
RejoinUserEventsRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
writeUserEvent(request, callback)
public writeUserEvent(request: google.cloud.retail.v2.IWriteUserEventRequest, callback: google.cloud.retail.v2.UserEventService.WriteUserEventCallback): void;
Calls WriteUserEvent.
Name | Description |
request |
google.cloud.retail.v2.IWriteUserEventRequest
WriteUserEventRequest message or plain object |
callback |
google.cloud.retail.v2.UserEventService.WriteUserEventCallback
Node-style callback called with the error, if any, and UserEvent |
Type | Description |
void |
writeUserEvent(request)
public writeUserEvent(request: google.cloud.retail.v2.IWriteUserEventRequest): Promise<google.cloud.retail.v2.UserEvent>;
Calls WriteUserEvent.
Name | Description |
request |
google.cloud.retail.v2.IWriteUserEventRequest
WriteUserEventRequest message or plain object |
Type | Description |
Promise<google.cloud.retail.v2.UserEvent> | Promise |