Class PodSecurityPolicyConfig.Builder (2.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PodSecurityPolicyConfig build()
Returns
TypeDescription
PodSecurityPolicyConfig

buildPartial()

public PodSecurityPolicyConfig buildPartial()
Returns
TypeDescription
PodSecurityPolicyConfig

clear()

public PodSecurityPolicyConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
PodSecurityPolicyConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PodSecurityPolicyConfig getDefaultInstanceForType()
Returns
TypeDescription
PodSecurityPolicyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The enabled.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PodSecurityPolicyConfig other)

public PodSecurityPolicyConfig.Builder mergeFrom(PodSecurityPolicyConfig other)
Parameter
NameDescription
otherPodSecurityPolicyConfig
Returns
TypeDescription
PodSecurityPolicyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PodSecurityPolicyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
PodSecurityPolicyConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public PodSecurityPolicyConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PodSecurityPolicyConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PodSecurityPolicyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PodSecurityPolicyConfig.Builder
Overrides