# Google Cloud Dataproc V1 Client - Class WorkflowNode (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class WorkflowNode.

The workflow node.

Generated from protobuf message `google.cloud.dataproc.v1.WorkflowNode`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ step_id` | `string` Output only. The name of the node. |
| `↳ prerequisite_step_ids` | `array` Output only. Node's prerequisite nodes. |
| `↳ job_id` | `string` Output only. The job id; populated after the node enters RUNNING state. |
| `↳ state` | `int` Output only. The node state. |
| `↳ error` | `string` Output only. The error detail. |

### getStepId

Output only. The name of the node.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setStepId

Output only. The name of the node.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrerequisiteStepIds

Output only. Node's prerequisite nodes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/RepeatedField` |   |

### setPrerequisiteStepIds

Output only. Node's prerequisite nodes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getJobId

Output only. The job id; populated after the node enters RUNNING state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setJobId

Output only. The job id; populated after the node enters RUNNING state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. The node state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setState

Output only. The node state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getError

Output only. The error detail.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setError

Output only. The error detail.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |