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

Functions

virtual options()

Returns
Type Description
Options

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

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

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

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

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

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