Package com.google.cloud.shell.v1
Enum CloudShellErrorDetails.CloudShellErrorCode
java.lang.Object
java.lang.Enum<CloudShellErrorDetails.CloudShellErrorCode>
com.google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CloudShellErrorDetails.CloudShellErrorCode>
- Enclosing class:
- CloudShellErrorDetails
public static enum CloudShellErrorDetails.CloudShellErrorCode
extends Enum<CloudShellErrorDetails.CloudShellErrorCode>
implements com.google.protobuf.ProtocolMessageEnum
Set of possible errors returned from API calls.Protobuf enum
google.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCloud Shell has been disabled by an administrator for the user making the request.An unknown error occurred.The Cloud Shell environment is unavailable and cannot be connected to at the moment.The image used by the Cloud Shell environment either does not exist or the user does not have access to it.The user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.Cloud Shell has been permanently disabled due to a Terms of Service violation by the user. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCloud Shell has been disabled by an administrator for the user making the request.static final intAn unknown error occurred.static final intThe Cloud Shell environment is unavailable and cannot be connected to at the moment.static final intThe image used by the Cloud Shell environment either does not exist or the user does not have access to it.static final intThe user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.static final intCloud Shell has been permanently disabled due to a Terms of Service violation by the user. -
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<CloudShellErrorDetails.CloudShellErrorCode>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.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED
An unknown error occurred.
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED = 0; -
IMAGE_UNAVAILABLE
The image used by the Cloud Shell environment either does not exist or the user does not have access to it.
IMAGE_UNAVAILABLE = 1; -
CLOUD_SHELL_DISABLED
Cloud Shell has been disabled by an administrator for the user making the request.
CLOUD_SHELL_DISABLED = 2; -
TOS_VIOLATION
Cloud Shell has been permanently disabled due to a Terms of Service violation by the user.
TOS_VIOLATION = 4; -
QUOTA_EXCEEDED
The user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.
QUOTA_EXCEEDED = 5; -
ENVIRONMENT_UNAVAILABLE
The Cloud Shell environment is unavailable and cannot be connected to at the moment.
ENVIRONMENT_UNAVAILABLE = 6; -
UNRECOGNIZED
-
-
Field Details
-
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED_VALUE
public static final int CLOUD_SHELL_ERROR_CODE_UNSPECIFIED_VALUEAn unknown error occurred.
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED = 0;- See Also:
-
IMAGE_UNAVAILABLE_VALUE
public static final int IMAGE_UNAVAILABLE_VALUEThe image used by the Cloud Shell environment either does not exist or the user does not have access to it.
IMAGE_UNAVAILABLE = 1;- See Also:
-
CLOUD_SHELL_DISABLED_VALUE
public static final int CLOUD_SHELL_DISABLED_VALUECloud Shell has been disabled by an administrator for the user making the request.
CLOUD_SHELL_DISABLED = 2;- See Also:
-
TOS_VIOLATION_VALUE
public static final int TOS_VIOLATION_VALUECloud Shell has been permanently disabled due to a Terms of Service violation by the user.
TOS_VIOLATION = 4;- See Also:
-
QUOTA_EXCEEDED_VALUE
public static final int QUOTA_EXCEEDED_VALUEThe user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.
QUOTA_EXCEEDED = 5;- See Also:
-
ENVIRONMENT_UNAVAILABLE_VALUE
public static final int ENVIRONMENT_UNAVAILABLE_VALUEThe Cloud Shell environment is unavailable and cannot be connected to at the moment.
ENVIRONMENT_UNAVAILABLE = 6;- 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<CloudShellErrorDetails.CloudShellErrorCode> 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 CloudShellErrorDetails.CloudShellErrorCode 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
-