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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This page details the `TopicStatsServiceConnection` class, which provides an interface for `TopicStatsServiceClient`."],["The `TopicStatsServiceConnection` class has multiple versions available, ranging from 2.11.0 to 2.37.0-rc, allowing developers to select the appropriate version for their project, with 2.37.0-rc being the latest."],["Users can inject custom behavior into the `TopicStatsServiceClient` by utilizing the virtual methods defined in this class, which is particularly useful for testing with Google Mock objects."],["The class provides virtual methods for operations such as `ComputeMessageStats`, `ComputeHeadCursor`, `ComputeTimeCursor`, along with long-running operation management functions like `ListOperations`, `GetOperation`, `DeleteOperation`, and `CancelOperation`."],["A concrete instance of the connection can be created using `MakeTopicStatsServiceConnection()`, and for mocking purposes, `pubsublite_mocks::MockTopicStatsServiceConnection` is available."]]],[]]