This interface defines virtual methods for each of the user-facing overload sets in GroundedGenerationServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type GroundedGenerationServiceClient.
[[["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-08-14 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eGroundedGenerationServiceConnection\u003c/code\u003e class, which provides an interface for interacting with the \u003ccode\u003eGroundedGenerationServiceClient\u003c/code\u003e and defining virtual methods.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGroundedGenerationServiceConnection\u003c/code\u003e class is 2.37.0-rc, and the page lists various prior versions down to version 2.15.1 for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe page includes a comprehensive list of the class's functions like \u003ccode\u003eAsyncStreamGenerateGroundedContent\u003c/code\u003e, \u003ccode\u003eGenerateGroundedContent\u003c/code\u003e, \u003ccode\u003eCheckGrounding\u003c/code\u003e, \u003ccode\u003eListOperations\u003c/code\u003e, \u003ccode\u003eGetOperation\u003c/code\u003e, and \u003ccode\u003eCancelOperation\u003c/code\u003e, including parameter and return type information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGroundedGenerationServiceConnection\u003c/code\u003e allows the user to mock objects when writing tests, allowing for the injection of custom behaviour.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage provides links to create a concrete instance of \u003ccode\u003eGroundedGenerationServiceConnection\u003c/code\u003e with \u003ccode\u003eMakeGroundedGenerationServiceConnection()\u003c/code\u003e, and for mocking with \u003ccode\u003ediscoveryengine_v1_mocks::MockGroundedGenerationServiceConnection\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]