Class ScanRun.Builder (2.53.0)

public static final class ScanRun.Builder extends GeneratedMessageV3.Builder<ScanRun.Builder> implements ScanRunOrBuilder

A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12

Protobuf type google.cloud.websecurityscanner.v1beta.ScanRun

Implements

ScanRunOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)

public ScanRun.Builder addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
values Iterable<? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace>
Returns
Type Description
ScanRun.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanRun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanRun.Builder
Overrides

addWarningTraces(ScanRunWarningTrace value)

public ScanRun.Builder addWarningTraces(ScanRunWarningTrace value)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
value ScanRunWarningTrace
Returns
Type Description
ScanRun.Builder

addWarningTraces(ScanRunWarningTrace.Builder builderForValue)

public ScanRun.Builder addWarningTraces(ScanRunWarningTrace.Builder builderForValue)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
builderForValue ScanRunWarningTrace.Builder
Returns
Type Description
ScanRun.Builder

addWarningTraces(int index, ScanRunWarningTrace value)

public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace value)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameters
Name Description
index int
value ScanRunWarningTrace
Returns
Type Description
ScanRun.Builder

addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameters
Name Description
index int
builderForValue ScanRunWarningTrace.Builder
Returns
Type Description
ScanRun.Builder

addWarningTracesBuilder()

public ScanRunWarningTrace.Builder addWarningTracesBuilder()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
ScanRunWarningTrace.Builder

addWarningTracesBuilder(int index)

public ScanRunWarningTrace.Builder addWarningTracesBuilder(int index)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
index int
Returns
Type Description
ScanRunWarningTrace.Builder

build()

public ScanRun build()
Returns
Type Description
ScanRun

buildPartial()

public ScanRun buildPartial()
Returns
Type Description
ScanRun

clear()

public ScanRun.Builder clear()
Returns
Type Description
ScanRun.Builder
Overrides

clearEndTime()

public ScanRun.Builder clearEndTime()

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
ScanRun.Builder

clearErrorTrace()

public ScanRun.Builder clearErrorTrace()

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Returns
Type Description
ScanRun.Builder

clearExecutionState()

public ScanRun.Builder clearExecutionState()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScanRun.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ScanRun.Builder
Overrides

clearHasVulnerabilities()

public ScanRun.Builder clearHasVulnerabilities()

Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearName()

public ScanRun.Builder clearName()

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

string name = 1;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanRun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ScanRun.Builder
Overrides

clearProgressPercent()

public ScanRun.Builder clearProgressPercent()

The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

int32 progress_percent = 9;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearResultState()

public ScanRun.Builder clearResultState()

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearStartTime()

public ScanRun.Builder clearStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
ScanRun.Builder

clearUrlsCrawledCount()

public ScanRun.Builder clearUrlsCrawledCount()

The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

int64 urls_crawled_count = 6;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearUrlsTestedCount()

public ScanRun.Builder clearUrlsTestedCount()

The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.

int64 urls_tested_count = 7;

Returns
Type Description
ScanRun.Builder

This builder for chaining.

clearWarningTraces()

public ScanRun.Builder clearWarningTraces()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
ScanRun.Builder

clone()

public ScanRun.Builder clone()
Returns
Type Description
ScanRun.Builder
Overrides

getDefaultInstanceForType()

public ScanRun getDefaultInstanceForType()
Returns
Type Description
ScanRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
TimestampOrBuilder

getErrorTrace()

public ScanRunErrorTrace getErrorTrace()

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Returns
Type Description
ScanRunErrorTrace

The errorTrace.

getErrorTraceBuilder()

public ScanRunErrorTrace.Builder getErrorTraceBuilder()

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Returns
Type Description
ScanRunErrorTrace.Builder

getErrorTraceOrBuilder()

public ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder()

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Returns
Type Description
ScanRunErrorTraceOrBuilder

getExecutionState()

public ScanRun.ExecutionState getExecutionState()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;

Returns
Type Description
ScanRun.ExecutionState

The executionState.

getExecutionStateValue()

public int getExecutionStateValue()

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;

Returns
Type Description
int

The enum numeric value on the wire for executionState.

getHasVulnerabilities()

public boolean getHasVulnerabilities()

Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Returns
Type Description
boolean

The hasVulnerabilities.

getName()

public String getName()

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getProgressPercent()

public int getProgressPercent()

The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

int32 progress_percent = 9;

Returns
Type Description
int

The progressPercent.

getResultState()

public ScanRun.ResultState getResultState()

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;

Returns
Type Description
ScanRun.ResultState

The resultState.

getResultStateValue()

public int getResultStateValue()

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;

Returns
Type Description
int

The enum numeric value on the wire for resultState.

getStartTime()

public Timestamp getStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
TimestampOrBuilder

getUrlsCrawledCount()

public long getUrlsCrawledCount()

The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

int64 urls_crawled_count = 6;

Returns
Type Description
long

The urlsCrawledCount.

getUrlsTestedCount()

public long getUrlsTestedCount()

The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.

int64 urls_tested_count = 7;

Returns
Type Description
long

The urlsTestedCount.

getWarningTraces(int index)

public ScanRunWarningTrace getWarningTraces(int index)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
index int
Returns
Type Description
ScanRunWarningTrace

