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.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ALLOWED_VALUES_FIELD_NUMBER |
static int |
DENIED_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 ALLOWED_VALUES_FIELD_NUMBER
public static final int DENIED_VALUES_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 ProtocolStringList getAllowedValuesList()
List of values allowed at this resource.
repeated string allowed_values = 1;
getAllowedValuesList
in interface PolicySpec.PolicyRule.StringValuesOrBuilder
public int getAllowedValuesCount()
List of values allowed at this resource.
repeated string allowed_values = 1;
getAllowedValuesCount
in interface PolicySpec.PolicyRule.StringValuesOrBuilder
public String getAllowedValues(int index)
List of values allowed at this resource.
repeated string allowed_values = 1;
getAllowedValues
in interface PolicySpec.PolicyRule.StringValuesOrBuilder
index
- 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.StringValuesOrBuilder
index
- 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.StringValuesOrBuilder
public int getDeniedValuesCount()
List of values denied at this resource.
repeated string denied_values = 2;
getDeniedValuesCount
in interface PolicySpec.PolicyRule.StringValuesOrBuilder
public String getDeniedValues(int index)
List of values denied at this resource.
repeated string denied_values = 2;
getDeniedValues
in interface PolicySpec.PolicyRule.StringValuesOrBuilder
index
- 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.StringValuesOrBuilder
index
- The index of the value to return.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.StringValues parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PolicySpec.PolicyRule.StringValues parseFrom(InputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule.StringValues parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PolicySpec.PolicyRule.StringValues parseDelimitedFrom(InputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule.StringValues parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static PolicySpec.PolicyRule.StringValues parseFrom(CodedInputStream input) throws IOException
IOException
public static PolicySpec.PolicyRule.StringValues parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public PolicySpec.PolicyRule.StringValues.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public 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 Message
toBuilder
in interface MessageLite
protected PolicySpec.PolicyRule.StringValues.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static PolicySpec.PolicyRule.StringValues getDefaultInstance()
public static Parser<PolicySpec.PolicyRule.StringValues> parser()
public Parser<PolicySpec.PolicyRule.StringValues> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public PolicySpec.PolicyRule.StringValues getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2021 Google LLC. All rights reserved.