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 interface DeviceSessionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getActiveStartTime()

    public abstract Timestamp getActiveStartTime()

Output only. The timestamp that the session first became ACTIVE.

`
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getActiveStartTimeOrBuilder()

    public abstract TimestampOrBuilder getActiveStartTimeOrBuilder()

Output only. The timestamp that the session first became ACTIVE.

`
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getAndroidDevice()

    public abstract AndroidDevice getAndroidDevice()

Required. The requested device

`
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
`

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

### getAndroidDeviceOrBuilder()

    public abstract AndroidDeviceOrBuilder getAndroidDeviceOrBuilder()

Required. The requested device

`
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
`

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

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time that the Session was created.

`.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time that the Session was created.

`.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDisplayName()

    public abstract String getDisplayName()

Output only. The title of the DeviceSession to be presented in the UI.

`string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

Output only. The title of the DeviceSession to be presented in the UI.

`string display_name = 2 [(.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 displayName. |

### getExpirationCase()

    public abstract DeviceSession.ExpirationCase getExpirationCase()

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

### getExpireTime()

    public abstract Timestamp getExpireTime()

Optional. If the device is still in use at this time, any connections
will be ended and the SessionState will transition from ACTIVE to
FINISHED.

`.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getExpireTimeOrBuilder()

    public abstract TimestampOrBuilder getExpireTimeOrBuilder()

Optional. If the device is still in use at this time, any connections
will be ended and the SessionState will transition from ACTIVE to
FINISHED.

`.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getInactivityTimeout()

    public abstract Duration getInactivityTimeout()

Output only. The interval of time that this device must be interacted with
before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

`
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getInactivityTimeoutOrBuilder()

    public abstract DurationOrBuilder getInactivityTimeoutOrBuilder()

Output only. The interval of time that this device must be interacted with
before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

`
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getName()

    public abstract String getName()

Optional. Name of the DeviceSession, e.g.
"projects/{project_id}/deviceSessions/{session_id}"

`string name = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Optional. Name of the DeviceSession, e.g.
"projects/{project_id}/deviceSessions/{session_id}"

`string name = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getState()

    public abstract DeviceSession.SessionState getState()

Output only. Current state of the DeviceSession.

`
.google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.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 state. |

### getStateHistories(int index)

    public abstract DeviceSession.SessionStateEvent getStateHistories(int index)

Output only. The historical state transitions of the session_state message
including the current session state.

`
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getStateHistoriesCount()

    public abstract int getStateHistoriesCount()

Output only. The historical state transitions of the session_state message
including the current session state.

`
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getStateHistoriesList()

    public abstract List<DeviceSession.SessionStateEvent> getStateHistoriesList()

Output only. The historical state transitions of the session_state message
including the current session state.

`
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/com.google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent>` |   |

### getStateHistoriesOrBuilder(int index)

    public abstract DeviceSession.SessionStateEventOrBuilder getStateHistoriesOrBuilder(int index)

Output only. The historical state transitions of the session_state message
including the current session state.

`
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getStateHistoriesOrBuilderList()

    public abstract List<? extends DeviceSession.SessionStateEventOrBuilder> getStateHistoriesOrBuilderList()

Output only. The historical state transitions of the session_state message
including the current session state.

`
repeated .google.cloud.devicestreaming.v1.DeviceSession.SessionStateEvent state_histories = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.devicestreaming.v1.DeviceSession.SessionStateEventOrBuilder>` |   |

### getStateValue()

    public abstract int getStateValue()

Output only. Current state of the DeviceSession.

`
.google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.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 state. |

### getTtl()

    public abstract Duration getTtl()

Optional. The amount of time that a device will be initially allocated
for. This can eventually be extended with the UpdateDeviceSession RPC.
Default: 15 minutes.

`.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];`

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

### getTtlOrBuilder()

    public abstract DurationOrBuilder getTtlOrBuilder()

Optional. The amount of time that a device will be initially allocated
for. This can eventually be extended with the UpdateDeviceSession RPC.
Default: 15 minutes.

`.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasActiveStartTime()

    public abstract boolean hasActiveStartTime()

Output only. The timestamp that the session first became ACTIVE.

`
.google.protobuf.Timestamp active_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasAndroidDevice()

    public abstract boolean hasAndroidDevice()

Required. The requested device

`
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The time that the Session was created.

`.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasExpireTime()

    public abstract boolean hasExpireTime()

Optional. If the device is still in use at this time, any connections
will be ended and the SessionState will transition from ACTIVE to
FINISHED.

`.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasInactivityTimeout()

    public abstract boolean hasInactivityTimeout()

Output only. The interval of time that this device must be interacted with
before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

`
.google.protobuf.Duration inactivity_timeout = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasTtl()

    public abstract boolean hasTtl()

Optional. The amount of time that a device will be initially allocated
for. This can eventually be extended with the UpdateDeviceSession RPC.
Default: 15 minutes.

`.google.protobuf.Duration ttl = 13 [(.google.api.field_behavior) = OPTIONAL];`

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