This interface defines virtual methods for each of the user-facing overload sets in CompletionServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CompletionServiceClient.
[[["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-21 UTC."],[[["The webpage details the `CompletionServiceConnection` class within the Google Cloud Discovery Engine v1 C++ library, which is available in multiple versions, including the latest release candidate `2.37.0-rc` and many stable versions going back to `2.15.1`."],["`CompletionServiceConnection` provides virtual methods that mirror the user-facing methods found in `CompletionServiceClient`, facilitating the injection of custom behaviors, especially for testing purposes, such as with Google Mock objects."],["The interface includes methods like `CompleteQuery`, `ImportSuggestionDenyListEntries`, `PurgeSuggestionDenyListEntries`, `ImportCompletionSuggestions`, and `PurgeCompletionSuggestions`, each supporting different parameters, return types, and functionality related to query completion and suggestion management."],["The `MakeCompletionServiceConnection()` function is used to create a concrete instance of the `CompletionServiceConnection` class, and the `MockCompletionServiceConnection` class is provided for mocking."],["This class provides different functions that allow you to use many methods for your completion client, such as managing completion suggestions and making query requests."]]],[]]