# Google Cloud Dataproc v1 API - Class JobControllerClient (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 abstract class JobControllerClient

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

JobController client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> JobControllerClient

## Inherited Members

[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)

## Derived Types

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

## 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 JobController provides methods to manage jobs.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the JobController service, which is a host of "dataproc.googleapis.com" and a port
of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default JobController scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default JobController scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

### GrpcClient

    public virtual JobController.JobControllerClient GrpcClient { get; }

The underlying gRPC JobController client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobController.JobControllerClient` |   |

### IAMPolicyClient

    public virtual 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` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

### SubmitJobAsOperationOperationsClient

    public virtual OperationsClient SubmitJobAsOperationOperationsClient { get; }

The long-running operations client for `SubmitJobAsOperation`.

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

## Methods

### CancelJob(CancelJobRequest, CallSettings)

    public virtual Job CancelJob(CancelJobRequest request, CallSettings callSettings = null)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    CancelJobRequest request = new CancelJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = jobControllerClient.CancelJob(request);

### CancelJob(string, string, string, CallSettings)

    public virtual Job CancelJob(string projectId, string region, string jobId, CallSettings callSettings = null)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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.Job` | The RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = jobControllerClient.CancelJob(projectId, region, jobId);

### CancelJobAsync(CancelJobRequest, CallSettings)

    public virtual Task<Job> CancelJobAsync(CancelJobRequest request, CallSettings callSettings = null)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    CancelJobRequest request = new CancelJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = await jobControllerClient.CancelJobAsync(request);

### CancelJobAsync(CancelJobRequest, CancellationToken)

    public virtual Task<Job> CancelJobAsync(CancelJobRequest request, CancellationToken cancellationToken)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.CancelJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    CancelJobRequest request = new CancelJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = await jobControllerClient.CancelJobAsync(request);

### CancelJobAsync(string, string, string, CallSettings)

    public virtual Task<Job> CancelJobAsync(string projectId, string region, string jobId, CallSettings callSettings = null)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = await jobControllerClient.CancelJobAsync(projectId, region, jobId);

### CancelJobAsync(string, string, string, CancellationToken)

    public virtual Task<Job> CancelJobAsync(string projectId, string region, string jobId, CancellationToken cancellationToken)

Starts a job cancellation request. To access the job resource
after cancellation, call
[regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list)
or
[regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = await jobControllerClient.CancelJobAsync(projectId, region, jobId);

### Create()

    public static JobControllerClient Create()

Synchronously creates a [JobControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [JobControllerClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient` | The created [JobControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient). |

### CreateAsync(CancellationToken)

    public static Task<JobControllerClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [JobControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [JobControllerClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **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.JobControllerClient` | The task representing the created [JobControllerClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient). |

### DeleteJob(DeleteJobRequest, CallSettings)

    public virtual void DeleteJob(DeleteJobRequest request, CallSettings callSettings = null)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    DeleteJobRequest request = new DeleteJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    jobControllerClient.DeleteJob(request);

### DeleteJob(string, string, string, CallSettings)

    public virtual void DeleteJob(string projectId, string region, string jobId, CallSettings callSettings = null)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    jobControllerClient.DeleteJob(projectId, region, jobId);

### DeleteJobAsync(DeleteJobRequest, CallSettings)

    public virtual Task DeleteJobAsync(DeleteJobRequest request, CallSettings callSettings = null)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    DeleteJobRequest request = new DeleteJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    await jobControllerClient.DeleteJobAsync(request);

### DeleteJobAsync(DeleteJobRequest, CancellationToken)

    public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.DeleteJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    DeleteJobRequest request = new DeleteJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    await jobControllerClient.DeleteJobAsync(request);

### DeleteJobAsync(string, string, string, CallSettings)

    public virtual Task DeleteJobAsync(string projectId, string region, string jobId, CallSettings callSettings = null)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    await jobControllerClient.DeleteJobAsync(projectId, region, jobId);

### DeleteJobAsync(string, string, string, CancellationToken)

    public virtual Task DeleteJobAsync(string projectId, string region, string jobId, CancellationToken cancellationToken)

Deletes the job from the project. If the job is active, the delete fails,
and the response returns `FAILED_PRECONDITION`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    await jobControllerClient.DeleteJobAsync(projectId, region, jobId);

### GetJob(GetJobRequest, CallSettings)

    public virtual Job GetJob(GetJobRequest request, CallSettings callSettings = null)

Gets the resource representation for a job in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    GetJobRequest request = new GetJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = jobControllerClient.GetJob(request);

### GetJob(string, string, string, CallSettings)

    public virtual Job GetJob(string projectId, string region, string jobId, CallSettings callSettings = null)

Gets the resource representation for a job in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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.Job` | The RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = jobControllerClient.GetJob(projectId, region, jobId);

### GetJobAsync(GetJobRequest, CallSettings)

    public virtual Task<Job> GetJobAsync(GetJobRequest request, CallSettings callSettings = null)

Gets the resource representation for a job in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    GetJobRequest request = new GetJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = await jobControllerClient.GetJobAsync(request);

### GetJobAsync(GetJobRequest, CancellationToken)

    public virtual Task<Job> GetJobAsync(GetJobRequest request, CancellationToken cancellationToken)

Gets the resource representation for a job in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.GetJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    GetJobRequest request = new GetJobRequest
    {
        ProjectId = "",
        JobId = "",
        Region = "",
    };
    // Make the request
    Job response = await jobControllerClient.GetJobAsync(request);

### GetJobAsync(string, string, string, CallSettings)

    public virtual Task<Job> GetJobAsync(string projectId, string region, string jobId, CallSettings callSettings = null)

Gets the resource representation for a job in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = await jobControllerClient.GetJobAsync(projectId, region, jobId);

### GetJobAsync(string, string, string, CancellationToken)

    public virtual Task<Job> GetJobAsync(string projectId, string region, string jobId, CancellationToken cancellationToken)

Gets the resource representation for a job in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `jobId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The job ID. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string jobId = "";
    // Make the request
    Job response = await jobControllerClient.GetJobAsync(projectId, region, jobId);

### ListJobs(ListJobsRequest, CallSettings)

    public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(ListJobsRequest request, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    ListJobsRequest request = new ListJobsRequest
    {
        ProjectId = "",
        ClusterName = "",
        JobStateMatcher = ListJobsRequest.Types.JobStateMatcher.All,
        Region = "",
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobs(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListJobs(string, string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(string projectId, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.ListJobsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` | A pageable sequence of [Job](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job) resources. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    // Make the request
    PagedEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobs(projectId, region);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListJobs(string, string, string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(string projectId, string region, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `filter` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax: \[field = value\] AND \[field \[= value\]\] ... where **field** is `status.state` or `insertTime`, or `labels.[KEY]`, and `[KEY]` is a label key. **value** can be `*` to match all values. `status.state` can be either `ACTIVE` or `NON_ACTIVE`. Allows `insertTime` to be a timestamp in RFC 3339 format in double quotes, such as `2025-01-01T00:00:00Z`. Only the logical `AND` operator is supported; space-separated items are treated as having an implicit `AND` operator. Example filter: status.state = ACTIVE AND labels.env = staging AND labels.starred = \* AND insertTime \<= "2025-01-01T00:00:00Z" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.ListJobsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` | A pageable sequence of [Job](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job) resources. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string filter = "";
    // Make the request
    PagedEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobs(projectId, region, filter: filter);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListJobsAsync(ListJobsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(ListJobsRequest request, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    ListJobsRequest request = new ListJobsRequest
    {
        ProjectId = "",
        ClusterName = "",
        JobStateMatcher = ListJobsRequest.Types.JobStateMatcher.All,
        Region = "",
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListJobsAsync(string, string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(string projectId, string region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.ListJobsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` | A pageable asynchronous sequence of [Job](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job) resources. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    // Make the request
    PagedAsyncEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobsAsync(projectId, region);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListJobsAsync(string, string, string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(string projectId, string region, string filter, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists regions/{region}/jobs in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `filter` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax: \[field = value\] AND \[field \[= value\]\] ... where **field** is `status.state` or `insertTime`, or `labels.[KEY]`, and `[KEY]` is a label key. **value** can be `*` to match all values. `status.state` can be either `ACTIVE` or `NON_ACTIVE`. Allows `insertTime` to be a timestamp in RFC 3339 format in double quotes, such as `2025-01-01T00:00:00Z`. Only the logical `AND` operator is supported; space-separated items are treated as having an implicit `AND` operator. Example filter: status.state = ACTIVE AND labels.env = staging AND labels.starred = \* AND insertTime \<= "2025-01-01T00:00:00Z" |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `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.ListJobsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` | A pageable asynchronous sequence of [Job](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job) resources. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    string filter = "";
    // Make the request
    PagedAsyncEnumerable<ListJobsResponse, Job> response = jobControllerClient.ListJobsAsync(projectId, region, filter: filter);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Job item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (ListJobsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Job item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<Job> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (Job item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### PollOnceSubmitJobAsOperation(string, CallSettings)

    public virtual Operation<Job, JobMetadata> PollOnceSubmitJobAsOperation(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `SubmitJobAsOperation`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | The result of polling the operation. |

### PollOnceSubmitJobAsOperationAsync(string, CallSettings)

    public virtual Task<Operation<Job, JobMetadata>> PollOnceSubmitJobAsOperationAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`SubmitJobAsOperation`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | A task representing the result of polling the operation. |

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient#Google_Cloud_Dataproc_V1_JobControllerClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient#Google_Cloud_Dataproc_V1_JobControllerClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient#Google_Cloud_Dataproc_V1_JobControllerClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobControllerClient#Google_Cloud_Dataproc_V1_JobControllerClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### SubmitJob(SubmitJobRequest, CallSettings)

    public virtual Job SubmitJob(SubmitJobRequest request, CallSettings callSettings = null)

Submits a job to a cluster.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Job response = jobControllerClient.SubmitJob(request);

### SubmitJob(string, string, Job, CallSettings)

    public virtual Job SubmitJob(string projectId, string region, Job job, CallSettings callSettings = null)

Submits a job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `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.Job` | The RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Job response = jobControllerClient.SubmitJob(projectId, region, job);

### SubmitJobAsOperation(SubmitJobRequest, CallSettings)

    public virtual Operation<Job, JobMetadata> SubmitJobAsOperation(SubmitJobRequest request, CallSettings callSettings = null)

Submits job to a cluster.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Operation<Job, JobMetadata> response = jobControllerClient.SubmitJobAsOperation(request);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = jobControllerClient.PollOnceSubmitJobAsOperation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsOperation(string, string, Job, CallSettings)

    public virtual Operation<Job, JobMetadata> SubmitJobAsOperation(string projectId, string region, Job job, CallSettings callSettings = null)

Submits job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | The RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Operation<Job, JobMetadata> response = jobControllerClient.SubmitJobAsOperation(projectId, region, job);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = jobControllerClient.PollOnceSubmitJobAsOperation(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsOperationAsync(SubmitJobRequest, CallSettings)

    public virtual Task<Operation<Job, JobMetadata>> SubmitJobAsOperationAsync(SubmitJobRequest request, CallSettings callSettings = null)

Submits job to a cluster.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Operation<Job, JobMetadata> response = await jobControllerClient.SubmitJobAsOperationAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = await jobControllerClient.PollOnceSubmitJobAsOperationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsOperationAsync(SubmitJobRequest, CancellationToken)

    public virtual Task<Operation<Job, JobMetadata>> SubmitJobAsOperationAsync(SubmitJobRequest request, CancellationToken cancellationToken)

Submits job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SubmitJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Operation<Job, JobMetadata> response = await jobControllerClient.SubmitJobAsOperationAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = await jobControllerClient.PollOnceSubmitJobAsOperationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsOperationAsync(string, string, Job, CallSettings)

    public virtual Task<Operation<Job, JobMetadata>> SubmitJobAsOperationAsync(string projectId, string region, Job job, CallSettings callSettings = null)

Submits job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Operation<Job, JobMetadata> response = await jobControllerClient.SubmitJobAsOperationAsync(projectId, region, job);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = await jobControllerClient.PollOnceSubmitJobAsOperationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsOperationAsync(string, string, Job, CancellationToken)

    public virtual Task<Operation<Job, JobMetadata>> SubmitJobAsOperationAsync(string projectId, string region, Job job, CancellationToken cancellationToken)

Submits job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Jobhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Operation<Job, JobMetadata> response = await jobControllerClient.SubmitJobAsOperationAsync(projectId, region, job);

    // Poll until the returned long-running operation is complete
    Operation<Job, JobMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Job result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Job, JobMetadata> retrievedResponse = await jobControllerClient.PollOnceSubmitJobAsOperationAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Job retrievedResult = retrievedResponse.Result;
    }

### SubmitJobAsync(SubmitJobRequest, CallSettings)

    public virtual Task<Job> SubmitJobAsync(SubmitJobRequest request, CallSettings callSettings = null)

Submits a job to a cluster.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Job response = await jobControllerClient.SubmitJobAsync(request);

### SubmitJobAsync(SubmitJobRequest, CancellationToken)

    public virtual Task<Job> SubmitJobAsync(SubmitJobRequest request, CancellationToken cancellationToken)

Submits a job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.SubmitJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    SubmitJobRequest request = new SubmitJobRequest
    {
        ProjectId = "",
        Job = new Job(),
        Region = "",
        RequestId = "",
    };
    // Make the request
    Job response = await jobControllerClient.SubmitJobAsync(request);

### SubmitJobAsync(string, string, Job, CallSettings)

    public virtual Task<Job> SubmitJobAsync(string projectId, string region, Job job, CallSettings callSettings = null)

Submits a job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Job response = await jobControllerClient.SubmitJobAsync(projectId, region, job);

### SubmitJobAsync(string, string, Job, CancellationToken)

    public virtual Task<Job> SubmitJobAsync(string projectId, string region, Job job, CancellationToken cancellationToken)

Submits a job to a cluster.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `projectId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID of the Google Cloud Platform project that the job belongs to. |
| `region` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Dataproc region in which to handle the request. |
| `job` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.Job` Required. The job resource. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    string projectId = "";
    string region = "";
    Job job = new Job();
    // Make the request
    Job response = await jobControllerClient.SubmitJobAsync(projectId, region, job);

### UpdateJob(UpdateJobRequest, CallSettings)

    public virtual Job UpdateJob(UpdateJobRequest request, CallSettings callSettings = null)

Updates a job in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = JobControllerClient.Create();
    // Initialize request argument(s)
    UpdateJobRequest request = new UpdateJobRequest
    {
        ProjectId = "",
        Region = "",
        JobId = "",
        Job = new Job(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Job response = jobControllerClient.UpdateJob(request);

### UpdateJobAsync(UpdateJobRequest, CallSettings)

    public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CallSettings callSettings = null)

Updates a job in a project.

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

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    UpdateJobRequest request = new UpdateJobRequest
    {
        ProjectId = "",
        Region = "",
        JobId = "",
        Job = new Job(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Job response = await jobControllerClient.UpdateJobAsync(request);

### UpdateJobAsync(UpdateJobRequest, CancellationToken)

    public virtual Task<Job> UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken)

Updates a job in a project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.UpdateJobRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Job` | A Task containing the RPC response. |

**Example**

    // Create client
    JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();
    // Initialize request argument(s)
    UpdateJobRequest request = new UpdateJobRequest
    {
        ProjectId = "",
        Region = "",
        JobId = "",
        Job = new Job(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Job response = await jobControllerClient.UpdateJobAsync(request);