# Dataflow v1beta3 API - Class TemplatesServiceClientImpl (2.0.0-beta10)

2.0.0-beta10 (latest) 2.0.0-beta09 1.0.0-beta03

    public sealed class TemplatesServiceClientImpl : TemplatesServiceClient

Reference documentation and code samples for the Dataflow v1beta3 API class TemplatesServiceClientImpl.

TemplatesService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [TemplatesServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient) \> TemplatesServiceClientImpl

## Inherited Members

[TemplatesServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_DefaultEndpoint) [TemplatesServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_DefaultScopes) [TemplatesServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_ServiceMetadata) [TemplatesServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_CreateAsync_System_Threading_CancellationToken_) [TemplatesServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_Create) [TemplatesServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_ShutdownDefaultChannelsAsync) [TemplatesServiceClient.CreateJobFromTemplateAsync(CreateJobFromTemplateRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_CreateJobFromTemplateAsync_Google_Cloud_Dataflow_V1Beta3_CreateJobFromTemplateRequest_System_Threading_CancellationToken_) [TemplatesServiceClient.LaunchTemplateAsync(LaunchTemplateRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_LaunchTemplateAsync_Google_Cloud_Dataflow_V1Beta3_LaunchTemplateRequest_System_Threading_CancellationToken_) [TemplatesServiceClient.GetTemplateAsync(GetTemplateRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_GetTemplateAsync_Google_Cloud_Dataflow_V1Beta3_GetTemplateRequest_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.Dataflow.V1Beta3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3)

## Assembly

Google.Cloud.Dataflow.V1Beta3.dll

## Remarks

Provides a method to create Cloud Dataflow jobs from templates.

## Constructors

### TemplatesServiceClientImpl(TemplatesServiceClient, TemplatesServiceSettings, ILogger)

    public TemplatesServiceClientImpl(TemplatesService.TemplatesServiceClient grpcClient, TemplatesServiceSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesService.TemplatesServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceSettings` The base [TemplatesServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceSettings) 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 TemplatesService.TemplatesServiceClient GrpcClient { get; }

The underlying gRPC TemplatesService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesService.TemplatesServiceClient` |   |

**Overrides** [TemplatesServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_GrpcClient)

## Methods

### CreateJobFromTemplate(CreateJobFromTemplateRequest, CallSettings)

    public override Job CreateJobFromTemplate(CreateJobFromTemplateRequest request, CallSettings callSettings = null)

Creates a Cloud Dataflow job from a template. Do not enter confidential
information when you supply string values using the API.

To create a job, we recommend using `projects.locations.templates.create`
with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.create` is not recommended, because your job will
always start in `us-central1`.

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

**Overrides** [TemplatesServiceClient.CreateJobFromTemplate(CreateJobFromTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_CreateJobFromTemplate_Google_Cloud_Dataflow_V1Beta3_CreateJobFromTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateJobFromTemplateAsync(CreateJobFromTemplateRequest, CallSettings)

    public override Task<Job> CreateJobFromTemplateAsync(CreateJobFromTemplateRequest request, CallSettings callSettings = null)

Creates a Cloud Dataflow job from a template. Do not enter confidential
information when you supply string values using the API.

To create a job, we recommend using `projects.locations.templates.create`
with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.create` is not recommended, because your job will
always start in `us-central1`.

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

**Overrides** [TemplatesServiceClient.CreateJobFromTemplateAsync(CreateJobFromTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_CreateJobFromTemplateAsync_Google_Cloud_Dataflow_V1Beta3_CreateJobFromTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetTemplate(GetTemplateRequest, CallSettings)

    public override GetTemplateResponse GetTemplate(GetTemplateRequest request, CallSettings callSettings = null)

Get the template associated with a template.

To get the template, we recommend using `projects.locations.templates.get`
with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.get` is not recommended, because only
templates that are running in `us-central1` are retrieved.

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

**Overrides** [TemplatesServiceClient.GetTemplate(GetTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_GetTemplate_Google_Cloud_Dataflow_V1Beta3_GetTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetTemplateAsync(GetTemplateRequest, CallSettings)

    public override Task<GetTemplateResponse> GetTemplateAsync(GetTemplateRequest request, CallSettings callSettings = null)

Get the template associated with a template.

To get the template, we recommend using `projects.locations.templates.get`
with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.get` is not recommended, because only
templates that are running in `us-central1` are retrieved.

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

**Overrides** [TemplatesServiceClient.GetTemplateAsync(GetTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_GetTemplateAsync_Google_Cloud_Dataflow_V1Beta3_GetTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)

### LaunchTemplate(LaunchTemplateRequest, CallSettings)

    public override LaunchTemplateResponse LaunchTemplate(LaunchTemplateRequest request, CallSettings callSettings = null)

Launches a template.

To launch a template, we recommend using
`projects.locations.templates.launch` with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.launch` is not recommended, because jobs launched
from the template will always start in `us-central1`.

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

**Overrides** [TemplatesServiceClient.LaunchTemplate(LaunchTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_LaunchTemplate_Google_Cloud_Dataflow_V1Beta3_LaunchTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)

### LaunchTemplateAsync(LaunchTemplateRequest, CallSettings)

    public override Task<LaunchTemplateResponse> LaunchTemplateAsync(LaunchTemplateRequest request, CallSettings callSettings = null)

Launches a template.

To launch a template, we recommend using
`projects.locations.templates.launch` with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
`projects.templates.launch` is not recommended, because jobs launched
from the template will always start in `us-central1`.

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

**Overrides** [TemplatesServiceClient.LaunchTemplateAsync(LaunchTemplateRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataflow.V1Beta3/latest/Google.Cloud.Dataflow.V1Beta3.TemplatesServiceClient#Google_Cloud_Dataflow_V1Beta3_TemplatesServiceClient_LaunchTemplateAsync_Google_Cloud_Dataflow_V1Beta3_LaunchTemplateRequest_Google_Api_Gax_Grpc_CallSettings_)