Google Cloud Device Streaming V1 Client - Class SessionStateEvent (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

setSessionState

Output only. The session_state tracked by this event

Parameter
Name Description
var int
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