0.34.0 (latest) 0.33.0 0.31.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.21.0 0.20.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.10.0 0.8.0 0.7.0 0.4.0 0.3.0 0.2.0

    public static interface DeviceSession.SessionStateEventOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEventTime()

    public abstract Timestamp getEventTime()

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

`.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The eventTime. |

### getEventTimeOrBuilder()

    public abstract TimestampOrBuilder getEventTimeOrBuilder()

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

`.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getSessionState()

    public abstract DeviceSession.SessionState getSessionState()

Output only. The session_state tracked by this event

`
.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/com.google.cloud.devicestreaming.v1.DeviceSession.SessionState` | The sessionState. |

### getSessionStateValue()

    public abstract int getSessionStateValue()

Output only. The session_state tracked by this event

`
.google.cloud.devicestreaming.v1.DeviceSession.SessionState session_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for sessionState. |

### getStateMessage()

    public abstract String getStateMessage()

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

`string state_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The stateMessage. |

### getStateMessageBytes()

    public abstract ByteString getStateMessageBytes()

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

`string state_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for stateMessage. |

### hasEventTime()

    public abstract boolean hasEventTime()

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

`.google.protobuf.Timestamp event_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the eventTime field is set. |