3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public class Examples.ExamplesClient : ClientBase<Examples.ExamplesClient>

Reference documentation and code samples for the Dialogflow v3 API class Examples.ExamplesClient.

Client for Examples

## 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)[Examples](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Examples.md.txt)[ExamplesClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Examples.ExamplesClient.md.txt) \> Examples.ExamplesClient

## Inherited Members

[ClientBase\<Examples.ExamplesClient\>.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.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### ExamplesClient()

    protected ExamplesClient()

Protected parameterless constructor to allow creation of test doubles.

### ExamplesClient(CallInvoker)

    public ExamplesClient(CallInvoker callInvoker)

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

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

### ExamplesClient(ChannelBase)

    public ExamplesClient(ChannelBase channel)

Creates a new client for Examples

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

### ExamplesClient(ClientBaseConfiguration)

    protected ExamplesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

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

## Methods

### CreateExample(CreateExampleRequest, CallOptions)

    public virtual Example CreateExample(CreateExampleRequest request, CallOptions options)

Creates an example in the specified playbook.

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

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

### CreateExample(CreateExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual Example CreateExample(CreateExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an example in the specified playbook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateExampleRequest` 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** |
| `Example` | The response received from the server. |

### CreateExampleAsync(CreateExampleRequest, CallOptions)

    public virtual AsyncUnaryCall<Example> CreateExampleAsync(CreateExampleRequest request, CallOptions options)

Creates an example in the specified playbook.

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

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

### CreateExampleAsync(CreateExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Example> CreateExampleAsync(CreateExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates an example in the specified playbook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateExampleRequest` 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** |
| `AsyncUnaryCallExample` | 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. |

### DeleteExample(DeleteExampleRequest, CallOptions)

    public virtual Empty DeleteExample(DeleteExampleRequest request, CallOptions options)

Deletes the specified example.

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

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

### DeleteExample(DeleteExampleRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteExampleRequest` 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. |

### DeleteExampleAsync(DeleteExampleRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteExampleAsync(DeleteExampleRequest request, CallOptions options)

Deletes the specified example.

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

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

### DeleteExampleAsync(DeleteExampleRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteExampleRequest` 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. |

### GetExample(GetExampleRequest, CallOptions)

    public virtual Example GetExample(GetExampleRequest request, CallOptions options)

Retrieves the specified example.

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

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

### GetExample(GetExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual Example GetExample(GetExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetExampleRequest` 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** |
| `Example` | The response received from the server. |

### GetExampleAsync(GetExampleRequest, CallOptions)

    public virtual AsyncUnaryCall<Example> GetExampleAsync(GetExampleRequest request, CallOptions options)

Retrieves the specified example.

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

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

### GetExampleAsync(GetExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Example> GetExampleAsync(GetExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetExampleRequest` 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** |
| `AsyncUnaryCallExample` | The call object. |

### ListExamples(ListExamplesRequest, CallOptions)

    public virtual ListExamplesResponse ListExamples(ListExamplesRequest request, CallOptions options)

Returns a list of examples in the specified playbook.

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

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

### ListExamples(ListExamplesRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListExamplesResponse ListExamples(ListExamplesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of examples in the specified playbook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListExamplesRequest` 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** |
| `ListExamplesResponse` | The response received from the server. |

### ListExamplesAsync(ListExamplesRequest, CallOptions)

    public virtual AsyncUnaryCall<ListExamplesResponse> ListExamplesAsync(ListExamplesRequest request, CallOptions options)

Returns a list of examples in the specified playbook.

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

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

### ListExamplesAsync(ListExamplesRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListExamplesResponse> ListExamplesAsync(ListExamplesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns a list of examples in the specified playbook.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListExamplesRequest` 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** |
| `AsyncUnaryCallListExamplesResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override Examples.ExamplesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ExamplesExamplesClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dialogflow.Cx.V3.Examples.ExamplesClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### UpdateExample(UpdateExampleRequest, CallOptions)

    public virtual Example UpdateExample(UpdateExampleRequest request, CallOptions options)

Update the specified example.

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

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

### UpdateExample(UpdateExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual Example UpdateExample(UpdateExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateExampleRequest` 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** |
| `Example` | The response received from the server. |

### UpdateExampleAsync(UpdateExampleRequest, CallOptions)

    public virtual AsyncUnaryCall<Example> UpdateExampleAsync(UpdateExampleRequest request, CallOptions options)

Update the specified example.

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

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

### UpdateExampleAsync(UpdateExampleRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Example> UpdateExampleAsync(UpdateExampleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Update the specified example.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateExampleRequest` 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** |
| `AsyncUnaryCallExample` | The call object. |