Discovery Engine v1 API - Class RecommendationServiceClientImpl (1.0.0-beta05)

public sealed class RecommendationServiceClientImpl : RecommendationServiceClient

Reference documentation and code samples for the Discovery Engine v1 API class RecommendationServiceClientImpl.

RecommendationService client wrapper implementation, for convenient use.

Inheritance

object > RecommendationServiceClient > RecommendationServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

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 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
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
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
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.

Overrides

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.

Overrides