public final class Finding extends GeneratedMessageV3 implements FindingOrBuilder
A Finding resource represents a vulnerability instance identified during a
ScanRun.
Protobuf type google.cloud.websecurityscanner.v1beta.Finding
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FINAL_URL_FIELD_NUMBER
public static final int FINAL_URL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FINDING_TYPE_FIELD_NUMBER
public static final int FINDING_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FORM_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FRAME_URL_FIELD_NUMBER
public static final int FRAME_URL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
FUZZED_URL_FIELD_NUMBER
public static final int FUZZED_URL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
HTTP_METHOD_FIELD_NUMBER
public static final int HTTP_METHOD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
OUTDATED_LIBRARY_FIELD_NUMBER
public static final int OUTDATED_LIBRARY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REPRODUCTION_URL_FIELD_NUMBER
public static final int REPRODUCTION_URL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRACKING_ID_FIELD_NUMBER
public static final int TRACKING_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VIOLATING_RESOURCE_FIELD_NUMBER
public static final int VIOLATING_RESOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int VULNERABLE_HEADERS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VULNERABLE_PARAMETERS_FIELD_NUMBER
public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
XSS_FIELD_NUMBER
public static final int XSS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Finding getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Finding.Builder newBuilder()
newBuilder(Finding prototype)
public static Finding.Builder newBuilder(Finding prototype)
Parameter |
---|
Name | Description |
prototype | Finding
|
public static Finding parseDelimitedFrom(InputStream input)
public static Finding parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Finding parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Finding parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Finding parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Finding parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Finding parseFrom(CodedInputStream input)
public static Finding parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Finding parseFrom(InputStream input)
public static Finding parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Finding parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Finding parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Finding> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBody()
The body of the request that triggered the vulnerability.
string body = 5;
Returns |
---|
Type | Description |
String | The body.
|
getBodyBytes()
public ByteString getBodyBytes()
The body of the request that triggered the vulnerability.
string body = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for body.
|
getDefaultInstanceForType()
public Finding getDefaultInstanceForType()
getDescription()
public String getDescription()
The description of the vulnerability.
string description = 6;
Returns |
---|
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of the vulnerability.
string description = 6;
Returns |
---|
Type | Description |
ByteString | The bytes for description.
|
getFinalUrl()
public String getFinalUrl()
The URL where the browser lands when the vulnerability is detected.
string final_url = 9;
Returns |
---|
Type | Description |
String | The finalUrl.
|
getFinalUrlBytes()
public ByteString getFinalUrlBytes()
The URL where the browser lands when the vulnerability is detected.
string final_url = 9;
Returns |
---|
Type | Description |
ByteString | The bytes for finalUrl.
|
getFindingType()
public String getFindingType()
Returns |
---|
Type | Description |
String | The findingType.
|
getFindingTypeBytes()
public ByteString getFindingTypeBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for findingType.
|
An addon containing information reported for a vulnerability with an HTML
form, if any.
.google.cloud.websecurityscanner.v1beta.Form form = 16;
Returns |
---|
Type | Description |
Form | The form.
|
public FormOrBuilder getFormOrBuilder()
An addon containing information reported for a vulnerability with an HTML
form, if any.
.google.cloud.websecurityscanner.v1beta.Form form = 16;
getFrameUrl()
public String getFrameUrl()
If the vulnerability was originated from nested IFrame, the immediate
parent IFrame is reported.
string frame_url = 8;
Returns |
---|
Type | Description |
String | The frameUrl.
|
getFrameUrlBytes()
public ByteString getFrameUrlBytes()
If the vulnerability was originated from nested IFrame, the immediate
parent IFrame is reported.
string frame_url = 8;
Returns |
---|
Type | Description |
ByteString | The bytes for frameUrl.
|
getFuzzedUrl()
public String getFuzzedUrl()
The URL produced by the server-side fuzzer and used in the request that
triggered the vulnerability.
string fuzzed_url = 4;
Returns |
---|
Type | Description |
String | The fuzzedUrl.
|
getFuzzedUrlBytes()
public ByteString getFuzzedUrlBytes()
The URL produced by the server-side fuzzer and used in the request that
triggered the vulnerability.
string fuzzed_url = 4;
Returns |
---|
Type | Description |
ByteString | The bytes for fuzzedUrl.
|
getHttpMethod()
public String getHttpMethod()
The http method of the request that triggered the vulnerability, in
uppercase.
string http_method = 3;
Returns |
---|
Type | Description |
String | The httpMethod.
|
getHttpMethodBytes()
public ByteString getHttpMethodBytes()
The http method of the request that triggered the vulnerability, in
uppercase.
string http_method = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for httpMethod.
|
getName()
The resource name of the Finding. The name follows the format of
'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
The finding IDs are generated by the system.
string name = 1;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the Finding. The name follows the format of
'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
The finding IDs are generated by the system.
string name = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getOutdatedLibrary()
public OutdatedLibrary getOutdatedLibrary()
An addon containing information about outdated libraries.
.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11;
getOutdatedLibraryOrBuilder()
public OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder()
An addon containing information about outdated libraries.
.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11;
getParserForType()
public Parser<Finding> getParserForType()
Overrides
getReproductionUrl()
public String getReproductionUrl()
The URL containing human-readable payload that user can leverage to
reproduce the vulnerability.
string reproduction_url = 7;
Returns |
---|
Type | Description |
String | The reproductionUrl.
|
getReproductionUrlBytes()
public ByteString getReproductionUrlBytes()
The URL containing human-readable payload that user can leverage to
reproduce the vulnerability.
string reproduction_url = 7;
Returns |
---|
Type | Description |
ByteString | The bytes for reproductionUrl.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTrackingId()
public String getTrackingId()
The tracking ID uniquely identifies a vulnerability instance across
multiple ScanRuns.
string tracking_id = 10;
Returns |
---|
Type | Description |
String | The trackingId.
|
getTrackingIdBytes()
public ByteString getTrackingIdBytes()
The tracking ID uniquely identifies a vulnerability instance across
multiple ScanRuns.
string tracking_id = 10;
Returns |
---|
Type | Description |
ByteString | The bytes for trackingId.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getViolatingResource()
public ViolatingResource getViolatingResource()
An addon containing detailed information regarding any resource causing the
vulnerability such as JavaScript sources, image, audio files, etc.
.google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
getViolatingResourceOrBuilder()
public ViolatingResourceOrBuilder getViolatingResourceOrBuilder()
An addon containing detailed information regarding any resource causing the
vulnerability such as JavaScript sources, image, audio files, etc.
.google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
public VulnerableHeaders getVulnerableHeaders()
An addon containing information about vulnerable or missing HTTP headers.
.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15;
public VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder()
An addon containing information about vulnerable or missing HTTP headers.
.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15;
getVulnerableParameters()
public VulnerableParameters getVulnerableParameters()
An addon containing information about request parameters which were found
to be vulnerable.
.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13;
getVulnerableParametersOrBuilder()
public VulnerableParametersOrBuilder getVulnerableParametersOrBuilder()
An addon containing information about request parameters which were found
to be vulnerable.
.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13;
getXss()
An addon containing information reported for an XSS, if any.
.google.cloud.websecurityscanner.v1beta.Xss xss = 14;
Returns |
---|
Type | Description |
Xss | The xss.
|
getXssOrBuilder()
public XssOrBuilder getXssOrBuilder()
An addon containing information reported for an XSS, if any.
.google.cloud.websecurityscanner.v1beta.Xss xss = 14;
An addon containing information reported for a vulnerability with an HTML
form, if any.
.google.cloud.websecurityscanner.v1beta.Form form = 16;
Returns |
---|
Type | Description |
boolean | Whether the form field is set.
|
hasOutdatedLibrary()
public boolean hasOutdatedLibrary()
An addon containing information about outdated libraries.
.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11;
Returns |
---|
Type | Description |
boolean | Whether the outdatedLibrary field is set.
|
hasViolatingResource()
public boolean hasViolatingResource()
An addon containing detailed information regarding any resource causing the
vulnerability such as JavaScript sources, image, audio files, etc.
.google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
Returns |
---|
Type | Description |
boolean | Whether the violatingResource field is set.
|
public boolean hasVulnerableHeaders()
An addon containing information about vulnerable or missing HTTP headers.
.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15;
Returns |
---|
Type | Description |
boolean | Whether the vulnerableHeaders field is set.
|
hasVulnerableParameters()
public boolean hasVulnerableParameters()
An addon containing information about request parameters which were found
to be vulnerable.
.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13;
Returns |
---|
Type | Description |
boolean | Whether the vulnerableParameters field is set.
|
hasXss()
An addon containing information reported for an XSS, if any.
.google.cloud.websecurityscanner.v1beta.Xss xss = 14;
Returns |
---|
Type | Description |
boolean | Whether the xss field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Finding.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Finding.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Finding.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides