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 Details

  • Field Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
  • 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

      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 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 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 name
      NullPointerException - 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:
      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 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 name
      NullPointerException - if the argument is null