# Google Cloud Tpu V2 Client - Class QueuedResource (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 QueuedResource.

A QueuedResource represents a request for resources that will be placed
in a queue and fulfilled when the necessary resources are available.

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

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Immutable. The name of the QueuedResource. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the QueuedResource was created. |
| `↳ tpu` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Tpu` Optional. Defines a TPU resource. |
| `↳ spot` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Spot` Optional. The Spot tier. |
| `↳ guaranteed` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Guaranteed` Optional. The Guaranteed tier |
| `↳ queueing_policy` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.QueueingPolicy` Optional. The queueing policy of the QueuedRequest. |
| `↳ state` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState` Output only. State of the QueuedResource request. |
| `↳ reservation_name` | `string` Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation} |

### getName

Output only. Immutable. The name of the QueuedResource.

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

### setName

Output only. Immutable. The name of the QueuedResource.

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

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

### getCreateTime

Output only. The time when the QueuedResource was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the QueuedResource was created.

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

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

### getTpu

Optional. Defines a TPU resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Tpu|null` |   |

### hasTpu

### setTpu

Optional. Defines a TPU resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Tpu` |

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

### getSpot

Optional. The Spot tier.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Spot|null` |   |

### hasSpot

### setSpot

Optional. The Spot tier.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Spot` |

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

### getGuaranteed

Optional. The Guaranteed tier

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Guaranteed|null` |   |

### hasGuaranteed

### setGuaranteed

Optional. The Guaranteed tier

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.Guaranteed` |

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

### getQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.QueueingPolicy|null` |   |

### hasQueueingPolicy

### clearQueueingPolicy

### setQueueingPolicy

Optional. The queueing policy of the QueuedRequest.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource.QueueingPolicy` |

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

### getState

Output only. State of the QueuedResource request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState|null` |   |

### hasState

### clearState

### setState

Output only. State of the QueuedResource request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState` |

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

### getReservationName

Optional. Name of the reservation in which the resource should be
provisioned. Format:
projects/{project}/locations/{zone}/reservations/{reservation}

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

### setReservationName

Optional. Name of the reservation in which the resource should be
provisioned. Format:
projects/{project}/locations/{zone}/reservations/{reservation}

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

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

### getResource

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

### getTier

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