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 Details

    • SESSION_STATE_UNSPECIFIED

      public static final DeviceSession.SessionState SESSION_STATE_UNSPECIFIED
       Default value. This value is unused.
       
      SESSION_STATE_UNSPECIFIED = 0;
    • REQUESTED

      public static final DeviceSession.SessionState REQUESTED
       Initial state of a session request. The session is being validated for
       correctness and a device is not yet requested.
       
      REQUESTED = 1;
    • PENDING

      public static final DeviceSession.SessionState PENDING
       The session has been validated and is in the queue for a device.
       
      PENDING = 2;
    • ACTIVE

      public static final DeviceSession.SessionState ACTIVE
       The session has been granted and the device is accepting
       connections.
       
      ACTIVE = 3;
    • EXPIRED

      public static final DeviceSession.SessionState EXPIRED
       The session duration exceeded the device's reservation time period and
       timed out automatically.
       
      EXPIRED = 4;
    • FINISHED

      public static final DeviceSession.SessionState 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

      public static final DeviceSession.SessionState 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

      public static final DeviceSession.SessionState ERROR
       Unable to complete the session for an internal reason, such as an
       infrastructure failure.
       
      ERROR = 7;
    • UNRECOGNIZED

      public static final DeviceSession.SessionState UNRECOGNIZED
  • Field Details

    • SESSION_STATE_UNSPECIFIED_VALUE

      public static final int SESSION_STATE_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      SESSION_STATE_UNSPECIFIED = 0;
      See Also:
    • REQUESTED_VALUE

      public static final int REQUESTED_VALUE
       Initial 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_VALUE
       The session has been validated and is in the queue for a device.
       
      PENDING = 2;
      See Also:
    • ACTIVE_VALUE

      public static final int ACTIVE_VALUE
       The session has been granted and the device is accepting
       connections.
       
      ACTIVE = 3;
      See Also:
    • EXPIRED_VALUE

      public static final int EXPIRED_VALUE
       The session duration exceeded the device's reservation time period and
       timed out automatically.
       
      EXPIRED = 4;
      See Also:
    • FINISHED_VALUE

      public static final int FINISHED_VALUE
       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;
      See Also:
    • UNAVAILABLE_VALUE

      public static final int UNAVAILABLE_VALUE
       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;
      See Also:
    • ERROR_VALUE

      public static final int ERROR_VALUE
       Unable to complete the session for an internal reason, such as an
       infrastructure failure.
       
      ERROR = 7;
      See Also:
  • Method Details

    • values

      public static DeviceSession.SessionState[] 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

      public static DeviceSession.SessionState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DeviceSession.SessionState valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static DeviceSession.SessionState forNumber(int value)
      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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null