Class PredictionServiceClientImpl (1.6.0)

public sealed class PredictionServiceClientImpl : PredictionServiceClient

PredictionService client wrapper implementation, for convenient use.

Inheritance

Object > PredictionServiceClient > PredictionServiceClientImpl

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Remarks

Service for making recommendation prediction.

Constructors

PredictionServiceClientImpl(PredictionService.PredictionServiceClient, PredictionServiceSettings)

public PredictionServiceClientImpl(PredictionService.PredictionServiceClient grpcClient, PredictionServiceSettings settings)

Constructs a client wrapper for the PredictionService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientPredictionService.PredictionServiceClient

The underlying gRPC client.

settingsPredictionServiceSettings

The base PredictionServiceSettings used within this client.

Properties

GrpcClient

public override PredictionService.PredictionServiceClient GrpcClient { get; }

The underlying gRPC PredictionService client

Property Value
TypeDescription
PredictionService.PredictionServiceClient
Overrides

Methods

Predict(PredictRequest, CallSettings)

public override PredictResponse Predict(PredictRequest request, CallSettings callSettings = null)

Makes a recommendation prediction.

Parameters
NameDescription
requestPredictRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PredictResponse

The RPC response.

Overrides

PredictAsync(PredictRequest, CallSettings)

public override Task<PredictResponse> PredictAsync(PredictRequest request, CallSettings callSettings = null)

Makes a recommendation prediction.

Parameters
NameDescription
requestPredictRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<PredictResponse>

A Task containing the RPC response.

Overrides