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 \ DeviceSessionMethods
__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. |
setSessionState
Output only. The session_state tracked by this event
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type 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 |
|