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

Request for
[CreateQueuedResource](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.Client.TpuClient#_Google_Cloud_Tpu_V2_Client_TpuClient__createQueuedResource__).

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

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource name. |
| `↳ queued_resource_id` | `string` Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. |
| `↳ queued_resource` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource` Required. The queued resource. |
| `↳ request_id` | `string` Optional. Idempotent request UUID. |

### getParent

Required. The parent resource name.

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

### setParent

Required. The parent resource name.

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

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

### getQueuedResourceId

Optional. The unqualified resource name. Should follow the
`^[A-Za-z0-9_.~+%-]+$` regex format.

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

### setQueuedResourceId

Optional. The unqualified resource name. Should follow the
`^[A-Za-z0-9_.~+%-]+$` regex format.

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

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

### getQueuedResource

Required. The queued resource.

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

### hasQueuedResource

### clearQueuedResource

### setQueuedResource

Required. The queued resource.

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

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

### getRequestId

Optional. Idempotent request UUID.

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

### setRequestId

Optional. Idempotent request UUID.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource name. Please see TpuClient::locationName() for help formatting this field. |
| `queuedResource` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResource` Required. The queued resource. |
| `queuedResourceId` | `string` Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. |

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