Class TopicStatsServiceConnection (2.33.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 >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status