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

The configuration of a GKE node pool used by a [Dataproc-on-GKE
cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).

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

## Namespace

Google \\ Cloud \\ Dataproc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodeConfig` Optional. The node pool configuration. |
| `↳ locations` | `array` Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where node pool nodes associated with a Dataproc on GKE virtual cluster will be located. **Note:** All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region. If a location is not specified during node pool creation, Dataproc on GKE will choose the zone. |
| `↳ autoscaling` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig` Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present. |

### getConfig

Optional. The node pool configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodeConfig|null` |   |

### hasConfig

### clearConfig

### setConfig

Optional. The node pool configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodeConfig` |

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

### getLocations

Optional. The list of Compute Engine
[zones](https://cloud.google.com/compute/docs/zones#available) where
node pool nodes associated with a Dataproc on GKE virtual cluster
will be located.

**Note:** All node pools associated with a virtual cluster
must be located in the same region as the virtual cluster, and they must
be located in the same zone within that region.
If a location is not specified during node pool creation, Dataproc on GKE
will choose the zone.

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

### setLocations

Optional. The list of Compute Engine
[zones](https://cloud.google.com/compute/docs/zones#available) where
node pool nodes associated with a Dataproc on GKE virtual cluster
will be located.

**Note:** All node pools associated with a virtual cluster
must be located in the same region as the virtual cluster, and they must
be located in the same zone within that region.
If a location is not specified during node pool creation, Dataproc on GKE
will choose the zone.

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

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

### getAutoscaling

Optional. The autoscaler configuration for this node pool. The autoscaler
is enabled only when a valid configuration is present.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig|null` |   |

### hasAutoscaling

### clearAutoscaling

### setAutoscaling

Optional. The autoscaler configuration for this node pool. The autoscaler
is enabled only when a valid configuration is present.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig` |

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