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 SessionEntityTypes.SessionEntityTypesClient : ClientBase<SessionEntityTypes.SessionEntityTypesClient>

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

Client for SessionEntityTypes

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

## Inherited Members

[ClientBase\<SessionEntityTypes.SessionEntityTypesClient\>.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

### SessionEntityTypesClient()

    protected SessionEntityTypesClient()

Protected parameterless constructor to allow creation of test doubles.

### SessionEntityTypesClient(CallInvoker)

    public SessionEntityTypesClient(CallInvoker callInvoker)

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

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

### SessionEntityTypesClient(ChannelBase)

    public SessionEntityTypesClient(ChannelBase channel)

Creates a new client for SessionEntityTypes

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

### SessionEntityTypesClient(ClientBaseConfiguration)

    protected SessionEntityTypesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

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

## Methods

### 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. |

### CreateSessionEntityType(CreateSessionEntityTypeRequest, CallOptions)

    public virtual SessionEntityType CreateSessionEntityType(CreateSessionEntityTypeRequest request, CallOptions options)

Creates a session entity type.

If the specified session entity type already exists, overrides the session
entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### CreateSessionEntityType(CreateSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionEntityType CreateSessionEntityType(CreateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a session entity type.

If the specified session entity type already exists, overrides the session
entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionEntityType> CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest request, CallOptions options)

Creates a session entity type.

If the specified session entity type already exists, overrides the session
entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionEntityType> CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a session entity type.

If the specified session entity type already exists, overrides the session
entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### DeleteSessionEntityType(DeleteSessionEntityTypeRequest, CallOptions)

    public virtual Empty DeleteSessionEntityType(DeleteSessionEntityTypeRequest request, CallOptions options)

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### DeleteSessionEntityType(DeleteSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest request, CallOptions options)

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### DeleteSessionEntityTypeAsync(DeleteSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### GetSessionEntityType(GetSessionEntityTypeRequest, CallOptions)

    public virtual SessionEntityType GetSessionEntityType(GetSessionEntityTypeRequest request, CallOptions options)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### GetSessionEntityType(GetSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionEntityType GetSessionEntityType(GetSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### GetSessionEntityTypeAsync(GetSessionEntityTypeRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionEntityType> GetSessionEntityTypeAsync(GetSessionEntityTypeRequest request, CallOptions options)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### GetSessionEntityTypeAsync(GetSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionEntityType> GetSessionEntityTypeAsync(GetSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### ListSessionEntityTypes(ListSessionEntityTypesRequest, CallOptions)

    public virtual ListSessionEntityTypesResponse ListSessionEntityTypes(ListSessionEntityTypesRequest request, CallOptions options)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### ListSessionEntityTypes(ListSessionEntityTypesRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListSessionEntityTypesResponse ListSessionEntityTypes(ListSessionEntityTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### ListSessionEntityTypesAsync(ListSessionEntityTypesRequest, CallOptions)

    public virtual AsyncUnaryCall<ListSessionEntityTypesResponse> ListSessionEntityTypesAsync(ListSessionEntityTypesRequest request, CallOptions options)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### ListSessionEntityTypesAsync(ListSessionEntityTypesRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListSessionEntityTypesResponse> ListSessionEntityTypesAsync(ListSessionEntityTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all session entity types in the specified session.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### NewInstance(ClientBaseConfiguration)

    protected override SessionEntityTypes.SessionEntityTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SessionEntityTypesSessionEntityTypesClient` |   |

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

### UpdateSessionEntityType(UpdateSessionEntityTypeRequest, CallOptions)

    public virtual SessionEntityType UpdateSessionEntityType(UpdateSessionEntityTypeRequest request, CallOptions options)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### UpdateSessionEntityType(UpdateSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionEntityType UpdateSessionEntityType(UpdateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

### UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionEntityType> UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest request, CallOptions options)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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

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

### UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionEntityType> UpdateSessionEntityTypeAsync(UpdateSessionEntityTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the specified session entity type.

This method doesn't work with Google Assistant integration.
Contact Dialogflow support if you need to use session entities
with Google Assistant integration.

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