public sealed class RecommendationServiceClientImpl : RecommendationServiceClientReference documentation and code samples for the Discovery Engine v1 API class RecommendationServiceClientImpl.
RecommendationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Remarks
Service for making recommendations.
Constructors
RecommendationServiceClientImpl(RecommendationServiceClient, RecommendationServiceSettings, ILogger)
public RecommendationServiceClientImpl(RecommendationService.RecommendationServiceClient grpcClient, RecommendationServiceSettings settings, ILogger logger)Constructs a client wrapper for the RecommendationService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
RecommendationServiceRecommendationServiceClientThe underlying gRPC client. |
settings |
RecommendationServiceSettingsThe base RecommendationServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override RecommendationService.RecommendationServiceClient GrpcClient { get; }The underlying gRPC RecommendationService client
| Property Value | |
|---|---|
| Type | Description |
RecommendationServiceRecommendationServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
Recommend(RecommendRequest, CallSettings)
public override RecommendResponse Recommend(RecommendRequest request, CallSettings callSettings = null)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description |
request |
RecommendRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RecommendResponse |
The RPC response. |
RecommendAsync(RecommendRequest, CallSettings)
public override Task<RecommendResponse> RecommendAsync(RecommendRequest request, CallSettings callSettings = null)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description |
request |
RecommendRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRecommendResponse |
A Task containing the RPC response. |