public static final class Policy.BooleanPolicy extends GeneratedMessageV3 implements Policy.BooleanPolicyOrBuilder
Used in `policy_type` to specify how `boolean_policy` will behave at this resource.Protobuf type
google.cloud.orgpolicy.v1.Policy.BooleanPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
Policy.BooleanPolicy.Builder
Used in `policy_type` to specify how `boolean_policy` will behave at this
resource.
|
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 |
ENFORCED_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 ENFORCED_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 boolean getEnforced()
If `true`, then the `Policy` is enforced. If `false`, then any
configuration is acceptable.
Suppose you have a `Constraint`
`constraints/compute.disableSerialPortAccess` with `constraint_default`
set to `ALLOW`. A `Policy` for that `Constraint` exhibits the following
behavior:
- If the `Policy` at this resource has enforced set to `false`, serial
port connection attempts will be allowed.
- If the `Policy` at this resource has enforced set to `true`, serial
port connection attempts will be refused.
- If the `Policy` at this resource is `RestoreDefault`, serial port
connection attempts will be allowed.
- If no `Policy` is set at this resource or anywhere higher in the
resource hierarchy, serial port connection attempts will be allowed.
- If no `Policy` is set at this resource, but one exists higher in the
resource hierarchy, the behavior is as if the`Policy` were set at
this resource.
The following examples demonstrate the different possible layerings:
Example 1 (nearest `Constraint` wins):
`organizations/foo` has a `Policy` with:
{enforced: false}
`projects/bar` has no `Policy` set.
The constraint at `projects/bar` and `organizations/foo` will not be
enforced.
Example 2 (enforcement gets replaced):
`organizations/foo` has a `Policy` with:
{enforced: false}
`projects/bar` has a `Policy` with:
{enforced: true}
The constraint at `organizations/foo` is not enforced.
The constraint at `projects/bar` is enforced.
Example 3 (RestoreDefault):
`organizations/foo` has a `Policy` with:
{enforced: true}
`projects/bar` has a `Policy` with:
{RestoreDefault: {}}
The constraint at `organizations/foo` is enforced.
The constraint at `projects/bar` is not enforced, because
`constraint_default` for the `Constraint` is `ALLOW`.
bool enforced = 1;getEnforced in interface Policy.BooleanPolicyOrBuilderpublic 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 Policy.BooleanPolicy parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Policy.BooleanPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static Policy.BooleanPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Policy.BooleanPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Policy.BooleanPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Policy.BooleanPolicy parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static Policy.BooleanPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Policy.BooleanPolicy.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Policy.BooleanPolicy.Builder newBuilder()
public static Policy.BooleanPolicy.Builder newBuilder(Policy.BooleanPolicy prototype)
public Policy.BooleanPolicy.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Policy.BooleanPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Policy.BooleanPolicy getDefaultInstance()
public static Parser<Policy.BooleanPolicy> parser()
public Parser<Policy.BooleanPolicy> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Policy.BooleanPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.