public interface DeviceSessionOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
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 | 
| Timestamp | 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 | 
| TimestampOrBuilder | |
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 | 
| 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 | 
| 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 | 
| Timestamp | 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 | 
| TimestampOrBuilder | |
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 | 
| String | 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 | 
| ByteString | The bytes for displayName. | 
getExpirationCase()
public abstract DeviceSession.ExpirationCase getExpirationCase()| Returns | |
|---|---|
| Type | Description | 
| 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 | 
| Timestamp | 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 | 
| TimestampOrBuilder | |
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 | 
| Duration | 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 | 
| DurationOrBuilder | |
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 | 
| String | 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 | 
| ByteString | 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 | 
| 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 | int | 
| Returns | |
|---|---|
| Type | Description | 
| 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 | 
| int | |
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 | 
| List<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 | int | 
| Returns | |
|---|---|
| Type | Description | 
| 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 | 
| List<? 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 | 
| int | 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 | 
| Duration | 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 | 
| DurationOrBuilder | |
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 | 
| boolean | 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 | 
| boolean | 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 | 
| boolean | 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 | 
| boolean | 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 | 
| boolean | 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 | 
| boolean | Whether the ttl field is set. |