Class ClusterPolicyConfig.Builder (2.96.0)

public static final class ClusterPolicyConfig.Builder extends GeneratedMessage.Builder<ClusterPolicyConfig.Builder> implements ClusterPolicyConfigOrBuilder

ClusterPolicyConfig stores the configuration for cluster wide policies.

Protobuf type google.container.v1beta1.ClusterPolicyConfig

Static Methods

getDescriptor()

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

Methods

build()

public ClusterPolicyConfig build()
Returns
Type Description
ClusterPolicyConfig

buildPartial()

public ClusterPolicyConfig buildPartial()
Returns
Type Description
ClusterPolicyConfig

clear()

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

clearNoStandardNodePools()

public ClusterPolicyConfig.Builder clearNoStandardNodePools()

Denotes preventing standard node pools and requiring only autopilot node pools.

optional bool no_standard_node_pools = 5;

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

clearNoSystemImpersonation()

public ClusterPolicyConfig.Builder clearNoSystemImpersonation()

Denotes preventing impersonation and CSRs for GKE System users.

optional bool no_system_impersonation = 2;

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

clearNoSystemMutation()

public ClusterPolicyConfig.Builder clearNoSystemMutation()

Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .

optional bool no_system_mutation = 1;

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

clearNoUnsafeWebhooks()

public ClusterPolicyConfig.Builder clearNoUnsafeWebhooks()

Denotes preventing unsafe webhooks.

optional bool no_unsafe_webhooks = 3;

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ClusterPolicyConfig getDefaultInstanceForType()
Returns
Type Description
ClusterPolicyConfig

getDescriptorForType()

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

getNoStandardNodePools()

public boolean getNoStandardNodePools()

Denotes preventing standard node pools and requiring only autopilot node pools.

optional bool no_standard_node_pools = 5;

Returns
Type Description
boolean

The noStandardNodePools.

getNoSystemImpersonation()

public boolean getNoSystemImpersonation()

Denotes preventing impersonation and CSRs for GKE System users.

optional bool no_system_impersonation = 2;

Returns
Type Description
boolean

The noSystemImpersonation.

getNoSystemMutation()

public boolean getNoSystemMutation()

Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .

optional bool no_system_mutation = 1;

Returns
Type Description
boolean

The noSystemMutation.

getNoUnsafeWebhooks()

public boolean getNoUnsafeWebhooks()

Denotes preventing unsafe webhooks.

optional bool no_unsafe_webhooks = 3;

Returns
Type Description
boolean

The noUnsafeWebhooks.

hasNoStandardNodePools()

public boolean hasNoStandardNodePools()

Denotes preventing standard node pools and requiring only autopilot node pools.

optional bool no_standard_node_pools = 5;

Returns
Type Description
boolean

Whether the noStandardNodePools field is set.

hasNoSystemImpersonation()

public boolean hasNoSystemImpersonation()

Denotes preventing impersonation and CSRs for GKE System users.

optional bool no_system_impersonation = 2;

Returns
Type Description
boolean

Whether the noSystemImpersonation field is set.

hasNoSystemMutation()

public boolean hasNoSystemMutation()

Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .

optional bool no_system_mutation = 1;

Returns
Type Description
boolean

Whether the noSystemMutation field is set.

hasNoUnsafeWebhooks()

public boolean hasNoUnsafeWebhooks()

Denotes preventing unsafe webhooks.

optional bool no_unsafe_webhooks = 3;

Returns
Type Description
boolean

Whether the noUnsafeWebhooks field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterPolicyConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNoStandardNodePools(boolean value)

public ClusterPolicyConfig.Builder setNoStandardNodePools(boolean value)

Denotes preventing standard node pools and requiring only autopilot node pools.

optional bool no_standard_node_pools = 5;

Parameter
Name Description
value boolean

The noStandardNodePools to set.

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

setNoSystemImpersonation(boolean value)

public ClusterPolicyConfig.Builder setNoSystemImpersonation(boolean value)

Denotes preventing impersonation and CSRs for GKE System users.

optional bool no_system_impersonation = 2;

Parameter
Name Description
value boolean

The noSystemImpersonation to set.

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

setNoSystemMutation(boolean value)

public ClusterPolicyConfig.Builder setNoSystemMutation(boolean value)

Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .

optional bool no_system_mutation = 1;

Parameter
Name Description
value boolean

The noSystemMutation to set.

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.

setNoUnsafeWebhooks(boolean value)

public ClusterPolicyConfig.Builder setNoUnsafeWebhooks(boolean value)

Denotes preventing unsafe webhooks.

optional bool no_unsafe_webhooks = 3;

Parameter
Name Description
value boolean

The noUnsafeWebhooks to set.

Returns
Type Description
ClusterPolicyConfig.Builder

This builder for chaining.