Class PodSecurityPolicyConfig.Builder (2.57.0)

public static final class PodSecurityPolicyConfig.Builder extends GeneratedMessageV3.Builder<PodSecurityPolicyConfig.Builder> implements PodSecurityPolicyConfigOrBuilder

Configuration for the PodSecurityPolicy feature.

Protobuf type google.container.v1beta1.PodSecurityPolicyConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PodSecurityPolicyConfig build()
Returns
Type Description
PodSecurityPolicyConfig

buildPartial()

public PodSecurityPolicyConfig buildPartial()
Returns
Type Description
PodSecurityPolicyConfig

clear()

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

clearEnabled()

public PodSecurityPolicyConfig.Builder clearEnabled()

Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.

bool enabled = 1;

Returns
Type Description
PodSecurityPolicyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PodSecurityPolicyConfig getDefaultInstanceForType()
Returns
Type Description
PodSecurityPolicyConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PodSecurityPolicyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnabled(boolean value)

public PodSecurityPolicyConfig.Builder setEnabled(boolean value)

Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
PodSecurityPolicyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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