public sealed class PredictionServiceClientImpl : PredictionServiceClient
Reference documentation and code samples for the Retail v2 API class PredictionServiceClientImpl.
PredictionService client wrapper implementation, for convenient use.
Namespace
GoogleCloudGoogle.Cloud.RetailV2Assembly
Google.Cloud.Retail.V2.dll
Remarks
Service for making recommendation prediction.
Constructors
PredictionServiceClientImpl(PredictionServiceClient, PredictionServiceSettings, ILogger)
public PredictionServiceClientImpl(PredictionService.PredictionServiceClient grpcClient, PredictionServiceSettings settings, ILogger logger)
Constructs a client wrapper for the PredictionService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | PredictionServicePredictionServiceClient The underlying gRPC client. |
settings | PredictionServiceSettings The base PredictionServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override PredictionService.PredictionServiceClient GrpcClient { get; }
The underlying gRPC PredictionService client
Property Value | |
---|---|
Type | Description |
PredictionServicePredictionServiceClient |
LocationsClient
public override LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
Methods
Predict(PredictRequest, CallSettings)
public override PredictResponse Predict(PredictRequest request, CallSettings callSettings = null)
Makes a recommendation prediction.
Parameters | |
---|---|
Name | Description |
request | PredictRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PredictResponse | The RPC response. |
PredictAsync(PredictRequest, CallSettings)
public override Task<PredictResponse> PredictAsync(PredictRequest request, CallSettings callSettings = null)
Makes a recommendation prediction.
Parameters | |
---|---|
Name | Description |
request | PredictRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPredictResponse | A Task containing the RPC response. |