getWarningTracesBuilder(int index)

public ScanRunWarningTrace.Builder getWarningTracesBuilder(int index)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
index int
Returns
Type Description
ScanRunWarningTrace.Builder

getWarningTracesBuilderList()

public List<ScanRunWarningTrace.Builder> getWarningTracesBuilderList()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
List<Builder>

getWarningTracesCount()

public int getWarningTracesCount()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
int

getWarningTracesList()

public List<ScanRunWarningTrace> getWarningTracesList()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
List<ScanRunWarningTrace>

getWarningTracesOrBuilder(int index)

public ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder(int index)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
index int
Returns
Type Description
ScanRunWarningTraceOrBuilder

getWarningTracesOrBuilderList()

public List<? extends ScanRunWarningTraceOrBuilder> getWarningTracesOrBuilderList()

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Returns
Type Description
List<? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>

hasEndTime()

public boolean hasEndTime()

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
boolean

Whether the endTime field is set.

hasErrorTrace()

public boolean hasErrorTrace()

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Returns
Type Description
boolean

Whether the errorTrace field is set.

hasStartTime()

public boolean hasStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public ScanRun.Builder mergeEndTime(Timestamp value)

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanRun.Builder

mergeErrorTrace(ScanRunErrorTrace value)

public ScanRun.Builder mergeErrorTrace(ScanRunErrorTrace value)

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Parameter
Name Description
value ScanRunErrorTrace
Returns
Type Description
ScanRun.Builder

mergeFrom(ScanRun other)

public ScanRun.Builder mergeFrom(ScanRun other)
Parameter
Name Description
other ScanRun
Returns
Type Description
ScanRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanRun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ScanRun.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ScanRun.Builder
Overrides

mergeStartTime(Timestamp value)

public ScanRun.Builder mergeStartTime(Timestamp value)

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanRun.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanRun.Builder
Overrides

removeWarningTraces(int index)

public ScanRun.Builder removeWarningTraces(int index)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameter
Name Description
index int
Returns
Type Description
ScanRun.Builder

setEndTime(Timestamp value)

public ScanRun.Builder setEndTime(Timestamp value)

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanRun.Builder

setEndTime(Timestamp.Builder builderForValue)

public ScanRun.Builder setEndTime(Timestamp.Builder builderForValue)

The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScanRun.Builder

setErrorTrace(ScanRunErrorTrace value)

public ScanRun.Builder setErrorTrace(ScanRunErrorTrace value)

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Parameter
Name Description
value ScanRunErrorTrace
Returns
Type Description
ScanRun.Builder

setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

public ScanRun.Builder setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;

Parameter
Name Description
builderForValue ScanRunErrorTrace.Builder
Returns
Type Description
ScanRun.Builder

setExecutionState(ScanRun.ExecutionState value)

public ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;

Parameter
Name Description
value ScanRun.ExecutionState

The executionState to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setExecutionStateValue(int value)

public ScanRun.Builder setExecutionStateValue(int value)

The execution state of the ScanRun.

.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScanRun.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanRun.Builder
Overrides

setHasVulnerabilities(boolean value)

public ScanRun.Builder setHasVulnerabilities(boolean value)

Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Parameter
Name Description
value boolean

The hasVulnerabilities to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setName(String value)

public ScanRun.Builder setName(String value)

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ScanRun.Builder setNameBytes(ByteString value)

The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setProgressPercent(int value)

public ScanRun.Builder setProgressPercent(int value)

The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

int32 progress_percent = 9;

Parameter
Name Description
value int

The progressPercent to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

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

public ScanRun.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ScanRun.Builder
Overrides

setResultState(ScanRun.ResultState value)

public ScanRun.Builder setResultState(ScanRun.ResultState value)

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;

Parameter
Name Description
value ScanRun.ResultState

The resultState to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setResultStateValue(int value)

public ScanRun.Builder setResultStateValue(int value)

The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;

Parameter
Name Description
value int

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

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setStartTime(Timestamp value)

public ScanRun.Builder setStartTime(Timestamp value)

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanRun.Builder

setStartTime(Timestamp.Builder builderForValue)

public ScanRun.Builder setStartTime(Timestamp.Builder builderForValue)

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScanRun.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanRun.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanRun.Builder
Overrides

setUrlsCrawledCount(long value)

public ScanRun.Builder setUrlsCrawledCount(long value)

The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

int64 urls_crawled_count = 6;

Parameter
Name Description
value long

The urlsCrawledCount to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setUrlsTestedCount(long value)

public ScanRun.Builder setUrlsTestedCount(long value)

The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.

int64 urls_tested_count = 7;

Parameter
Name Description
value long

The urlsTestedCount to set.

Returns
Type Description
ScanRun.Builder

This builder for chaining.

setWarningTraces(int index, ScanRunWarningTrace value)

public ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace value)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameters
Name Description
index int
value ScanRunWarningTrace
Returns
Type Description
ScanRun.Builder

setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

public ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

A list of warnings, if such are encountered during this scan run.

repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;

Parameters
Name Description
index int
builderForValue ScanRunWarningTrace.Builder
Returns
Type Description
ScanRun.Builder