UserEventService

google.cloud.retail.v2beta. UserEventService

Represents a UserEventService

Constructor

new UserEventService(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new UserEventService service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

collectUserEvent(request, callback) → {undefined}

Calls CollectUserEvent.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.ICollectUserEventRequest

CollectUserEventRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.CollectUserEventCallback

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

Returns:
Type Description
undefined

collectUserEvent(request) → {Promise.<google.api.HttpBody>}

Calls CollectUserEvent.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.ICollectUserEventRequest

CollectUserEventRequest message or plain object

Returns:
Type Description
Promise.<google.api.HttpBody>

Promise

exportUserEvents(request, callback) → {undefined}

Calls ExportUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IExportUserEventsRequest

ExportUserEventsRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.ExportUserEventsCallback

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

Returns:
Type Description
undefined

exportUserEvents(request) → {Promise.<google.longrunning.Operation>}

Calls ExportUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IExportUserEventsRequest

ExportUserEventsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

importUserEvents(request, callback) → {undefined}

Calls ImportUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IImportUserEventsRequest

ImportUserEventsRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.ImportUserEventsCallback

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

Returns:
Type Description
undefined

importUserEvents(request) → {Promise.<google.longrunning.Operation>}

Calls ImportUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IImportUserEventsRequest

ImportUserEventsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

purgeUserEvents(request, callback) → {undefined}

Calls PurgeUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IPurgeUserEventsRequest

PurgeUserEventsRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.PurgeUserEventsCallback

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

Returns:
Type Description
undefined

purgeUserEvents(request) → {Promise.<google.longrunning.Operation>}

Calls PurgeUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IPurgeUserEventsRequest

PurgeUserEventsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

rejoinUserEvents(request, callback) → {undefined}

Calls RejoinUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IRejoinUserEventsRequest

RejoinUserEventsRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.RejoinUserEventsCallback

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

Returns:
Type Description
undefined

rejoinUserEvents(request) → {Promise.<google.longrunning.Operation>}

Calls RejoinUserEvents.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IRejoinUserEventsRequest

RejoinUserEventsRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

writeUserEvent(request, callback) → {undefined}

Calls WriteUserEvent.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IWriteUserEventRequest

WriteUserEventRequest message or plain object

callback google.cloud.retail.v2beta.UserEventService.WriteUserEventCallback

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

Returns:
Type Description
undefined

writeUserEvent(request) → {Promise.<google.cloud.retail.v2beta.UserEvent>}

Calls WriteUserEvent.

Parameters:
Name Type Description
request google.cloud.retail.v2beta.IWriteUserEventRequest

WriteUserEventRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.retail.v2beta.UserEvent>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {UserEventService}

Creates new UserEventService service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
UserEventService

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

Type Definitions

CollectUserEventCallback(error, responseopt)

Callback as used by collectUserEvent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.api.HttpBody <optional>

HttpBody

ExportUserEventsCallback(error, responseopt)

Callback as used by exportUserEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

ImportUserEventsCallback(error, responseopt)

Callback as used by importUserEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

PurgeUserEventsCallback(error, responseopt)

Callback as used by purgeUserEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

RejoinUserEventsCallback(error, responseopt)

Callback as used by rejoinUserEvents.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

WriteUserEventCallback(error, responseopt)

Callback as used by writeUserEvent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.retail.v2beta.UserEvent <optional>

UserEvent