Class ScanConfig.Builder (2.21.0)

publicstaticfinalclass ScanConfig.BuilderextendsGeneratedMessageV3.Builder<ScanConfig.Builder>implementsScanConfigOrBuilder

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicScanConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

build()

publicScanConfigbuild()
Returns
Type Description
ScanConfig

buildPartial()

publicScanConfigbuildPartial()
Returns
Type Description
ScanConfig

clear()

publicScanConfig.Builderclear()
Returns
Type Description
ScanConfig.Builder
Overrides

clearCreateTime()

publicScanConfig.BuilderclearCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
ScanConfig.Builder

clearDescription()

publicScanConfig.BuilderclearDescription()

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()

publicScanConfig.BuilderclearEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
Type Description
ScanConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicScanConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ScanConfig.Builder
Overrides

clearName()

publicScanConfig.BuilderclearName()

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)

publicScanConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ScanConfig.Builder
Overrides

clearUpdateTime()

publicScanConfig.BuilderclearUpdateTime()

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

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
ScanConfig.Builder

clone()

publicScanConfig.Builderclone()
Returns
Type Description
ScanConfig.Builder
Overrides

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time this scan config was created.

.google.protobuf.Timestamp create_time = 4;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicScanConfiggetDefaultInstanceForType()
Returns
Type Description
ScanConfig

getDescription()

publicStringgetDescription()

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

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

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

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

publicbooleangetEnabled()

Whether the scan is enabled.

bool enabled = 3;

Returns
Type Description
boolean

The enabled.

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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()

publicTimestampgetUpdateTime()

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

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

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

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

publicbooleanhasCreateTime()

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()

publicbooleanhasUpdateTime()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicScanConfig.BuildermergeCreateTime(Timestampvalue)

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)

publicScanConfig.BuildermergeFrom(ScanConfigother)
Parameter
Name Description
other ScanConfig
Returns
Type Description
ScanConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicScanConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ScanConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicScanConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ScanConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalScanConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Builder
Overrides

mergeUpdateTime(Timestamp value)

publicScanConfig.BuildermergeUpdateTime(Timestampvalue)

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)

publicScanConfig.BuildersetCreateTime(Timestampvalue)

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)

publicScanConfig.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

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)

publicScanConfig.BuildersetDescription(Stringvalue)

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)

publicScanConfig.BuildersetDescriptionBytes(ByteStringvalue)

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)

publicScanConfig.BuildersetEnabled(booleanvalue)

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)

publicScanConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

setName(String value)

publicScanConfig.BuildersetName(Stringvalue)

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)

publicScanConfig.BuildersetNameBytes(ByteStringvalue)

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)

publicScanConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ScanConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalScanConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScanConfig.Builder
Overrides

setUpdateTime(Timestamp value)

publicScanConfig.BuildersetUpdateTime(Timestampvalue)

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)

publicScanConfig.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.