Class ScanRun.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ScanRun.Builder>
com.google.cloud.websecurityscanner.v1alpha.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.GeneratedMessage.Builder<ScanRun.Builder>
implements ScanRunOrBuilder
A ScanRun is a output-only resource representing an actual run of the scan.Protobuf type
google.cloud.websecurityscanner.v1alpha.ScanRun-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.The execution state of the ScanRun.Whether the scan run has found any vulnerabilities.The resource name of the ScanRun.The percentage of total completion ranging from 0 to 100.The result state of the ScanRun.The time at which the ScanRun started.The number of URLs crawled during this ScanRun.The number of URLs tested during this ScanRun.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.com.google.protobuf.Timestamp.BuilderThe time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.com.google.protobuf.TimestampOrBuilderThe time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.The execution state of the ScanRun.intThe execution state of the ScanRun.booleanWhether the scan run has found any vulnerabilities.getName()The resource name of the ScanRun.com.google.protobuf.ByteStringThe resource name of the ScanRun.intThe percentage of total completion ranging from 0 to 100.The result state of the ScanRun.intThe result state of the ScanRun.com.google.protobuf.TimestampThe time at which the ScanRun started.com.google.protobuf.Timestamp.BuilderThe time at which the ScanRun started.com.google.protobuf.TimestampOrBuilderThe time at which the ScanRun started.longThe number of URLs crawled during this ScanRun.longThe number of URLs tested during this ScanRun.booleanThe time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.booleanThe time at which the ScanRun started.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(com.google.protobuf.Timestamp value) The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) The time at which the ScanRun started.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.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.The execution state of the ScanRun.setExecutionStateValue(int value) The execution state of the ScanRun.setHasVulnerabilities(boolean value) Whether the scan run has found any vulnerabilities.The resource name of the ScanRun.setNameBytes(com.google.protobuf.ByteString value) The resource name of the ScanRun.setProgressPercent(int value) The percentage of total completion ranging from 0 to 100.The result state of the ScanRun.setResultStateValue(int value) The result state of the ScanRun.setStartTime(com.google.protobuf.Timestamp value) The time at which the ScanRun started.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The time at which the ScanRun started.setUrlsCrawledCount(long value) The number of URLs crawled during this ScanRun.setUrlsTestedCount(long value) The number of URLs tested during this ScanRun.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ScanRun.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ScanRun.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ScanRun.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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.v1alpha.ScanRun.ExecutionState execution_state = 2;- Specified by:
getExecutionStateValuein interfaceScanRunOrBuilder- Returns:
- The enum numeric value on the wire for executionState.
-
setExecutionStateValue
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;- Parameters:
value- The enum numeric value on the wire for executionState to set.- Returns:
- This builder for chaining.
-
getExecutionState
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;- Specified by:
getExecutionStatein interfaceScanRunOrBuilder- Returns:
- The executionState.
-
setExecutionState
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;- Parameters:
value- The executionState to set.- Returns:
- This builder for chaining.
-
clearExecutionState
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.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.v1alpha.ScanRun.ResultState result_state = 3;- Specified by:
getResultStateValuein interfaceScanRunOrBuilder- Returns:
- The enum numeric value on the wire for resultState.
-
setResultStateValue
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3;- Parameters:
value- The enum numeric value on the wire for resultState to set.- Returns:
- This builder for chaining.
-
getResultState
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3;- Specified by:
getResultStatein interfaceScanRunOrBuilder- Returns:
- The resultState.
-
setResultState
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3;- Parameters:
value- The resultState to set.- Returns:
- This builder for chaining.
-
clearResultState
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3;- 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
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4; -
setStartTime
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4; -
mergeStartTime
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4; -
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
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
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
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
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
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
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
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
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
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;- Parameters:
value- The hasVulnerabilities to set.- Returns:
- This builder for chaining.
-
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
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
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.
-