public static final class PolicySpec.PolicyRule.Builder extends GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder> implements PolicySpec.PolicyRuleOrBuilder
A rule used to express this policy.Protobuf type
google.cloud.orgpolicy.v2.PolicySpec.PolicyRule
Modifier and Type | Method and Description |
---|---|
PolicySpec.PolicyRule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
PolicySpec.PolicyRule |
build() |
PolicySpec.PolicyRule |
buildPartial() |
PolicySpec.PolicyRule.Builder |
clear() |
PolicySpec.PolicyRule.Builder |
clearAllowAll()
Setting this to true means that all values are allowed.
|
PolicySpec.PolicyRule.Builder |
clearCondition()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
PolicySpec.PolicyRule.Builder |
clearDenyAll()
Setting this to true means that all values are denied.
|
PolicySpec.PolicyRule.Builder |
clearEnforce()
If `true`, then the `Policy` is enforced.
|
PolicySpec.PolicyRule.Builder |
clearField(Descriptors.FieldDescriptor field) |
PolicySpec.PolicyRule.Builder |
clearKind() |
PolicySpec.PolicyRule.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
PolicySpec.PolicyRule.Builder |
clearValues()
List of values to be used for this PolicyRule.
|
PolicySpec.PolicyRule.Builder |
clone() |
boolean |
getAllowAll()
Setting this to true means that all values are allowed.
|
com.google.type.Expr |
getCondition()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
com.google.type.Expr.Builder |
getConditionBuilder()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
PolicySpec.PolicyRule |
getDefaultInstanceForType() |
boolean |
getDenyAll()
Setting this to true means that all values are denied.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnforce()
If `true`, then the `Policy` is enforced.
|
PolicySpec.PolicyRule.KindCase |
getKindCase() |
PolicySpec.PolicyRule.StringValues |
getValues()
List of values to be used for this PolicyRule.
|
PolicySpec.PolicyRule.StringValues.Builder |
getValuesBuilder()
List of values to be used for this PolicyRule.
|
PolicySpec.PolicyRule.StringValuesOrBuilder |
getValuesOrBuilder()
List of values to be used for this PolicyRule.
|
boolean |
hasAllowAll()
Setting this to true means that all values are allowed.
|
boolean |
hasCondition()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
boolean |
hasDenyAll()
Setting this to true means that all values are denied.
|
boolean |
hasEnforce()
If `true`, then the `Policy` is enforced.
|
boolean |
hasValues()
List of values to be used for this PolicyRule.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PolicySpec.PolicyRule.Builder |
mergeCondition(com.google.type.Expr value)
A condition which determines whether this rule is used
in the evaluation of the policy.
|
PolicySpec.PolicyRule.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
PolicySpec.PolicyRule.Builder |
mergeFrom(Message other) |
PolicySpec.PolicyRule.Builder |
mergeFrom(PolicySpec.PolicyRule other) |
PolicySpec.PolicyRule.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
PolicySpec.PolicyRule.Builder |
mergeValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule.
|
PolicySpec.PolicyRule.Builder |
setAllowAll(boolean value)
Setting this to true means that all values are allowed.
|
PolicySpec.PolicyRule.Builder |
setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether this rule is used
in the evaluation of the policy.
|
PolicySpec.PolicyRule.Builder |
setCondition(com.google.type.Expr value)
A condition which determines whether this rule is used
in the evaluation of the policy.
|
PolicySpec.PolicyRule.Builder |
setDenyAll(boolean value)
Setting this to true means that all values are denied.
|
PolicySpec.PolicyRule.Builder |
setEnforce(boolean value)
If `true`, then the `Policy` is enforced.
|
PolicySpec.PolicyRule.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
PolicySpec.PolicyRule.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
PolicySpec.PolicyRule.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
PolicySpec.PolicyRule.Builder |
setValues(PolicySpec.PolicyRule.StringValues.Builder builderForValue)
List of values to be used for this PolicyRule.
|
PolicySpec.PolicyRule.Builder |
setValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PolicySpec.PolicyRule build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PolicySpec.PolicyRule buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PolicySpec.PolicyRule.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder mergeFrom(PolicySpec.PolicyRule other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public PolicySpec.PolicyRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PolicySpec.PolicyRule.Builder>
IOException
public PolicySpec.PolicyRule.KindCase getKindCase()
getKindCase
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder clearKind()
public boolean hasValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
hasValues
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.StringValues getValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
getValues
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder setValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
public PolicySpec.PolicyRule.Builder setValues(PolicySpec.PolicyRule.StringValues.Builder builderForValue)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
public PolicySpec.PolicyRule.Builder mergeValues(PolicySpec.PolicyRule.StringValues value)
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
public PolicySpec.PolicyRule.Builder clearValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
public PolicySpec.PolicyRule.StringValues.Builder getValuesBuilder()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
public PolicySpec.PolicyRule.StringValuesOrBuilder getValuesOrBuilder()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
getValuesOrBuilder
in interface PolicySpec.PolicyRuleOrBuilder
public boolean hasAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
hasAllowAll
in interface PolicySpec.PolicyRuleOrBuilder
public boolean getAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
getAllowAll
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder setAllowAll(boolean value)
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
value
- The allowAll to set.public PolicySpec.PolicyRule.Builder clearAllowAll()
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
bool allow_all = 2;
public boolean hasDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
hasDenyAll
in interface PolicySpec.PolicyRuleOrBuilder
public boolean getDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
getDenyAll
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder setDenyAll(boolean value)
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
value
- The denyAll to set.public PolicySpec.PolicyRule.Builder clearDenyAll()
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
bool deny_all = 3;
public boolean hasEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
hasEnforce
in interface PolicySpec.PolicyRuleOrBuilder
public boolean getEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
getEnforce
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder setEnforce(boolean value)
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
value
- The enforce to set.public PolicySpec.PolicyRule.Builder clearEnforce()
If `true`, then the `Policy` is enforced. If `false`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.
bool enforce = 4;
public boolean hasCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
hasCondition
in interface PolicySpec.PolicyRuleOrBuilder
public com.google.type.Expr getCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
getCondition
in interface PolicySpec.PolicyRuleOrBuilder
public PolicySpec.PolicyRule.Builder setCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
public PolicySpec.PolicyRule.Builder setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
public PolicySpec.PolicyRule.Builder mergeCondition(com.google.type.Expr value)
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
public PolicySpec.PolicyRule.Builder clearCondition()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
public com.google.type.Expr.Builder getConditionBuilder()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
public com.google.type.ExprOrBuilder getConditionOrBuilder()
A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchLabels(key_name, value_name)", where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Label Manager Service. An example expression is: "resource.matchLabels('labelKeys/123, 'labelValues/456')".
.google.type.Expr condition = 5;
getConditionOrBuilder
in interface PolicySpec.PolicyRuleOrBuilder
public final PolicySpec.PolicyRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
public final PolicySpec.PolicyRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>
Copyright © 2021 Google LLC. All rights reserved.