# Discovery Engine v1beta API - Class GroundedGenerationService.GroundedGenerationServiceBase (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    [BindServiceMethod(typeof(GroundedGenerationService), "BindService")]
    public abstract class GroundedGenerationService.GroundedGenerationServiceBase

Reference documentation and code samples for the Discovery Engine v1beta API class GroundedGenerationService.GroundedGenerationServiceBase.

Base class for server-side implementations of GroundedGenerationService

## Inheritance

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

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

### CheckGrounding(CheckGroundingRequest, ServerCallContext)

    public virtual Task<CheckGroundingResponse> CheckGrounding(CheckGroundingRequest request, ServerCallContext context)

Performs a grounding check.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CheckGroundingRequest` 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.CheckGroundingResponse` | The response to send back to the client (wrapped by a task). |

### GenerateGroundedContent(GenerateGroundedContentRequest, ServerCallContext)

    public virtual Task<GenerateGroundedContentResponse> GenerateGroundedContent(GenerateGroundedContentRequest request, ServerCallContext context)

Generates grounded content.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest` 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.GenerateGroundedContentResponse` | The response to send back to the client (wrapped by a task). |

### StreamGenerateGroundedContent(IAsyncStreamReader\<GenerateGroundedContentRequest\>, IServerStreamWriter\<GenerateGroundedContentResponse\>, ServerCallContext)

    public virtual Task StreamGenerateGroundedContent(IAsyncStreamReader<GenerateGroundedContentRequest> requestStream, IServerStreamWriter<GenerateGroundedContentResponse> responseStream, ServerCallContext context)

Generates grounded content in a streaming fashion.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `requestStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest` Used for reading requests from the client. |
| `responseStream` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IServerStreamWriter-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentResponse` Used for sending responses back to 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` | A task indicating completion of the handler. |