Class PredictionServiceClientImpl
PredictionService client wrapper implementation, for convenient use.
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class PredictionServiceClientImpl : PredictionServiceClient
Remarks
Service for making recommendation prediction.
Constructors
PredictionServiceClientImpl(PredictionService.PredictionServiceClient, PredictionServiceSettings)
Constructs a client wrapper for the PredictionService service, with the specified gRPC client and settings.
Declaration
public PredictionServiceClientImpl(PredictionService.PredictionServiceClient grpcClient, PredictionServiceSettings settings)
Parameters
Type | Name | Description |
---|---|---|
PredictionService.PredictionServiceClient | grpcClient | The underlying gRPC client. |
PredictionServiceSettings | settings | The base PredictionServiceSettings used within this client. |
Properties
GrpcClient
The underlying gRPC PredictionService client
Declaration
public override PredictionService.PredictionServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
PredictionService.PredictionServiceClient |
Overrides
Methods
Predict(PredictRequest, CallSettings)
Makes a recommendation prediction.
Declaration
public override PredictResponse Predict(PredictRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PredictRequest | request | 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. |
Overrides
PredictAsync(PredictRequest, CallSettings)
Makes a recommendation prediction.
Declaration
public override Task<PredictResponse> PredictAsync(PredictRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PredictRequest | request | 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 |
---|---|
System.Threading.Tasks.Task<PredictResponse> | A Task containing the RPC response. |