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 enumgoogle.cloud.shell.v1.CloudShellErrorDetails.CloudShellErrorCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOUD_SHELL_DISABLEDCloud Shell has been disabled by an administrator for the user making the request.CLOUD_SHELL_ERROR_CODE_UNSPECIFIEDAn unknown error occurred.ENVIRONMENT_UNAVAILABLEThe Cloud Shell environment is unavailable and cannot be connected to at the moment.IMAGE_UNAVAILABLEThe image used by the Cloud Shell environment either does not exist or the user does not have access to it.QUOTA_EXCEEDEDThe user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.TOS_VIOLATIONCloud Shell has been permanently disabled due to a Terms of Service violation by the user.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCLOUD_SHELL_DISABLED_VALUECloud Shell has been disabled by an administrator for the user making the request.static intCLOUD_SHELL_ERROR_CODE_UNSPECIFIED_VALUEAn unknown error occurred.static intENVIRONMENT_UNAVAILABLE_VALUEThe Cloud Shell environment is unavailable and cannot be connected to at the moment.static intIMAGE_UNAVAILABLE_VALUEThe image used by the Cloud Shell environment either does not exist or the user does not have access to it.static intQUOTA_EXCEEDED_VALUEThe user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.static intTOS_VIOLATION_VALUECloud Shell has been permanently disabled due to a Terms of Service violation by the user.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CloudShellErrorDetails.CloudShellErrorCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CloudShellErrorDetails.CloudShellErrorCode>internalGetValueMap()static CloudShellErrorDetails.CloudShellErrorCodevalueOf(int value)Deprecated.static CloudShellErrorDetails.CloudShellErrorCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CloudShellErrorDetails.CloudShellErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static CloudShellErrorDetails.CloudShellErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED
public static final CloudShellErrorDetails.CloudShellErrorCode CLOUD_SHELL_ERROR_CODE_UNSPECIFIED
An unknown error occurred.
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED = 0;
-
IMAGE_UNAVAILABLE
public static final CloudShellErrorDetails.CloudShellErrorCode 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
public static final CloudShellErrorDetails.CloudShellErrorCode CLOUD_SHELL_DISABLED
Cloud Shell has been disabled by an administrator for the user making the request.
CLOUD_SHELL_DISABLED = 2;
-
TOS_VIOLATION
public static final CloudShellErrorDetails.CloudShellErrorCode TOS_VIOLATION
Cloud Shell has been permanently disabled due to a Terms of Service violation by the user.
TOS_VIOLATION = 4;
-
QUOTA_EXCEEDED
public static final CloudShellErrorDetails.CloudShellErrorCode 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
public static final CloudShellErrorDetails.CloudShellErrorCode ENVIRONMENT_UNAVAILABLE
The Cloud Shell environment is unavailable and cannot be connected to at the moment.
ENVIRONMENT_UNAVAILABLE = 6;
-
UNRECOGNIZED
public static final CloudShellErrorDetails.CloudShellErrorCode UNRECOGNIZED
-
-
Field Detail
-
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED_VALUE
public static final int CLOUD_SHELL_ERROR_CODE_UNSPECIFIED_VALUE
An unknown error occurred.
CLOUD_SHELL_ERROR_CODE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
IMAGE_UNAVAILABLE_VALUE
public static final int IMAGE_UNAVAILABLE_VALUE
The 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:
- Constant Field Values
-
CLOUD_SHELL_DISABLED_VALUE
public static final int CLOUD_SHELL_DISABLED_VALUE
Cloud Shell has been disabled by an administrator for the user making the request.
CLOUD_SHELL_DISABLED = 2;- See Also:
- Constant Field Values
-
TOS_VIOLATION_VALUE
public static final int TOS_VIOLATION_VALUE
Cloud Shell has been permanently disabled due to a Terms of Service violation by the user.
TOS_VIOLATION = 4;- See Also:
- Constant Field Values
-
QUOTA_EXCEEDED_VALUE
public static final int QUOTA_EXCEEDED_VALUE
The user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.
QUOTA_EXCEEDED = 5;- See Also:
- Constant Field Values
-
ENVIRONMENT_UNAVAILABLE_VALUE
public static final int ENVIRONMENT_UNAVAILABLE_VALUE
The Cloud Shell environment is unavailable and cannot be connected to at the moment.
ENVIRONMENT_UNAVAILABLE = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CloudShellErrorDetails.CloudShellErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CloudShellErrorDetails.CloudShellErrorCode c : CloudShellErrorDetails.CloudShellErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CloudShellErrorDetails.CloudShellErrorCode 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 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 public static CloudShellErrorDetails.CloudShellErrorCode 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 nameNullPointerException- if the argument is null
-
forNumber
public static CloudShellErrorDetails.CloudShellErrorCode 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<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 final 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
-
-