# Google Cloud Config Delivery V1beta Client - Class ClusterInfo (0.3.3)

0.3.3 (latest) 0.3.2 0.2.1 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Config Delivery V1beta Client class ClusterInfo.

ClusterInfo represents status of a resource bundle rollout for a cluster.

Generated from protobuf message `google.cloud.configdelivery.v1beta.ClusterInfo`

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ membership` | `string` Output only. gkehub membership of target cluster |
| `↳ desired` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` Output only. Desired state for the resource bundle. |
| `↳ initial` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` Output only. Initial state of the resource bundle prior to the deployment. |
| `↳ current` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` Output only. Current state of the resource bundle. |
| `↳ state` | `int` Output only. State of the rollout for the cluster. |
| `↳ messages` | `string[]` Output only. Unordered list. Messages convey additional information related to the deployment. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when reconciliation starts. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp when reconciliation ends. |

### getMembership

Output only. gkehub membership of target cluster

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

### setMembership

Output only. gkehub membership of target cluster

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

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

### getDesired

Output only. Desired state for the resource bundle.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo|null` |   |

### hasDesired

### clearDesired

### setDesired

Output only. Desired state for the resource bundle.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` |

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

### getInitial

Output only. Initial state of the resource bundle prior to the deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo|null` |   |

### hasInitial

### clearInitial

### setInitial

Output only. Initial state of the resource bundle prior to the deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` |

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

### getCurrent

Output only. Current state of the resource bundle.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo|null` |   |

### hasCurrent

### clearCurrent

### setCurrent

Output only. Current state of the resource bundle.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ResourceBundleDeploymentInfo` |

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

### getState

Output only. State of the rollout for the cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ClusterInfo.State). |

### setState

Output only. State of the rollout for the cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.ClusterInfo.State). |

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

### getMessages

Output only. Unordered list. Messages convey additional information related
to the deployment.

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

### setMessages

Output only. Unordered list. Messages convey additional information related
to the deployment.

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

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

### getStartTime

Output only. Timestamp when reconciliation starts.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Output only. Timestamp when reconciliation starts.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getEndTime

Output only. Timestamp when reconciliation ends.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Output only. Timestamp when reconciliation ends.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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