Class ScanRun.Builder (2.24.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.v1.ScanRun

Implements

ScanRunOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace>
Returns
TypeDescription
ScanRun.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWarningTraces(ScanRunWarningTrace value)

public ScanRun.Builder addWarningTraces(ScanRunWarningTrace value)

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

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

Parameter
NameDescription
valueScanRunWarningTrace
Returns
TypeDescription
ScanRun.Builder

addWarningTraces(ScanRunWarningTrace.Builder builderForValue)

public ScanRun.Builder addWarningTraces(ScanRunWarningTrace.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueScanRunWarningTrace.Builder
Returns
TypeDescription
ScanRun.Builder

addWarningTraces(int index, ScanRunWarningTrace value)

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

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

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

Parameters
NameDescription
indexint
valueScanRunWarningTrace
Returns
TypeDescription
ScanRun.Builder

addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueScanRunWarningTrace.Builder
Returns
TypeDescription
ScanRun.Builder

addWarningTracesBuilder()

public ScanRunWarningTrace.Builder addWarningTracesBuilder()

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

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

Returns
TypeDescription
ScanRunWarningTrace.Builder

addWarningTracesBuilder(int index)

public ScanRunWarningTrace.Builder addWarningTracesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTrace.Builder

build()

public ScanRun build()
Returns
TypeDescription
ScanRun

buildPartial()

public ScanRun buildPartial()
Returns
TypeDescription
ScanRun

clear()

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

clearEndTime()

public ScanRun.Builder clearEndTime()

Output only. 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
TypeDescription
ScanRun.Builder

clearErrorTrace()

public ScanRun.Builder clearErrorTrace()

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Returns
TypeDescription
ScanRun.Builder

clearExecutionState()

public ScanRun.Builder clearExecutionState()

Output only. The execution state of the ScanRun.

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

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHasVulnerabilities()

public ScanRun.Builder clearHasVulnerabilities()

Output only. Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

clearName()

public ScanRun.Builder clearName()

Output only. 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
TypeDescription
ScanRun.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public ScanRun.Builder clearProgressPercent()

Output only. 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
TypeDescription
ScanRun.Builder

This builder for chaining.

clearResultState()

public ScanRun.Builder clearResultState()

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

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

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

clearStartTime()

public ScanRun.Builder clearStartTime()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
ScanRun.Builder

clearUrlsCrawledCount()

public ScanRun.Builder clearUrlsCrawledCount()

Output only. 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
TypeDescription
ScanRun.Builder

This builder for chaining.

clearUrlsTestedCount()

public ScanRun.Builder clearUrlsTestedCount()

Output only. 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
TypeDescription
ScanRun.Builder

This builder for chaining.

clearWarningTraces()

public ScanRun.Builder clearWarningTraces()

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

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

Returns
TypeDescription
ScanRun.Builder

clone()

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

getDefaultInstanceForType()

public ScanRun getDefaultInstanceForType()
Returns
TypeDescription
ScanRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. 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
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. 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
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. 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
TypeDescription
TimestampOrBuilder

getErrorTrace()

public ScanRunErrorTrace getErrorTrace()

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Returns
TypeDescription
ScanRunErrorTrace

The errorTrace.

getErrorTraceBuilder()

public ScanRunErrorTrace.Builder getErrorTraceBuilder()

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Returns
TypeDescription
ScanRunErrorTrace.Builder

getErrorTraceOrBuilder()

public ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder()

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Returns
TypeDescription
ScanRunErrorTraceOrBuilder

getExecutionState()

public ScanRun.ExecutionState getExecutionState()

Output only. The execution state of the ScanRun.

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

Returns
TypeDescription
ScanRun.ExecutionState

The executionState.

getExecutionStateValue()

public int getExecutionStateValue()

Output only. The execution state of the ScanRun.

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

Returns
TypeDescription
int

The enum numeric value on the wire for executionState.

getHasVulnerabilities()

public boolean getHasVulnerabilities()

Output only. Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Returns
TypeDescription
boolean

The hasVulnerabilities.

getName()

public String getName()

Output only. 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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. 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
TypeDescription
ByteString

The bytes for name.

getProgressPercent()

public int getProgressPercent()

Output only. 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
TypeDescription
int

The progressPercent.

getResultState()

public ScanRun.ResultState getResultState()

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

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

Returns
TypeDescription
ScanRun.ResultState

The resultState.

getResultStateValue()

public int getResultStateValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for resultState.

getStartTime()

public Timestamp getStartTime()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getUrlsCrawledCount()

public long getUrlsCrawledCount()

Output only. 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
TypeDescription
long

The urlsCrawledCount.

getUrlsTestedCount()

public long getUrlsTestedCount()

Output only. 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
TypeDescription
long

The urlsTestedCount.

getWarningTraces(int index)

public ScanRunWarningTrace getWarningTraces(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTrace

getWarningTracesBuilder(int index)

public ScanRunWarningTrace.Builder getWarningTracesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTrace.Builder

getWarningTracesBuilderList()

public List<ScanRunWarningTrace.Builder> getWarningTracesBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getWarningTracesCount()

public int getWarningTracesCount()

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

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

Returns
TypeDescription
int

getWarningTracesList()

public List<ScanRunWarningTrace> getWarningTracesList()

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

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

Returns
TypeDescription
List<ScanRunWarningTrace>

getWarningTracesOrBuilder(int index)

public ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTraceOrBuilder

getWarningTracesOrBuilderList()

public List<? extends ScanRunWarningTraceOrBuilder> getWarningTracesOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>

hasEndTime()

public boolean hasEndTime()

Output only. 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
TypeDescription
boolean

Whether the endTime field is set.

hasErrorTrace()

public boolean hasErrorTrace()

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Returns
TypeDescription
boolean

Whether the errorTrace field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public ScanRun.Builder mergeEndTime(Timestamp value)

Output only. 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
NameDescription
valueTimestamp
Returns
TypeDescription
ScanRun.Builder

mergeErrorTrace(ScanRunErrorTrace value)

public ScanRun.Builder mergeErrorTrace(ScanRunErrorTrace value)

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Parameter
NameDescription
valueScanRunErrorTrace
Returns
TypeDescription
ScanRun.Builder

mergeFrom(ScanRun other)

public ScanRun.Builder mergeFrom(ScanRun other)
Parameter
NameDescription
otherScanRun
Returns
TypeDescription
ScanRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public ScanRun.Builder mergeStartTime(Timestamp value)

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ScanRun.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWarningTraces(int index)

public ScanRun.Builder removeWarningTraces(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ScanRun.Builder

setEndTime(Timestamp value)

public ScanRun.Builder setEndTime(Timestamp value)

Output only. 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
NameDescription
valueTimestamp
Returns
TypeDescription
ScanRun.Builder

setEndTime(Timestamp.Builder builderForValue)

public ScanRun.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. 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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ScanRun.Builder

setErrorTrace(ScanRunErrorTrace value)

public ScanRun.Builder setErrorTrace(ScanRunErrorTrace value)

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Parameter
NameDescription
valueScanRunErrorTrace
Returns
TypeDescription
ScanRun.Builder

setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

public ScanRun.Builder setErrorTrace(ScanRunErrorTrace.Builder builderForValue)

Output only. 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.v1.ScanRunErrorTrace error_trace = 10;

Parameter
NameDescription
builderForValueScanRunErrorTrace.Builder
Returns
TypeDescription
ScanRun.Builder

setExecutionState(ScanRun.ExecutionState value)

public ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)

Output only. The execution state of the ScanRun.

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

Parameter
NameDescription
valueScanRun.ExecutionState

The executionState to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setExecutionStateValue(int value)

public ScanRun.Builder setExecutionStateValue(int value)

Output only. The execution state of the ScanRun.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHasVulnerabilities(boolean value)

public ScanRun.Builder setHasVulnerabilities(boolean value)

Output only. Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Parameter
NameDescription
valueboolean

The hasVulnerabilities to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setName(String value)

public ScanRun.Builder setName(String value)

Output only. 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
NameDescription
valueString

The name to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ScanRun.Builder setNameBytes(ByteString value)

Output only. 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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setProgressPercent(int value)

public ScanRun.Builder setProgressPercent(int value)

Output only. 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
NameDescription
valueint

The progressPercent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScanRun.Builder
Overrides

setResultState(ScanRun.ResultState value)

public ScanRun.Builder setResultState(ScanRun.ResultState value)

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

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

Parameter
NameDescription
valueScanRun.ResultState

The resultState to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setResultStateValue(int value)

public ScanRun.Builder setResultStateValue(int value)

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

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setStartTime(Timestamp value)

public ScanRun.Builder setStartTime(Timestamp value)

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ScanRun.Builder

setStartTime(Timestamp.Builder builderForValue)

public ScanRun.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ScanRun.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUrlsCrawledCount(long value)

public ScanRun.Builder setUrlsCrawledCount(long value)

Output only. 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
NameDescription
valuelong

The urlsCrawledCount to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setUrlsTestedCount(long value)

public ScanRun.Builder setUrlsTestedCount(long value)

Output only. 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
NameDescription
valuelong

The urlsTestedCount to set.

Returns
TypeDescription
ScanRun.Builder

This builder for chaining.

setWarningTraces(int index, ScanRunWarningTrace value)

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

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

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

Parameters
NameDescription
indexint
valueScanRunWarningTrace
Returns
TypeDescription
ScanRun.Builder

setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueScanRunWarningTrace.Builder
Returns
TypeDescription
ScanRun.Builder