# Google Cloud Dataproc V1 Client - Class Role (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 Role.

`Role` specifies the tasks that will run on the node pool. Roles can be
specific to workloads. Exactly one
[GkeNodePoolTarget](https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolTarget) within the
virtual cluster must have the `DEFAULT` role, which is used to run all
workloads that are not associated with a node pool.

Protobuf type `google.cloud.dataproc.v1.GkeNodePoolTarget.Role`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1 \\ GkeNodePoolTarget

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### ROLE_UNSPECIFIED

    Value: 0

Role is unspecified.

Generated from protobuf enum `ROLE_UNSPECIFIED = 0;`

### PBDEFAULT

    Value: 1

At least one node pool must have the `DEFAULT` role.

Work assigned to a role that is not associated with a node pool
is assigned to the node pool with the `DEFAULT` role. For example,
work assigned to the `CONTROLLER` role will be assigned to the node pool
with the `DEFAULT` role if no node pool has the `CONTROLLER` role.

Generated from protobuf enum `DEFAULT = 1;`

### CONTROLLER

    Value: 2

Run work associated with the Dataproc control plane (for example,
controllers and webhooks). Very low resource requirements.

Generated from protobuf enum `CONTROLLER = 2;`

### SPARK_DRIVER

    Value: 3

Run work associated with a Spark driver of a job.

Generated from protobuf enum `SPARK_DRIVER = 3;`

### SPARK_EXECUTOR

    Value: 4

Run work associated with a Spark executor of a job.

Generated from protobuf enum `SPARK_EXECUTOR = 4;`