Class ScanRun (2.1.1)

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.v1.ScanRun

Implements

ScanRunOrBuilder

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_TRACE_FIELD_NUMBER

public static final int ERROR_TRACE_FIELD_NUMBER
Field Value
TypeDescription
int

EXECUTION_STATE_FIELD_NUMBER

public static final int EXECUTION_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

HAS_VULNERABILITIES_FIELD_NUMBER

public static final int HAS_VULNERABILITIES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROGRESS_PERCENT_FIELD_NUMBER

public static final int PROGRESS_PERCENT_FIELD_NUMBER
Field Value
TypeDescription
int

RESULT_STATE_FIELD_NUMBER

public static final int RESULT_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

URLS_CRAWLED_COUNT_FIELD_NUMBER

public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

URLS_TESTED_COUNT_FIELD_NUMBER

public static final int URLS_TESTED_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

WARNING_TRACES_FIELD_NUMBER

public static final int WARNING_TRACES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ScanRun getDefaultInstance()
Returns
TypeDescription
ScanRun

getDescriptor()

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

newBuilder()

public static ScanRun.Builder newBuilder()
Returns
TypeDescription
ScanRun.Builder

newBuilder(ScanRun prototype)

public static ScanRun.Builder newBuilder(ScanRun prototype)
Parameter
NameDescription
prototypeScanRun
Returns
TypeDescription
ScanRun.Builder

parseDelimitedFrom(InputStream input)

public static ScanRun parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ScanRun parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ScanRun parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ScanRun parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ScanRun parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ScanRun parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ScanRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanRun
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ScanRun> parser()
Returns
TypeDescription
Parser<ScanRun>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ScanRun getDefaultInstanceForType()
Returns
TypeDescription
ScanRun

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.

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.

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.

getParserForType()

public Parser<ScanRun> getParserForType()
Returns
TypeDescription
Parser<ScanRun>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time at which the ScanRun started.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ScanRun.Builder newBuilderForType()
Returns
TypeDescription
ScanRun.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ScanRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ScanRun.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ScanRun.Builder toBuilder()
Returns
TypeDescription
ScanRun.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException