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

State information for an ACM's Operator

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `string` The semenatic version number of the operator |
| `↳ deployment_state` | `int` The state of the Operator's deployment |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/ConfigManagement.V1.InstallError>` Install errors. |

### getVersion

The semenatic version number of the operator

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

### setVersion

The semenatic version number of the operator

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

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

### getDeploymentState

The state of the Operator's deployment

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

### setDeploymentState

The state of the Operator's deployment

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

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

### getErrors

Install errors.

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

### setErrors

Install errors.

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

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