Class AnalyticsServiceConnection (2.26.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(ExperimentalTag, NoAwaitTag, google::cloud::retail::v2::ExportAnalyticsMetricsRequest const &)

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

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

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