Interface ScanRunOrBuilder (2.31.0)

public interface ScanRunOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndTime()

public abstract 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
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public abstract 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
TypeDescription
TimestampOrBuilder

getErrorTrace()

public abstract 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
TypeDescription
ScanRunErrorTrace

The errorTrace.

getErrorTraceOrBuilder()

public abstract 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
TypeDescription
ScanRunErrorTraceOrBuilder

getExecutionState()

public abstract ScanRun.ExecutionState getExecutionState()

The execution state of the ScanRun.

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

Returns
TypeDescription
ScanRun.ExecutionState

The executionState.

getExecutionStateValue()

public abstract int getExecutionStateValue()

The execution state of the ScanRun.

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

Returns
TypeDescription
int

The enum numeric value on the wire for executionState.

getHasVulnerabilities()

public abstract boolean getHasVulnerabilities()

Whether the scan run has found any vulnerabilities.

bool has_vulnerabilities = 8;

Returns
TypeDescription
boolean

The hasVulnerabilities.

getName()

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

The name.

getNameBytes()

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

The bytes for name.

getProgressPercent()

public abstract 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
TypeDescription
int

The progressPercent.

getResultState()

public abstract 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
TypeDescription
ScanRun.ResultState

The resultState.

getResultStateValue()

public abstract 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
TypeDescription
int

The enum numeric value on the wire for resultState.

getStartTime()

public abstract Timestamp getStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public abstract TimestampOrBuilder getStartTimeOrBuilder()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getUrlsCrawledCount()

public abstract 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
TypeDescription
long

The urlsCrawledCount.

getUrlsTestedCount()

public abstract 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
TypeDescription
long

The urlsTestedCount.

getWarningTraces(int index)

public abstract 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
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTrace

getWarningTracesCount()

public abstract int getWarningTracesCount()

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

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

Returns
TypeDescription
int

getWarningTracesList()

public abstract 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
TypeDescription
List<ScanRunWarningTrace>

getWarningTracesOrBuilder(int index)

public abstract 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
NameDescription
indexint
Returns
TypeDescription
ScanRunWarningTraceOrBuilder

getWarningTracesOrBuilderList()

public abstract 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
TypeDescription
List<? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>

hasEndTime()

public abstract 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
TypeDescription
boolean

Whether the endTime field is set.

hasErrorTrace()

public abstract 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
TypeDescription
boolean

Whether the errorTrace field is set.

hasStartTime()

public abstract boolean hasStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
boolean

Whether the startTime field is set.