Enum DeviceSession.SessionState
java.lang.Object
java.lang.Enum<DeviceSession.SessionState>
com.google.cloud.devicestreaming.v1.DeviceSession.SessionState
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DeviceSession.SessionState>
- Enclosing class:
- DeviceSession
public static enum DeviceSession.SessionState
extends Enum<DeviceSession.SessionState>
implements com.google.protobuf.ProtocolMessageEnum
The state that the DeviceSession resides.Protobuf enum
google.cloud.devicestreaming.v1.DeviceSession.SessionState-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe session has been granted and the device is accepting connections.Unable to complete the session for an internal reason, such as an infrastructure failure.The session duration exceeded the device's reservation time period and timed out automatically.The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.The session has been validated and is in the queue for a device.Initial state of a session request.Default value.Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe session has been granted and the device is accepting connections.static final intUnable to complete the session for an internal reason, such as an infrastructure failure.static final intThe session duration exceeded the device's reservation time period and timed out automatically.static final intThe user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.static final intThe session has been validated and is in the queue for a device.static final intInitial state of a session request.static final intDefault value.static final intUnable to complete the session because the device was unavailable and it failed to allocate through the scheduler. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceSession.SessionStateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DeviceSession.SessionState>static DeviceSession.SessionStatevalueOf(int value) Deprecated.static DeviceSession.SessionStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DeviceSession.SessionStateReturns the enum constant of this type with the specified name.static DeviceSession.SessionState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SESSION_STATE_UNSPECIFIED
Default value. This value is unused.
SESSION_STATE_UNSPECIFIED = 0; -
REQUESTED
Initial state of a session request. The session is being validated for correctness and a device is not yet requested.
REQUESTED = 1; -
PENDING
The session has been validated and is in the queue for a device.
PENDING = 2; -
ACTIVE
The session has been granted and the device is accepting connections.
ACTIVE = 3; -
EXPIRED
The session duration exceeded the device's reservation time period and timed out automatically.
EXPIRED = 4; -
FINISHED
The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.
FINISHED = 5; -
UNAVAILABLE
Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue.
UNAVAILABLE = 6; -
ERROR
Unable to complete the session for an internal reason, such as an infrastructure failure.
ERROR = 7; -
UNRECOGNIZED
-
-
Field Details
-
SESSION_STATE_UNSPECIFIED_VALUE
public static final int SESSION_STATE_UNSPECIFIED_VALUEDefault value. This value is unused.
SESSION_STATE_UNSPECIFIED = 0;- See Also:
-
REQUESTED_VALUE
public static final int REQUESTED_VALUEInitial state of a session request. The session is being validated for correctness and a device is not yet requested.
REQUESTED = 1;- See Also:
-
PENDING_VALUE
public static final int PENDING_VALUEThe session has been validated and is in the queue for a device.
PENDING = 2;- See Also:
-
ACTIVE_VALUE
public static final int ACTIVE_VALUEThe session has been granted and the device is accepting connections.
ACTIVE = 3;- See Also:
-
EXPIRED_VALUE
public static final int EXPIRED_VALUEThe session duration exceeded the device's reservation time period and timed out automatically.
EXPIRED = 4;- See Also:
-
FINISHED_VALUE
public static final int FINISHED_VALUEThe user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.
FINISHED = 5;- See Also:
-
UNAVAILABLE_VALUE
public static final int UNAVAILABLE_VALUEUnable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue.
UNAVAILABLE = 6;- See Also:
-
ERROR_VALUE
public static final int ERROR_VALUEUnable to complete the session for an internal reason, such as an infrastructure failure.
ERROR = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DeviceSession.SessionState> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static DeviceSession.SessionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-