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

Request message for GameServerConfigsService.GetGameServerConfig.

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

## Namespace

Google \\ Cloud \\ Gaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the game server config to retrieve, in the following form: `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. |

### getName

Required. The name of the game server config to retrieve, in the following form:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.

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

### setName

Required. The name of the game server config to retrieve, in the following form:
`projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the game server config to retrieve, in the following form: `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. Please see [Google\\Cloud\\Gaming\\V1\\GameServerConfigsServiceClient::gameServerConfigName()](https://docs.cloud.google.com/php/docs/reference/cloud-game-servers/latest/V1.GameServerConfigsServiceClient#_Google_Cloud_Gaming_V1_GameServerConfigsServiceClient__gameServerConfigName__) for help formatting this field. |

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