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-04-09 UTC."],[[["This webpage details the `PredictionServiceConnection` interface for the Google Cloud Retail API's `PredictionServiceClient`."],["The latest version available is 2.37.0-rc, with numerous older versions, from 2.36.0 down to 2.11.0, also listed."],["The `PredictionServiceConnection` interface provides virtual methods for all user-facing overload sets found in `PredictionServiceClient`, which can facilitate the use of custom behaviors for testing."],["You can create an instance of the `PredictionServiceConnection` by using the `MakePredictionServiceConnection()` function, or use `MockPredictionServiceConnection` for mocking."],["The interface has two primary virtual functions described: `options()` which returns `Options` and `Predict()` that takes a request and returns a `StatusOr\u003c google::cloud::retail::v2::PredictResponse \u003e`."]]],[]]