# Google Cloud Run V2 Client - Class Overrides (1.12.2)

1.12.2 (latest) 1.12.1 1.11.0 1.10.1 1.9.0 1.8.0 1.7.0 1.6.0 1.5.2 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.9.3 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.4 Reference documentation and code samples for the Google Cloud Run V2 Client class Overrides.

RunJob Overrides that contains Execution fields to be overridden.

Generated from protobuf message `google.cloud.run.v2.RunJobRequest.Overrides`

## Namespace

Google \\ Cloud \\ Run \\ V2 \\ RunJobRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ container_overrides` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-run/latest/V2.RunJobRequest.Overrides.ContainerOverride>` Per container override specification. |
| `↳ task_count` | `int` Optional. The desired number of tasks the execution should run. Will replace existing task_count value. |
| `↳ timeout` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. |

### getContainerOverrides

Per container override specification.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-run/latest/V2.RunJobRequest.Overrides.ContainerOverride>` |   |

### setContainerOverrides

Per container override specification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-run/latest/V2.RunJobRequest.Overrides.ContainerOverride>` |

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

### getTaskCount

Optional. The desired number of tasks the execution should run. Will
replace existing task_count value.

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

### setTaskCount

Optional. The desired number of tasks the execution should run. Will
replace existing task_count value.

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

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

### getTimeout

Duration in seconds the task may be active before the system will
actively try to mark it failed and kill associated containers. Will
replace existing timeout_seconds value.

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

### hasTimeout

### clearTimeout

### setTimeout

Duration in seconds the task may be active before the system will
actively try to mark it failed and kill associated containers. Will
replace existing timeout_seconds value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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