4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public class Generators.GeneratorsClient : ClientBase<Generators.GeneratorsClient>

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

Client for Generators

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[Generators](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Generators.md.txt)[GeneratorsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.Generators.GeneratorsClient.md.txt) \> Generators.GeneratorsClient

## Inherited Members

[ClientBase\<Generators.GeneratorsClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [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.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.md.txt)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Constructors

### GeneratorsClient()

    protected GeneratorsClient()

Protected parameterless constructor to allow creation of test doubles.

### GeneratorsClient(CallInvoker)

    public GeneratorsClient(CallInvoker callInvoker)

Creates a new client for Generators that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### GeneratorsClient(ChannelBase)

    public GeneratorsClient(ChannelBase channel)

Creates a new client for Generators

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### GeneratorsClient(ClientBaseConfiguration)

    protected GeneratorsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateGenerator(CreateGeneratorRequest, CallOptions)

    public virtual Generator CreateGenerator(CreateGeneratorRequest request, CallOptions options)

Creates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### CreateGenerator(CreateGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual Generator CreateGenerator(CreateGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### CreateGeneratorAsync(CreateGeneratorRequest, CallOptions)

    public virtual AsyncUnaryCall<Generator> CreateGeneratorAsync(CreateGeneratorRequest request, CallOptions options)

Creates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |

### CreateGeneratorAsync(CreateGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Generator> CreateGeneratorAsync(CreateGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### DeleteGenerator(DeleteGeneratorRequest, CallOptions)

    public virtual Empty DeleteGenerator(DeleteGeneratorRequest request, CallOptions options)

Deletes a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteGenerator(DeleteGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteGenerator(DeleteGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Empty` | The response received from the server. |

### DeleteGeneratorAsync(DeleteGeneratorRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteGeneratorAsync(DeleteGeneratorRequest request, CallOptions options)

Deletes a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeleteGeneratorAsync(DeleteGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteGeneratorAsync(DeleteGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEmpty` | The call object. |

### GetGenerator(GetGeneratorRequest, CallOptions)

    public virtual Generator GetGenerator(GetGeneratorRequest request, CallOptions options)

Retrieves a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### GetGenerator(GetGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual Generator GetGenerator(GetGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### GetGeneratorAsync(GetGeneratorRequest, CallOptions)

    public virtual AsyncUnaryCall<Generator> GetGeneratorAsync(GetGeneratorRequest request, CallOptions options)

Retrieves a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |

### GetGeneratorAsync(GetGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Generator> GetGeneratorAsync(GetGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |

### ListGenerators(ListGeneratorsRequest, CallOptions)

    public virtual ListGeneratorsResponse ListGenerators(ListGeneratorsRequest request, CallOptions options)

Lists generators.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGeneratorsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListGeneratorsResponse` | The response received from the server. |

### ListGenerators(ListGeneratorsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListGeneratorsResponse ListGenerators(ListGeneratorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists generators.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGeneratorsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ListGeneratorsResponse` | The response received from the server. |

### ListGeneratorsAsync(ListGeneratorsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListGeneratorsResponse> ListGeneratorsAsync(ListGeneratorsRequest request, CallOptions options)

Lists generators.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGeneratorsRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListGeneratorsResponse` | The call object. |

### ListGeneratorsAsync(ListGeneratorsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListGeneratorsResponse> ListGeneratorsAsync(ListGeneratorsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists generators.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListGeneratorsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallListGeneratorsResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override Generators.GeneratorsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GeneratorsGeneratorsClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dialogflow.V2.Generators.GeneratorsClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### UpdateGenerator(UpdateGeneratorRequest, CallOptions)

    public virtual Generator UpdateGenerator(UpdateGeneratorRequest request, CallOptions options)

Updates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### UpdateGenerator(UpdateGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual Generator UpdateGenerator(UpdateGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Generator` | The response received from the server. |

### UpdateGeneratorAsync(UpdateGeneratorRequest, CallOptions)

    public virtual AsyncUnaryCall<Generator> UpdateGeneratorAsync(UpdateGeneratorRequest request, CallOptions options)

Updates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGeneratorRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |

### UpdateGeneratorAsync(UpdateGeneratorRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Generator> UpdateGeneratorAsync(UpdateGeneratorRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates a generator.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGeneratorRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallGenerator` | The call object. |