Class UserEventServiceConnection (2.19.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 discoveryengine_v1_mocks::MockUserEventServiceConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual WriteUserEvent(google::cloud::discoveryengine::v1::WriteUserEventRequest const &)

Parameter
NameDescription
request google::cloud::discoveryengine::v1::WriteUserEventRequest const &
Returns
TypeDescription
StatusOr< google::cloud::discoveryengine::v1::UserEvent >

virtual CollectUserEvent(google::cloud::discoveryengine::v1::CollectUserEventRequest const &)

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

virtual ImportUserEvents(google::cloud::discoveryengine::v1::ImportUserEventsRequest const &)

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