Enum ScanRunErrorTrace.Code
java.lang.Object
java.lang.Enum<ScanRunErrorTrace.Code>
com.google.cloud.websecurityscanner.v1beta.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: 7Protobuf enum
google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates an authentication error, usually due to outdated ScanConfig authentication settings.Default value is never used.Indicates that the scan run failed due to an internal server error.Indicates a scan configuration error, usually due to outdated ScanConfig settings, such as starting_urls or the DNS configuration.Indicates a scan operation timeout, usually caused by a very large site.Indicates that a scan encountered numerous errors from the web site pages.Indicates that a scan encountered excessive redirects, either to authentication or some other page outside of the scan scope. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates an authentication error, usually due to outdated ScanConfig authentication settings.static final intDefault value is never used.static final intIndicates that the scan run failed due to an internal server error.static final intIndicates a scan configuration error, usually due to outdated ScanConfig settings, such as starting_urls or the DNS configuration.static final intIndicates a scan operation timeout, usually caused by a very large site.static final intIndicates that a scan encountered numerous errors from the web site pages.static final intIndicates that a scan encountered excessive redirects, either to authentication or some other page outside of the scan scope. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanRunErrorTrace.CodeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ScanRunErrorTrace.Code>static ScanRunErrorTrace.CodevalueOf(int value) Deprecated.static ScanRunErrorTrace.CodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ScanRunErrorTrace.CodeReturns the enum constant of this type with the specified name.static ScanRunErrorTrace.Code[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CODE_UNSPECIFIED
Default value is never used.
CODE_UNSPECIFIED = 0; -
INTERNAL_ERROR
Indicates that the scan run failed due to an internal server error.
INTERNAL_ERROR = 1; -
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
Indicates an authentication error, usually due to outdated ScanConfig authentication settings.
AUTHENTICATION_CONFIG_ISSUE = 3; -
TIMED_OUT_WHILE_SCANNING
Indicates a scan operation timeout, usually caused by a very large site.
TIMED_OUT_WHILE_SCANNING = 4; -
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
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; -
UNRECOGNIZED
-
-
Field Details
-
CODE_UNSPECIFIED_VALUE
public static final int CODE_UNSPECIFIED_VALUEDefault value is never used.
CODE_UNSPECIFIED = 0;- See Also:
-
INTERNAL_ERROR_VALUE
public static final int INTERNAL_ERROR_VALUEIndicates that the scan run failed due to an internal server error.
INTERNAL_ERROR = 1;- See Also:
-
SCAN_CONFIG_ISSUE_VALUE
public static final int SCAN_CONFIG_ISSUE_VALUEIndicates a scan configuration error, usually due to outdated ScanConfig settings, such as starting_urls or the DNS configuration.
SCAN_CONFIG_ISSUE = 2;- See Also:
-
AUTHENTICATION_CONFIG_ISSUE_VALUE
public static final int AUTHENTICATION_CONFIG_ISSUE_VALUEIndicates an authentication error, usually due to outdated ScanConfig authentication settings.
AUTHENTICATION_CONFIG_ISSUE = 3;- See Also:
-
TIMED_OUT_WHILE_SCANNING_VALUE
public static final int TIMED_OUT_WHILE_SCANNING_VALUEIndicates a scan operation timeout, usually caused by a very large site.
TIMED_OUT_WHILE_SCANNING = 4;- See Also:
-
TOO_MANY_REDIRECTS_VALUE
public static final int TOO_MANY_REDIRECTS_VALUEIndicates that a scan encountered excessive redirects, either to authentication or some other page outside of the scan scope.
TOO_MANY_REDIRECTS = 5;- See Also:
-
TOO_MANY_HTTP_ERRORS_VALUE
public static final int TOO_MANY_HTTP_ERRORS_VALUEIndicates 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:
-
-
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<ScanRunErrorTrace.Code> 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 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 nameNullPointerException- if the argument is null
-