Package com.google.cloud.shell.v1
Enum Environment.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Environment.State>
- Enclosing class:
- Environment
public static enum Environment.State
extends Enum<Environment.State>
implements com.google.protobuf.ProtocolMessageEnum
Possible execution states for an environment.Protobuf enum
google.cloud.shell.v1.Environment.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe environment is being deleted and can't be connected to.The environment is being started but is not yet ready to accept connections.The environment is running and ready to accept connections.The environment's states is unknown.The environment is not running and can't be connected to. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe environment is being deleted and can't be connected to.static final intThe environment is being started but is not yet ready to accept connections.static final intThe environment is running and ready to accept connections.static final intThe environment's states is unknown.static final intThe environment is not running and can't be connected to. -
Method Summary
Modifier and TypeMethodDescriptionstatic Environment.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Environment.State>static Environment.StatevalueOf(int value) Deprecated.static Environment.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Environment.StateReturns the enum constant of this type with the specified name.static Environment.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The environment's states is unknown.
STATE_UNSPECIFIED = 0; -
SUSPENDED
The environment is not running and can't be connected to. Starting the environment will transition it to the PENDING state.
SUSPENDED = 1; -
PENDING
The environment is being started but is not yet ready to accept connections.
PENDING = 2; -
RUNNING
The environment is running and ready to accept connections. It will automatically transition back to DISABLED after a period of inactivity or if another environment is started.
RUNNING = 3; -
DELETING
The environment is being deleted and can't be connected to.
DELETING = 4; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe environment's states is unknown.
STATE_UNSPECIFIED = 0;- See Also:
-
SUSPENDED_VALUE
public static final int SUSPENDED_VALUEThe environment is not running and can't be connected to. Starting the environment will transition it to the PENDING state.
SUSPENDED = 1;- See Also:
-
PENDING_VALUE
public static final int PENDING_VALUEThe environment is being started but is not yet ready to accept connections.
PENDING = 2;- See Also:
-
RUNNING_VALUE
public static final int RUNNING_VALUEThe environment is running and ready to accept connections. It will automatically transition back to DISABLED after a period of inactivity or if another environment is started.
RUNNING = 3;- See Also:
-
DELETING_VALUE
public static final int DELETING_VALUEThe environment is being deleted and can't be connected to.
DELETING = 4;- 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
-
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
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
-