public sealed class GroundedGenerationServiceClientImpl : GroundedGenerationServiceClient
Reference documentation and code samples for the Discovery Engine v1beta API class GroundedGenerationServiceClientImpl.
GroundedGenerationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.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 |
GroundedGenerationServiceGroundedGenerationServiceClient The underlying gRPC client. |
settings |
GroundedGenerationServiceSettings The base GroundedGenerationServiceSettings used within this client. |
logger |
ILogger Optional 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 |
CheckGroundingRequest 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 |
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 |
CheckGroundingRequest 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 |
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 |
GenerateGroundedContentRequest 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 |
GenerateGroundedContentResponse |
The RPC response. |
GenerateGroundedContentAsync(GenerateGroundedContentRequest, CallSettings)
public override Task<GenerateGroundedContentResponse> GenerateGroundedContentAsync(GenerateGroundedContentRequest request, CallSettings callSettings = null)
Generates grounded content.
Parameters | |
---|---|
Name | Description |
request |
GenerateGroundedContentRequest 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 |
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 |
CallSettings If not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettings If not null, applies streaming overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GroundedGenerationServiceClientStreamGenerateGroundedContentStream |
The client-server stream. |