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

QueuedResourceState defines the details of the QueuedResource request.

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

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Output only. State of the QueuedResource request. |
| `↳ creating_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.CreatingData` Output only. Further data for the creating state. |
| `↳ accepted_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.AcceptedData` Output only. Further data for the accepted state. |
| `↳ provisioning_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.ProvisioningData` Output only. Further data for the provisioning state. |
| `↳ failed_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.FailedData` Output only. Further data for the failed state. |
| `↳ deleting_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.DeletingData` Output only. Further data for the deleting state. |
| `↳ active_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.ActiveData` Output only. Further data for the active state. |
| `↳ suspending_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.SuspendingData` Output only. Further data for the suspending state. |
| `↳ suspended_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.SuspendedData` Output only. Further data for the suspended state. |
| `↳ state_initiator` | `int` Output only. The initiator of the QueuedResources's current state. Used to indicate whether the SUSPENDING/SUSPENDED state was initiated by the user or the service. |

### getState

Output only. State of the QueuedResource request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.State). |

### setState

Output only. State of the QueuedResource request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.State). |

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

### getCreatingData

Output only. Further data for the creating state.

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

### hasCreatingData

### setCreatingData

Output only. Further data for the creating state.

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

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

### getAcceptedData

Output only. Further data for the accepted state.

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

### hasAcceptedData

### setAcceptedData

Output only. Further data for the accepted state.

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

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

### getProvisioningData

Output only. Further data for the provisioning state.

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

### hasProvisioningData

### setProvisioningData

Output only. Further data for the provisioning state.

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

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

### getFailedData

Output only. Further data for the failed state.

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

### hasFailedData

### setFailedData

Output only. Further data for the failed state.

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

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

### getDeletingData

Output only. Further data for the deleting state.

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

### hasDeletingData

### setDeletingData

Output only. Further data for the deleting state.

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

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

### getActiveData

Output only. Further data for the active state.

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

### hasActiveData

### setActiveData

Output only. Further data for the active state.

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

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

### getSuspendingData

Output only. Further data for the suspending state.

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

### hasSuspendingData

### setSuspendingData

Output only. Further data for the suspending state.

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

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

### getSuspendedData

Output only. Further data for the suspended state.

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

### hasSuspendedData

### setSuspendedData

Output only. Further data for the suspended state.

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

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

### getStateInitiator

Output only. The initiator of the QueuedResources's current state. Used to
indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
or the service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [StateInitiator](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.StateInitiator). |

### setStateInitiator

Output only. The initiator of the QueuedResources's current state. Used to
indicate whether the SUSPENDING/SUSPENDED state was initiated by the user
or the service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [StateInitiator](https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.QueuedResourceState.StateInitiator). |

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

### getStateData

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