public class RecommendationService.RecommendationServiceClient : ClientBase<RecommendationService.RecommendationServiceClient>Reference documentation and code samples for the Discovery Engine v1 API class RecommendationService.RecommendationServiceClient.
Client for RecommendationService
Inheritance
object > ClientBase > ClientBaseRecommendationServiceRecommendationServiceClient > RecommendationService.RecommendationServiceClientNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
RecommendationServiceClient()
protected RecommendationServiceClient()Protected parameterless constructor to allow creation of test doubles.
RecommendationServiceClient(CallInvoker)
public RecommendationServiceClient(CallInvoker callInvoker)Creates a new client for RecommendationService that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description | 
| callInvoker | CallInvokerThe callInvoker to use to make remote calls. | 
RecommendationServiceClient(ChannelBase)
public RecommendationServiceClient(ChannelBase channel)Creates a new client for RecommendationService
| Parameter | |
|---|---|
| Name | Description | 
| channel | ChannelBaseThe channel to use to make remote calls. | 
RecommendationServiceClient(ClientBaseConfiguration)
protected RecommendationServiceClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBaseClientBaseConfigurationThe client configuration. | 
Methods
CreateLocationsClient()
public virtual Locations.LocationsClient CreateLocationsClient()Creates a new instance of Locations.LocationsClient using the same call invoker as this client.
| Returns | |
|---|---|
| Type | Description | 
| LocationsLocationsClient | A new Locations.LocationsClient for the same target as this client. | 
NewInstance(ClientBaseConfiguration)
protected override RecommendationService.RecommendationServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description | 
| configuration | ClientBaseClientBaseConfiguration | 
| Returns | |
|---|---|
| Type | Description | 
| RecommendationServiceRecommendationServiceClient | |
Recommend(RecommendRequest, CallOptions)
public virtual RecommendResponse Recommend(RecommendRequest request, CallOptions options)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description | 
| request | RecommendRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| RecommendResponse | The response received from the server. | 
Recommend(RecommendRequest, Metadata, DateTime?, CancellationToken)
public virtual RecommendResponse Recommend(RecommendRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description | 
| request | RecommendRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| RecommendResponse | The response received from the server. | 
RecommendAsync(RecommendRequest, CallOptions)
public virtual AsyncUnaryCall<RecommendResponse> RecommendAsync(RecommendRequest request, CallOptions options)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description | 
| request | RecommendRequestThe request to send to the server. | 
| options | CallOptionsThe options for the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallRecommendResponse | The call object. | 
RecommendAsync(RecommendRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<RecommendResponse> RecommendAsync(RecommendRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)Makes a recommendation, which requires a contextual user event.
| Parameters | |
|---|---|
| Name | Description | 
| request | RecommendRequestThe request to send to the server. | 
| headers | MetadataThe initial metadata to send with the call. This parameter is optional. | 
| deadline | System.DateTimeAn optional deadline for the call. The call will be cancelled if deadline is hit. | 
| cancellationToken | CancellationTokenAn optional token for canceling the call. | 
| Returns | |
|---|---|
| Type | Description | 
| AsyncUnaryCallRecommendResponse | The call object. |