Google Cloud Dataplex V1 Client - Class Task (1.11.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Dataplex V1 Client class Task.
A task represents a user-visible job.
Generated from protobuf messagegoogle.cloud.dataplex.v1.Task
Namespace
Google \ Cloud \ Dataplex \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ name | stringOutput only. The relative resource name of the task, of the form: projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ tasks/{task_id}. |
↳ uid | stringOutput 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. |
↳ create_time | Google\Protobuf\TimestampOutput only. The time when the task was created. |
↳ update_time | Google\Protobuf\TimestampOutput only. The time when the task was last updated. |
↳ description | stringOptional. Description of the task. |
↳ display_name | stringOptional. User friendly display name. |
↳ state | intOutput only. Current state of the task. |
↳ labels | array|Google\Protobuf\Internal\MapFieldOptional. User-defined labels for the task. |
↳ trigger_spec | Task\TriggerSpecRequired. Spec related to how often and when a task should be triggered. |
↳ execution_spec | Task\ExecutionSpecRequired. Spec related to how a task is executed. |
↳ execution_status | Task\ExecutionStatusOutput only. Status of the latest task executions. |
↳ spark | Task\SparkTaskConfigConfig related to running custom Spark tasks. |
↳ notebook | Task\NotebookTaskConfigConfig related to running scheduled Notebooks. |
getName
Output only. The relative resource name of the task, of the form:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}.
| Returns | |
|---|---|
| Type | Description |
string | |
setName
Output only. The relative resource name of the task, of the form:projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getUid
Output only. System generated globally unique ID for the task. This ID willbe different if the task is deleted and re-created with the same name.
| Returns | |
|---|---|
| Type | Description |
string | |
setUid
Output only. System generated globally unique ID for the task. This ID willbe different if the task is deleted and re-created with the same name.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getCreateTime
Output only. The time when the task was created.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null | |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the task was created.
| Parameter | |
|---|---|
| Name | Description |
var | Google\Protobuf\Timestamp |
| Returns | |
|---|---|
| Type | Description |
$this | |
getUpdateTime
Output only. The time when the task was last updated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null | |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the task was last updated.
| Parameter | |
|---|---|
| Name | Description |
var | Google\Protobuf\Timestamp |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDescription
Optional. Description of the task.
| Returns | |
|---|---|
| Type | Description |
string | |
setDescription
Optional. Description of the task.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDisplayName
Optional. User friendly display name.
| Returns | |
|---|---|
| Type | Description |
string | |
setDisplayName
Optional. User friendly display name.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getState
Output only. Current state of the task.
| Returns | |
|---|---|
| Type | Description |
int | Enum of typeState. |
setState
Output only. Current state of the task.
| Parameter | |
|---|---|
| Name | Description |
var | intEnum of typeState. |
| Returns | |
|---|---|
| Type | Description |
$this | |
getLabels
Optional. User-defined labels for the task.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField | |
setLabels
Optional. User-defined labels for the task.
| Parameter | |
|---|---|
| Name | Description |
var | array|Google\Protobuf\Internal\MapField |
| Returns | |
|---|---|
| Type | Description |
$this | |
getTriggerSpec
Required. Spec related to how often and when a task should be triggered.
| Returns | |
|---|---|
| Type | Description |
Task\TriggerSpec|null | |
hasTriggerSpec
clearTriggerSpec
setTriggerSpec
Required. Spec related to how often and when a task should be triggered.
| Parameter | |
|---|---|
| Name | Description |
var | Task\TriggerSpec |
| Returns | |
|---|---|
| Type | Description |
$this | |
getExecutionSpec
Required. Spec related to how a task is executed.
| Returns | |
|---|---|
| Type | Description |
Task\ExecutionSpec|null | |
hasExecutionSpec
clearExecutionSpec
setExecutionSpec
Required. Spec related to how a task is executed.
| Parameter | |
|---|---|
| Name | Description |
var | Task\ExecutionSpec |
| Returns | |
|---|---|
| Type | Description |
$this | |
getExecutionStatus
Output only. Status of the latest task executions.
| Returns | |
|---|---|
| Type | Description |
Task\ExecutionStatus|null | |
hasExecutionStatus
clearExecutionStatus
setExecutionStatus
Output only. Status of the latest task executions.
| Parameter | |
|---|---|
| Name | Description |
var | Task\ExecutionStatus |
| Returns | |
|---|---|
| Type | Description |
$this | |
getSpark
Config related to running custom Spark tasks.
| Returns | |
|---|---|
| Type | Description |
Task\SparkTaskConfig|null | |
hasSpark
setSpark
Config related to running custom Spark tasks.
| Parameter | |
|---|---|
| Name | Description |
var | Task\SparkTaskConfig |
| Returns | |
|---|---|
| Type | Description |
$this | |
getNotebook
Config related to running scheduled Notebooks.
| Returns | |
|---|---|
| Type | Description |
Task\NotebookTaskConfig|null | |
hasNotebook
setNotebook
Config related to running scheduled Notebooks.
| Parameter | |
|---|---|
| Name | Description |
var | Task\NotebookTaskConfig |
| Returns | |
|---|---|
| Type | Description |
$this | |
getConfig
| Returns | |
|---|---|
| Type | Description |
string | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-08 UTC.