# Discovery Engine v1 API - Class SessionServiceClientImpl (1.13.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.13.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.12.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.11.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.10.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.9.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)
- [1.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.SessionServiceClientImpl)

    public sealed class SessionServiceClientImpl : SessionServiceClient

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

SessionService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [SessionServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient) \> SessionServiceClientImpl

## Inherited Members

[SessionServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DefaultEndpoint) [SessionServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DefaultScopes) [SessionServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ServiceMetadata) [SessionServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateAsync_System_Threading_CancellationToken_) [SessionServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_Create) [SessionServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ShutdownDefaultChannelsAsync) [SessionServiceClient.CreateSessionAsync(CreateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1_CreateSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.CreateSession(string, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSession_System_String_Google_Cloud_DiscoveryEngine_V1_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(string, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_System_String_Google_Cloud_DiscoveryEngine_V1_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(string, Session, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_System_String_Google_Cloud_DiscoveryEngine_V1_Session_System_Threading_CancellationToken_) [SessionServiceClient.CreateSession(DataStoreName, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSession_Google_Cloud_DiscoveryEngine_V1_DataStoreName_Google_Cloud_DiscoveryEngine_V1_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(DataStoreName, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1_DataStoreName_Google_Cloud_DiscoveryEngine_V1_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(DataStoreName, Session, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1_DataStoreName_Google_Cloud_DiscoveryEngine_V1_Session_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSessionAsync(DeleteSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1_DeleteSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_System_String_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSession_Google_Cloud_DiscoveryEngine_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1_SessionName_System_Threading_CancellationToken_) [SessionServiceClient.UpdateSessionAsync(UpdateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1_UpdateSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.UpdateSession(Session, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSession_Google_Cloud_DiscoveryEngine_V1_Session_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.UpdateSessionAsync(Session, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1_Session_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.UpdateSessionAsync(Session, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1_Session_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [SessionServiceClient.GetSessionAsync(GetSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1_GetSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.GetSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_System_String_System_Threading_CancellationToken_) [SessionServiceClient.GetSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSession_Google_Cloud_DiscoveryEngine_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1_SessionName_System_Threading_CancellationToken_) [SessionServiceClient.ListSessions(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessions_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.ListSessionsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessionsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.ListSessions(DataStoreName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessions_Google_Cloud_DiscoveryEngine_V1_DataStoreName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.ListSessionsAsync(DataStoreName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessionsAsync_Google_Cloud_DiscoveryEngine_V1_DataStoreName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)

## Assembly

Google.Cloud.DiscoveryEngine.V1.dll

## Remarks

Service for managing Sessions and Session-related resources.

## Constructors

### SessionServiceClientImpl(SessionServiceClient, SessionServiceSettings, ILogger)

    public SessionServiceClientImpl(SessionService.SessionServiceClient grpcClient, SessionServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceSettings` The base [SessionServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override SessionService.SessionServiceClient GrpcClient { get; }

The underlying gRPC SessionService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionService.SessionServiceClient` |   |

**Overrides** [SessionServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [SessionServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_LocationsClient)

## Methods

### CreateSession(CreateSessionRequest, CallSettings)

    public override Session CreateSession(CreateSessionRequest request, CallSettings callSettings = null)

Creates a Session.

If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to create already
exists, an ALREADY_EXISTS error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | The RPC response. |

**Overrides** [SessionServiceClient.CreateSession(CreateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSession_Google_Cloud_DiscoveryEngine_V1_CreateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateSessionAsync(CreateSessionRequest, CallSettings)

    public override Task<Session> CreateSessionAsync(CreateSessionRequest request, CallSettings callSettings = null)

Creates a Session.

If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to create already
exists, an ALREADY_EXISTS error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.CreateSessionAsync(CreateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1_CreateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteSession(DeleteSessionRequest, CallSettings)

    public override void DeleteSession(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes a Session.

If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to delete does
not exist, a NOT_FOUND error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Overrides** [SessionServiceClient.DeleteSession(DeleteSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSession_Google_Cloud_DiscoveryEngine_V1_DeleteSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteSessionAsync(DeleteSessionRequest, CallSettings)

    public override Task DeleteSessionAsync(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes a Session.

If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to delete does
not exist, a NOT_FOUND error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.DeleteSessionAsync(DeleteSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1_DeleteSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetSession(GetSessionRequest, CallSettings)

    public override Session GetSession(GetSessionRequest request, CallSettings callSettings = null)

Gets a Session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | The RPC response. |

**Overrides** [SessionServiceClient.GetSession(GetSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSession_Google_Cloud_DiscoveryEngine_V1_GetSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetSessionAsync(GetSessionRequest, CallSettings)

    public override Task<Session> GetSessionAsync(GetSessionRequest request, CallSettings callSettings = null)

Gets a Session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.GetSessionAsync(GetSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1_GetSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListSessions(ListSessionsRequest, CallSettings)

    public override PagedEnumerable<ListSessionsResponse, Session> ListSessions(ListSessionsRequest request, CallSettings callSettings = null)

Lists all Sessions by their parent
\[DataStore\]\[google.cloud.discoveryengine.v1.DataStore\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.ListSessionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.ListSessionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | A pageable sequence of [Session](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session) resources. |

**Overrides** [SessionServiceClient.ListSessions(ListSessionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessions_Google_Cloud_DiscoveryEngine_V1_ListSessionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListSessionsAsync(ListSessionsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListSessionsResponse, Session> ListSessionsAsync(ListSessionsRequest request, CallSettings callSettings = null)

Lists all Sessions by their parent
\[DataStore\]\[google.cloud.discoveryengine.v1.DataStore\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.ListSessionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.ListSessionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | A pageable asynchronous sequence of [Session](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session) resources. |

**Overrides** [SessionServiceClient.ListSessionsAsync(ListSessionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_ListSessionsAsync_Google_Cloud_DiscoveryEngine_V1_ListSessionsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateSession(UpdateSessionRequest, CallSettings)

    public override Session UpdateSession(UpdateSessionRequest request, CallSettings callSettings = null)

Updates a Session.

\[Session\]\[google.cloud.discoveryengine.v1.Session\] action type cannot be
changed. If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to
update does not exist, a NOT_FOUND error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UpdateSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | The RPC response. |

**Overrides** [SessionServiceClient.UpdateSession(UpdateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSession_Google_Cloud_DiscoveryEngine_V1_UpdateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateSessionAsync(UpdateSessionRequest, CallSettings)

    public override Task<Session> UpdateSessionAsync(UpdateSessionRequest request, CallSettings callSettings = null)

Updates a Session.

\[Session\]\[google.cloud.discoveryengine.v1.Session\] action type cannot be
changed. If the \[Session\]\[google.cloud.discoveryengine.v1.Session\] to
update does not exist, a NOT_FOUND error is returned.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.UpdateSessionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Session` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.UpdateSessionAsync(UpdateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1_UpdateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)