java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.policycontroller.v1beta.HubConfig
All Implemented Interfaces:
HubConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class HubConfig extends com.google.protobuf.GeneratedMessage implements HubConfigOrBuilder
 Configuration for Policy Controller
 
Protobuf type google.cloud.gkehub.policycontroller.v1beta.HubConfig
See Also:
  • Field Details

    • INSTALL_SPEC_FIELD_NUMBER

      public static final int INSTALL_SPEC_FIELD_NUMBER
      See Also:
    • AUDIT_INTERVAL_SECONDS_FIELD_NUMBER

      public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER
      See Also:
    • EXEMPTABLE_NAMESPACES_FIELD_NUMBER

      public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER
      See Also:
    • REFERENTIAL_RULES_ENABLED_FIELD_NUMBER

      public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER
      See Also:
    • LOG_DENIES_ENABLED_FIELD_NUMBER

      public static final int LOG_DENIES_ENABLED_FIELD_NUMBER
      See Also:
    • MUTATION_ENABLED_FIELD_NUMBER

      public static final int MUTATION_ENABLED_FIELD_NUMBER
      See Also:
    • MONITORING_FIELD_NUMBER

      public static final int MONITORING_FIELD_NUMBER
      See Also:
    • POLICY_CONTENT_FIELD_NUMBER

      public static final int POLICY_CONTENT_FIELD_NUMBER
      See Also:
    • CONSTRAINT_VIOLATION_LIMIT_FIELD_NUMBER

      public static final int CONSTRAINT_VIOLATION_LIMIT_FIELD_NUMBER
      See Also:
    • DEPLOYMENT_CONFIGS_FIELD_NUMBER

      public static final int DEPLOYMENT_CONFIGS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getInstallSpecValue

      public int getInstallSpecValue()
       The install_spec represents the intended state specified by the
       latest request that mutated install_spec in the feature spec,
       not the lifecycle state of the
       feature observed by the Hub feature controller
       that is reported in the feature state.
       
      .google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec install_spec = 1;
      Specified by:
      getInstallSpecValue in interface HubConfigOrBuilder
      Returns:
      The enum numeric value on the wire for installSpec.
    • getInstallSpec

      public HubConfig.InstallSpec getInstallSpec()
       The install_spec represents the intended state specified by the
       latest request that mutated install_spec in the feature spec,
       not the lifecycle state of the
       feature observed by the Hub feature controller
       that is reported in the feature state.
       
      .google.cloud.gkehub.policycontroller.v1beta.HubConfig.InstallSpec install_spec = 1;
      Specified by:
      getInstallSpec in interface HubConfigOrBuilder
      Returns:
      The installSpec.
    • 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 = 2;
      Specified by:
      hasAuditIntervalSeconds in interface HubConfigOrBuilder
      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 = 2;
      Specified by:
      getAuditIntervalSeconds in interface HubConfigOrBuilder
      Returns:
      The auditIntervalSeconds.
    • 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 = 3;
      Specified by:
      getExemptableNamespacesList in interface HubConfigOrBuilder
      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 = 3;
      Specified by:
      getExemptableNamespacesCount in interface HubConfigOrBuilder
      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 = 3;
      Specified by:
      getExemptableNamespaces in interface HubConfigOrBuilder
      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 = 3;
      Specified by:
      getExemptableNamespacesBytes in interface HubConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the exemptableNamespaces at the given index.
    • 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 = 4;
      Specified by:
      getReferentialRulesEnabled in interface HubConfigOrBuilder
      Returns:
      The referentialRulesEnabled.
    • getLogDeniesEnabled

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

      public boolean getMutationEnabled()
       Enables the ability to mutate resources using Policy Controller.
       
      bool mutation_enabled = 6;
      Specified by:
      getMutationEnabled in interface HubConfigOrBuilder
      Returns:
      The mutationEnabled.
    • hasMonitoring

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

      public MonitoringConfig getMonitoring()
       Monitoring specifies the configuration of monitoring.
       
      optional .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig monitoring = 8;
      Specified by:
      getMonitoring in interface HubConfigOrBuilder
      Returns:
      The monitoring.
    • getMonitoringOrBuilder

      public MonitoringConfigOrBuilder getMonitoringOrBuilder()
       Monitoring specifies the configuration of monitoring.
       
      optional .google.cloud.gkehub.policycontroller.v1beta.MonitoringConfig monitoring = 8;
      Specified by:
      getMonitoringOrBuilder in interface HubConfigOrBuilder
    • hasPolicyContent

      public boolean hasPolicyContent()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
      Specified by:
      hasPolicyContent in interface HubConfigOrBuilder
      Returns:
      Whether the policyContent field is set.
    • getPolicyContent

      public PolicyContentSpec getPolicyContent()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
      Specified by:
      getPolicyContent in interface HubConfigOrBuilder
      Returns:
      The policyContent.
    • getPolicyContentOrBuilder

      public PolicyContentSpecOrBuilder getPolicyContentOrBuilder()
       Specifies the desired policy content on the cluster
       
      optional .google.cloud.gkehub.policycontroller.v1beta.PolicyContentSpec policy_content = 9;
      Specified by:
      getPolicyContentOrBuilder in interface HubConfigOrBuilder
    • hasConstraintViolationLimit

      public boolean hasConstraintViolationLimit()
       The maximum number of audit violations to be stored in a constraint.
       If not set, the internal default (currently 20) will be used.
       
      optional int64 constraint_violation_limit = 10;
      Specified by:
      hasConstraintViolationLimit in interface HubConfigOrBuilder
      Returns:
      Whether the constraintViolationLimit field is set.
    • getConstraintViolationLimit

      public long getConstraintViolationLimit()
       The maximum number of audit violations to be stored in a constraint.
       If not set, the internal default (currently 20) will be used.
       
      optional int64 constraint_violation_limit = 10;
      Specified by:
      getConstraintViolationLimit in interface HubConfigOrBuilder
      Returns:
      The constraintViolationLimit.
    • getDeploymentConfigsCount

      public int getDeploymentConfigsCount()
      Description copied from interface: HubConfigOrBuilder
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
      Specified by:
      getDeploymentConfigsCount in interface HubConfigOrBuilder
    • containsDeploymentConfigs

      public boolean containsDeploymentConfigs(String key)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
      Specified by:
      containsDeploymentConfigs in interface HubConfigOrBuilder
    • getDeploymentConfigs

      @Deprecated public Map<String,PolicyControllerDeploymentConfig> getDeploymentConfigs()
      Deprecated.
      Specified by:
      getDeploymentConfigs in interface HubConfigOrBuilder
    • getDeploymentConfigsMap

      public Map<String,PolicyControllerDeploymentConfig> getDeploymentConfigsMap()
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
      Specified by:
      getDeploymentConfigsMap in interface HubConfigOrBuilder
    • getDeploymentConfigsOrDefault

      public PolicyControllerDeploymentConfig getDeploymentConfigsOrDefault(String key, PolicyControllerDeploymentConfig defaultValue)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
      Specified by:
      getDeploymentConfigsOrDefault in interface HubConfigOrBuilder
    • getDeploymentConfigsOrThrow

      public PolicyControllerDeploymentConfig getDeploymentConfigsOrThrow(String key)
       Map of deployment configs to deployments ("admission", "audit",
       "mutation').
       
      map<string, .google.cloud.gkehub.policycontroller.v1beta.PolicyControllerDeploymentConfig> deployment_configs = 11;
      Specified by:
      getDeploymentConfigsOrThrow in interface HubConfigOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static HubConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HubConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HubConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HubConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HubConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HubConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HubConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public HubConfig.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static HubConfig.Builder newBuilder()
    • newBuilder

      public static HubConfig.Builder newBuilder(HubConfig prototype)
    • toBuilder

      public HubConfig.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected HubConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static HubConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HubConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<HubConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public HubConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder