# Google Cloud Game Servers V1 Client - Class PreviewRealmUpdateResponse (1.2.6)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.2.6 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.PreviewRealmUpdateResponse)
- [1.2.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.2.5/V1.PreviewRealmUpdateResponse)
- [1.1.1](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.1.1/V1.PreviewRealmUpdateResponse)
- [1.0.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.0.5/V1.PreviewRealmUpdateResponse)
Reference documentation and code samples for the Google Cloud Game Servers V1 Client class PreviewRealmUpdateResponse.

Response message for RealmsService.PreviewRealmUpdate.

Generated from protobuf message `google.cloud.gaming.v1.PreviewRealmUpdateResponse`

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ etag` | `string` ETag of the realm. |
| `↳ target_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetState` The target state. |

### getEtag

ETag of the realm.

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

### setEtag

ETag of the realm.

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

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

### getTargetState

The target state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetState|null` |   |

### hasTargetState

### clearTargetState

### setTargetState

The target state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetState` |

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