- 1.55.0 (latest)
- 1.54.0
- 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.v1alpha.PolicyController
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PolicyController.BuilderImplements
PolicyControllerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The exemptableNamespaces to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
String The exemptableNamespaces to add. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the exemptableNamespaces to add. |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PolicyController.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
build()
public PolicyController build()
Returns | |
---|---|
Type | Description |
PolicyController |
buildPartial()
public PolicyController buildPartial()
Returns | |
---|---|
Type | Description |
PolicyController |
clear()
public PolicyController.Builder clear()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PolicyController.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
clearLogDeniesEnabled()
public PolicyController.Builder clearLogDeniesEnabled()
Logs all denies and dry run failures.
bool log_denies_enabled = 6;
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
clearMutationEnabled()
public PolicyController.Builder clearMutationEnabled()
Enable users to try out mutation for PolicyController.
bool mutation_enabled = 7;
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PolicyController.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
clone()
public PolicyController.Builder clone()
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
long |
The auditIntervalSeconds. |
getDefaultInstanceForType()
public PolicyController getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PolicyController |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the exemptableNamespaces. |
getLogDeniesEnabled()
public boolean getLogDeniesEnabled()
Logs all denies and dry run failures.
bool log_denies_enabled = 6;
Returns | |
---|---|
Type | Description |
boolean |
The logDeniesEnabled. |
getMutationEnabled()
public boolean getMutationEnabled()
Enable users to try out mutation for PolicyController.
bool mutation_enabled = 7;
Returns | |
---|---|
Type | Description |
boolean |
The mutationEnabled. |
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;
Returns | |
---|---|
Type | Description |
boolean |
The referentialRulesEnabled. |
getTemplateLibraryInstalled()
public boolean getTemplateLibraryInstalled()
Installs the default template library along with Policy Controller.
optional bool template_library_installed = 2;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the templateLibraryInstalled field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PolicyController other)
public PolicyController.Builder mergeFrom(PolicyController other)
Parameter | |
---|---|
Name | Description |
other |
PolicyController |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PolicyController.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PolicyController.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PolicyController.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
long The auditIntervalSeconds to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The enabled to set. |
Returns | |
---|---|
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The exemptableNamespaces to set. |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PolicyController.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The logDeniesEnabled to set. |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
setMutationEnabled(boolean value)
public PolicyController.Builder setMutationEnabled(boolean value)
Enable users to try out mutation for PolicyController.
bool mutation_enabled = 7;
Parameter | |
---|---|
Name | Description |
value |
boolean The mutationEnabled to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The referentialRulesEnabled to set. |
Returns | |
---|---|
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)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The templateLibraryInstalled to set. |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PolicyController.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PolicyController.Builder |