Class PolicyController.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyController.Builder>
com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder
All Implemented Interfaces:
PolicyControllerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyController

public static final class PolicyController.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyController.Builder> implements PolicyControllerOrBuilder
 Configuration for Policy Controller
 
Protobuf type google.cloud.gkehub.configmanagement.v1beta.PolicyController
  • 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<PolicyController.Builder>
    • clear

      public PolicyController.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<PolicyController.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<PolicyController.Builder>
    • getDefaultInstanceForType

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

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

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

      public PolicyController.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<PolicyController.Builder>
    • mergeFrom

      public PolicyController.Builder mergeFrom(PolicyController other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PolicyController.Builder>
    • mergeFrom

      public PolicyController.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<PolicyController.Builder>
      Throws:
      IOException
    • getEnabled

      public boolean getEnabled()
       Enables the installation of Policy Controller.
       If false, the rest of PolicyController fields take no
       effect.
       
      bool enabled = 1;
      Specified by:
      getEnabled in interface PolicyControllerOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public PolicyController.Builder setEnabled(boolean value)
       Enables the installation of Policy Controller.
       If false, the rest of PolicyController fields take no
       effect.
       
      bool enabled = 1;
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

      public PolicyController.Builder clearEnabled()
       Enables the installation of Policy Controller.
       If false, the rest of PolicyController fields take no
       effect.
       
      bool enabled = 1;
      Returns:
      This builder for chaining.
    • hasTemplateLibraryInstalled

      public boolean hasTemplateLibraryInstalled()
       Installs the default template library along with Policy Controller.
       
      optional bool template_library_installed = 2;
      Specified by:
      hasTemplateLibraryInstalled in interface PolicyControllerOrBuilder
      Returns:
      Whether the templateLibraryInstalled field is set.
    • getTemplateLibraryInstalled

      public boolean getTemplateLibraryInstalled()
       Installs the default template library along with Policy Controller.
       
      optional bool template_library_installed = 2;
      Specified by:
      getTemplateLibraryInstalled in interface PolicyControllerOrBuilder
      Returns:
      The templateLibraryInstalled.
    • setTemplateLibraryInstalled

      public PolicyController.Builder setTemplateLibraryInstalled(boolean value)
       Installs the default template library along with Policy Controller.
       
      optional bool template_library_installed = 2;
      Parameters:
      value - The templateLibraryInstalled to set.
      Returns:
      This builder for chaining.
    • clearTemplateLibraryInstalled

      public PolicyController.Builder clearTemplateLibraryInstalled()
       Installs the default template library along with Policy Controller.
       
      optional bool template_library_installed = 2;
      Returns:
      This builder for chaining.
    • hasAuditIntervalSeconds

      public boolean hasAuditIntervalSeconds()
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 3;
      Specified by:
      hasAuditIntervalSeconds in interface PolicyControllerOrBuilder
      Returns:
      Whether the auditIntervalSeconds field is set.
    • getAuditIntervalSeconds

      public long getAuditIntervalSeconds()
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 3;
      Specified by:
      getAuditIntervalSeconds in interface PolicyControllerOrBuilder
      Returns:
      The auditIntervalSeconds.
    • setAuditIntervalSeconds

      public PolicyController.Builder setAuditIntervalSeconds(long value)
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 3;
      Parameters:
      value - The auditIntervalSeconds to set.
      Returns:
      This builder for chaining.
    • clearAuditIntervalSeconds

      public PolicyController.Builder clearAuditIntervalSeconds()
       Sets the interval for Policy Controller Audit Scans (in seconds).
       When set to 0, this disables audit functionality altogether.
       
      optional int64 audit_interval_seconds = 3;
      Returns:
      This builder for chaining.
    • getExemptableNamespacesList

      public com.google.protobuf.ProtocolStringList getExemptableNamespacesList()
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Specified by:
      getExemptableNamespacesList in interface PolicyControllerOrBuilder
      Returns:
      A list containing the exemptableNamespaces.
    • getExemptableNamespacesCount

      public int getExemptableNamespacesCount()
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Specified by:
      getExemptableNamespacesCount in interface PolicyControllerOrBuilder
      Returns:
      The count of exemptableNamespaces.
    • getExemptableNamespaces

      public String getExemptableNamespaces(int index)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Specified by:
      getExemptableNamespaces in interface PolicyControllerOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The exemptableNamespaces at the given index.
    • getExemptableNamespacesBytes

      public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Specified by:
      getExemptableNamespacesBytes in interface PolicyControllerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the exemptableNamespaces at the given index.
    • setExemptableNamespaces

      public PolicyController.Builder setExemptableNamespaces(int index, String value)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Parameters:
      index - The index to set the value at.
      value - The exemptableNamespaces to set.
      Returns:
      This builder for chaining.
    • addExemptableNamespaces

      public PolicyController.Builder addExemptableNamespaces(String value)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Parameters:
      value - The exemptableNamespaces to add.
      Returns:
      This builder for chaining.
    • addAllExemptableNamespaces

      public PolicyController.Builder addAllExemptableNamespaces(Iterable<String> values)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Parameters:
      values - The exemptableNamespaces to add.
      Returns:
      This builder for chaining.
    • clearExemptableNamespaces

      public PolicyController.Builder clearExemptableNamespaces()
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Returns:
      This builder for chaining.
    • addExemptableNamespacesBytes

      public PolicyController.Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value)
       The set of namespaces that are excluded from Policy Controller checks.
       Namespaces do not need to currently exist on the cluster.
       
      repeated string exemptable_namespaces = 4;
      Parameters:
      value - The bytes of the exemptableNamespaces to add.
      Returns:
      This builder for chaining.
    • getReferentialRulesEnabled

      public boolean getReferentialRulesEnabled()
       Enables the ability to use Constraint Templates that reference to objects
       other than the object currently being evaluated.
       
      bool referential_rules_enabled = 5;
      Specified by:
      getReferentialRulesEnabled in interface PolicyControllerOrBuilder
      Returns:
      The referentialRulesEnabled.
    • setReferentialRulesEnabled

      public PolicyController.Builder setReferentialRulesEnabled(boolean value)
       Enables the ability to use Constraint Templates that reference to objects
       other than the object currently being evaluated.
       
      bool referential_rules_enabled = 5;
      Parameters:
      value - The referentialRulesEnabled to set.
      Returns:
      This builder for chaining.
    • clearReferentialRulesEnabled

      public PolicyController.Builder clearReferentialRulesEnabled()
       Enables the ability to use Constraint Templates that reference to objects
       other than the object currently being evaluated.
       
      bool referential_rules_enabled = 5;
      Returns:
      This builder for chaining.
    • getLogDeniesEnabled

      public boolean getLogDeniesEnabled()
       Logs all denies and dry run failures.
       
      bool log_denies_enabled = 6;
      Specified by:
      getLogDeniesEnabled in interface PolicyControllerOrBuilder
      Returns:
      The logDeniesEnabled.
    • setLogDeniesEnabled

      public PolicyController.Builder setLogDeniesEnabled(boolean value)
       Logs all denies and dry run failures.
       
      bool log_denies_enabled = 6;
      Parameters:
      value - The logDeniesEnabled to set.
      Returns:
      This builder for chaining.
    • clearLogDeniesEnabled

      public PolicyController.Builder clearLogDeniesEnabled()
       Logs all denies and dry run failures.
       
      bool log_denies_enabled = 6;
      Returns:
      This builder for chaining.
    • getMutationEnabled

      public boolean getMutationEnabled()
       Enable or disable mutation in policy controller.
       If true, mutation CRDs, webhook and controller deployment
       will be deployed to the cluster.
       
      bool mutation_enabled = 7;
      Specified by:
      getMutationEnabled in interface PolicyControllerOrBuilder
      Returns:
      The mutationEnabled.
    • setMutationEnabled

      public PolicyController.Builder setMutationEnabled(boolean value)
       Enable or disable mutation in policy controller.
       If true, mutation CRDs, webhook and controller deployment
       will be deployed to the cluster.
       
      bool mutation_enabled = 7;
      Parameters:
      value - The mutationEnabled to set.
      Returns:
      This builder for chaining.
    • clearMutationEnabled

      public PolicyController.Builder clearMutationEnabled()
       Enable or disable mutation in policy controller.
       If true, mutation CRDs, webhook and controller deployment
       will be deployed to the cluster.
       
      bool mutation_enabled = 7;
      Returns:
      This builder for chaining.
    • hasMonitoring

      public boolean hasMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
      Specified by:
      hasMonitoring in interface PolicyControllerOrBuilder
      Returns:
      Whether the monitoring field is set.
    • getMonitoring

      public PolicyControllerMonitoring getMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
      Specified by:
      getMonitoring in interface PolicyControllerOrBuilder
      Returns:
      The monitoring.
    • setMonitoring

       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
    • setMonitoring

      public PolicyController.Builder setMonitoring(PolicyControllerMonitoring.Builder builderForValue)
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
    • mergeMonitoring

      public PolicyController.Builder mergeMonitoring(PolicyControllerMonitoring value)
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
    • clearMonitoring

      public PolicyController.Builder clearMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
    • getMonitoringBuilder

      public PolicyControllerMonitoring.Builder getMonitoringBuilder()
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
    • getMonitoringOrBuilder

      public PolicyControllerMonitoringOrBuilder getMonitoringOrBuilder()
       Monitoring specifies the configuration of monitoring.
       
      .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;
      Specified by:
      getMonitoringOrBuilder in interface PolicyControllerOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PolicyControllerOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PolicyControllerOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PolicyController.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PolicyController.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PolicyController.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PolicyController.Builder clearUpdateTime()
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last time this membership spec was updated.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PolicyControllerOrBuilder