# Google Cloud Container V1 Client - Class ServerConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class ServerConfig.

Kubernetes Engine service configuration.

Generated from protobuf message `google.container.v1.ServerConfig`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ default_cluster_version` | `string` Version of Kubernetes the service deploys by default. |
| `↳ valid_node_versions` | `string[]` List of valid node upgrade target versions, in descending order. |
| `↳ default_image_type` | `string` Default image type. |
| `↳ valid_image_types` | `string[]` List of valid image types. |
| `↳ valid_master_versions` | `string[]` List of valid master versions, in descending order. |
| `↳ channels` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ServerConfig.ReleaseChannelConfig>` List of release channel configurations. |

### getDefaultClusterVersion

Version of Kubernetes the service deploys by default.

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

### setDefaultClusterVersion

Version of Kubernetes the service deploys by default.

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

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

### getValidNodeVersions

List of valid node upgrade target versions, in descending order.

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

### setValidNodeVersions

List of valid node upgrade target versions, in descending order.

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

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

### getDefaultImageType

Default image type.

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

### setDefaultImageType

Default image type.

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

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

### getValidImageTypes

List of valid image types.

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

### setValidImageTypes

List of valid image types.

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

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

### getValidMasterVersions

List of valid master versions, in descending order.

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

### setValidMasterVersions

List of valid master versions, in descending order.

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

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

### getChannels

List of release channel configurations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ServerConfig.ReleaseChannelConfig>` |   |

### setChannels

List of release channel configurations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ServerConfig.ReleaseChannelConfig>` |

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