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-08-14 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eServiceUsageConnection\u003c/code\u003e object, which is used with the \u003ccode\u003eServiceUsageClient\u003c/code\u003e in the Google Cloud Service Usage API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceUsageConnection\u003c/code\u003e interface allows for the injection of custom behavior in tests, such as with a Google Mock object, to test \u003ccode\u003eServiceUsageClient\u003c/code\u003e functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists various versions of the API, from the latest release candidate (2.37.0-rc) down to version 2.11.0, providing links to each version's documentation, such as \u003ccode\u003e2.37.0-rc\u003c/code\u003e all the way to \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt details the virtual methods within the \u003ccode\u003eServiceUsageConnection\u003c/code\u003e interface, including \u003ccode\u003eEnableService\u003c/code\u003e, \u003ccode\u003eDisableService\u003c/code\u003e, \u003ccode\u003eGetService\u003c/code\u003e, \u003ccode\u003eListServices\u003c/code\u003e, \u003ccode\u003eBatchEnableServices\u003c/code\u003e, and \u003ccode\u003eBatchGetServices\u003c/code\u003e, and their respective parameters and return types.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create a concrete instance of the \u003ccode\u003eServiceUsageConnection\u003c/code\u003e by using the \u003ccode\u003eMakeServiceUsageConnection()\u003c/code\u003e function, or for testing purposes use the \u003ccode\u003eserviceusage_v1_mocks::MockServiceUsageConnection\u003c/code\u003e function.\u003c/p\u003e\n"]]],[],null,[]]