Class SecurityPostureConfig.Builder (2.48.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.container.v1beta1.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

clearMode()

public SecurityPostureConfig.Builder clearMode()

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.

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.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

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

getMode()

public SecurityPostureConfig.Mode getMode()

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Returns
Type Description
SecurityPostureConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Returns
Type Description
int

The enum numeric value on the wire for mode.

getVulnerabilityMode()

public SecurityPostureConfig.VulnerabilityMode getVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Returns
Type Description
SecurityPostureConfig.VulnerabilityMode

The vulnerabilityMode.

getVulnerabilityModeValue()

public int getVulnerabilityModeValue()

Sets which mode to use for vulnerability scanning.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for vulnerabilityMode.

hasMode()

public boolean hasMode()

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Returns
Type Description
boolean

Whether the mode field is set.

hasVulnerabilityMode()

public boolean hasVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Returns
Type Description
boolean

Whether the vulnerabilityMode field is set.

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

setMode(SecurityPostureConfig.Mode value)

public SecurityPostureConfig.Builder setMode(SecurityPostureConfig.Mode value)

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Parameter
Name Description
value SecurityPostureConfig.Mode

The mode to set.

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.

setModeValue(int value)

public SecurityPostureConfig.Builder setModeValue(int value)

Sets which mode to use for Security Posture features.

optional .google.container.v1beta1.SecurityPostureConfig.Mode mode = 1;

Parameter
Name Description
value int

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

Returns
Type Description
SecurityPostureConfig.Builder

This builder for chaining.

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.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

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.

optional .google.container.v1beta1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

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.