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.v1beta.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.v1beta.ScanRun
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanRun.BuilderaddAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)A list of warnings, if such are encountered during this scan run.ScanRun.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScanRun.BuilderaddWarningTraces(int index, ScanRunWarningTrace value)A list of warnings, if such are encountered during this scan run.ScanRun.BuilderaddWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)A list of warnings, if such are encountered during this scan run.ScanRun.BuilderaddWarningTraces(ScanRunWarningTrace value)A list of warnings, if such are encountered during this scan run.ScanRun.BuilderaddWarningTraces(ScanRunWarningTrace.Builder builderForValue)A list of warnings, if such are encountered during this scan run.ScanRunWarningTrace.BuilderaddWarningTracesBuilder()A list of warnings, if such are encountered during this scan run.ScanRunWarningTrace.BuilderaddWarningTracesBuilder(int index)A list of warnings, if such are encountered during this scan run.ScanRunbuild()ScanRunbuildPartial()ScanRun.Builderclear()ScanRun.BuilderclearEndTime()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.ScanRun.BuilderclearErrorTrace()If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRun.BuilderclearExecutionState()The execution state of the ScanRun.ScanRun.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ScanRun.BuilderclearHasVulnerabilities()Whether the scan run has found any vulnerabilities.ScanRun.BuilderclearName()The resource name of the ScanRun.ScanRun.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ScanRun.BuilderclearProgressPercent()The percentage of total completion ranging from 0 to 100.ScanRun.BuilderclearResultState()The result state of the ScanRun.ScanRun.BuilderclearStartTime()The time at which the ScanRun started.ScanRun.BuilderclearUrlsCrawledCount()The number of URLs crawled during this ScanRun.ScanRun.BuilderclearUrlsTestedCount()The number of URLs tested during this ScanRun.ScanRun.BuilderclearWarningTraces()A list of warnings, if such are encountered during this scan run.ScanRun.Builderclone()ScanRungetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEndTime()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.com.google.protobuf.Timestamp.BuildergetEndTimeBuilder()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.ScanRunErrorTracegetErrorTrace()If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRunErrorTrace.BuildergetErrorTraceBuilder()If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRunErrorTraceOrBuildergetErrorTraceOrBuilder()If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRun.ExecutionStategetExecutionState()The execution state of the ScanRun.intgetExecutionStateValue()The execution state of the ScanRun.booleangetHasVulnerabilities()Whether the scan run has found any vulnerabilities.StringgetName()The resource name of the ScanRun.com.google.protobuf.ByteStringgetNameBytes()The resource name of the ScanRun.intgetProgressPercent()The percentage of total completion ranging from 0 to 100.ScanRun.ResultStategetResultState()The result state of the ScanRun.intgetResultStateValue()The result state of the ScanRun.com.google.protobuf.TimestampgetStartTime()The time at which the ScanRun started.com.google.protobuf.Timestamp.BuildergetStartTimeBuilder()The time at which the ScanRun started.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The time at which the ScanRun started.longgetUrlsCrawledCount()The number of URLs crawled during this ScanRun.longgetUrlsTestedCount()The number of URLs tested during this ScanRun.ScanRunWarningTracegetWarningTraces(int index)A list of warnings, if such are encountered during this scan run.ScanRunWarningTrace.BuildergetWarningTracesBuilder(int index)A list of warnings, if such are encountered during this scan run.List<ScanRunWarningTrace.Builder>getWarningTracesBuilderList()A list of warnings, if such are encountered during this scan run.intgetWarningTracesCount()A list of warnings, if such are encountered during this scan run.List<ScanRunWarningTrace>getWarningTracesList()A list of warnings, if such are encountered during this scan run.ScanRunWarningTraceOrBuildergetWarningTracesOrBuilder(int index)A list of warnings, if such are encountered during this scan run.List<? extends ScanRunWarningTraceOrBuilder>getWarningTracesOrBuilderList()A list of warnings, if such are encountered during this scan run.booleanhasEndTime()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.booleanhasErrorTrace()If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.booleanhasStartTime()The time at which the ScanRun started.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ScanRun.BuildermergeEndTime(com.google.protobuf.Timestamp value)The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.ScanRun.BuildermergeErrorTrace(ScanRunErrorTrace value)If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRun.BuildermergeFrom(ScanRun other)ScanRun.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ScanRun.BuildermergeFrom(com.google.protobuf.Message other)ScanRun.BuildermergeStartTime(com.google.protobuf.Timestamp value)The time at which the ScanRun started.ScanRun.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ScanRun.BuilderremoveWarningTraces(int index)A list of warnings, if such are encountered during this scan run.ScanRun.BuildersetEndTime(com.google.protobuf.Timestamp value)The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.ScanRun.BuildersetEndTime(com.google.protobuf.Timestamp.Builder builderForValue)The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.ScanRun.BuildersetErrorTrace(ScanRunErrorTrace value)If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRun.BuildersetErrorTrace(ScanRunErrorTrace.Builder builderForValue)If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.ScanRun.BuildersetExecutionState(ScanRun.ExecutionState value)The execution state of the ScanRun.ScanRun.BuildersetExecutionStateValue(int value)The execution state of the ScanRun.ScanRun.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ScanRun.BuildersetHasVulnerabilities(boolean value)Whether the scan run has found any vulnerabilities.ScanRun.BuildersetName(String value)The resource name of the ScanRun.ScanRun.BuildersetNameBytes(com.google.protobuf.ByteString value)The resource name of the ScanRun.ScanRun.BuildersetProgressPercent(int value)The percentage of total completion ranging from 0 to 100.ScanRun.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ScanRun.BuildersetResultState(ScanRun.ResultState value)The result state of the ScanRun.ScanRun.BuildersetResultStateValue(int value)The result state of the ScanRun.ScanRun.BuildersetStartTime(com.google.protobuf.Timestamp value)The time at which the ScanRun started.ScanRun.BuildersetStartTime(com.google.protobuf.Timestamp.Builder builderForValue)The time at which the ScanRun started.ScanRun.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ScanRun.BuildersetUrlsCrawledCount(long value)The number of URLs crawled during this ScanRun.ScanRun.BuildersetUrlsTestedCount(long value)The number of URLs tested during this ScanRun.ScanRun.BuildersetWarningTraces(int index, ScanRunWarningTrace value)A list of warnings, if such are encountered during this scan run.ScanRun.BuildersetWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)A list of warnings, if such are encountered during this scan run.-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clear
public ScanRun.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
getDefaultInstanceForType
public ScanRun getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ScanRun build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ScanRun buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ScanRun.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
setField
public ScanRun.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clearField
public ScanRun.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
clearOneof
public ScanRun.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
setRepeatedField
public ScanRun.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
addRepeatedField
public ScanRun.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
mergeFrom
public ScanRun.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanRun.Builder>
-
mergeFrom
public ScanRun.Builder mergeFrom(ScanRun other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanRun.Builder>- Throws:
IOException
-
getName
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;- Specified by:
getNamein interfaceScanRunOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceScanRunOrBuilder- Returns:
- The bytes for name.
-
setName
public ScanRun.Builder setName(String value)
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()
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)
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()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;- Specified by:
getExecutionStateValuein interfaceScanRunOrBuilder- Returns:
- The enum numeric value on the wire for executionState.
-
setExecutionStateValue
public ScanRun.Builder setExecutionStateValue(int value)
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1beta.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()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;- Specified by:
getExecutionStatein interfaceScanRunOrBuilder- Returns:
- The executionState.
-
setExecutionState
public ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;- Parameters:
value- The executionState to set.- Returns:
- This builder for chaining.
-
clearExecutionState
public ScanRun.Builder clearExecutionState()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2;- Returns:
- This builder for chaining.
-
getResultStateValue
public int getResultStateValue()
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;- Specified by:
getResultStateValuein interfaceScanRunOrBuilder- Returns:
- The enum numeric value on the wire for resultState.
-
setResultStateValue
public ScanRun.Builder setResultStateValue(int value)
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1beta.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()
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;- Specified by:
getResultStatein interfaceScanRunOrBuilder- Returns:
- The resultState.
-
setResultState
public ScanRun.Builder setResultState(ScanRun.ResultState value)
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;- Parameters:
value- The resultState to set.- Returns:
- This builder for chaining.
-
clearResultState
public ScanRun.Builder clearResultState()
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3;- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;- Specified by:
hasStartTimein interfaceScanRunOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimein interfaceScanRunOrBuilder- Returns:
- The startTime.
-
setStartTime
public ScanRun.Builder setStartTime(com.google.protobuf.Timestamp value)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
setStartTime
public ScanRun.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
mergeStartTime
public ScanRun.Builder mergeStartTime(com.google.protobuf.Timestamp value)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
clearStartTime
public ScanRun.Builder clearStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimeOrBuilderin interfaceScanRunOrBuilder
-
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;- Specified by:
hasEndTimein interfaceScanRunOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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;- Specified by:
getEndTimein interfaceScanRunOrBuilder- Returns:
- The endTime.
-
setEndTime
public ScanRun.Builder setEndTime(com.google.protobuf.Timestamp value)
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)
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)
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()
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()
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()
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:
getEndTimeOrBuilderin interfaceScanRunOrBuilder
-
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;- Specified by:
getUrlsCrawledCountin interfaceScanRunOrBuilder- Returns:
- The urlsCrawledCount.
-
setUrlsCrawledCount
public ScanRun.Builder setUrlsCrawledCount(long value)
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()
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()
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:
getUrlsTestedCountin interfaceScanRunOrBuilder- Returns:
- The urlsTestedCount.
-
setUrlsTestedCount
public ScanRun.Builder setUrlsTestedCount(long value)
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()
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()
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;- Specified by:
getHasVulnerabilitiesin interfaceScanRunOrBuilder- Returns:
- The hasVulnerabilities.
-
setHasVulnerabilities
public ScanRun.Builder setHasVulnerabilities(boolean value)
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()
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;- Returns:
- This builder for chaining.
-
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;- Specified by:
getProgressPercentin interfaceScanRunOrBuilder- Returns:
- The progressPercent.
-
setProgressPercent
public ScanRun.Builder setProgressPercent(int value)
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()
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()
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.v1beta.ScanRunErrorTrace error_trace = 10;- Specified by:
hasErrorTracein interfaceScanRunOrBuilder- Returns:
- Whether the errorTrace field is set.
-
getErrorTrace
public ScanRunErrorTrace getErrorTrace()
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.v1beta.ScanRunErrorTrace error_trace = 10;- Specified by:
getErrorTracein interfaceScanRunOrBuilder- Returns:
- The errorTrace.
-
setErrorTrace
public ScanRun.Builder setErrorTrace(ScanRunErrorTrace value)
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.v1beta.ScanRunErrorTrace error_trace = 10;
-
setErrorTrace
public ScanRun.Builder setErrorTrace(ScanRunErrorTrace.Builder builderForValue)
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.v1beta.ScanRunErrorTrace error_trace = 10;
-
mergeErrorTrace
public ScanRun.Builder mergeErrorTrace(ScanRunErrorTrace value)
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.v1beta.ScanRunErrorTrace error_trace = 10;
-
clearErrorTrace
public ScanRun.Builder clearErrorTrace()
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.v1beta.ScanRunErrorTrace error_trace = 10;
-
getErrorTraceBuilder
public ScanRunErrorTrace.Builder getErrorTraceBuilder()
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.v1beta.ScanRunErrorTrace error_trace = 10;
-
getErrorTraceOrBuilder
public ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder()
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.v1beta.ScanRunErrorTrace error_trace = 10;- Specified by:
getErrorTraceOrBuilderin interfaceScanRunOrBuilder
-
getWarningTracesList
public List<ScanRunWarningTrace> getWarningTracesList()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;- Specified by:
getWarningTracesListin interfaceScanRunOrBuilder
-
getWarningTracesCount
public int getWarningTracesCount()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;- Specified by:
getWarningTracesCountin interfaceScanRunOrBuilder
-
getWarningTraces
public ScanRunWarningTrace getWarningTraces(int index)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;- Specified by:
getWarningTracesin interfaceScanRunOrBuilder
-
setWarningTraces
public ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace value)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
setWarningTraces
public ScanRun.Builder setWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addWarningTraces
public ScanRun.Builder addWarningTraces(ScanRunWarningTrace value)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addWarningTraces
public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace value)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addWarningTraces
public ScanRun.Builder addWarningTraces(ScanRunWarningTrace.Builder builderForValue)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addWarningTraces
public ScanRun.Builder addWarningTraces(int index, ScanRunWarningTrace.Builder builderForValue)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addAllWarningTraces
public ScanRun.Builder addAllWarningTraces(Iterable<? extends ScanRunWarningTrace> values)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
clearWarningTraces
public ScanRun.Builder clearWarningTraces()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
removeWarningTraces
public ScanRun.Builder removeWarningTraces(int index)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
getWarningTracesBuilder
public ScanRunWarningTrace.Builder getWarningTracesBuilder(int index)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
getWarningTracesOrBuilder
public ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder(int index)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;- Specified by:
getWarningTracesOrBuilderin interfaceScanRunOrBuilder
-
getWarningTracesOrBuilderList
public List<? extends ScanRunWarningTraceOrBuilder> getWarningTracesOrBuilderList()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;- Specified by:
getWarningTracesOrBuilderListin interfaceScanRunOrBuilder
-
addWarningTracesBuilder
public ScanRunWarningTrace.Builder addWarningTracesBuilder()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
addWarningTracesBuilder
public ScanRunWarningTrace.Builder addWarningTracesBuilder(int index)
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
getWarningTracesBuilderList
public List<ScanRunWarningTrace.Builder> getWarningTracesBuilderList()
A list of warnings, if such are encountered during this scan run.
repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11;
-
setUnknownFields
public final ScanRun.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
mergeUnknownFields
public final ScanRun.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ScanRun.Builder>
-
-