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 ControllerProtobuf type
google.cloud.gkehub.configmanagement.v1beta.PolicyController-
Method Summary
Modifier and TypeMethodDescriptionaddAllExemptableNamespaces(Iterable<String> values) The set of namespaces that are excluded from Policy Controller checks.addExemptableNamespaces(String value) The set of namespaces that are excluded from Policy Controller checks.addExemptableNamespacesBytes(com.google.protobuf.ByteString value) The set of namespaces that are excluded from Policy Controller checks.build()clear()Sets the interval for Policy Controller Audit Scans (in seconds).Enables the installation of Policy Controller.The set of namespaces that are excluded from Policy Controller checks.Logs all denies and dry run failures.Monitoring specifies the configuration of monitoring.Enable or disable mutation in policy controller.Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.Installs the default template library along with Policy Controller.Output only.longSets the interval for Policy Controller Audit Scans (in seconds).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanEnables the installation of Policy Controller.getExemptableNamespaces(int index) The set of namespaces that are excluded from Policy Controller checks.com.google.protobuf.ByteStringgetExemptableNamespacesBytes(int index) The set of namespaces that are excluded from Policy Controller checks.intThe set of namespaces that are excluded from Policy Controller checks.com.google.protobuf.ProtocolStringListThe set of namespaces that are excluded from Policy Controller checks.booleanLogs all denies and dry run failures.Monitoring specifies the configuration of monitoring.Monitoring specifies the configuration of monitoring.Monitoring specifies the configuration of monitoring.booleanEnable or disable mutation in policy controller.booleanEnables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.booleanInstalls the default template library along with Policy Controller.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanSets the interval for Policy Controller Audit Scans (in seconds).booleanMonitoring specifies the configuration of monitoring.booleanInstalls the default template library along with Policy Controller.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PolicyController other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Monitoring specifies the configuration of monitoring.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setAuditIntervalSeconds(long value) Sets the interval for Policy Controller Audit Scans (in seconds).setEnabled(boolean value) Enables the installation of Policy Controller.setExemptableNamespaces(int index, String value) The set of namespaces that are excluded from Policy Controller checks.setLogDeniesEnabled(boolean value) Logs all denies and dry run failures.Monitoring specifies the configuration of monitoring.setMonitoring(PolicyControllerMonitoring.Builder builderForValue) Monitoring specifies the configuration of monitoring.setMutationEnabled(boolean value) Enable or disable mutation in policy controller.setReferentialRulesEnabled(boolean value) Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.setTemplateLibraryInstalled(boolean value) Installs the default template library along with Policy Controller.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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<PolicyController.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<PolicyController.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<PolicyController.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<PolicyController.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getEnabledin interfacePolicyControllerOrBuilder- Returns:
- The enabled.
-
setEnabled
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
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:
hasTemplateLibraryInstalledin interfacePolicyControllerOrBuilder- 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:
getTemplateLibraryInstalledin interfacePolicyControllerOrBuilder- Returns:
- The templateLibraryInstalled.
-
setTemplateLibraryInstalled
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
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:
hasAuditIntervalSecondsin interfacePolicyControllerOrBuilder- 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:
getAuditIntervalSecondsin interfacePolicyControllerOrBuilder- Returns:
- The auditIntervalSeconds.
-
setAuditIntervalSeconds
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
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:
getExemptableNamespacesListin interfacePolicyControllerOrBuilder- 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:
getExemptableNamespacesCountin interfacePolicyControllerOrBuilder- Returns:
- The count of exemptableNamespaces.
-
getExemptableNamespaces
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:
getExemptableNamespacesin interfacePolicyControllerOrBuilder- 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:
getExemptableNamespacesBytesin interfacePolicyControllerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exemptableNamespaces at the given index.
-
setExemptableNamespaces
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
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
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
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
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:
getReferentialRulesEnabledin interfacePolicyControllerOrBuilder- Returns:
- The referentialRulesEnabled.
-
setReferentialRulesEnabled
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
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:
getLogDeniesEnabledin interfacePolicyControllerOrBuilder- Returns:
- The logDeniesEnabled.
-
setLogDeniesEnabled
Logs all denies and dry run failures.
bool log_denies_enabled = 6;- Parameters:
value- The logDeniesEnabled to set.- Returns:
- This builder for chaining.
-
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:
getMutationEnabledin interfacePolicyControllerOrBuilder- Returns:
- The mutationEnabled.
-
setMutationEnabled
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
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:
hasMonitoringin interfacePolicyControllerOrBuilder- Returns:
- Whether the monitoring field is set.
-
getMonitoring
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;- Specified by:
getMonitoringin interfacePolicyControllerOrBuilder- Returns:
- The monitoring.
-
setMonitoring
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8; -
setMonitoring
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8; -
mergeMonitoring
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8; -
clearMonitoring
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8; -
getMonitoringBuilder
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8; -
getMonitoringOrBuilder
Monitoring specifies the configuration of monitoring.
.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerMonitoring monitoring = 8;- Specified by:
getMonitoringOrBuilderin interfacePolicyControllerOrBuilder
-
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:
hasUpdateTimein interfacePolicyControllerOrBuilder- 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:
getUpdateTimein interfacePolicyControllerOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
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
Output only. Last time this membership spec was updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfacePolicyControllerOrBuilder
-