Class ScanRun (2.48.0)

public final class ScanRun extends GeneratedMessageV3 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 Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

ERROR_TRACE_FIELD_NUMBER

public static final int ERROR_TRACE_FIELD_NUMBER
Field Value
Type Description
int

EXECUTION_STATE_FIELD_NUMBER

public static final int EXECUTION_STATE_FIELD_NUMBER
Field Value
Type Description
int

HAS_VULNERABILITIES_FIELD_NUMBER

public static final int HAS_VULNERABILITIES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PROGRESS_PERCENT_FIELD_NUMBER

public static final int PROGRESS_PERCENT_FIELD_NUMBER
Field Value
Type Description
int

RESULT_STATE_FIELD_NUMBER

public static final int RESULT_STATE_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

URLS_CRAWLED_COUNT_FIELD_NUMBER

public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

URLS_TESTED_COUNT_FIELD_NUMBER

public static final int URLS_TESTED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

WARNING_TRACES_FIELD_NUMBER

public static final int WARNING_TRACES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ScanRun getDefaultInstance()
Returns
Type Description
ScanRun

getDescriptor()

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

newBuilder()

public static ScanRun.Builder newBuilder()
Returns
Type Description
ScanRun.Builder

newBuilder(ScanRun prototype)

public static ScanRun.Builder newBuilder(ScanRun prototype)
Parameter
Name Description
prototype ScanRun
Returns
Type Description
ScanRun.Builder

parseDelimitedFrom(InputStream input)

public static ScanRun parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ScanRun parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ScanRun parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ScanRun parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ScanRun parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ScanRun parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanRun
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ScanRun> parser()
Returns
Type Description
Parser<ScanRun>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ScanRun getDefaultInstanceForType()
Returns
Type Description
ScanRun

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.

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.

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.

getParserForType()

public Parser<ScanRun> getParserForType()
Returns
Type Description
Parser<ScanRun>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Timestamp

The startTime.

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ScanRun.Builder newBuilderForType()
Returns
Type Description
ScanRun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ScanRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ScanRun.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ScanRun.Builder toBuilder()
Returns
Type Description
ScanRun.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException