Class SecurityPostureConfig.Builder (2.32.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.v1.SecurityPostureConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPostureConfig build()
Returns
TypeDescription
SecurityPostureConfig

buildPartial()

public SecurityPostureConfig buildPartial()
Returns
TypeDescription
SecurityPostureConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SecurityPostureConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityPostureConfig.Builder
Overrides

clearMode()

public SecurityPostureConfig.Builder clearMode()

Sets which mode to use for Security Posture features.

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

Returns
TypeDescription
SecurityPostureConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPostureConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityPostureConfig.Builder
Overrides

clearVulnerabilityMode()

public SecurityPostureConfig.Builder clearVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

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

Returns
TypeDescription
SecurityPostureConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SecurityPostureConfig getDefaultInstanceForType()
Returns
TypeDescription
SecurityPostureConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMode()

public SecurityPostureConfig.Mode getMode()

Sets which mode to use for Security Posture features.

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

Returns
TypeDescription
SecurityPostureConfig.Mode

The mode.

getModeValue()

public int getModeValue()

Sets which mode to use for Security Posture features.

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

Returns
TypeDescription
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.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Returns
TypeDescription
SecurityPostureConfig.VulnerabilityMode

The vulnerabilityMode.

getVulnerabilityModeValue()

public int getVulnerabilityModeValue()

Sets which mode to use for vulnerability scanning.

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

Returns
TypeDescription
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.v1.SecurityPostureConfig.Mode mode = 1;

Returns
TypeDescription
boolean

Whether the mode field is set.

hasVulnerabilityMode()

public boolean hasVulnerabilityMode()

Sets which mode to use for vulnerability scanning.

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

Returns
TypeDescription
boolean

Whether the vulnerabilityMode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPostureConfig other)

public SecurityPostureConfig.Builder mergeFrom(SecurityPostureConfig other)
Parameter
NameDescription
otherSecurityPostureConfig
Returns
TypeDescription
SecurityPostureConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPostureConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPostureConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPostureConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.SecurityPostureConfig.Mode mode = 1;

Parameter
NameDescription
valueSecurityPostureConfig.Mode

The mode to set.

Returns
TypeDescription
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.v1.SecurityPostureConfig.Mode mode = 1;

Parameter
NameDescription
valueint

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPostureConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Parameter
NameDescription
valueSecurityPostureConfig.VulnerabilityMode

The vulnerabilityMode to set.

Returns
TypeDescription
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.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SecurityPostureConfig.Builder

This builder for chaining.