Class AnalyticsServiceConnection (2.29.0)

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

To create a concrete instance, see MakeAnalyticsServiceConnection().

For mocking, see retail_v2_mocks::MockAnalyticsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ExportAnalyticsMetrics(google::cloud::retail::v2::ExportAnalyticsMetricsRequest const &)

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

virtual ExportAnalyticsMetrics(NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const &)

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

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

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