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
Modifier and Type | Class and Description |
---|---|
static class |
ScanRun.Builder
A ScanRun is a output-only resource representing an actual run of the scan.
|
static class |
ScanRun.ExecutionState
Types of ScanRun execution state.
|
static class |
ScanRun.ResultState
Types of ScanRun result state.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
END_TIME_FIELD_NUMBER |
static int |
EXECUTION_STATE_FIELD_NUMBER |
static int |
HAS_VULNERABILITIES_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PROGRESS_PERCENT_FIELD_NUMBER |
static int |
RESULT_STATE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
URLS_CRAWLED_COUNT_FIELD_NUMBER |
static int |
URLS_TESTED_COUNT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static ScanRun |
getDefaultInstance() |
ScanRun |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Timestamp |
getEndTime()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.ExecutionState |
getExecutionState()
The execution state of the ScanRun.
|
int |
getExecutionStateValue()
The execution state of the ScanRun.
|
boolean |
getHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
|
String |
getName()
The resource name of the ScanRun.
|
ByteString |
getNameBytes()
The resource name of the ScanRun.
|
Parser<ScanRun> |
getParserForType() |
int |
getProgressPercent()
The percentage of total completion ranging from 0 to 100.
|
ScanRun.ResultState |
getResultState()
The result state of the ScanRun.
|
int |
getResultStateValue()
The result state of the ScanRun.
|
int |
getSerializedSize() |
Timestamp |
getStartTime()
The time at which the ScanRun started.
|
TimestampOrBuilder |
getStartTimeOrBuilder()
The time at which the ScanRun started.
|
UnknownFieldSet |
getUnknownFields() |
long |
getUrlsCrawledCount()
The number of URLs crawled during this ScanRun.
|
long |
getUrlsTestedCount()
The number of URLs tested during this ScanRun.
|
boolean |
hasEndTime()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
int |
hashCode() |
boolean |
hasStartTime()
The time at which the ScanRun started.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ScanRun.Builder |
newBuilder() |
static ScanRun.Builder |
newBuilder(ScanRun prototype) |
ScanRun.Builder |
newBuilderForType() |
protected ScanRun.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static ScanRun |
parseDelimitedFrom(InputStream input) |
static ScanRun |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ScanRun |
parseFrom(byte[] data) |
static ScanRun |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ScanRun |
parseFrom(ByteBuffer data) |
static ScanRun |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ScanRun |
parseFrom(ByteString data) |
static ScanRun |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ScanRun |
parseFrom(CodedInputStream input) |
static ScanRun |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ScanRun |
parseFrom(InputStream input) |
static ScanRun |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ScanRun> |
parser() |
ScanRun.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int EXECUTION_STATE_FIELD_NUMBER
public static final int RESULT_STATE_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER
public static final int URLS_TESTED_COUNT_FIELD_NUMBER
public static final int HAS_VULNERABILITIES_FIELD_NUMBER
public static final int PROGRESS_PERCENT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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;
getName
in interface ScanRunOrBuilder
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;
getNameBytes
in interface ScanRunOrBuilder
public int getExecutionStateValue()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
getExecutionStateValue
in interface ScanRunOrBuilder
public ScanRun.ExecutionState getExecutionState()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
getExecutionState
in interface ScanRunOrBuilder
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;
getResultStateValue
in interface ScanRunOrBuilder
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;
getResultState
in interface ScanRunOrBuilder
public boolean hasStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
hasStartTime
in interface ScanRunOrBuilder
public Timestamp getStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTime
in interface ScanRunOrBuilder
public TimestampOrBuilder getStartTimeOrBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTimeOrBuilder
in interface ScanRunOrBuilder
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;
hasEndTime
in interface ScanRunOrBuilder
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;
getEndTime
in interface ScanRunOrBuilder
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;
getEndTimeOrBuilder
in interface ScanRunOrBuilder
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;
getUrlsCrawledCount
in interface ScanRunOrBuilder
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;
getUrlsTestedCount
in interface ScanRunOrBuilder
public boolean getHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
getHasVulnerabilities
in interface ScanRunOrBuilder
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;
getProgressPercent
in interface ScanRunOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ScanRun parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScanRun parseFrom(InputStream input) throws IOException
IOException
public static ScanRun parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScanRun parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ScanRun parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScanRun parseFrom(CodedInputStream input) throws IOException
IOException
public static ScanRun parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ScanRun.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ScanRun.Builder newBuilder()
public static ScanRun.Builder newBuilder(ScanRun prototype)
public ScanRun.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ScanRun.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ScanRun getDefaultInstance()
public Parser<ScanRun> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ScanRun getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.