public static final class ScanRun.Builder extends GeneratedMessageV3.Builder<ScanRun.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ScanRun build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ScanRun buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ScanRun.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ScanRun.Builder>
public ScanRun.Builder mergeFrom(ScanRun other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public ScanRun.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ScanRun.Builder>
IOException
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 ScanRun.Builder setName(String value)
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;
value
- The name to set.public ScanRun.Builder clearName()
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;
public ScanRun.Builder setNameBytes(ByteString value)
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;
value
- The bytes for name to set.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.Builder setExecutionStateValue(int value)
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
value
- The enum numeric value on the wire for executionState to set.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 ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
value
- The executionState to set.public ScanRun.Builder clearExecutionState()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
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.Builder setResultStateValue(int value)
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;
value
- The enum numeric value on the wire for resultState to set.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 ScanRun.Builder setResultState(ScanRun.ResultState value)
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;
value
- The resultState to set.public ScanRun.Builder clearResultState()
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;
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 ScanRun.Builder setStartTime(Timestamp value)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder setStartTime(Timestamp.Builder builderForValue)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder mergeStartTime(Timestamp value)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder clearStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public Timestamp.Builder getStartTimeBuilder()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
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 ScanRun.Builder setEndTime(Timestamp value)
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;
public ScanRun.Builder setEndTime(Timestamp.Builder builderForValue)
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;
public ScanRun.Builder mergeEndTime(Timestamp value)
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;
public ScanRun.Builder clearEndTime()
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;
public Timestamp.Builder getEndTimeBuilder()
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;
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 ScanRun.Builder setUrlsCrawledCount(long value)
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;
value
- The urlsCrawledCount to set.public ScanRun.Builder clearUrlsCrawledCount()
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;
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 ScanRun.Builder setUrlsTestedCount(long value)
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;
value
- The urlsTestedCount to set.public ScanRun.Builder clearUrlsTestedCount()
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;
public boolean getHasVulnerabilities()
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
getHasVulnerabilities
in interface ScanRunOrBuilder
public ScanRun.Builder setHasVulnerabilities(boolean value)
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
value
- The hasVulnerabilities to set.public ScanRun.Builder clearHasVulnerabilities()
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
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 ScanRun.Builder setProgressPercent(int value)
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;
value
- The progressPercent to set.public ScanRun.Builder clearProgressPercent()
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;
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 ScanRun.Builder setErrorTrace(ScanRunErrorTrace value)
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;
public ScanRun.Builder setErrorTrace(ScanRunErrorTrace.Builder builderForValue)
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;
public ScanRun.Builder mergeErrorTrace(ScanRunErrorTrace value)
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;
public ScanRun.Builder clearErrorTrace()
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;
public ScanRunErrorTrace.Builder getErrorTraceBuilder()
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;
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 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 ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace value)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder addWarningTraces(ScanRunWarningTrace value)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace value)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder addWarningTraces(ScanRunWarningTrace.Builder builderForValue)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder clearWarningTraces()
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRun.Builder removeWarningTraces(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;
public ScanRunWarningTrace.Builder getWarningTracesBuilder(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;
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 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 ScanRunWarningTrace.Builder addWarningTracesBuilder()
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public ScanRunWarningTrace.Builder addWarningTracesBuilder(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;
public List<ScanRunWarningTrace.Builder> getWarningTracesBuilderList()
Output only. A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11;
public final ScanRun.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ScanRun.Builder>
public final ScanRun.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ScanRun.Builder>
Copyright © 2022 Google LLC. All rights reserved.