Package com.google.cloud.shell.v1
Enum StartEnvironmentMetadata.State
java.lang.Object
java.lang.Enum<StartEnvironmentMetadata.State>
com.google.cloud.shell.v1.StartEnvironmentMetadata.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StartEnvironmentMetadata.State>
- Enclosing class:
- StartEnvironmentMetadata
public static enum StartEnvironmentMetadata.State
extends Enum<StartEnvironmentMetadata.State>
implements com.google.protobuf.ProtocolMessageEnum
Possible states an environment might transition between during startup. These states are not normally actionable by clients, but may be used to show a progress message to the user. An environment won't necessarily go through all of these states when starting. More states are likely to be added in the future.Protobuf enum
google.cloud.shell.v1.StartEnvironmentMetadata.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStartup is waiting for compute resources to be assigned to the environment.Startup has completed.The environment is in the process of being started, but no additional details are available.The environment's start state is unknown.Startup is waiting for the user's disk to be unarchived. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intStartup is waiting for compute resources to be assigned to the environment.static final intStartup has completed.static final intThe environment is in the process of being started, but no additional details are available.static final intThe environment's start state is unknown.static final intStartup is waiting for the user's disk to be unarchived. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StartEnvironmentMetadata.State>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static StartEnvironmentMetadata.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 start state is unknown.
STATE_UNSPECIFIED = 0; -
STARTING
The environment is in the process of being started, but no additional details are available.
STARTING = 1; -
UNARCHIVING_DISK
Startup is waiting for the user's disk to be unarchived. This can happen when the user returns to Cloud Shell after not having used it for a while, and suggests that startup will take longer than normal.
UNARCHIVING_DISK = 2; -
AWAITING_COMPUTE_RESOURCES
Startup is waiting for compute resources to be assigned to the environment. This should normally happen very quickly, but an environment might stay in this state for an extended period of time if the system is experiencing heavy load.
AWAITING_COMPUTE_RESOURCES = 4; -
FINISHED
Startup has completed. If the start operation was successful, the user should be able to establish an SSH connection to their environment. Otherwise, the operation will contain details of the failure.
FINISHED = 3; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe environment's start state is unknown.
STATE_UNSPECIFIED = 0;- See Also:
-
STARTING_VALUE
public static final int STARTING_VALUEThe environment is in the process of being started, but no additional details are available.
STARTING = 1;- See Also:
-
UNARCHIVING_DISK_VALUE
public static final int UNARCHIVING_DISK_VALUEStartup is waiting for the user's disk to be unarchived. This can happen when the user returns to Cloud Shell after not having used it for a while, and suggests that startup will take longer than normal.
UNARCHIVING_DISK = 2;- See Also:
-
AWAITING_COMPUTE_RESOURCES_VALUE
public static final int AWAITING_COMPUTE_RESOURCES_VALUEStartup is waiting for compute resources to be assigned to the environment. This should normally happen very quickly, but an environment might stay in this state for an extended period of time if the system is experiencing heavy load.
AWAITING_COMPUTE_RESOURCES = 4;- See Also:
-
FINISHED_VALUE
public static final int FINISHED_VALUEStartup has completed. If the start operation was successful, the user should be able to establish an SSH connection to their environment. Otherwise, the operation will contain details of the failure.
FINISHED = 3;- 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<StartEnvironmentMetadata.State> 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 StartEnvironmentMetadata.State 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
-