Discovery Engine v1 API - Class GroundedGenerationServiceClientImpl (1.5.0)

public sealed class GroundedGenerationServiceClientImpl : GroundedGenerationServiceClient

Reference documentation and code samples for the Discovery Engine v1 API class GroundedGenerationServiceClientImpl.

GroundedGenerationService client wrapper implementation, for convenient use.

Inheritance

object > GroundedGenerationServiceClient > GroundedGenerationServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

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

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides

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.

Overrides