- 2.52.0 (latest)
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.10
- 2.3.1
- 2.2.16
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()
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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
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;
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ScanConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ScanConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ScanConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ScanConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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;
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 |