public static final class PolicySpec.PolicyRule.StringValues extends GeneratedMessageV3 implements PolicySpec.PolicyRule.StringValuesOrBuilder
A message that holds specific allowed and denied values.
This message can define specific values and subtrees of Cloud Resource
Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that
are allowed or denied. This is achieved by using the `under:` and
optional `is:` prefixes.
The `under:` prefix is used to denote resource subtree values.
The `is:` prefix is used to denote specific values, and is required only
if the value contains a ":". Values prefixed with "is:" are treated the
same as values with no prefix.
Ancestry subtrees must be in one of the following formats:
- "projects/<project-id>", e.g. "projects/tokyo-rain-123"
- "folders/<folder-id>", e.g. "folders/1234"
- "organizations/<organization-id>", e.g. "organizations/1234"
The `supports_under` field of the associated `Constraint` defines
whether ancestry prefixes can be used.
Protobuf type google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues| Modifier and Type | Class and Description |
|---|---|
static class |
PolicySpec.PolicyRule.StringValues.Builder
A message that holds specific allowed and denied values.
|
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 |
ALLOWED_VALUES_FIELD_NUMBER |
static int |
DENIED_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 ALLOWED_VALUES_FIELD_NUMBER
public static final int DENIED_VALUES_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 ProtocolStringList getAllowedValuesList()
List of values allowed at this resource.
repeated string allowed_values = 1;getAllowedValuesList in interface PolicySpec.PolicyRule.StringValuesOrBuilderpublic int getAllowedValuesCount()
List of values allowed at this resource.
repeated string allowed_values = 1;getAllowedValuesCount in interface PolicySpec.PolicyRule.StringValuesOrBuilderpublic String getAllowedValues(int index)
List of values allowed at this resource.
repeated string allowed_values = 1;getAllowedValues in interface PolicySpec.PolicyRule.StringValuesOrBuilderindex - The index of the element to return.public ByteString getAllowedValuesBytes(int index)
List of values allowed at this resource.
repeated string allowed_values = 1;getAllowedValuesBytes in interface PolicySpec.PolicyRule.StringValuesOrBuilderindex - The index of the value to return.public ProtocolStringList getDeniedValuesList()
List of values denied at this resource.
repeated string denied_values = 2;getDeniedValuesList in interface PolicySpec.PolicyRule.StringValuesOrBuilderpublic int getDeniedValuesCount()
List of values denied at this resource.
repeated string denied_values = 2;getDeniedValuesCount in interface PolicySpec.PolicyRule.StringValuesOrBuilderpublic String getDeniedValues(int index)
List of values denied at this resource.
repeated string denied_values = 2;getDeniedValues in interface PolicySpec.PolicyRule.StringValuesOrBuilderindex - The index of the element to return.public ByteString getDeniedValuesBytes(int index)
List of values denied at this resource.
repeated string denied_values = 2;getDeniedValuesBytes in interface PolicySpec.PolicyRule.StringValuesOrBuilderindex - The index of the value to return.public 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.StringValues parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(InputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule.StringValues parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule.StringValues parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static PolicySpec.PolicyRule.StringValues parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PolicySpec.PolicyRule.StringValues.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PolicySpec.PolicyRule.StringValues.Builder newBuilder()
public static PolicySpec.PolicyRule.StringValues.Builder newBuilder(PolicySpec.PolicyRule.StringValues prototype)
public PolicySpec.PolicyRule.StringValues.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected PolicySpec.PolicyRule.StringValues.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static PolicySpec.PolicyRule.StringValues getDefaultInstance()
public static Parser<PolicySpec.PolicyRule.StringValues> parser()
public Parser<PolicySpec.PolicyRule.StringValues> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public PolicySpec.PolicyRule.StringValues getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.