Class ScanConfig.Builder (2.44.0)

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

Implements

ScanConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

build()

public ScanConfig build()
Returns
Type Description
ScanConfig

buildPartial()

public ScanConfig buildPartial()
Returns
Type Description
ScanConfig

clear()

public ScanConfig.Builder clear()
Returns
Type Description
ScanConfig.Builder
Overrides

clearCreateTime()

public ScanConfig.Builder clearCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
ScanConfig.Builder

clearDescription()

public ScanConfig.Builder clearDescription()

Output only. A human-readable description of what the scan configuration does.

string description = 2;

Returns
Type Description
ScanConfig.Builder

This builder for chaining.

clearEnabled()

public ScanConfig.Builder clearEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
Type Description
ScanConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScanConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ScanConfig.Builder
Overrides

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;

Returns
Type Description
ScanConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ScanConfig.Builder
Overrides

clearUpdateTime()

public ScanConfig.Builder clearUpdateTime()

Output only. The time this scan config was last updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
ScanConfig.Builder

clone()

public ScanConfig.Builder clone()
Returns
Type Description
ScanConfig.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
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;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ScanConfig getDefaultInstanceForType()
Returns
Type Description
ScanConfig

getDescription()

public String getDescription()

Output only. A human-readable description of what the scan configuration does.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. A human-readable description of what the scan configuration does.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
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;

Returns
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;

Returns
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;

Returns
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;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time this scan config was last updated.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
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;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ScanConfig.Builder mergeCreateTime(Timestamp value)

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
ScanConfig.Builder

mergeFrom(ScanConfig other)

public ScanConfig.Builder mergeFrom(ScanConfig other)
Parameter
Name Description
other ScanConfig
Returns
Type Description
ScanConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ScanConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ScanConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Builder
Overrides

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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
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;

Parameter
Name Description
value String

The description to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
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;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
ScanConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

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;

Parameter
Name Description
value String

The name to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Builder
Overrides

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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ScanConfig.Builder