public static final class PolicySpec.PolicyRule.StringValues.Builder extends GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PolicySpec.PolicyRule.StringValues build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PolicySpec.PolicyRule.StringValues buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PolicySpec.PolicyRule.StringValues.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder mergeFrom(PolicySpec.PolicyRule.StringValues other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public PolicySpec.PolicyRule.StringValues.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PolicySpec.PolicyRule.StringValues.Builder>
IOException
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 PolicySpec.PolicyRule.StringValues.Builder setAllowedValues(int index, String value)
List of values allowed at this resource.
repeated string allowed_values = 1;
index
- The index to set the value at.value
- The allowedValues to set.public PolicySpec.PolicyRule.StringValues.Builder addAllowedValues(String value)
List of values allowed at this resource.
repeated string allowed_values = 1;
value
- The allowedValues to add.public PolicySpec.PolicyRule.StringValues.Builder addAllAllowedValues(Iterable<String> values)
List of values allowed at this resource.
repeated string allowed_values = 1;
values
- The allowedValues to add.public PolicySpec.PolicyRule.StringValues.Builder clearAllowedValues()
List of values allowed at this resource.
repeated string allowed_values = 1;
public PolicySpec.PolicyRule.StringValues.Builder addAllowedValuesBytes(ByteString value)
List of values allowed at this resource.
repeated string allowed_values = 1;
value
- The bytes of the allowedValues to add.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 PolicySpec.PolicyRule.StringValues.Builder setDeniedValues(int index, String value)
List of values denied at this resource.
repeated string denied_values = 2;
index
- The index to set the value at.value
- The deniedValues to set.public PolicySpec.PolicyRule.StringValues.Builder addDeniedValues(String value)
List of values denied at this resource.
repeated string denied_values = 2;
value
- The deniedValues to add.public PolicySpec.PolicyRule.StringValues.Builder addAllDeniedValues(Iterable<String> values)
List of values denied at this resource.
repeated string denied_values = 2;
values
- The deniedValues to add.public PolicySpec.PolicyRule.StringValues.Builder clearDeniedValues()
List of values denied at this resource.
repeated string denied_values = 2;
public PolicySpec.PolicyRule.StringValues.Builder addDeniedValuesBytes(ByteString value)
List of values denied at this resource.
repeated string denied_values = 2;
value
- The bytes of the deniedValues to add.public final PolicySpec.PolicyRule.StringValues.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
public final PolicySpec.PolicyRule.StringValues.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PolicySpec.PolicyRule.StringValues.Builder>
Copyright © 2021 Google LLC. All rights reserved.