# Device Streaming V1 API - Class Google::Cloud::DeviceStreaming::V1::DeviceSession::SessionStateEvent (v0.3.0)

0.3.0 (latest) 0.2.1 0.1.0 Reference documentation and code samples for the Device Streaming V1 API class Google::Cloud::DeviceStreaming::V1::DeviceSession::SessionStateEvent.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #event_time

    def event_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-device_streaming-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time that the session_state first encountered that state.

### #session_state

    def session_state() -> ::Google::Cloud::DeviceStreaming::V1::DeviceSession::SessionState

**Returns**

- ([::Google::Cloud::DeviceStreaming::V1::DeviceSession::SessionState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-device_streaming-v1/latest/Google-Cloud-DeviceStreaming-V1-DeviceSession-SessionState)) --- Output only. The session_state tracked by this event

### #state_message

    def state_message() -> ::String

**Returns**

- (::String) --- Output only. A human-readable message to explain the state.