# Google Cloud Orchestration Airflow V1 Client - Class WorkloadsConfig (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class WorkloadsConfig.

The Kubernetes workloads configuration for GKE cluster associated with the
Cloud Composer environment. Supported for Cloud Composer environments in
versions composer-2.*.* -airflow-*.*.\* and newer.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.WorkloadsConfig`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ scheduler` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.SchedulerResource` Optional. Resources used by Airflow schedulers. |
| `↳ web_server` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WebServerResource` Optional. Resources used by Airflow web server. |
| `↳ worker` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WorkerResource` Optional. Resources used by Airflow workers. |
| `↳ triggerer` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.TriggererResource` Optional. Resources used by Airflow triggerers. |
| `↳ dag_processor` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.DagProcessorResource` Optional. Resources used by Airflow DAG processors. This field is supported for Cloud Composer environments in versions composer-3-airflow-*.* .*-build.* and newer. |

### getScheduler

Optional. Resources used by Airflow schedulers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.SchedulerResource|null` |   |

### hasScheduler

### clearScheduler

### setScheduler

Optional. Resources used by Airflow schedulers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.SchedulerResource` |

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

### getWebServer

Optional. Resources used by Airflow web server.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WebServerResource|null` |   |

### hasWebServer

### clearWebServer

### setWebServer

Optional. Resources used by Airflow web server.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WebServerResource` |

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

### getWorker

Optional. Resources used by Airflow workers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WorkerResource|null` |   |

### hasWorker

### clearWorker

### setWorker

Optional. Resources used by Airflow workers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.WorkerResource` |

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

### getTriggerer

Optional. Resources used by Airflow triggerers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.TriggererResource|null` |   |

### hasTriggerer

### clearTriggerer

### setTriggerer

Optional. Resources used by Airflow triggerers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.TriggererResource` |

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

### getDagProcessor

Optional. Resources used by Airflow DAG processors.

This field is supported for Cloud Composer environments in versions
composer-3-airflow-*.* .*-build.* and newer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.DagProcessorResource|null` |   |

### hasDagProcessor

### clearDagProcessor

### setDagProcessor

Optional. Resources used by Airflow DAG processors.

This field is supported for Cloud Composer environments in versions
composer-3-airflow-*.* .*-build.* and newer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.WorkloadsConfig.DagProcessorResource` |

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