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.UnusedPrivateParameter
AbstractMessageLite.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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public PolicySpec.PolicyRule.KindCase getKindCase()
getKindCase
in interface PolicySpec.PolicyRuleOrBuilder
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.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 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 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 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 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 boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static PolicySpec.PolicyRule parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule parseFrom(InputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PolicySpec.PolicyRule parseDelimitedFrom(InputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PolicySpec.PolicyRule parseFrom(CodedInputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public PolicySpec.PolicyRule.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PolicySpec.PolicyRule.Builder newBuilder()
public static PolicySpec.PolicyRule.Builder newBuilder(PolicySpec.PolicyRule prototype)
public PolicySpec.PolicyRule.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected PolicySpec.PolicyRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static PolicySpec.PolicyRule getDefaultInstance()
public static Parser<PolicySpec.PolicyRule> parser()
public Parser<PolicySpec.PolicyRule> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public PolicySpec.PolicyRule getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2021 Google LLC. All rights reserved.