This interface defines virtual methods for each of the user-facing overload sets in PredictionServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type PredictionServiceClient.
[[["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."],[[["This page details the `PredictionServiceConnection` class for Google Cloud Retail's `PredictionServiceClient`, outlining its role in defining virtual methods for user-facing overloads."],["The latest release candidate for this class is version 2.37.0-rc, with numerous past versions also accessible, ranging from 2.11.0 to 2.36.0, as well as 2.25.1 and 2.22.1."],["The `PredictionServiceConnection` class facilitates custom behavior injection during testing, enabling users to replace standard functionality with custom implementations, such as Google Mock objects."],["The `MakePredictionServiceConnection()` function is used to generate concrete instances of the `PredictionServiceConnection` class."],["It provides the `options()` function to obtain the options and the `Predict` function to retrieve a prediction based on a `PredictRequest` parameter, with the return being a `PredictResponse` or an error `Status`."]]],[]]