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 SessionTemplateController.SessionTemplateControllerClient : ClientBase<SessionTemplateController.SessionTemplateControllerClient>

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

Client for SessionTemplateController

## 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)[SessionTemplateController](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplateController.md.txt)[SessionTemplateControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SessionTemplateController.SessionTemplateControllerClient.md.txt) \> SessionTemplateController.SessionTemplateControllerClient

## Inherited Members

[ClientBase\<SessionTemplateController.SessionTemplateControllerClient\>.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

### SessionTemplateControllerClient()

    protected SessionTemplateControllerClient()

Protected parameterless constructor to allow creation of test doubles.

### SessionTemplateControllerClient(CallInvoker)

    public SessionTemplateControllerClient(CallInvoker callInvoker)

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

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

### SessionTemplateControllerClient(ChannelBase)

    public SessionTemplateControllerClient(ChannelBase channel)

Creates a new client for SessionTemplateController

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

### SessionTemplateControllerClient(ClientBaseConfiguration)

    protected SessionTemplateControllerClient(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. |

### CreateSessionTemplate(CreateSessionTemplateRequest, CallOptions)

    public virtual SessionTemplate CreateSessionTemplate(CreateSessionTemplateRequest request, CallOptions options)

Create a session template synchronously.

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

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

### CreateSessionTemplate(CreateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionTemplate CreateSessionTemplate(CreateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a session template synchronously.

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

### CreateSessionTemplateAsync(CreateSessionTemplateRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionTemplate> CreateSessionTemplateAsync(CreateSessionTemplateRequest request, CallOptions options)

Create a session template synchronously.

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

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

### CreateSessionTemplateAsync(CreateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionTemplate> CreateSessionTemplateAsync(CreateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Create a session template synchronously.

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

### DeleteSessionTemplate(DeleteSessionTemplateRequest, CallOptions)

    public virtual Empty DeleteSessionTemplate(DeleteSessionTemplateRequest request, CallOptions options)

Deletes a session template.

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

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

### DeleteSessionTemplate(DeleteSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a session template.

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

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

### DeleteSessionTemplateAsync(DeleteSessionTemplateRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteSessionTemplateAsync(DeleteSessionTemplateRequest request, CallOptions options)

Deletes a session template.

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

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

### DeleteSessionTemplateAsync(DeleteSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Deletes a session template.

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

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

### GetSessionTemplate(GetSessionTemplateRequest, CallOptions)

    public virtual SessionTemplate GetSessionTemplate(GetSessionTemplateRequest request, CallOptions options)

Gets the resource representation for a session template.

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

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

### GetSessionTemplate(GetSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionTemplate GetSessionTemplate(GetSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for a session template.

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

### GetSessionTemplateAsync(GetSessionTemplateRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionTemplate> GetSessionTemplateAsync(GetSessionTemplateRequest request, CallOptions options)

Gets the resource representation for a session template.

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

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

### GetSessionTemplateAsync(GetSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionTemplate> GetSessionTemplateAsync(GetSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the resource representation for a session template.

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

### ListSessionTemplates(ListSessionTemplatesRequest, CallOptions)

    public virtual ListSessionTemplatesResponse ListSessionTemplates(ListSessionTemplatesRequest request, CallOptions options)

Lists session templates.

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

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

### ListSessionTemplates(ListSessionTemplatesRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListSessionTemplatesResponse ListSessionTemplates(ListSessionTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists session templates.

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

### ListSessionTemplatesAsync(ListSessionTemplatesRequest, CallOptions)

    public virtual AsyncUnaryCall<ListSessionTemplatesResponse> ListSessionTemplatesAsync(ListSessionTemplatesRequest request, CallOptions options)

Lists session templates.

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

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

### ListSessionTemplatesAsync(ListSessionTemplatesRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListSessionTemplatesResponse> ListSessionTemplatesAsync(ListSessionTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Lists session templates.

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

### NewInstance(ClientBaseConfiguration)

    protected override SessionTemplateController.SessionTemplateControllerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SessionTemplateControllerSessionTemplateControllerClient` |   |

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

### UpdateSessionTemplate(UpdateSessionTemplateRequest, CallOptions)

    public virtual SessionTemplate UpdateSessionTemplate(UpdateSessionTemplateRequest request, CallOptions options)

Updates the session template synchronously.

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

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

### UpdateSessionTemplate(UpdateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual SessionTemplate UpdateSessionTemplate(UpdateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the session template synchronously.

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

### UpdateSessionTemplateAsync(UpdateSessionTemplateRequest, CallOptions)

    public virtual AsyncUnaryCall<SessionTemplate> UpdateSessionTemplateAsync(UpdateSessionTemplateRequest request, CallOptions options)

Updates the session template synchronously.

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

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

### UpdateSessionTemplateAsync(UpdateSessionTemplateRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<SessionTemplate> UpdateSessionTemplateAsync(UpdateSessionTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Updates the session template synchronously.

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