Class UserEventServiceConnection (2.16.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 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 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 > >