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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ClusterPolicyConfig.Builder>
    • getDefaultInstanceForType

      public ClusterPolicyConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ClusterPolicyConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ClusterPolicyConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ClusterPolicyConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClusterPolicyConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasNoSystemMutation in interface ClusterPolicyConfigOrBuilder
      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:
      getNoSystemMutation in interface ClusterPolicyConfigOrBuilder
      Returns:
      The noSystemMutation.
    • setNoSystemMutation

      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;
      Parameters:
      value - The noSystemMutation to set.
      Returns:
      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:
      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:
      hasNoSystemImpersonation in interface ClusterPolicyConfigOrBuilder
      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:
      getNoSystemImpersonation in interface ClusterPolicyConfigOrBuilder
      Returns:
      The noSystemImpersonation.
    • setNoSystemImpersonation

      public ClusterPolicyConfig.Builder setNoSystemImpersonation(boolean value)
       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

      public ClusterPolicyConfig.Builder 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:
      hasNoUnsafeWebhooks in interface ClusterPolicyConfigOrBuilder
      Returns:
      Whether the noUnsafeWebhooks field is set.
    • getNoUnsafeWebhooks

      public boolean getNoUnsafeWebhooks()
       Denotes preventing unsafe webhooks.
       
      optional bool no_unsafe_webhooks = 3;
      Specified by:
      getNoUnsafeWebhooks in interface ClusterPolicyConfigOrBuilder
      Returns:
      The noUnsafeWebhooks.
    • setNoUnsafeWebhooks

      public ClusterPolicyConfig.Builder setNoUnsafeWebhooks(boolean value)
       Denotes preventing unsafe webhooks.
       
      optional bool no_unsafe_webhooks = 3;
      Parameters:
      value - The noUnsafeWebhooks to set.
      Returns:
      This builder for chaining.
    • clearNoUnsafeWebhooks

      public ClusterPolicyConfig.Builder 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:
      hasNoStandardNodePools in interface ClusterPolicyConfigOrBuilder
      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:
      getNoStandardNodePools in interface ClusterPolicyConfigOrBuilder
      Returns:
      The noStandardNodePools.
    • setNoStandardNodePools

      public ClusterPolicyConfig.Builder setNoStandardNodePools(boolean value)
       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

      public ClusterPolicyConfig.Builder clearNoStandardNodePools()
       Denotes preventing standard node pools and requiring only autopilot node
       pools.
       
      optional bool no_standard_node_pools = 5;
      Returns:
      This builder for chaining.