public static final class ScanConfig.Builder extends GeneratedMessageV3.Builder<ScanConfig.Builder> implements ScanConfigOrBuilder
A scan configuration specifies whether Cloud components in a project have a particular type of analysis being run. For example, it can configure whether vulnerability scanning is being done on Docker images or not.
Protobuf type google.devtools.containeranalysis.v1beta1.ScanConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ScanConfig.BuilderImplements
ScanConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ScanConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ScanConfig.Builder |
build()
public ScanConfig build()
Type | Description |
ScanConfig |
buildPartial()
public ScanConfig buildPartial()
Type | Description |
ScanConfig |
clear()
public ScanConfig.Builder clear()
Type | Description |
ScanConfig.Builder |
clearCreateTime()
public ScanConfig.Builder clearCreateTime()
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
ScanConfig.Builder |
clearDescription()
public ScanConfig.Builder clearDescription()
Output only. A human-readable description of what the scan configuration does.
string description = 2;
Type | Description |
ScanConfig.Builder | This builder for chaining. |
clearEnabled()
public ScanConfig.Builder clearEnabled()
Whether the scan is enabled.
bool enabled = 3;
Type | Description |
ScanConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ScanConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ScanConfig.Builder |
clearName()
public ScanConfig.Builder clearName()
Output only. The name of the scan configuration in the form of
projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]
.
string name = 1;
Type | Description |
ScanConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ScanConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ScanConfig.Builder |
clearUpdateTime()
public ScanConfig.Builder clearUpdateTime()
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Type | Description |
ScanConfig.Builder |
clone()
public ScanConfig.Builder clone()
Type | Description |
ScanConfig.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public ScanConfig getDefaultInstanceForType()
Type | Description |
ScanConfig |
getDescription()
public String getDescription()
Output only. A human-readable description of what the scan configuration does.
string description = 2;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. A human-readable description of what the scan configuration does.
string description = 2;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnabled()
public boolean getEnabled()
Whether the scan is enabled.
bool enabled = 3;
Type | Description |
boolean | The enabled. |
getName()
public String getName()
Output only. The name of the scan configuration in the form of
projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]
.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The name of the scan configuration in the form of
projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]
.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Type | Description |
boolean | Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public ScanConfig.Builder mergeCreateTime(Timestamp value)
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
ScanConfig.Builder |
mergeFrom(ScanConfig other)
public ScanConfig.Builder mergeFrom(ScanConfig other)
Name | Description |
other | ScanConfig |
Type | Description |
ScanConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ScanConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ScanConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ScanConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ScanConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ScanConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ScanConfig.Builder |
mergeUpdateTime(Timestamp value)
public ScanConfig.Builder mergeUpdateTime(Timestamp value)
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
ScanConfig.Builder |
setCreateTime(Timestamp value)
public ScanConfig.Builder setCreateTime(Timestamp value)
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
ScanConfig.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public ScanConfig.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time this scan config was created.
.google.protobuf.Timestamp create_time = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
ScanConfig.Builder |
setDescription(String value)
public ScanConfig.Builder setDescription(String value)
Output only. A human-readable description of what the scan configuration does.
string description = 2;
Name | Description |
value | String The description to set. |
Type | Description |
ScanConfig.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public ScanConfig.Builder setDescriptionBytes(ByteString value)
Output only. A human-readable description of what the scan configuration does.
string description = 2;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
ScanConfig.Builder | This builder for chaining. |
setEnabled(boolean value)
public ScanConfig.Builder setEnabled(boolean value)
Whether the scan is enabled.
bool enabled = 3;
Name | Description |
value | boolean The enabled to set. |
Type | Description |
ScanConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ScanConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ScanConfig.Builder |
setName(String value)
public ScanConfig.Builder setName(String value)
Output only. The name of the scan configuration in the form of
projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]
.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
ScanConfig.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ScanConfig.Builder setNameBytes(ByteString value)
Output only. The name of the scan configuration in the form of
projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]
.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ScanConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ScanConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ScanConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ScanConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ScanConfig.Builder |
setUpdateTime(Timestamp value)
public ScanConfig.Builder setUpdateTime(Timestamp value)
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Name | Description |
value | Timestamp |
Type | Description |
ScanConfig.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public ScanConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time this scan config was last updated.
.google.protobuf.Timestamp update_time = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
ScanConfig.Builder |