# Google Cloud Game Servers V1 Client - Class GameServerClusterConnectionInfo (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.GameServerClusterConnectionInfo)
- [1.2.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.2.5/V1.GameServerClusterConnectionInfo)
- [1.1.1](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.1.1/V1.GameServerClusterConnectionInfo)
- [1.0.5](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/1.0.5/V1.GameServerClusterConnectionInfo)
Reference documentation and code samples for the Google Cloud Game Servers V1 Client class GameServerClusterConnectionInfo.

The game server cluster connection information.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gke_cluster_reference` | `https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GkeClusterReference` Reference to the GKE cluster where the game servers are installed. |
| `↳ namespace` | `string` Namespace designated on the game server cluster where the Agones game server instances will be created. Existence of the namespace will be validated during creation. |

### getGkeClusterReference

Reference to the GKE cluster where the game servers are installed.

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

### hasGkeClusterReference

### setGkeClusterReference

Reference to the GKE cluster where the game servers are installed.

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

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

### getNamespace

Namespace designated on the game server cluster where the Agones game
server instances will be created. Existence of the namespace will be
validated during creation.

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

### setNamespace

Namespace designated on the game server cluster where the Agones game
server instances will be created. Existence of the namespace will be
validated during creation.

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

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

### getClusterReference

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