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-04-09 UTC."],[[["This webpage details the `CompletionServiceConnection` object, which is part of the Google Cloud Retail v2 C++ library and is tied to the `CompletionServiceClient`."],["The `CompletionServiceConnection` interface allows for injecting custom behaviors during testing, particularly with Google Mock objects, by defining virtual methods for each user-facing overload in the `CompletionServiceClient`."],["Users can create an actual instance of this service by using the `MakeCompletionServiceConnection()` function, and for mocking, `retail_v2_mocks::MockCompletionServiceConnection` is used."],["The different versions of the C++ library are listed on the webpage, with 2.37.0-rc as the most recent release, and going down to version 2.11.0."],["This connection object has methods such as `CompleteQuery`, `ImportCompletionData`, `ListOperations` and `GetOperation`, each with its corresponding parameters and return types."]]],[]]