Enum CloudShellErrorDetails.CloudShellErrorCode

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