Class ScanConfig.Builder (2.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScanConfig.Builder
Overrides

build()

public ScanConfig build()
Returns
TypeDescription
ScanConfig

buildPartial()

public ScanConfig buildPartial()
Returns
TypeDescription
ScanConfig

clear()

public ScanConfig.Builder clear()
Returns
TypeDescription
ScanConfig.Builder
Overrides

clearCreateTime()

public ScanConfig.Builder clearCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
ScanConfig.Builder

clearDescription()

public ScanConfig.Builder clearDescription()

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

string description = 2;

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearEnabled()

public ScanConfig.Builder clearEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScanConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ScanConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScanConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ScanConfig.Builder

clone()

public ScanConfig.Builder clone()
Returns
TypeDescription
ScanConfig.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ScanConfig getDefaultInstanceForType()
Returns
TypeDescription
ScanConfig

getDescription()

public String getDescription()

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

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

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

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

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

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ScanConfig.Builder

mergeFrom(ScanConfig other)

public ScanConfig.Builder mergeFrom(ScanConfig other)
Parameter
NameDescription
otherScanConfig
Returns
TypeDescription
ScanConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScanConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScanConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScanConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ScanConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setEnabled(boolean value)

public ScanConfig.Builder setEnabled(boolean value)

Whether the scan is enabled.

bool enabled = 3;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
ScanConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScanConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScanConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ScanConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ScanConfig.Builder