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.Protobuf type
google.cloud.websecurityscanner.v1alpha.ScanRun
Modifier and Type | Method and Description |
---|---|
ScanRun.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
ScanRun |
build() |
ScanRun |
buildPartial() |
ScanRun.Builder |
clear() |
ScanRun.Builder |
clearEndTime()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.Builder |
clearExecutionState()
The execution state of the ScanRun.
|
ScanRun.Builder |
clearField(Descriptors.FieldDescriptor field) |
ScanRun.Builder |
clearHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
|
ScanRun.Builder |
clearName()
The resource name of the ScanRun.
|
ScanRun.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ScanRun.Builder |
clearProgressPercent()
The percentage of total completion ranging from 0 to 100.
|
ScanRun.Builder |
clearResultState()
The result state of the ScanRun.
|
ScanRun.Builder |
clearStartTime()
The time at which the ScanRun started.
|
ScanRun.Builder |
clearUrlsCrawledCount()
The number of URLs crawled during this ScanRun.
|
ScanRun.Builder |
clearUrlsTestedCount()
The number of URLs tested during this ScanRun.
|
ScanRun.Builder |
clone() |
ScanRun |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getEndTime()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
Timestamp.Builder |
getEndTimeBuilder()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
TimestampOrBuilder |
getEndTimeOrBuilder()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.ExecutionState |
getExecutionState()
The execution state of the ScanRun.
|
int |
getExecutionStateValue()
The execution state of the ScanRun.
|
boolean |
getHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
|
String |
getName()
The resource name of the ScanRun.
|
ByteString |
getNameBytes()
The resource name of the ScanRun.
|
int |
getProgressPercent()
The percentage of total completion ranging from 0 to 100.
|
ScanRun.ResultState |
getResultState()
The result state of the ScanRun.
|
int |
getResultStateValue()
The result state of the ScanRun.
|
Timestamp |
getStartTime()
The time at which the ScanRun started.
|
Timestamp.Builder |
getStartTimeBuilder()
The time at which the ScanRun started.
|
TimestampOrBuilder |
getStartTimeOrBuilder()
The time at which the ScanRun started.
|
long |
getUrlsCrawledCount()
The number of URLs crawled during this ScanRun.
|
long |
getUrlsTestedCount()
The number of URLs tested during this ScanRun.
|
boolean |
hasEndTime()
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
boolean |
hasStartTime()
The time at which the ScanRun started.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ScanRun.Builder |
mergeEndTime(Timestamp value)
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ScanRun.Builder |
mergeFrom(Message other) |
ScanRun.Builder |
mergeFrom(ScanRun other) |
ScanRun.Builder |
mergeStartTime(Timestamp value)
The time at which the ScanRun started.
|
ScanRun.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ScanRun.Builder |
setEndTime(Timestamp.Builder builderForValue)
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.Builder |
setEndTime(Timestamp value)
The time at which the ScanRun reached termination state - that the ScanRun
is either finished or stopped by user.
|
ScanRun.Builder |
setExecutionState(ScanRun.ExecutionState value)
The execution state of the ScanRun.
|
ScanRun.Builder |
setExecutionStateValue(int value)
The execution state of the ScanRun.
|
ScanRun.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
ScanRun.Builder |
setHasVulnerabilities(boolean value)
Whether the scan run has found any vulnerabilities.
|
ScanRun.Builder |
setName(String value)
The resource name of the ScanRun.
|
ScanRun.Builder |
setNameBytes(ByteString value)
The resource name of the ScanRun.
|
ScanRun.Builder |
setProgressPercent(int value)
The percentage of total completion ranging from 0 to 100.
|
ScanRun.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
ScanRun.Builder |
setResultState(ScanRun.ResultState value)
The result state of the ScanRun.
|
ScanRun.Builder |
setResultStateValue(int value)
The result state of the ScanRun.
|
ScanRun.Builder |
setStartTime(Timestamp.Builder builderForValue)
The time at which the ScanRun started.
|
ScanRun.Builder |
setStartTime(Timestamp value)
The time at which the ScanRun started.
|
ScanRun.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
ScanRun.Builder |
setUrlsCrawledCount(long value)
The number of URLs crawled during this ScanRun.
|
ScanRun.Builder |
setUrlsTestedCount(long value)
The number of URLs tested during this 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()
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()
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)
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()
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)
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()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
getExecutionStateValue
in interface ScanRunOrBuilder
public ScanRun.Builder setExecutionStateValue(int value)
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
value
- The enum numeric value on the wire for executionState to set.public ScanRun.ExecutionState getExecutionState()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
getExecutionState
in interface ScanRunOrBuilder
public ScanRun.Builder setExecutionState(ScanRun.ExecutionState value)
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
value
- The executionState to set.public ScanRun.Builder clearExecutionState()
The execution state of the ScanRun.
.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2;
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;
getResultStateValue
in interface ScanRunOrBuilder
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.v1alpha.ScanRun.ResultState result_state = 3;
value
- The enum numeric value on the wire for resultState to set.public ScanRun.ResultState 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;
getResultState
in interface ScanRunOrBuilder
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.v1alpha.ScanRun.ResultState result_state = 3;
value
- The resultState to set.public ScanRun.Builder 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;
public boolean hasStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
hasStartTime
in interface ScanRunOrBuilder
public Timestamp getStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTime
in interface ScanRunOrBuilder
public ScanRun.Builder setStartTime(Timestamp value)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder setStartTime(Timestamp.Builder builderForValue)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder mergeStartTime(Timestamp value)
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public ScanRun.Builder clearStartTime()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public Timestamp.Builder getStartTimeBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
public TimestampOrBuilder getStartTimeOrBuilder()
The time at which the ScanRun started.
.google.protobuf.Timestamp start_time = 4;
getStartTimeOrBuilder
in interface ScanRunOrBuilder
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;
hasEndTime
in interface ScanRunOrBuilder
public 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;
getEndTime
in interface ScanRunOrBuilder
public ScanRun.Builder setEndTime(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;
public ScanRun.Builder setEndTime(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;
public ScanRun.Builder mergeEndTime(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;
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;
public 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;
public 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;
getEndTimeOrBuilder
in interface ScanRunOrBuilder
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;
getUrlsCrawledCount
in interface ScanRunOrBuilder
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;
value
- The urlsCrawledCount to set.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;
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;
getUrlsTestedCount
in interface ScanRunOrBuilder
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;
value
- The urlsTestedCount to set.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;
public boolean getHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
getHasVulnerabilities
in interface ScanRunOrBuilder
public ScanRun.Builder setHasVulnerabilities(boolean value)
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
value
- The hasVulnerabilities to set.public ScanRun.Builder clearHasVulnerabilities()
Whether the scan run has found any vulnerabilities.
bool has_vulnerabilities = 8;
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;
getProgressPercent
in interface ScanRunOrBuilder
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;
value
- The progressPercent to set.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;
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.