# Google Cloud Gke Hub V1 Client - Class SyncError (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 SyncError.

An ACM created error representing a problem syncing configurations

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` An ACM defined error code |
| `↳ error_message` | `string` A description of the error |
| `↳ error_resources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.ErrorResource>` A list of config(s) associated with the error, if any |

### getCode

An ACM defined error code

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

### setCode

An ACM defined error code

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

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

### getErrorMessage

A description of the error

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

### setErrorMessage

A description of the error

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

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

### getErrorResources

A list of config(s) associated with the error, if any

| **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.ErrorResource>` |   |

### setErrorResources

A list of config(s) associated with the error, if any

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

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