Class UserEventServiceConnection (2.31.0)

This interface defines virtual methods for each of the user-facing overload sets in UserEventServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type UserEventServiceClient.

To create a concrete instance, see MakeUserEventServiceConnection().

For mocking, see retail_v2_mocks::MockUserEventServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual WriteUserEvent(google::cloud::retail::v2::WriteUserEventRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::WriteUserEventRequest const &
Returns
Type Description
StatusOr< google::cloud::retail::v2::UserEvent >

virtual CollectUserEvent(google::cloud::retail::v2::CollectUserEventRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::CollectUserEventRequest const &
Returns
Type Description
StatusOr< google::api::HttpBody >

virtual PurgeUserEvents(google::cloud::retail::v2::PurgeUserEventsRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::PurgeUserEventsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::PurgeUserEventsResponse > >

virtual PurgeUserEvents(NoAwaitTag, google::cloud::retail::v2::PurgeUserEventsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::PurgeUserEventsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual PurgeUserEvents(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::PurgeUserEventsResponse > >

virtual ImportUserEvents(google::cloud::retail::v2::ImportUserEventsRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::ImportUserEventsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::ImportUserEventsResponse > >

virtual ImportUserEvents(NoAwaitTag, google::cloud::retail::v2::ImportUserEventsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::ImportUserEventsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportUserEvents(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::ImportUserEventsResponse > >

virtual RejoinUserEvents(google::cloud::retail::v2::RejoinUserEventsRequest const &)

Parameter
Name Description
request google::cloud::retail::v2::RejoinUserEventsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::RejoinUserEventsResponse > >

virtual RejoinUserEvents(NoAwaitTag, google::cloud::retail::v2::RejoinUserEventsRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::retail::v2::RejoinUserEventsRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual RejoinUserEvents(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::retail::v2::RejoinUserEventsResponse > >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >