3.16.0 (latest) 3.15.0 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class Task : IMessage<Task>, IEquatable<Task>, IDeepCloneable<Task>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Dataplex v1 API class Task.

A task represents a user-visible job.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Task](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Task](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Task](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.Dataplex.V1.dll

## Constructors

### Task()

    public Task()

### Task(Task)

    public Task(Task other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Task` |

## Properties

### ConfigCase

    public Task.ConfigOneofCase ConfigCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskConfigOneofCase` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time when the task was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Description

    public string Description { get; set; }

Optional. Description of the task.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DisplayName

    public string DisplayName { get; set; }

Optional. User friendly display name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExecutionSpec

    public Task.Types.ExecutionSpec ExecutionSpec { get; set; }

Required. Spec related to how a task is executed.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesExecutionSpec` |   |

### ExecutionStatus

    public Task.Types.ExecutionStatus ExecutionStatus { get; set; }

Output only. Status of the latest task executions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesExecutionStatus` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. User-defined labels for the task.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### Name

    public string Name { get; set; }

Output only. The relative resource name of the task, of the form:
projects/{project_number}/locations/{location_id}/lakes/{lake_id}/
tasks/{task_id}.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Notebook

    public Task.Types.NotebookTaskConfig Notebook { get; set; }

Config related to running scheduled Notebooks.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesNotebookTaskConfig` |   |

### Spark

    public Task.Types.SparkTaskConfig Spark { get; set; }

Config related to running custom Spark tasks.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesSparkTaskConfig` |   |

### State

    public State State { get; set; }

Output only. Current state of the task.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `State` |   |

### TaskName

    public TaskName TaskName { get; set; }

[TaskName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.TaskName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.md.txt#Google_Cloud_Dataplex_V1_Task_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskName` |   |

### TriggerSpec

    public Task.Types.TriggerSpec TriggerSpec { get; set; }

Required. Spec related to how often and when a task should be triggered.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TaskTypesTriggerSpec` |   |

### Uid

    public string Uid { get; set; }

Output only. System generated globally unique ID for the task. This ID will
be different if the task is deleted and re-created with the same name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time when the task was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |