Class Finding.Builder (2.19.0)

public static final class Finding.Builder extends GeneratedMessageV3.Builder<Finding.Builder> implements FindingOrBuilder

A Finding resource represents a vulnerability instance identified during a ScanRun.

Protobuf type google.cloud.websecurityscanner.v1alpha.Finding

Implements

FindingOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Finding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Finding.Builder
Overrides

build()

public Finding build()
Returns
TypeDescription
Finding

buildPartial()

public Finding buildPartial()
Returns
TypeDescription
Finding

clear()

public Finding.Builder clear()
Returns
TypeDescription
Finding.Builder
Overrides

clearBody()

public Finding.Builder clearBody()

The body of the request that triggered the vulnerability.

string body = 5;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearDescription()

public Finding.Builder clearDescription()

The description of the vulnerability.

string description = 6;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Finding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Finding.Builder
Overrides

clearFinalUrl()

public Finding.Builder clearFinalUrl()

The URL where the browser lands when the vulnerability is detected.

string final_url = 9;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearFindingType()

public Finding.Builder clearFindingType()

The type of the Finding.

.google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearFrameUrl()

public Finding.Builder clearFrameUrl()

If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.

string frame_url = 8;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearFuzzedUrl()

public Finding.Builder clearFuzzedUrl()

The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.

string fuzzed_url = 4;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearHttpMethod()

public Finding.Builder clearHttpMethod()

The http method of the request that triggered the vulnerability, in uppercase.

string http_method = 3;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearName()

public Finding.Builder clearName()

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
TypeDescription
Finding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Finding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Finding.Builder
Overrides

clearOutdatedLibrary()

public Finding.Builder clearOutdatedLibrary()

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Returns
TypeDescription
Finding.Builder

clearReproductionUrl()

public Finding.Builder clearReproductionUrl()

The URL containing human-readable payload that user can leverage to reproduce the vulnerability.

string reproduction_url = 7;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearTrackingId()

public Finding.Builder clearTrackingId()

The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.

string tracking_id = 10;

Returns
TypeDescription
Finding.Builder

This builder for chaining.

clearViolatingResource()

public Finding.Builder clearViolatingResource()

An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

.google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;

Returns
TypeDescription
Finding.Builder

clearVulnerableHeaders()

public Finding.Builder clearVulnerableHeaders()

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Returns
TypeDescription
Finding.Builder

clearVulnerableParameters()

public Finding.Builder clearVulnerableParameters()

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Returns
TypeDescription
Finding.Builder

clearXss()

public Finding.Builder clearXss()

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Returns
TypeDescription
Finding.Builder

clone()

public Finding.Builder clone()
Returns
TypeDescription
Finding.Builder
Overrides

getBody()

public String getBody()

The body of the request that triggered the vulnerability.

string body = 5;

Returns
TypeDescription
String

The body.

getBodyBytes()

public ByteString getBodyBytes()

The body of the request that triggered the vulnerability.

string body = 5;

Returns
TypeDescription
ByteString

The bytes for body.

getDefaultInstanceForType()

public Finding getDefaultInstanceForType()
Returns
TypeDescription
Finding

getDescription()

public String getDescription()

The description of the vulnerability.

string description = 6;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the vulnerability.

string description = 6;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFinalUrl()

public String getFinalUrl()

The URL where the browser lands when the vulnerability is detected.

string final_url = 9;

Returns
TypeDescription
String

The finalUrl.

getFinalUrlBytes()

public ByteString getFinalUrlBytes()

The URL where the browser lands when the vulnerability is detected.

string final_url = 9;

Returns
TypeDescription
ByteString

The bytes for finalUrl.

getFindingType()

public Finding.FindingType getFindingType()

The type of the Finding.

.google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;

Returns
TypeDescription
Finding.FindingType

The findingType.

getFindingTypeValue()

public int getFindingTypeValue()

The type of the Finding.

.google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for findingType.

getFrameUrl()

public String getFrameUrl()

If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.

string frame_url = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The httpMethod.

getHttpMethodBytes()

public ByteString getHttpMethodBytes()

The http method of the request that triggered the vulnerability, in uppercase.

string http_method = 3;

Returns
TypeDescription
ByteString

The bytes for httpMethod.

getName()

public String 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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getOutdatedLibrary()

public OutdatedLibrary getOutdatedLibrary()

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Returns
TypeDescription
OutdatedLibrary

The outdatedLibrary.

getOutdatedLibraryBuilder()

public OutdatedLibrary.Builder getOutdatedLibraryBuilder()

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Returns
TypeDescription
OutdatedLibrary.Builder

getOutdatedLibraryOrBuilder()

public OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder()

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Returns
TypeDescription
OutdatedLibraryOrBuilder

getReproductionUrl()

public String getReproductionUrl()

The URL containing human-readable payload that user can leverage to reproduce the vulnerability.

string reproduction_url = 7;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for reproductionUrl.

getTrackingId()

public String getTrackingId()

The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.

string tracking_id = 10;

Returns
TypeDescription
String

The trackingId.

getTrackingIdBytes()

public ByteString getTrackingIdBytes()

The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.

string tracking_id = 10;

Returns
TypeDescription
ByteString

The bytes for trackingId.

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.v1alpha.ViolatingResource violating_resource = 12;

Returns
TypeDescription
ViolatingResource

The violatingResource.

getViolatingResourceBuilder()

public ViolatingResource.Builder getViolatingResourceBuilder()

An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

.google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;

Returns
TypeDescription
ViolatingResource.Builder

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.v1alpha.ViolatingResource violating_resource = 12;

Returns
TypeDescription
ViolatingResourceOrBuilder

getVulnerableHeaders()

public VulnerableHeaders getVulnerableHeaders()

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Returns
TypeDescription
VulnerableHeaders

The vulnerableHeaders.

getVulnerableHeadersBuilder()

public VulnerableHeaders.Builder getVulnerableHeadersBuilder()

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Returns
TypeDescription
VulnerableHeaders.Builder

getVulnerableHeadersOrBuilder()

public VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder()

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Returns
TypeDescription
VulnerableHeadersOrBuilder

getVulnerableParameters()

public VulnerableParameters getVulnerableParameters()

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Returns
TypeDescription
VulnerableParameters

The vulnerableParameters.

getVulnerableParametersBuilder()

public VulnerableParameters.Builder getVulnerableParametersBuilder()

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Returns
TypeDescription
VulnerableParameters.Builder

getVulnerableParametersOrBuilder()

public VulnerableParametersOrBuilder getVulnerableParametersOrBuilder()

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Returns
TypeDescription
VulnerableParametersOrBuilder

getXss()

public Xss getXss()

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Returns
TypeDescription
Xss

The xss.

getXssBuilder()

public Xss.Builder getXssBuilder()

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Returns
TypeDescription
Xss.Builder

getXssOrBuilder()

public XssOrBuilder getXssOrBuilder()

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Returns
TypeDescription
XssOrBuilder

hasOutdatedLibrary()

public boolean hasOutdatedLibrary()

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Returns
TypeDescription
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.v1alpha.ViolatingResource violating_resource = 12;

Returns
TypeDescription
boolean

Whether the violatingResource field is set.

hasVulnerableHeaders()

public boolean hasVulnerableHeaders()

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Returns
TypeDescription
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.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Returns
TypeDescription
boolean

Whether the vulnerableParameters field is set.

hasXss()

public boolean hasXss()

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Returns
TypeDescription
boolean

Whether the xss field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Finding other)

public Finding.Builder mergeFrom(Finding other)
Parameter
NameDescription
otherFinding
Returns
TypeDescription
Finding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Finding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Finding.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Finding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Finding.Builder
Overrides

mergeOutdatedLibrary(OutdatedLibrary value)

public Finding.Builder mergeOutdatedLibrary(OutdatedLibrary value)

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Parameter
NameDescription
valueOutdatedLibrary
Returns
TypeDescription
Finding.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Finding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Finding.Builder
Overrides

mergeViolatingResource(ViolatingResource value)

public Finding.Builder mergeViolatingResource(ViolatingResource value)

An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

.google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;

Parameter
NameDescription
valueViolatingResource
Returns
TypeDescription
Finding.Builder

mergeVulnerableHeaders(VulnerableHeaders value)

public Finding.Builder mergeVulnerableHeaders(VulnerableHeaders value)

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Parameter
NameDescription
valueVulnerableHeaders
Returns
TypeDescription
Finding.Builder

mergeVulnerableParameters(VulnerableParameters value)

public Finding.Builder mergeVulnerableParameters(VulnerableParameters value)

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Parameter
NameDescription
valueVulnerableParameters
Returns
TypeDescription
Finding.Builder

mergeXss(Xss value)

public Finding.Builder mergeXss(Xss value)

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Parameter
NameDescription
valueXss
Returns
TypeDescription
Finding.Builder

setBody(String value)

public Finding.Builder setBody(String value)

The body of the request that triggered the vulnerability.

string body = 5;

Parameter
NameDescription
valueString

The body to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setBodyBytes(ByteString value)

public Finding.Builder setBodyBytes(ByteString value)

The body of the request that triggered the vulnerability.

string body = 5;

Parameter
NameDescription
valueByteString

The bytes for body to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setDescription(String value)

public Finding.Builder setDescription(String value)

The description of the vulnerability.

string description = 6;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Finding.Builder setDescriptionBytes(ByteString value)

The description of the vulnerability.

string description = 6;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Finding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Finding.Builder
Overrides

setFinalUrl(String value)

public Finding.Builder setFinalUrl(String value)

The URL where the browser lands when the vulnerability is detected.

string final_url = 9;

Parameter
NameDescription
valueString

The finalUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFinalUrlBytes(ByteString value)

public Finding.Builder setFinalUrlBytes(ByteString value)

The URL where the browser lands when the vulnerability is detected.

string final_url = 9;

Parameter
NameDescription
valueByteString

The bytes for finalUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFindingType(Finding.FindingType value)

public Finding.Builder setFindingType(Finding.FindingType value)

The type of the Finding.

.google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;

Parameter
NameDescription
valueFinding.FindingType

The findingType to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFindingTypeValue(int value)

public Finding.Builder setFindingTypeValue(int value)

The type of the Finding.

.google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for findingType to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFrameUrl(String value)

public Finding.Builder setFrameUrl(String value)

If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.

string frame_url = 8;

Parameter
NameDescription
valueString

The frameUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFrameUrlBytes(ByteString value)

public Finding.Builder setFrameUrlBytes(ByteString value)

If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported.

string frame_url = 8;

Parameter
NameDescription
valueByteString

The bytes for frameUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFuzzedUrl(String value)

public Finding.Builder setFuzzedUrl(String value)

The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.

string fuzzed_url = 4;

Parameter
NameDescription
valueString

The fuzzedUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setFuzzedUrlBytes(ByteString value)

public Finding.Builder setFuzzedUrlBytes(ByteString value)

The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability.

string fuzzed_url = 4;

Parameter
NameDescription
valueByteString

The bytes for fuzzedUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setHttpMethod(String value)

public Finding.Builder setHttpMethod(String value)

The http method of the request that triggered the vulnerability, in uppercase.

string http_method = 3;

Parameter
NameDescription
valueString

The httpMethod to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setHttpMethodBytes(ByteString value)

public Finding.Builder setHttpMethodBytes(ByteString value)

The http method of the request that triggered the vulnerability, in uppercase.

string http_method = 3;

Parameter
NameDescription
valueByteString

The bytes for httpMethod to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setName(String value)

