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

Details about the Agones resources.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ game_server_cluster_name` | `string` The game server cluster name. Uses the form: `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. |
| `↳ game_server_deployment_name` | `string` The game server deployment name. Uses the form: `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`. |
| `↳ fleet_details` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetDetails.TargetFleetDetails>` Agones fleet details for game server clusters and game server deployments. |

### getGameServerClusterName

The game server cluster name. Uses the form:
`projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.

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

### setGameServerClusterName

The game server cluster name. Uses the form:
`projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`.

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

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

### getGameServerDeploymentName

The game server deployment name. Uses the form:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.

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

### setGameServerDeploymentName

The game server deployment name. Uses the form:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`.

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

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

### getFleetDetails

Agones fleet details for game server clusters and game server deployments.

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

### setFleetDetails

Agones fleet details for game server clusters and game server deployments.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.TargetDetails.TargetFleetDetails>` |

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