public sealed class PredictionServiceClientImpl : PredictionServiceClientPredictionService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.RecommendationEngine.V1Beta1Assembly
Google.Cloud.RecommendationEngine.V1Beta1.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 | |
|---|---|
| Name | Description |
grpcClient |
PredictionService.PredictionServiceClientThe underlying gRPC client. |
settings |
PredictionServiceSettingsThe base PredictionServiceSettings used within this client. |
Properties
GrpcClient
public override PredictionService.PredictionServiceClient GrpcClient { get; }The underlying gRPC PredictionService client
| Property Value | |
|---|---|
| Type | Description |
PredictionService.PredictionServiceClient |
|
Methods
Predict(PredictRequest, CallSettings)
public override PagedEnumerable<PredictResponse, PredictResponse.Types.PredictionResult> Predict(PredictRequest request, CallSettings callSettings = null)Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry] service. Learn more.
| Parameters | |
|---|---|
| Name | Description |
request |
PredictRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerable<PredictResponse, PredictResponse.Types.PredictionResult> |
A pageable sequence of PredictResponse.Types.PredictionResult resources. |
PredictAsync(PredictRequest, CallSettings)
public override PagedAsyncEnumerable<PredictResponse, PredictResponse.Types.PredictionResult> PredictAsync(PredictRequest request, CallSettings callSettings = null)Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry] service. Learn more.
| Parameters | |
|---|---|
| Name | Description |
request |
PredictRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerable<PredictResponse, PredictResponse.Types.PredictionResult> |
A pageable asynchronous sequence of PredictResponse.Types.PredictionResult resources. |