public sealed class GroundedGenerationServiceClientImpl : GroundedGenerationServiceClientReference documentation and code samples for the Discovery Engine v1 API class GroundedGenerationServiceClientImpl.
GroundedGenerationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Remarks
Service for grounded generation.
Constructors
GroundedGenerationServiceClientImpl(GroundedGenerationServiceClient, GroundedGenerationServiceSettings, ILogger)
public GroundedGenerationServiceClientImpl(GroundedGenerationService.GroundedGenerationServiceClient grpcClient, GroundedGenerationServiceSettings settings, ILogger logger)Constructs a client wrapper for the GroundedGenerationService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
GroundedGenerationServiceGroundedGenerationServiceClientThe underlying gRPC client. |
settings |
GroundedGenerationServiceSettingsThe base GroundedGenerationServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override GroundedGenerationService.GroundedGenerationServiceClient GrpcClient { get; }The underlying gRPC GroundedGenerationService client
| Property Value | |
|---|---|
| Type | Description |
GroundedGenerationServiceGroundedGenerationServiceClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CheckGrounding(CheckGroundingRequest, CallSettings)
public override CheckGroundingResponse CheckGrounding(CheckGroundingRequest request, CallSettings callSettings = null)Performs a grounding check.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckGroundingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
CheckGroundingResponse |
The RPC response. |
CheckGroundingAsync(CheckGroundingRequest, CallSettings)
public override Task<CheckGroundingResponse> CheckGroundingAsync(CheckGroundingRequest request, CallSettings callSettings = null)Performs a grounding check.
| Parameters | |
|---|---|
| Name | Description |
request |
CheckGroundingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskCheckGroundingResponse |
A Task containing the RPC response. |
GenerateGroundedContent(GenerateGroundedContentRequest, CallSettings)
public override GenerateGroundedContentResponse GenerateGroundedContent(GenerateGroundedContentRequest request, CallSettings callSettings = null)Generates grounded content.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateGroundedContentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateGroundedContentResponse |
The RPC response. |
GenerateGroundedContentAsync(GenerateGroundedContentRequest, CallSettings)
public override Task<GenerateGroundedContentResponse> GenerateGroundedContentAsync(GenerateGroundedContentRequest request, CallSettings callSettings = null)Generates grounded content.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateGroundedContentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateGroundedContentResponse |
A Task containing the RPC response. |
StreamGenerateGroundedContent(CallSettings, BidirectionalStreamingSettings)
public override GroundedGenerationServiceClient.StreamGenerateGroundedContentStream StreamGenerateGroundedContent(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Generates grounded content in a streaming fashion.
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GroundedGenerationServiceClientStreamGenerateGroundedContentStream |
The client-server stream. |