This interface defines virtual methods for each of the user-facing overload sets in ServiceUsageClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ServiceUsageClient.
[[["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 webpage details the `ServiceUsageConnection` class, which provides an interface for interacting with the `ServiceUsageClient` in the Google Cloud Service Usage API, specifically for C++."],["The page lists the different versions of the `ServiceUsageConnection` class, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc."],["The `ServiceUsageConnection` class allows for customization and mocking during testing by defining virtual methods corresponding to the user-facing methods in `ServiceUsageClient`."],["The `ServiceUsageConnection` class exposes a variety of functions for managing services, including `EnableService`, `DisableService`, `GetService`, `ListServices`, `BatchEnableServices`, and `BatchGetServices`, each with multiple overloads."],["The webpage provides links to the documentation for creating concrete instances, and for creating mock objects, respectively called [`MakeServiceUsageConnection()`](/cpp/docs/reference/serviceusage/2.26.0/namespacegoogle_1_1cloud_1_1serviceusage__v1) and [`serviceusage_v1_mocks::MockServiceUsageConnection`](/cpp/docs/reference/serviceusage/2.26.0/classgoogle_1_1cloud_1_1serviceusage__v1__mocks_1_1MockServiceUsageConnection)."]]],[]]