Package com.google.container.v1
Class ClusterPolicyConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
com.google.container.v1.ClusterPolicyConfig.Builder
- All Implemented Interfaces:
ClusterPolicyConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ClusterPolicyConfig
public static final class ClusterPolicyConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
implements ClusterPolicyConfigOrBuilder
ClusterPolicyConfig stores the configuration for cluster wide policies.Protobuf type
google.container.v1.ClusterPolicyConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Denotes preventing standard node pools and requiring only autopilot node pools.Denotes preventing impersonation and CSRs for GKE System users.Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .Denotes preventing unsafe webhooks.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDenotes preventing standard node pools and requiring only autopilot node pools.booleanDenotes preventing impersonation and CSRs for GKE System users.booleanDenotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .booleanDenotes preventing unsafe webhooks.booleanDenotes preventing standard node pools and requiring only autopilot node pools.booleanDenotes preventing impersonation and CSRs for GKE System users.booleanDenotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .booleanDenotes preventing unsafe webhooks.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ClusterPolicyConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setNoStandardNodePools(boolean value) Denotes preventing standard node pools and requiring only autopilot node pools.setNoSystemImpersonation(boolean value) Denotes preventing impersonation and CSRs for GKE System users.setNoSystemMutation(boolean value) Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .setNoUnsafeWebhooks(boolean value) Denotes preventing unsafe webhooks.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterPolicyConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
-
mergeFrom
public ClusterPolicyConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClusterPolicyConfig.Builder>- Throws:
IOException
-
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;- Specified by:
hasNoSystemMutationin interfaceClusterPolicyConfigOrBuilder- Returns:
- Whether the noSystemMutation field is set.
-
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;- Specified by:
getNoSystemMutationin interfaceClusterPolicyConfigOrBuilder- Returns:
- The noSystemMutation.
-
setNoSystemMutation
Denotes that preventing creation and mutation of resources in GKE managed namespaces and cluster-scoped GKE managed resources .
optional bool no_system_mutation = 1;- Parameters:
value- The noSystemMutation to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasNoSystemImpersonation
public boolean hasNoSystemImpersonation()Denotes preventing impersonation and CSRs for GKE System users.
optional bool no_system_impersonation = 2;- Specified by:
hasNoSystemImpersonationin interfaceClusterPolicyConfigOrBuilder- Returns:
- Whether the noSystemImpersonation field is set.
-
getNoSystemImpersonation
public boolean getNoSystemImpersonation()Denotes preventing impersonation and CSRs for GKE System users.
optional bool no_system_impersonation = 2;- Specified by:
getNoSystemImpersonationin interfaceClusterPolicyConfigOrBuilder- Returns:
- The noSystemImpersonation.
-
setNoSystemImpersonation
Denotes preventing impersonation and CSRs for GKE System users.
optional bool no_system_impersonation = 2;- Parameters:
value- The noSystemImpersonation to set.- Returns:
- This builder for chaining.
-
clearNoSystemImpersonation
Denotes preventing impersonation and CSRs for GKE System users.
optional bool no_system_impersonation = 2;- Returns:
- This builder for chaining.
-
hasNoUnsafeWebhooks
public boolean hasNoUnsafeWebhooks()Denotes preventing unsafe webhooks.
optional bool no_unsafe_webhooks = 3;- Specified by:
hasNoUnsafeWebhooksin interfaceClusterPolicyConfigOrBuilder- Returns:
- Whether the noUnsafeWebhooks field is set.
-
getNoUnsafeWebhooks
public boolean getNoUnsafeWebhooks()Denotes preventing unsafe webhooks.
optional bool no_unsafe_webhooks = 3;- Specified by:
getNoUnsafeWebhooksin interfaceClusterPolicyConfigOrBuilder- Returns:
- The noUnsafeWebhooks.
-
setNoUnsafeWebhooks
Denotes preventing unsafe webhooks.
optional bool no_unsafe_webhooks = 3;- Parameters:
value- The noUnsafeWebhooks to set.- Returns:
- This builder for chaining.
-
clearNoUnsafeWebhooks
Denotes preventing unsafe webhooks.
optional bool no_unsafe_webhooks = 3;- Returns:
- This builder for chaining.
-
hasNoStandardNodePools
public boolean hasNoStandardNodePools()Denotes preventing standard node pools and requiring only autopilot node pools.
optional bool no_standard_node_pools = 5;- Specified by:
hasNoStandardNodePoolsin interfaceClusterPolicyConfigOrBuilder- Returns:
- Whether the noStandardNodePools field is set.
-
getNoStandardNodePools
public boolean getNoStandardNodePools()Denotes preventing standard node pools and requiring only autopilot node pools.
optional bool no_standard_node_pools = 5;- Specified by:
getNoStandardNodePoolsin interfaceClusterPolicyConfigOrBuilder- Returns:
- The noStandardNodePools.
-
setNoStandardNodePools
Denotes preventing standard node pools and requiring only autopilot node pools.
optional bool no_standard_node_pools = 5;- Parameters:
value- The noStandardNodePools to set.- Returns:
- This builder for chaining.
-
clearNoStandardNodePools
Denotes preventing standard node pools and requiring only autopilot node pools.
optional bool no_standard_node_pools = 5;- Returns:
- This builder for chaining.
-