Enum ScanRunErrorTrace.Code

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ScanRunErrorTrace.Code>
    Enclosing class:
    ScanRunErrorTrace

    public static enum ScanRunErrorTrace.Code
    extends Enum<ScanRunErrorTrace.Code>
    implements com.google.protobuf.ProtocolMessageEnum
     Output only.
     Defines an error reason code.
     Next id: 8
     
    Protobuf enum google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code
    • Enum Constant Detail

      • CODE_UNSPECIFIED

        public static final ScanRunErrorTrace.Code CODE_UNSPECIFIED
         Default value is never used.
         
        CODE_UNSPECIFIED = 0;
      • INTERNAL_ERROR

        public static final ScanRunErrorTrace.Code INTERNAL_ERROR
         Indicates that the scan run failed due to an internal server error.
         
        INTERNAL_ERROR = 1;
      • SCAN_CONFIG_ISSUE

        public static final ScanRunErrorTrace.Code SCAN_CONFIG_ISSUE
         Indicates a scan configuration error, usually due to outdated ScanConfig
         settings, such as starting_urls or the DNS configuration.
         
        SCAN_CONFIG_ISSUE = 2;
      • AUTHENTICATION_CONFIG_ISSUE

        public static final ScanRunErrorTrace.Code AUTHENTICATION_CONFIG_ISSUE
         Indicates an authentication error, usually due to outdated ScanConfig
         authentication settings.
         
        AUTHENTICATION_CONFIG_ISSUE = 3;
      • TIMED_OUT_WHILE_SCANNING

        public static final ScanRunErrorTrace.Code TIMED_OUT_WHILE_SCANNING
         Indicates a scan operation timeout, usually caused by a very large site.
         
        TIMED_OUT_WHILE_SCANNING = 4;
      • TOO_MANY_REDIRECTS

        public static final ScanRunErrorTrace.Code TOO_MANY_REDIRECTS
         Indicates that a scan encountered excessive redirects, either to
         authentication or some other page outside of the scan scope.
         
        TOO_MANY_REDIRECTS = 5;
      • TOO_MANY_HTTP_ERRORS

        public static final ScanRunErrorTrace.Code TOO_MANY_HTTP_ERRORS
         Indicates that a scan encountered numerous errors from the web site
         pages. When available, most_common_http_error_code field indicates the
         most common HTTP error code encountered during the scan.
         
        TOO_MANY_HTTP_ERRORS = 6;
    • Field Detail

      • CODE_UNSPECIFIED_VALUE

        public static final int CODE_UNSPECIFIED_VALUE
         Default value is never used.
         
        CODE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • INTERNAL_ERROR_VALUE

        public static final int INTERNAL_ERROR_VALUE
         Indicates that the scan run failed due to an internal server error.
         
        INTERNAL_ERROR = 1;
        See Also:
        Constant Field Values
      • SCAN_CONFIG_ISSUE_VALUE

        public static final int SCAN_CONFIG_ISSUE_VALUE
         Indicates a scan configuration error, usually due to outdated ScanConfig
         settings, such as starting_urls or the DNS configuration.
         
        SCAN_CONFIG_ISSUE = 2;
        See Also:
        Constant Field Values
      • AUTHENTICATION_CONFIG_ISSUE_VALUE

        public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE
         Indicates an authentication error, usually due to outdated ScanConfig
         authentication settings.
         
        AUTHENTICATION_CONFIG_ISSUE = 3;
        See Also:
        Constant Field Values
      • TIMED_OUT_WHILE_SCANNING_VALUE

        public static final int TIMED_OUT_WHILE_SCANNING_VALUE
         Indicates a scan operation timeout, usually caused by a very large site.
         
        TIMED_OUT_WHILE_SCANNING = 4;
        See Also:
        Constant Field Values
      • TOO_MANY_REDIRECTS_VALUE

        public static final int TOO_MANY_REDIRECTS_VALUE
         Indicates that a scan encountered excessive redirects, either to
         authentication or some other page outside of the scan scope.
         
        TOO_MANY_REDIRECTS = 5;
        See Also:
        Constant Field Values
      • TOO_MANY_HTTP_ERRORS_VALUE

        public static final int TOO_MANY_HTTP_ERRORS_VALUE
         Indicates that a scan encountered numerous errors from the web site
         pages. When available, most_common_http_error_code field indicates the
         most common HTTP error code encountered during the scan.
         
        TOO_MANY_HTTP_ERRORS = 6;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ScanRunErrorTrace.Code[] 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 (ScanRunErrorTrace.Code c : ScanRunErrorTrace.Code.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScanRunErrorTrace.Code 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 ScanRunErrorTrace.Code 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 ScanRunErrorTrace.Code 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<ScanRunErrorTrace.Code> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static ScanRunErrorTrace.Code 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