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-03-14 UTC."],[[["The content details various versions of the `GroundedGenerationServiceConnection` class, with `2.37.0-rc` being the latest release candidate."],["This `GroundedGenerationServiceConnection` interface is used in conjunction with the `GroundedGenerationServiceClient` and is found within the `google::cloud::discoveryengine::v1` namespace."],["The primary function of `GroundedGenerationServiceConnection` is to define virtual methods, enabling custom behavior injection for testing purposes."],["A concrete instance of the connection can be created using the `MakeGroundedGenerationServiceConnection()` function, and mocking is available via `discoveryengine_v1_mocks::MockGroundedGenerationServiceConnection`."],["The content highlights the `options()` and `CheckGrounding()` virtual functions, the latter taking in a `google::cloud::discoveryengine::v1::CheckGroundingRequest` parameter, and returns a `StatusOr\u003c google::cloud::discoveryengine::v1::CheckGroundingResponse \u003e`."]]],[]]