This interface defines virtual methods for each of the user-facing overload sets in GenerativeServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type GenerativeServiceClient.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGenerativeServiceConnection\u003c/code\u003e object defines virtual methods for each user-facing overload set in \u003ccode\u003eGenerativeServiceClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUsers can inject custom behaviors into \u003ccode\u003eGenerativeServiceClient\u003c/code\u003e objects, such as for testing purposes with a Google Mock object.\u003c/p\u003e\n"],["\u003cp\u003eA concrete instance of \u003ccode\u003eGenerativeServiceConnection\u003c/code\u003e can be created using the \u003ccode\u003eMakeGenerativeServiceConnection()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eFor mocking \u003ccode\u003eGenerativeServiceConnection\u003c/code\u003e, use the \u003ccode\u003egenerativelanguage_v1_mocks::MockGenerativeServiceConnection\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe provided interface functions include \u003ccode\u003eoptions()\u003c/code\u003e, \u003ccode\u003eGenerateContent\u003c/code\u003e, \u003ccode\u003eStreamGenerateContent\u003c/code\u003e, \u003ccode\u003eEmbedContent\u003c/code\u003e, \u003ccode\u003eBatchEmbedContents\u003c/code\u003e, and \u003ccode\u003eCountTokens\u003c/code\u003e, each with defined request parameters and return types.\u003c/p\u003e\n"]]],[],null,[]]