# Google Cloud Gke Hub V1 Client - Class ConfigSyncState (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class ConfigSyncState.

State information for ConfigSync

Generated from protobuf message `google.cloud.gkehub.configmanagement.v1.ConfigSyncState`

## Namespace

Google \\ Cloud \\ GkeHub \\ ConfigManagement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncVersion` The version of ConfigSync deployed |
| `↳ deployment_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncDeploymentState` Information about the deployment of ConfigSync, including the version of the various Pods deployed |
| `↳ sync_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.SyncState` The state of ConfigSync's process to sync configs to a cluster |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncError>` Errors pertaining to the installation of Config Sync. |
| `↳ rootsync_crd` | `int` The state of the RootSync CRD |
| `↳ reposync_crd` | `int` The state of the Reposync CRD |
| `↳ state` | `int` The state of CS This field summarizes the other fields in this message. |

### getVersion

The version of ConfigSync deployed

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncVersion|null` |   |

### hasVersion

### clearVersion

### setVersion

The version of ConfigSync deployed

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncVersion` |

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

### getDeploymentState

Information about the deployment of ConfigSync, including the version
of the various Pods deployed

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncDeploymentState|null` |   |

### hasDeploymentState

### clearDeploymentState

### setDeploymentState

Information about the deployment of ConfigSync, including the version
of the various Pods deployed

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncDeploymentState` |

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

### getSyncState

The state of ConfigSync's process to sync configs to a cluster

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.SyncState|null` |   |

### hasSyncState

### clearSyncState

### setSyncState

The state of ConfigSync's process to sync configs to a cluster

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.SyncState` |

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

### getErrors

Errors pertaining to the installation of Config Sync.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncError>` |   |

### setErrors

Errors pertaining to the installation of Config Sync.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncError>` |

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

### getRootsyncCrd

The state of the RootSync CRD

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CRDState](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.CRDState). |

### setRootsyncCrd

The state of the RootSync CRD

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CRDState](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.CRDState). |

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

### getReposyncCrd

The state of the Reposync CRD

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CRDState](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.CRDState). |

### setReposyncCrd

The state of the Reposync CRD

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CRDState](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.CRDState). |

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

### getState

The state of CS
This field summarizes the other fields in this message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.State). |

### setState

The state of CS
This field summarizes the other fields in this message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ConfigSyncState.State). |

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