# Google Cloud Network Connectivity V1 Client - Class StateTimeline (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.0 2.2.2 2.1.2 2.0.2 1.5.5 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class StateTimeline.

The timeline of the pending states for a resource.

Generated from protobuf message `google.cloud.networkconnectivity.v1.StateTimeline`

## Namespace

Google \\ Cloud \\ NetworkConnectivity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ states` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.StateTimeline.StateMetadata>` Output only. The state and activation time details of the resource state. |

### getStates

Output only. The state and activation time details of the resource state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.StateTimeline.StateMetadata>` |   |

### setStates

Output only. The state and activation time details of the resource state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-connectivity/latest/V1.StateTimeline.StateMetadata>` |

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