Class SecurityPostureConfig.Builder (0.53.0)

public static final class SecurityPostureConfig.Builder extends GeneratedMessageV3.Builder<SecurityPostureConfig.Builder> implements SecurityPostureConfigOrBuilder

SecurityPostureConfig defines the flags needed to enable/disable features for the Security Posture API.

Protobuf type google.cloud.gkemulticloud.v1.SecurityPostureConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPostureConfig build()
Returns
Type Description
SecurityPostureConfig

buildPartial()

public SecurityPostureConfig buildPartial()
Returns
Type Description
SecurityPostureConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVulnerabilityMode()

public SecurityPostureConfig.Builder clearVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

.google.cloud.gkemulticloud.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 1;

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SecurityPostureConfig getDefaultInstanceForType()
Returns
Type Description
SecurityPostureConfig

getDescriptorForType()

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

getVulnerabilityMode()

public SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

.google.cloud.gkemulticloud.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 1;

Returns
Type Description
SecurityPostureConfig.VulnerabilityMode

The vulnerabilityMode.

getVulnerabilityModeValue()

public int getVulnerabilityModeValue()

Sets which mode to use for vulnerability scanning.

.google.cloud.gkemulticloud.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for vulnerabilityMode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPostureConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityPostureConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityPostureConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVulnerabilityMode(SecurityPostureConfig.VulnerabilityMode value)

public SecurityPostureConfig.Builder setVulnerabilityMode(SecurityPostureConfig.VulnerabilityMode value)

Sets which mode to use for vulnerability scanning.

.google.cloud.gkemulticloud.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 1;

Parameter
Name Description
value SecurityPostureConfig.VulnerabilityMode

The vulnerabilityMode to set.

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.

setVulnerabilityModeValue(int value)

public SecurityPostureConfig.Builder setVulnerabilityModeValue(int value)

Sets which mode to use for vulnerability scanning.

.google.cloud.gkemulticloud.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for vulnerabilityMode to set.

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.