- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.6
- 1.2.1
- 1.1.0
- 1.0.1
- 0.5.4
public static final class PolicyController.Builder extends GeneratedMessageV3.Builder<PolicyController.Builder> implements PolicyControllerOrBuilder
Configuration for Policy Controller
Protobuf type google.cloud.gkehub.configmanagement.v1.PolicyController
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PolicyController.BuilderImplements
PolicyControllerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllExemptableNamespaces(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The exemptableNamespaces to add. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
addExemptableNamespaces(String value)
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;
Name | Description |
value | String The exemptableNamespaces to add. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
addExemptableNamespacesBytes(ByteString value)
public PolicyController.Builder addExemptableNamespacesBytes(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;
Name | Description |
value | ByteString The bytes of the exemptableNamespaces to add. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyController.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PolicyController.Builder |
build()
public PolicyController build()
Type | Description |
PolicyController |
buildPartial()
public PolicyController buildPartial()
Type | Description |
PolicyController |
clear()
public PolicyController.Builder clear()
Type | Description |
PolicyController.Builder |
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;
Type | Description |
PolicyController.Builder | 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;
Type | Description |
PolicyController.Builder | 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;
Type | Description |
PolicyController.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PolicyController.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PolicyController.Builder |
clearLogDeniesEnabled()
public PolicyController.Builder clearLogDeniesEnabled()
Logs all denies and dry run failures.
bool log_denies_enabled = 6;
Type | Description |
PolicyController.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyController.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PolicyController.Builder |
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;
Type | Description |
PolicyController.Builder | This builder for chaining. |
clearTemplateLibraryInstalled()
public PolicyController.Builder clearTemplateLibraryInstalled()
Installs the default template library along with Policy Controller.
optional bool template_library_installed = 2;
Type | Description |
PolicyController.Builder | This builder for chaining. |
clone()
public PolicyController.Builder clone()
Type | Description |
PolicyController.Builder |
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;
Type | Description |
long | The auditIntervalSeconds. |
getDefaultInstanceForType()
public PolicyController getDefaultInstanceForType()
Type | Description |
PolicyController |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEnabled()
public boolean getEnabled()
Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
bool enabled = 1;
Type | Description |
boolean | The enabled. |
getExemptableNamespaces(int index)
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;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The exemptableNamespaces at the given index. |
getExemptableNamespacesBytes(int index)
public 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;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the exemptableNamespaces at the given index. |
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;
Type | Description |
int | The count of exemptableNamespaces. |
getExemptableNamespacesList()
public 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;
Type | Description |
ProtocolStringList | A list containing the exemptableNamespaces. |
getLogDeniesEnabled()
public boolean getLogDeniesEnabled()
Logs all denies and dry run failures.
bool log_denies_enabled = 6;
Type | Description |
boolean | The logDeniesEnabled. |
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;
Type | Description |
boolean | The referentialRulesEnabled. |
getTemplateLibraryInstalled()
public boolean getTemplateLibraryInstalled()
Installs the default template library along with Policy Controller.
optional bool template_library_installed = 2;
Type | Description |
boolean | The templateLibraryInstalled. |
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;
Type | Description |
boolean | Whether the auditIntervalSeconds field is set. |
hasTemplateLibraryInstalled()
public boolean hasTemplateLibraryInstalled()
Installs the default template library along with Policy Controller.
optional bool template_library_installed = 2;
Type | Description |
boolean | Whether the templateLibraryInstalled field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(PolicyController other)
public PolicyController.Builder mergeFrom(PolicyController other)
Name | Description |
other | PolicyController |
Type | Description |
PolicyController.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicyController.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PolicyController.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PolicyController.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PolicyController.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyController.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PolicyController.Builder |
setAuditIntervalSeconds(long value)
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;
Name | Description |
value | long The auditIntervalSeconds to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setEnabled(boolean value)
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;
Name | Description |
value | boolean The enabled to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setExemptableNamespaces(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The exemptableNamespaces to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyController.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PolicyController.Builder |
setLogDeniesEnabled(boolean value)
public PolicyController.Builder setLogDeniesEnabled(boolean value)
Logs all denies and dry run failures.
bool log_denies_enabled = 6;
Name | Description |
value | boolean The logDeniesEnabled to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setReferentialRulesEnabled(boolean value)
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;
Name | Description |
value | boolean The referentialRulesEnabled to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PolicyController.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PolicyController.Builder |
setTemplateLibraryInstalled(boolean value)
public PolicyController.Builder setTemplateLibraryInstalled(boolean value)
Installs the default template library along with Policy Controller.
optional bool template_library_installed = 2;
Name | Description |
value | boolean The templateLibraryInstalled to set. |
Type | Description |
PolicyController.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyController.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PolicyController.Builder |