public static final class PolicySpec.PolicyRule extends GeneratedMessageV3 implements PolicySpec.PolicyRuleOrBuilder
A rule used to express this policy.Protobuf type
google.cloud.orgpolicy.v2.PolicySpec.PolicyRule| Modifier and Type | Class and Description |
|---|---|
static class |
PolicySpec.PolicyRule.Builder
A rule used to express this policy.
|
static class |
PolicySpec.PolicyRule.KindCase |
static class |
PolicySpec.PolicyRule.StringValues
A message that holds specific allowed and denied values.
|
static interface |
PolicySpec.PolicyRule.StringValuesOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_ALL_FIELD_NUMBER |
static int |
CONDITION_FIELD_NUMBER |
static int |
DENY_ALL_FIELD_NUMBER |
static int |
ENFORCE_FIELD_NUMBER |
static int |
VALUES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int VALUES_FIELD_NUMBER
public static final int ALLOW_ALL_FIELD_NUMBER
public static final int DENY_ALL_FIELD_NUMBER
public static final int ENFORCE_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public PolicySpec.PolicyRule.KindCase getKindCase()
getKindCase in interface PolicySpec.PolicyRuleOrBuilderpublic 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.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 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 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 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 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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static PolicySpec.PolicyRule parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule parseFrom(InputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PolicySpec.PolicyRule.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PolicySpec.PolicyRule.Builder newBuilder()
public static PolicySpec.PolicyRule.Builder newBuilder(PolicySpec.PolicyRule prototype)
public PolicySpec.PolicyRule.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected PolicySpec.PolicyRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static PolicySpec.PolicyRule getDefaultInstance()
public static Parser<PolicySpec.PolicyRule> parser()
public Parser<PolicySpec.PolicyRule> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public PolicySpec.PolicyRule getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.