0.2.4 (latest) 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Device Streaming V1 Client class SessionStateEvent.

A message encapsulating a series of Session states and the time that the
DeviceSession first entered those states.

Generated from protobuf message `google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent`

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1 \\ DeviceSession

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ session_state` | `int` Output only. The session_state tracked by this event |
| `↳ event_time` | `Google\Protobuf\Timestamp` Output only. The time that the session_state first encountered that state. |
| `↳ state_message` | `string` Output only. A human-readable message to explain the state. |

### getSessionState

Output only. The session_state tracked by this event

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SessionState](https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.DeviceSession.SessionState). |

### setSessionState

Output only. The session_state tracked by this event

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

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

### getEventTime

Output only. The time that the session_state first encountered that
state.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEventTime

### clearEventTime

### setEventTime

Output only. The time that the session_state first encountered that
state.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getStateMessage

Output only. A human-readable message to explain the state.

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

### setStateMessage

Output only. A human-readable message to explain the state.

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

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