Interface DeviceSessionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DeviceSession,DeviceSession.Builder
@Generated
public interface DeviceSessionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required.Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOptional.com.google.protobuf.TimestampOrBuilderOptional.com.google.protobuf.DurationOutput only.com.google.protobuf.DurationOrBuilderOutput only.getName()Optional.com.google.protobuf.ByteStringOptional.getState()Output only.getStateHistories(int index) Output only.intOutput only.Output only.getStateHistoriesOrBuilder(int index) Output only.List<? extends DeviceSession.SessionStateEventOrBuilder>Output only.intOutput only.com.google.protobuf.DurationgetTtl()Optional.com.google.protobuf.DurationOrBuilderOptional.booleanOutput only.booleanRequired.booleanOutput only.booleanOptional.booleanOutput only.booleanhasTtl()Optional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"string name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for name.
-
getDisplayName
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:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.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:
- The bytes for displayName.
-
getStateValue
int getStateValue()Output only. Current state of the DeviceSession.
.google.cloud.devicestreaming.v1.DeviceSession.SessionState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
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:
- The state.
-
getStateHistoriesList
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]; -
getStateHistories
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]; -
getStateHistoriesCount
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]; -
getStateHistoriesOrBuilderList
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]; -
getStateHistoriesOrBuilder
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]; -
hasTtl
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:
- Whether the ttl field is set.
-
getTtl
com.google.protobuf.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:
- The ttl.
-
getTtlOrBuilder
com.google.protobuf.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]; -
hasExpireTime
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:
- Whether the expireTime field is set.
-
getExpireTime
com.google.protobuf.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:
- The expireTime.
-
getExpireTimeOrBuilder
com.google.protobuf.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]; -
hasInactivityTimeout
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:
- Whether the inactivityTimeout field is set.
-
getInactivityTimeout
com.google.protobuf.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:
- The inactivityTimeout.
-
getInactivityTimeoutOrBuilder
com.google.protobuf.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]; -
hasCreateTime
boolean hasCreateTime()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time that the Session was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasActiveStartTime
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:
- Whether the activeStartTime field is set.
-
getActiveStartTime
com.google.protobuf.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:
- The activeStartTime.
-
getActiveStartTimeOrBuilder
com.google.protobuf.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]; -
hasAndroidDevice
boolean hasAndroidDevice()Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the androidDevice field is set.
-
getAndroidDevice
AndroidDevice getAndroidDevice()Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The androidDevice.
-
getAndroidDeviceOrBuilder
AndroidDeviceOrBuilder getAndroidDeviceOrBuilder()Required. The requested device
.google.cloud.devicestreaming.v1.AndroidDevice android_device = 15 [(.google.api.field_behavior) = REQUIRED]; -
getExpirationCase
DeviceSession.ExpirationCase getExpirationCase()
-