public Finding.Builder setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Finding.Builder setNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setOutdatedLibrary(OutdatedLibrary value)

public Finding.Builder setOutdatedLibrary(OutdatedLibrary value)

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Parameter
NameDescription
valueOutdatedLibrary
Returns
TypeDescription
Finding.Builder

setOutdatedLibrary(OutdatedLibrary.Builder builderForValue)

public Finding.Builder setOutdatedLibrary(OutdatedLibrary.Builder builderForValue)

An addon containing information about outdated libraries.

.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11;

Parameter
NameDescription
builderForValueOutdatedLibrary.Builder
Returns
TypeDescription
Finding.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Finding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Finding.Builder
Overrides

setReproductionUrl(String value)

public Finding.Builder setReproductionUrl(String value)

The URL containing human-readable payload that user can leverage to reproduce the vulnerability.

string reproduction_url = 7;

Parameter
NameDescription
valueString

The reproductionUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setReproductionUrlBytes(ByteString value)

public Finding.Builder setReproductionUrlBytes(ByteString value)

The URL containing human-readable payload that user can leverage to reproduce the vulnerability.

string reproduction_url = 7;

Parameter
NameDescription
valueByteString

The bytes for reproductionUrl to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setTrackingId(String value)

public Finding.Builder setTrackingId(String value)

The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.

string tracking_id = 10;

Parameter
NameDescription
valueString

The trackingId to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setTrackingIdBytes(ByteString value)

public Finding.Builder setTrackingIdBytes(ByteString value)

The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns.

string tracking_id = 10;

Parameter
NameDescription
valueByteString

The bytes for trackingId to set.

Returns
TypeDescription
Finding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Finding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Finding.Builder
Overrides

setViolatingResource(ViolatingResource value)

public Finding.Builder setViolatingResource(ViolatingResource value)

An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

.google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;

Parameter
NameDescription
valueViolatingResource
Returns
TypeDescription
Finding.Builder

setViolatingResource(ViolatingResource.Builder builderForValue)

public Finding.Builder setViolatingResource(ViolatingResource.Builder builderForValue)

An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

.google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12;

Parameter
NameDescription
builderForValueViolatingResource.Builder
Returns
TypeDescription
Finding.Builder

setVulnerableHeaders(VulnerableHeaders value)

public Finding.Builder setVulnerableHeaders(VulnerableHeaders value)

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Parameter
NameDescription
valueVulnerableHeaders
Returns
TypeDescription
Finding.Builder

setVulnerableHeaders(VulnerableHeaders.Builder builderForValue)

public Finding.Builder setVulnerableHeaders(VulnerableHeaders.Builder builderForValue)

An addon containing information about vulnerable or missing HTTP headers.

.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15;

Parameter
NameDescription
builderForValueVulnerableHeaders.Builder
Returns
TypeDescription
Finding.Builder

setVulnerableParameters(VulnerableParameters value)

public Finding.Builder setVulnerableParameters(VulnerableParameters value)

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Parameter
NameDescription
valueVulnerableParameters
Returns
TypeDescription
Finding.Builder

setVulnerableParameters(VulnerableParameters.Builder builderForValue)

public Finding.Builder setVulnerableParameters(VulnerableParameters.Builder builderForValue)

An addon containing information about request parameters which were found to be vulnerable.

.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13;

Parameter
NameDescription
builderForValueVulnerableParameters.Builder
Returns
TypeDescription
Finding.Builder

setXss(Xss value)

public Finding.Builder setXss(Xss value)

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Parameter
NameDescription
valueXss
Returns
TypeDescription
Finding.Builder

setXss(Xss.Builder builderForValue)

public Finding.Builder setXss(Xss.Builder builderForValue)

An addon containing information reported for an XSS, if any.

.google.cloud.websecurityscanner.v1alpha.Xss xss = 14;

Parameter
NameDescription
builderForValueXss.Builder
Returns
TypeDescription
Finding.Builder