Discovery Engine v1beta API - Class RecommendationServiceClientImpl (1.0.0-beta10)

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.

Inheritance

object > RecommendationServiceClient > RecommendationServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

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
NameDescription
grpcClientRecommendationServiceRecommendationServiceClient

The underlying gRPC client.

settingsRecommendationServiceSettings

The base RecommendationServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override RecommendationService.RecommendationServiceClient GrpcClient { get; }

The underlying gRPC RecommendationService client

Property Value
TypeDescription
RecommendationServiceRecommendationServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

Methods

Recommend(RecommendRequest, CallSettings)

public override RecommendResponse Recommend(RecommendRequest request, CallSettings callSettings = null)

Makes a recommendation, which requires a contextual user event.

Parameters
NameDescription
requestRecommendRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
RecommendResponse

The RPC response.

Overrides

RecommendAsync(RecommendRequest, CallSettings)

public override Task<RecommendResponse> RecommendAsync(RecommendRequest request, CallSettings callSettings = null)

Makes a recommendation, which requires a contextual user event.

Parameters
NameDescription
requestRecommendRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskRecommendResponse

A Task containing the RPC response.

Overrides