Class ScanRun.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
- com.google.cloud.websecurityscanner.v1.ScanRun.Builder
-
- All Implemented Interfaces:
ScanRunOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ScanRun
public static final class ScanRun.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder> implements ScanRunOrBuilder
A ScanRun is a output-only resource representing an actual run of the scan. Next id: 12
Protobuf typegoogle.cloud.websecurityscanner.v1.ScanRun
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanRun.Builder
addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)
Output only.ScanRun.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ScanRun.Builder
addWarningTraces(int index, ScanRunWarningTrace value)
Output only.ScanRun.Builder
addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
Output only.ScanRun.Builder
addWarningTraces(ScanRunWarningTrace value)
Output only.ScanRun.Builder
addWarningTraces(ScanRunWarningTrace.Builder builderForValue)
Output only.ScanRunWarningTrace.Builder
addWarningTracesBuilder()
Output only.ScanRunWarningTrace.Builder
addWarningTracesBuilder(int index)
Output only.ScanRun
build()
ScanRun
buildPartial()
ScanRun.Builder
clear()
ScanRun.Builder
clearEndTime()
Output only.ScanRun.Builder
clearErrorTrace()
Output only.ScanRun.Builder
clearExecutionState()
Output only.ScanRun.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ScanRun.Builder
clearHasVulnerabilities()
Output only.ScanRun.Builder
clearName()
Output only.ScanRun.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ScanRun.Builder
clearProgressPercent()
Output only.ScanRun.Builder
clearResultState()
Output only.ScanRun.Builder
clearStartTime()
Output only.ScanRun.Builder
clearUrlsCrawledCount()
Output only.ScanRun.Builder
clearUrlsTestedCount()
Output only.ScanRun.Builder
clearWarningTraces()
Output only.ScanRun.Builder
clone()
ScanRun
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEndTime()
Output only.com.google.protobuf.Timestamp.Builder
getEndTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
Output only.ScanRunErrorTrace
getErrorTrace()
Output only.ScanRunErrorTrace.Builder
getErrorTraceBuilder()
Output only.ScanRunErrorTraceOrBuilder
getErrorTraceOrBuilder()
Output only.ScanRun.ExecutionState
getExecutionState()
Output only.int
getExecutionStateValue()
Output only.boolean
getHasVulnerabilities()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.int
getProgressPercent()
Output only.ScanRun.ResultState
getResultState()
Output only.int
getResultStateValue()
Output only.com.google.protobuf.Timestamp
getStartTime()
Output only.com.google.protobuf.Timestamp.Builder
getStartTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
Output only.long
getUrlsCrawledCount()
Output only.long
getUrlsTestedCount()
Output only.ScanRunWarningTrace
getWarningTraces(int index)
Output only.ScanRunWarningTrace.Builder
getWarningTracesBuilder(int index)
Output only.List<ScanRunWarningTrace.Builder>
getWarningTracesBuilderList()
Output only.int
getWarningTracesCount()
Output only.List<ScanRunWarningTrace>
getWarningTracesList()
Output only.ScanRunWarningTraceOrBuilder
getWarningTracesOrBuilder(int index)
Output only.List<? extends ScanRunWarningTraceOrBuilder>
getWarningTracesOrBuilderList()
Output only.boolean
hasEndTime()
Output only.boolean
hasErrorTrace()
Output only.boolean
hasStartTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ScanRun.Builder
mergeEndTime(com.google.protobuf.Timestamp value)
Output only.ScanRun.Builder
mergeErrorTrace(ScanRunErrorTrace value)
Output only.ScanRun.Builder
mergeFrom(ScanRun other)
ScanRun.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ScanRun.Builder
mergeFrom(com.google.protobuf.Message other)
ScanRun.Builder
mergeStartTime(com.google.protobuf.Timestamp value)
Output only.ScanRun.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScanRun.Builder
removeWarningTraces(int index)
Output only.ScanRun.Builder
setEndTime(com.google.protobuf.Timestamp value)
Output only.ScanRun.Builder
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ScanRun.Builder
setErrorTrace(ScanRunErrorTrace value)
Output only.ScanRun.Builder
setErrorTrace(ScanRunErrorTrace.Builder builderForValue)
Output only.ScanRun.Builder
setExecutionState(ScanRun.ExecutionState value)
Output only.ScanRun.Builder
setExecutionStateValue(int value)
Output only.ScanRun.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ScanRun.Builder
setHasVulnerabilities(boolean value)
Output only.ScanRun.Builder
setName(String value)
Output only.ScanRun.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.ScanRun.Builder
setProgressPercent(int value)
Output only.ScanRun.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ScanRun.Builder
setResultState(ScanRun.ResultState value)
Output only.ScanRun.Builder
setResultStateValue(int value)
Output only.ScanRun.Builder
setStartTime(com.google.protobuf.Timestamp value)
Output only.ScanRun.Builder
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ScanRun.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ScanRun.Builder
setUrlsCrawledCount(long value)
Output only.ScanRun.Builder
setUrlsTestedCount(long value)
Output only.ScanRun.Builder
setWarningTraces(int index, ScanRunWarningTrace value)
Output only.ScanRun.Builder
setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clear
public ScanRun.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
getDefaultInstanceForType
public ScanRun getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScanRun build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScanRun buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScanRun.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
setField
public ScanRun.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clearField
public ScanRun.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clearOneof
public ScanRun.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
setRepeatedField
public ScanRun.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
addRepeatedField
public ScanRun.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
mergeFrom
public ScanRun.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScanRun.Builder>
-
mergeFrom
public ScanRun.Builder mergeFrom(ScanRun other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
mergeFrom
public ScanRun.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ScanRun.Builder>
- Throws:
IOException
-
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;
- Specified by:
getName
in interfaceScanRunOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceScanRunOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public ScanRun.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getExecutionStateValue
public int getExecutionStateValue()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
- Specified by:
getExecutionStateValue
in interfaceScanRunOrBuilder
- Returns:
- The enum numeric value on the wire for executionState.
-
setExecutionStateValue
public ScanRun.Builder setExecutionStateValue(int value)
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
- Parameters:
value
- The enum numeric value on the wire for executionState to set.- Returns:
- This builder for chaining.
-
getExecutionState
public ScanRun.ExecutionState getExecutionState()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
- Specified by:
getExecutionState
in interfaceScanRunOrBuilder
- Returns:
- The executionState.
-
setExecutionState
public ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
- Parameters:
value
- The executionState to set.- Returns:
- This builder for chaining.
-
clearExecutionState
public ScanRun.Builder clearExecutionState()
Output only. The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getResultStateValue
in interfaceScanRunOrBuilder
- Returns:
- The enum numeric value on the wire for resultState.
-
setResultStateValue
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;
- Parameters:
value
- The enum numeric value on the wire for resultState to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getResultState
in interfaceScanRunOrBuilder
- Returns:
- The resultState.
-
setResultState
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;
- Parameters:
value
- The resultState to set.- Returns:
- This builder for chaining.
-
clearResultState
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;
- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
hasStartTime
in interfaceScanRunOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
getStartTime
in interfaceScanRunOrBuilder
- Returns:
- The startTime.
-
setStartTime
public ScanRun.Builder setStartTime(com.google.protobuf.Timestamp value)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
setStartTime
public ScanRun.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
mergeStartTime
public ScanRun.Builder mergeStartTime(com.google.protobuf.Timestamp value)
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
clearStartTime
public ScanRun.Builder clearStartTime()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
- Specified by:
getStartTimeOrBuilder
in interfaceScanRunOrBuilder
-
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;
- Specified by:
hasEndTime
in interfaceScanRunOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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;
- Specified by:
getEndTime
in interfaceScanRunOrBuilder
- Returns:
- The endTime.
-
setEndTime
public ScanRun.Builder setEndTime(com.google.protobuf.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;
-
setEndTime
public ScanRun.Builder setEndTime(com.google.protobuf.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;
-
mergeEndTime
public ScanRun.Builder mergeEndTime(com.google.protobuf.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;
-
clearEndTime
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;
-
getEndTimeBuilder
public com.google.protobuf.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;
-
getEndTimeOrBuilder
public com.google.protobuf.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;
- Specified by:
getEndTimeOrBuilder
in interfaceScanRunOrBuilder
-
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;
- Specified by:
getUrlsCrawledCount
in interfaceScanRunOrBuilder
- Returns:
- The urlsCrawledCount.
-
setUrlsCrawledCount
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;
- Parameters:
value
- The urlsCrawledCount to set.- Returns:
- This builder for chaining.
-
clearUrlsCrawledCount
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getUrlsTestedCount
in interfaceScanRunOrBuilder
- Returns:
- The urlsTestedCount.
-
setUrlsTestedCount
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;
- Parameters:
value
- The urlsTestedCount to set.- Returns:
- This builder for chaining.
-
clearUrlsTestedCount
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;
- Returns:
- This builder for chaining.
-
getHasVulnerabilities
public boolean getHasVulnerabilities()
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
- Specified by:
getHasVulnerabilities
in interfaceScanRunOrBuilder
- Returns:
- The hasVulnerabilities.
-
setHasVulnerabilities
public ScanRun.Builder setHasVulnerabilities(boolean value)
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
- Parameters:
value
- The hasVulnerabilities to set.- Returns:
- This builder for chaining.
-
clearHasVulnerabilities
public ScanRun.Builder clearHasVulnerabilities()
Output only. Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getProgressPercent
in interfaceScanRunOrBuilder
- Returns:
- The progressPercent.
-
setProgressPercent
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;
- Parameters:
value
- The progressPercent to set.- Returns:
- This builder for chaining.
-
clearProgressPercent
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasErrorTrace
in interfaceScanRunOrBuilder
- Returns:
- Whether the errorTrace field is set.
-
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;
- Specified by:
getErrorTrace
in interfaceScanRunOrBuilder
- Returns:
- The errorTrace.
-
setErrorTrace
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;
-
setErrorTrace
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;
-
mergeErrorTrace
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;
-
clearErrorTrace
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;
-
getErrorTraceBuilder
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;
-
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;
- Specified by:
getErrorTraceOrBuilder
in interfaceScanRunOrBuilder
-
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;
- Specified by:
getWarningTracesList
in interfaceScanRunOrBuilder
-
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;
- Specified by:
getWarningTracesCount
in interfaceScanRunOrBuilder
-
getWarningTraces
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;
- Specified by:
getWarningTraces
in interfaceScanRunOrBuilder
-
setWarningTraces
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;
-
setWarningTraces
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;
-
addWarningTraces
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;
-
addWarningTraces
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;
-
addWarningTraces
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;
-
addWarningTraces
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;
-
addAllWarningTraces
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;
-
clearWarningTraces
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;
-
removeWarningTraces
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;
-
getWarningTracesBuilder
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;
-
getWarningTracesOrBuilder
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;
- Specified by:
getWarningTracesOrBuilder
in interfaceScanRunOrBuilder
-
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;
- Specified by:
getWarningTracesOrBuilderList
in interfaceScanRunOrBuilder
-
addWarningTracesBuilder
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;
-
addWarningTracesBuilder
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;
-
getWarningTracesBuilderList
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;
-
setUnknownFields
public final ScanRun.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
mergeUnknownFields
public final ScanRun.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
-