[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dataplex V1 Client - Class Task (1.7.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.1 (latest)](/php/docs/reference/cloud-dataplex/latest/V1.Task)\n- [1.7.0](/php/docs/reference/cloud-dataplex/1.7.0/V1.Task)\n- [1.6.1](/php/docs/reference/cloud-dataplex/1.6.1/V1.Task)\n- [1.4.0](/php/docs/reference/cloud-dataplex/1.4.0/V1.Task)\n- [1.3.0](/php/docs/reference/cloud-dataplex/1.3.0/V1.Task)\n- [1.2.1](/php/docs/reference/cloud-dataplex/1.2.1/V1.Task)\n- [1.1.1](/php/docs/reference/cloud-dataplex/1.1.1/V1.Task)\n- [1.0.1](/php/docs/reference/cloud-dataplex/1.0.1/V1.Task)\n- [0.16.1](/php/docs/reference/cloud-dataplex/0.16.1/V1.Task)\n- [0.15.1](/php/docs/reference/cloud-dataplex/0.15.1/V1.Task)\n- [0.14.0](/php/docs/reference/cloud-dataplex/0.14.0/V1.Task)\n- [0.13.0](/php/docs/reference/cloud-dataplex/0.13.0/V1.Task)\n- [0.12.0](/php/docs/reference/cloud-dataplex/0.12.0/V1.Task)\n- [0.11.1](/php/docs/reference/cloud-dataplex/0.11.1/V1.Task)\n- [0.10.0](/php/docs/reference/cloud-dataplex/0.10.0/V1.Task)\n- [0.9.0](/php/docs/reference/cloud-dataplex/0.9.0/V1.Task)\n- [0.8.0](/php/docs/reference/cloud-dataplex/0.8.0/V1.Task)\n- [0.7.0](/php/docs/reference/cloud-dataplex/0.7.0/V1.Task)\n- [0.6.0](/php/docs/reference/cloud-dataplex/0.6.0/V1.Task)\n- [0.5.1](/php/docs/reference/cloud-dataplex/0.5.1/V1.Task)\n- [0.4.0](/php/docs/reference/cloud-dataplex/0.4.0/V1.Task)\n- [0.3.0](/php/docs/reference/cloud-dataplex/0.3.0/V1.Task)\n- [0.2.3](/php/docs/reference/cloud-dataplex/0.2.3/V1.Task)\n- [0.1.6](/php/docs/reference/cloud-dataplex/0.1.6/V1.Task) \nReference documentation and code samples for the Google Cloud Dataplex V1 Client class Task.\n\nA task represents a user-visible job.\n\nGenerated from protobuf message `google.cloud.dataplex.v1.Task`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataplex \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The relative resource name of the task, of the form:\nprojects/{project_number}/locations/{location_id}/lakes/{lake_id}/\ntasks/{task_id}.\n\n### setName\n\nOutput only. The relative resource name of the task, of the form:\nprojects/{project_number}/locations/{location_id}/lakes/{lake_id}/\ntasks/{task_id}.\n\n### getUid\n\nOutput only. System generated globally unique ID for the task. This ID will\nbe different if the task is deleted and re-created with the same name.\n\n### setUid\n\nOutput only. System generated globally unique ID for the task. This ID will\nbe different if the task is deleted and re-created with the same name.\n\n### getCreateTime\n\nOutput only. The time when the task was created.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The time when the task was created.\n\n### getUpdateTime\n\nOutput only. The time when the task was last updated.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The time when the task was last updated.\n\n### getDescription\n\nOptional. Description of the task.\n\n### setDescription\n\nOptional. Description of the task.\n\n### getDisplayName\n\nOptional. User friendly display name.\n\n### setDisplayName\n\nOptional. User friendly display name.\n\n### getState\n\nOutput only. Current state of the task.\n\n### setState\n\nOutput only. Current state of the task.\n\n### getLabels\n\nOptional. User-defined labels for the task.\n\n### setLabels\n\nOptional. User-defined labels for the task.\n\n### getTriggerSpec\n\nRequired. Spec related to how often and when a task should be triggered.\n\n### hasTriggerSpec\n\n### clearTriggerSpec\n\n### setTriggerSpec\n\nRequired. Spec related to how often and when a task should be triggered.\n\n### getExecutionSpec\n\nRequired. Spec related to how a task is executed.\n\n### hasExecutionSpec\n\n### clearExecutionSpec\n\n### setExecutionSpec\n\nRequired. Spec related to how a task is executed.\n\n### getExecutionStatus\n\nOutput only. Status of the latest task executions.\n\n### hasExecutionStatus\n\n### clearExecutionStatus\n\n### setExecutionStatus\n\nOutput only. Status of the latest task executions.\n\n### getSpark\n\nConfig related to running custom Spark tasks.\n\n### hasSpark\n\n### setSpark\n\nConfig related to running custom Spark tasks.\n\n### getNotebook\n\nConfig related to running scheduled Notebooks.\n\n### hasNotebook\n\n### setNotebook\n\nConfig related to running scheduled Notebooks.\n\n### getConfig"]]