# Google Cloud Tpu V2 Client - Class QueueingPolicy (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class QueueingPolicy.

Defines the policy of the QueuedRequest.

Generated from protobuf message `google.cloud.tpu.v2.QueuedResource.QueueingPolicy`

## Namespace

Google \\ Cloud \\ Tpu \\ V2 \\ QueuedResource

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ valid_until_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed. |
| `↳ valid_until_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed. |
| `↳ valid_after_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. A relative time after which resources may be created. |
| `↳ valid_after_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Optional. An absolute time after which resources may be created. |
| `↳ valid_interval` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` Optional. An absolute time interval within which resources may be created. |

### getValidUntilDuration

Optional. A relative time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be
failed.

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

### hasValidUntilDuration

### setValidUntilDuration

Optional. A relative time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be
failed.

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

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

### getValidUntilTime

Optional. An absolute time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be
failed.

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

### hasValidUntilTime

### setValidUntilTime

Optional. An absolute time after which resources should not be created.

If the request cannot be fulfilled by this time the request will be
failed.

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

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

### getValidAfterDuration

Optional. A relative time after which resources may be created.

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

### hasValidAfterDuration

### setValidAfterDuration

Optional. A relative time after which resources may be created.

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

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

### getValidAfterTime

Optional. An absolute time after which resources may be created.

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

### hasValidAfterTime

### setValidAfterTime

Optional. An absolute time after which resources may be created.

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

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

### getValidInterval

Optional. An absolute time interval within which resources may be
created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html|null` |   |

### hasValidInterval

### setValidInterval

Optional. An absolute time interval within which resources may be
created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Interval.html` |

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

### getStartTimingConstraints

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