1.0.0-beta25 (latest) 1.0.0-beta24

    public sealed class SessionServiceClientImpl : SessionServiceClient

Reference documentation and code samples for the Discovery Engine v1beta 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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient) \> SessionServiceClientImpl

## Inherited Members

[SessionServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DefaultEndpoint) [SessionServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DefaultScopes) [SessionServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ServiceMetadata) [SessionServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateAsync_System_Threading_CancellationToken_) [SessionServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_Create) [SessionServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ShutdownDefaultChannelsAsync) [SessionServiceClient.CreateSessionAsync(CreateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_CreateSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.CreateSession(string, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSession_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(string, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(string, Session, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_System_String_Google_Cloud_DiscoveryEngine_V1Beta_Session_System_Threading_CancellationToken_) [SessionServiceClient.CreateSession(DataStoreName, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSession_Google_Cloud_DiscoveryEngine_V1Beta_DataStoreName_Google_Cloud_DiscoveryEngine_V1Beta_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(DataStoreName, Session, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_DataStoreName_Google_Cloud_DiscoveryEngine_V1Beta_Session_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.CreateSessionAsync(DataStoreName, Session, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_DataStoreName_Google_Cloud_DiscoveryEngine_V1Beta_Session_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSessionAsync(DeleteSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_DeleteSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_System_String_System_Threading_CancellationToken_) [SessionServiceClient.DeleteSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSession_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.DeleteSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_System_Threading_CancellationToken_) [SessionServiceClient.UpdateSessionAsync(UpdateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_UpdateSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.UpdateSession(Session, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_UpdateSession_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_UpdateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_Session_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [SessionServiceClient.GetSessionAsync(GetSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_GetSessionRequest_System_Threading_CancellationToken_) [SessionServiceClient.GetSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_System_String_System_Threading_CancellationToken_) [SessionServiceClient.GetSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSession_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionServiceClient.GetSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_SessionName_System_Threading_CancellationToken_) [SessionServiceClient.ListSessions(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ListSessions_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ListSessionsAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionService.SessionServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceSettings` The base [SessionServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionService.SessionServiceClient` |   |

**Overrides** [SessionServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_LocationsClient)

## Methods

### CreateSession(CreateSessionRequest, CallSettings)

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

Creates a Session.

If the \[Session\]\[google.cloud.discoveryengine.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | The RPC response. |

**Overrides** [SessionServiceClient.CreateSession(CreateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSession_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.CreateSessionAsync(CreateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_CreateSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSession_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_DeleteSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | The RPC response. |

**Overrides** [SessionServiceClient.GetSession(GetSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSession_Google_Cloud_DiscoveryEngine_V1Beta_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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | A Task containing the RPC response. |

**Overrides** [SessionServiceClient.GetSessionAsync(GetSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_GetSessionAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.DataStore\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListSessionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | A pageable sequence of [Session](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session) resources. |

**Overrides** [SessionServiceClient.ListSessions(ListSessionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ListSessions_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.DataStore\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListSessionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | A pageable asynchronous sequence of [Session](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session) resources. |

**Overrides** [SessionServiceClient.ListSessionsAsync(ListSessionsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_ListSessionsAsync_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.Session\] action type cannot
be changed. If the \[Session\]\[google.cloud.discoveryengine.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | The RPC response. |

**Overrides** [SessionServiceClient.UpdateSession(UpdateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SessionServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_SessionServiceClient_UpdateSession_Google_Cloud_DiscoveryEngine_V1Beta_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.v1beta.Session\] action type cannot
be changed. If the \[Session\]\[google.cloud.discoveryengine.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Session` | A Task containing the RPC response. |

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