Google Cloud Dialogflow v2 API - Class GeneratorsClientImpl (4.21.0)

public sealed class GeneratorsClientImpl : GeneratorsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class GeneratorsClientImpl.

Generators client wrapper implementation, for convenient use.

Inheritance

object > GeneratorsClient > GeneratorsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Generator Service for LLM powered Agent Assist. This service manages the configurations of user owned Generators, such as description, context and instruction, input/output format, etc. The generator resources will be used inside a conversation and will be triggered by TriggerEvent to query LLM for answers.

Constructors

GeneratorsClientImpl(GeneratorsClient, GeneratorsSettings, ILogger)

public GeneratorsClientImpl(Generators.GeneratorsClient grpcClient, GeneratorsSettings settings, ILogger logger)

Constructs a client wrapper for the Generators service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient GeneratorsGeneratorsClient

The underlying gRPC client.

settings GeneratorsSettings

The base GeneratorsSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override Generators.GeneratorsClient GrpcClient { get; }

The underlying gRPC Generators client

Property Value
Type Description
GeneratorsGeneratorsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient
Overrides

Methods

CreateGenerator(CreateGeneratorRequest, CallSettings)

public override Generator CreateGenerator(CreateGeneratorRequest request, CallSettings callSettings = null)

Creates a generator.

Parameters
Name Description
request CreateGeneratorRequest

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
Generator

The RPC response.

Overrides

CreateGeneratorAsync(CreateGeneratorRequest, CallSettings)

public override Task<Generator> CreateGeneratorAsync(CreateGeneratorRequest request, CallSettings callSettings = null)

Creates a generator.

Parameters
Name Description
request CreateGeneratorRequest

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
TaskGenerator

A Task containing the RPC response.

Overrides

DeleteGenerator(DeleteGeneratorRequest, CallSettings)

public override void DeleteGenerator(DeleteGeneratorRequest request, CallSettings callSettings = null)

Deletes a generator.

Parameters
Name Description
request DeleteGeneratorRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteGeneratorAsync(DeleteGeneratorRequest, CallSettings)

public override Task DeleteGeneratorAsync(DeleteGeneratorRequest request, CallSettings callSettings = null)

Deletes a generator.

Parameters
Name Description
request DeleteGeneratorRequest

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
Task

A Task containing the RPC response.

Overrides

GetGenerator(GetGeneratorRequest, CallSettings)

public override Generator GetGenerator(GetGeneratorRequest request, CallSettings callSettings = null)

Retrieves a generator.

Parameters
Name Description
request GetGeneratorRequest

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
Generator

The RPC response.

Overrides

GetGeneratorAsync(GetGeneratorRequest, CallSettings)

public override Task<Generator> GetGeneratorAsync(GetGeneratorRequest request, CallSettings callSettings = null)

Retrieves a generator.

Parameters
Name Description
request GetGeneratorRequest

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
TaskGenerator

A Task containing the RPC response.

Overrides

ListGenerators(ListGeneratorsRequest, CallSettings)

public override PagedEnumerable<ListGeneratorsResponse, Generator> ListGenerators(ListGeneratorsRequest request, CallSettings callSettings = null)

Lists generators.

Parameters
Name Description
request ListGeneratorsRequest

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
PagedEnumerableListGeneratorsResponseGenerator

A pageable sequence of Generator resources.

Overrides

ListGeneratorsAsync(ListGeneratorsRequest, CallSettings)

public override PagedAsyncEnumerable<ListGeneratorsResponse, Generator> ListGeneratorsAsync(ListGeneratorsRequest request, CallSettings callSettings = null)

Lists generators.

Parameters
Name Description
request ListGeneratorsRequest

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
PagedAsyncEnumerableListGeneratorsResponseGenerator

A pageable asynchronous sequence of Generator resources.

Overrides

UpdateGenerator(UpdateGeneratorRequest, CallSettings)

public override Generator UpdateGenerator(UpdateGeneratorRequest request, CallSettings callSettings = null)

Updates a generator.

Parameters
Name Description
request UpdateGeneratorRequest

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
Generator

The RPC response.

Overrides

UpdateGeneratorAsync(UpdateGeneratorRequest, CallSettings)

public override Task<Generator> UpdateGeneratorAsync(UpdateGeneratorRequest request, CallSettings callSettings = null)

Updates a generator.

Parameters
Name Description
request UpdateGeneratorRequest

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
TaskGenerator

A Task containing the RPC response.

Overrides