Class TopicStatsServiceConnection (2.16.0)

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

To create a concrete instance, see MakeTopicStatsServiceConnection().

For mocking, see pubsublite_mocks::MockTopicStatsServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ComputeMessageStats(google::cloud::pubsublite::v1::ComputeMessageStatsRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::ComputeMessageStatsRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::ComputeMessageStatsResponse >

virtual ComputeHeadCursor(google::cloud::pubsublite::v1::ComputeHeadCursorRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::ComputeHeadCursorRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::ComputeHeadCursorResponse >

virtual ComputeTimeCursor(google::cloud::pubsublite::v1::ComputeTimeCursorRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::ComputeTimeCursorRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::ComputeTimeCursorResponse >