public final class ScanRun extends GeneratedMessageV3 implements ScanRunOrBuilder
A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12Protobuf type
google.cloud.websecurityscanner.v1.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 |
ERROR_TRACE_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 |
static int |
WARNING_TRACES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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
public static final int ERROR_TRACE_FIELD_NUMBER
public static final int WARNING_TRACES_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()
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;
getName
in interface ScanRunOrBuilder
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;
getNameBytes
in interface ScanRunOrBuilder
public int getExecutionStateValue()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
getExecutionStateValue
in interface ScanRunOrBuilder
public ScanRun.ExecutionState getExecutionState()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
getExecutionState
in interface ScanRunOrBuilder
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;
getResultStateValue
in interface ScanRunOrBuilder
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;
getResultState
in interface ScanRunOrBuilder
public boolean hasStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
hasStartTime
in interface ScanRunOrBuilder
public Timestamp getStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTime
in interface ScanRunOrBuilder
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTimeOrBuilder
in interface ScanRunOrBuilder
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;
hasEndTime
in interface ScanRunOrBuilder
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;
getEndTime
in interface ScanRunOrBuilder
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;
getEndTimeOrBuilder
in interface ScanRunOrBuilder
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;
getUrlsCrawledCount
in interface ScanRunOrBuilder
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;
getUrlsTestedCount
in interface ScanRunOrBuilder
public boolean getHasVulnerabilities()
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
getHasVulnerabilities
in interface ScanRunOrBuilder
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;
getProgressPercent
in interface ScanRunOrBuilder
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;
hasErrorTrace
in interface ScanRunOrBuilder
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;
getErrorTrace
in interface ScanRunOrBuilder
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;
getErrorTraceOrBuilder
in interface ScanRunOrBuilder
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;
getWarningTracesList
in interface ScanRunOrBuilder
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;
getWarningTracesOrBuilderList
in interface ScanRunOrBuilder
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;
getWarningTracesCount
in interface ScanRunOrBuilder
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;
getWarningTraces
in interface ScanRunOrBuilder
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;
getWarningTracesOrBuilder
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.