Class UserEventServiceConnection (2.20.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::retail::v2::WriteUserEventRequest const &
Returns
TypeDescription
StatusOr< google::cloud::retail::v2::UserEvent >

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

Parameter
NameDescription
request google::cloud::retail::v2::CollectUserEventRequest const &
Returns
TypeDescription
StatusOr< google::api::HttpBody >

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

Parameter
NameDescription
request google::cloud::retail::v2::PurgeUserEventsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::PurgeUserEventsResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::ImportUserEventsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::ImportUserEventsResponse > >

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

Parameter
NameDescription
request google::cloud::retail::v2::RejoinUserEventsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::retail::v2::RejoinUserEventsResponse > >