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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic 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.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic PolicySpec.PolicyRule build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic PolicySpec.PolicyRule buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic PolicySpec.PolicyRule.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder mergeFrom(PolicySpec.PolicyRule other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public PolicySpec.PolicyRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<PolicySpec.PolicyRule.Builder>IOExceptionpublic PolicySpec.PolicyRule.KindCase getKindCase()
getKindCase in interface PolicySpec.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic 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.PolicyRuleOrBuilderpublic final PolicySpec.PolicyRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>public final PolicySpec.PolicyRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.Builder>Copyright © 2021 Google LLC. All rights reserved.