1.0.0-beta25 (latest) 1.0.0-beta24

    [BindServiceMethod(typeof(RecommendationService), "BindService")]
    public abstract class RecommendationService.RecommendationServiceBase

Reference documentation and code samples for the Discovery Engine v1beta API class RecommendationService.RecommendationServiceBase.

Base class for server-side implementations of RecommendationService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RecommendationService.RecommendationServiceBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Methods

### Recommend(RecommendRequest, ServerCallContext)

    public virtual Task<RecommendResponse> Recommend(RecommendRequest request, ServerCallContext context)

Makes a recommendation, which requires a contextual user event.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RecommendRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.RecommendResponse` | The response to send back to the client (wrapped by a task). |