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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-26 UTC."],[[["This page details the `TopicStatsServiceConnection` class, which acts as an interface for the `TopicStatsServiceClient`."],["The `TopicStatsServiceConnection` interface allows for the injection of custom behavior, such as mocking, during testing."],["The latest version of `TopicStatsServiceConnection` is 2.37.0-rc, with a history of previous versions available."],["The page shows the virtual methods, like `ComputeMessageStats`, `ComputeHeadCursor`, and `ComputeTimeCursor`, which are defined in the `TopicStatsServiceConnection` interface."],["The `MakeTopicStatsServiceConnection()` function allows for the creation of a concrete instance of this class, and for testing, use the `pubsublite_mocks::MockTopicStatsServiceConnection`."]]],[]]