public sealed class RecommendationServiceClientImpl : RecommendationServiceClient
Reference documentation and code samples for the Discovery Engine v1beta API class RecommendationServiceClientImpl.
RecommendationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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 | RecommendationServiceRecommendationServiceClient The underlying gRPC client. |
settings | RecommendationServiceSettings The base RecommendationServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override RecommendationService.RecommendationServiceClient GrpcClient { get; }
The underlying gRPC RecommendationService client
Property Value | |
---|---|
Type | Description |
RecommendationServiceRecommendationServiceClient |
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 | RecommendRequest 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 |
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 | RecommendRequest 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 |
TaskRecommendResponse | A Task containing the RPC response. |