5.29.0 (latest) 5.28.0 5.27.0 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 class SessionController.SessionControllerClient : ClientBase<SessionController.SessionControllerClient>

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

Client for SessionController

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[SessionController](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionController.md.txt)[SessionControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionController.SessionControllerClient.md.txt) \> SessionController.SessionControllerClient

## Inherited Members

[ClientBase\<SessionController.SessionControllerClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Dataproc.V1.dll

## Constructors

### SessionControllerClient()

    protected SessionControllerClient()

Protected parameterless constructor to allow creation of test doubles.

### SessionControllerClient(CallInvoker)

    public SessionControllerClient(CallInvoker callInvoker)

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

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

### SessionControllerClient(ChannelBase)

    public SessionControllerClient(ChannelBase channel)

Creates a new client for SessionController

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

### SessionControllerClient(ClientBaseConfiguration)

    protected SessionControllerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

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

## Methods

### CreateIAMPolicyClient()

    public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()

Creates a new instance of [IAMPolicy.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicy.IAMPolicyClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `IAMPolicyIAMPolicyClient` | A new [IAMPolicy.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicy.IAMPolicyClient.md.txt) for the same target as this client. |

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationsOperationsClient` | A new Operations client for the same target as this client. |

### CreateSession(CreateSessionRequest, CallOptions)

    public virtual Operation CreateSession(CreateSessionRequest request, CallOptions options)

Create an interactive session asynchronously.

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

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

### CreateSession(CreateSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation CreateSession(CreateSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create an interactive session asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### CreateSessionAsync(CreateSessionRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> CreateSessionAsync(CreateSessionRequest request, CallOptions options)

Create an interactive session asynchronously.

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

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

### CreateSessionAsync(CreateSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> CreateSessionAsync(CreateSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create an interactive session asynchronously.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### DeleteSession(DeleteSessionRequest, CallOptions)

    public virtual Operation DeleteSession(DeleteSessionRequest request, CallOptions options)

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

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

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

### DeleteSession(DeleteSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation DeleteSession(DeleteSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### DeleteSessionAsync(DeleteSessionRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> DeleteSessionAsync(DeleteSessionRequest request, CallOptions options)

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

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

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

### DeleteSessionAsync(DeleteSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> DeleteSessionAsync(DeleteSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### GetSession(GetSessionRequest, CallOptions)

    public virtual Session GetSession(GetSessionRequest request, CallOptions options)

Gets the resource representation for an interactive session.

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

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

### GetSession(GetSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual Session GetSession(GetSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for an interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### GetSessionAsync(GetSessionRequest, CallOptions)

    public virtual AsyncUnaryCall<Session> GetSessionAsync(GetSessionRequest request, CallOptions options)

Gets the resource representation for an interactive session.

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

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

### GetSessionAsync(GetSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Session> GetSessionAsync(GetSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for an interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### ListSessions(ListSessionsRequest, CallOptions)

    public virtual ListSessionsResponse ListSessions(ListSessionsRequest request, CallOptions options)

Lists interactive sessions.

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

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

### ListSessions(ListSessionsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListSessionsResponse ListSessions(ListSessionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists interactive sessions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListSessionsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### ListSessionsAsync(ListSessionsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, CallOptions options)

Lists interactive sessions.

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

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

### ListSessionsAsync(ListSessionsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListSessionsResponse> ListSessionsAsync(ListSessionsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists interactive sessions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListSessionsRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### NewInstance(ClientBaseConfiguration)

    protected override SessionController.SessionControllerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SessionControllerSessionControllerClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dataproc.V1.SessionController.SessionControllerClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### TerminateSession(TerminateSessionRequest, CallOptions)

    public virtual Operation TerminateSession(TerminateSessionRequest request, CallOptions options)

Terminates the interactive session.

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

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

### TerminateSession(TerminateSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation TerminateSession(TerminateSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Terminates the interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TerminateSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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

### TerminateSessionAsync(TerminateSessionRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> TerminateSessionAsync(TerminateSessionRequest request, CallOptions options)

Terminates the interactive session.

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

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

### TerminateSessionAsync(TerminateSessionRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> TerminateSessionAsync(TerminateSessionRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Terminates the interactive session.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `TerminateSessionRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

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