# Google Cloud Dataproc v1 API - Class SessionControllerClientImpl (5.27.0)

5.27.0 (latest) 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

    public sealed class SessionControllerClientImpl : SessionControllerClient

Reference documentation and code samples for the Google Cloud Dataproc v1 API class SessionControllerClientImpl.

SessionController client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[SessionControllerClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DefaultEndpoint) [SessionControllerClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DefaultScopes) [SessionControllerClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ServiceMetadata) [SessionControllerClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateAsync_System_Threading_CancellationToken_) [SessionControllerClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_Create) [SessionControllerClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ShutdownDefaultChannelsAsync) [SessionControllerClient.CreateSessionAsync(CreateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionAsync_Google_Cloud_Dataproc_V1_CreateSessionRequest_System_Threading_CancellationToken_) [SessionControllerClient.PollOnceCreateSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceCreateSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.PollOnceCreateSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceCreateSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.CreateSession(string, Session, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSession_System_String_Google_Cloud_Dataproc_V1_Session_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.CreateSessionAsync(string, Session, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionAsync_System_String_Google_Cloud_Dataproc_V1_Session_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.CreateSessionAsync(string, Session, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionAsync_System_String_Google_Cloud_Dataproc_V1_Session_System_String_System_Threading_CancellationToken_) [SessionControllerClient.CreateSession(LocationName, Session, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSession_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dataproc_V1_Session_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.CreateSessionAsync(LocationName, Session, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dataproc_V1_Session_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.CreateSessionAsync(LocationName, Session, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dataproc_V1_Session_System_String_System_Threading_CancellationToken_) [SessionControllerClient.GetSessionAsync(GetSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSessionAsync_Google_Cloud_Dataproc_V1_GetSessionRequest_System_Threading_CancellationToken_) [SessionControllerClient.GetSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.GetSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.GetSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSessionAsync_System_String_System_Threading_CancellationToken_) [SessionControllerClient.GetSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSession_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.GetSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSessionAsync_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.GetSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GetSessionAsync_Google_Cloud_Dataproc_V1_SessionName_System_Threading_CancellationToken_) [SessionControllerClient.ListSessions(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ListSessions_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.ListSessionsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ListSessionsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.ListSessions(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ListSessions_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.ListSessionsAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_ListSessionsAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSessionAsync(TerminateSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_Google_Cloud_Dataproc_V1_TerminateSessionRequest_System_Threading_CancellationToken_) [SessionControllerClient.PollOnceTerminateSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceTerminateSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.PollOnceTerminateSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceTerminateSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_System_String_System_Threading_CancellationToken_) [SessionControllerClient.TerminateSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSession_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.TerminateSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_Google_Cloud_Dataproc_V1_SessionName_System_Threading_CancellationToken_) [SessionControllerClient.DeleteSessionAsync(DeleteSessionRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionAsync_Google_Cloud_Dataproc_V1_DeleteSessionRequest_System_Threading_CancellationToken_) [SessionControllerClient.PollOnceDeleteSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceDeleteSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.PollOnceDeleteSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_PollOnceDeleteSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.DeleteSession(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSession_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.DeleteSessionAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.DeleteSessionAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionAsync_System_String_System_Threading_CancellationToken_) [SessionControllerClient.DeleteSession(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSession_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.DeleteSessionAsync(SessionName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionAsync_Google_Cloud_Dataproc_V1_SessionName_Google_Api_Gax_Grpc_CallSettings_) [SessionControllerClient.DeleteSessionAsync(SessionName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionAsync_Google_Cloud_Dataproc_V1_SessionName_System_Threading_CancellationToken_) [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.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Remarks

The `SessionController` provides methods to manage interactive sessions.

## Constructors

### SessionControllerClientImpl(SessionControllerClient, SessionControllerSettings, ILogger)

    public SessionControllerClientImpl(SessionController.SessionControllerClient grpcClient, SessionControllerSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionController.SessionControllerClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerSettings` The base [SessionControllerSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerSettings) 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

### CreateSessionOperationsClient

    public override OperationsClient CreateSessionOperationsClient { get; }

The long-running operations client for `CreateSession`.

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

**Overrides** [SessionControllerClient.CreateSessionOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_CreateSessionOperationsClient)

### DeleteSessionOperationsClient

    public override OperationsClient DeleteSessionOperationsClient { get; }

The long-running operations client for `DeleteSession`.

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

**Overrides** [SessionControllerClient.DeleteSessionOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_DeleteSessionOperationsClient)

### GrpcClient

    public override SessionController.SessionControllerClient GrpcClient { get; }

The underlying gRPC SessionController client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionController.SessionControllerClient` |   |

**Overrides** [SessionControllerClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_GrpcClient)

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

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

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

**Overrides** [SessionControllerClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_IAMPolicyClient)

### TerminateSessionOperationsClient

    public override OperationsClient TerminateSessionOperationsClient { get; }

The long-running operations client for `TerminateSession`.

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

**Overrides** [SessionControllerClient.TerminateSessionOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionOperationsClient)

## Methods

### CreateSession(CreateSessionRequest, CallSettings)

    public override Operation<Session, SessionOperationMetadata> CreateSession(CreateSessionRequest request, CallSettings callSettings = null)

Create an interactive session asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | The RPC response. |

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

### CreateSessionAsync(CreateSessionRequest, CallSettings)

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

Create an interactive session asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | A Task containing the RPC response. |

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

### DeleteSession(DeleteSessionRequest, CallSettings)

    public override Operation<Session, SessionOperationMetadata> DeleteSession(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes the interactive session resource. If the session is not in terminal
state, it is terminated, and then deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | The RPC response. |

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

### DeleteSessionAsync(DeleteSessionRequest, CallSettings)

    public override Task<Operation<Session, SessionOperationMetadata>> DeleteSessionAsync(DeleteSessionRequest request, CallSettings callSettings = null)

Deletes the interactive session resource. If the session is not in terminal
state, it is terminated, and then deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | A Task containing the RPC response. |

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

### GetSession(GetSessionRequest, CallSettings)

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

Gets the resource representation for an interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Session` | The RPC response. |

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

### GetSessionAsync(GetSessionRequest, CallSettings)

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

Gets the resource representation for an interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.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.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Session` | A Task containing the RPC response. |

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

### ListSessions(ListSessionsRequest, CallSettings)

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

Lists interactive sessions.

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

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

### ListSessionsAsync(ListSessionsRequest, CallSettings)

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

Lists interactive sessions.

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

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

### TerminateSession(TerminateSessionRequest, CallSettings)

    public override Operation<Session, SessionOperationMetadata> TerminateSession(TerminateSessionRequest request, CallSettings callSettings = null)

Terminates the interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.TerminateSessionRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | The RPC response. |

**Overrides** [SessionControllerClient.TerminateSession(TerminateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSession_Google_Cloud_Dataproc_V1_TerminateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)

### TerminateSessionAsync(TerminateSessionRequest, CallSettings)

    public override Task<Operation<Session, SessionOperationMetadata>> TerminateSessionAsync(TerminateSessionRequest request, CallSettings callSettings = null)

Terminates the interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.TerminateSessionRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Sessionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionOperationMetadata` | A Task containing the RPC response. |

**Overrides** [SessionControllerClient.TerminateSessionAsync(TerminateSessionRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionControllerClient#Google_Cloud_Dataproc_V1_SessionControllerClient_TerminateSessionAsync_Google_Cloud_Dataproc_V1_TerminateSessionRequest_Google_Api_Gax_Grpc_CallSettings_)