public final class ScanRun extends GeneratedMessageV3 implements ScanRunOrBuilder
A ScanRun is a output-only resource representing an actual run of the scan.
Protobuf type google.cloud.websecurityscanner.v1alpha.ScanRun
Static Fields
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
Field Value
EXECUTION_STATE_FIELD_NUMBER
public static final int EXECUTION_STATE_FIELD_NUMBER
Field Value
HAS_VULNERABILITIES_FIELD_NUMBER
public static final int HAS_VULNERABILITIES_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PROGRESS_PERCENT_FIELD_NUMBER
public static final int PROGRESS_PERCENT_FIELD_NUMBER
Field Value
RESULT_STATE_FIELD_NUMBER
public static final int RESULT_STATE_FIELD_NUMBER
Field Value
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
Field Value
URLS_CRAWLED_COUNT_FIELD_NUMBER
public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER
Field Value
URLS_TESTED_COUNT_FIELD_NUMBER
public static final int URLS_TESTED_COUNT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ScanRun getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ScanRun.Builder newBuilder()
Returns
newBuilder(ScanRun prototype)
public static ScanRun.Builder newBuilder(ScanRun prototype)
Parameter
Returns
public static ScanRun parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ScanRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ScanRun parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ScanRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ScanRun parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ScanRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ScanRun parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ScanRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ScanRun parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ScanRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ScanRun parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ScanRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ScanRun> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ScanRun getDefaultInstanceForType()
Returns
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
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
getExecutionState()
public ScanRun.ExecutionState getExecutionState()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
Returns
getExecutionStateValue()
public int getExecutionStateValue()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.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()
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
getParserForType()
public Parser<ScanRun> getParserForType()
Returns
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.v1alpha.ScanRun.ResultState result_state = 3;
Returns
getResultStateValue()
public int getResultStateValue()
The result state of the ScanRun. This field is only available after the
execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3;
Returns
Type | Description |
int | The enum numeric value on the wire for resultState.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStartTime()
public Timestamp getStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
Returns
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
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.
|
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ScanRun.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ScanRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ScanRun.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions