Class Constraint.ListConstraint (2.35.0)

public static final class Constraint.ListConstraint extends GeneratedMessageV3 implements Constraint.ListConstraintOrBuilder

A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.

Protobuf type google.cloud.orgpolicy.v2.Constraint.ListConstraint

Static Fields

SUPPORTS_IN_FIELD_NUMBER

public static final int SUPPORTS_IN_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORTS_UNDER_FIELD_NUMBER

public static final int SUPPORTS_UNDER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Constraint.ListConstraint getDefaultInstance()
Returns
TypeDescription
Constraint.ListConstraint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Constraint.ListConstraint.Builder newBuilder()
Returns
TypeDescription
Constraint.ListConstraint.Builder

newBuilder(Constraint.ListConstraint prototype)

public static Constraint.ListConstraint.Builder newBuilder(Constraint.ListConstraint prototype)
Parameter
NameDescription
prototypeConstraint.ListConstraint
Returns
TypeDescription
Constraint.ListConstraint.Builder

parseDelimitedFrom(InputStream input)

public static Constraint.ListConstraint parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Constraint.ListConstraint parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Constraint.ListConstraint parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Constraint.ListConstraint parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Constraint.ListConstraint parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Constraint.ListConstraint parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Constraint.ListConstraint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Constraint.ListConstraint
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Constraint.ListConstraint> parser()
Returns
TypeDescription
Parser<ListConstraint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Constraint.ListConstraint getDefaultInstanceForType()
Returns
TypeDescription
Constraint.ListConstraint

getParserForType()

public Parser<Constraint.ListConstraint> getParserForType()
Returns
TypeDescription
Parser<ListConstraint>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSupportsIn()

public boolean getSupportsIn()

Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

bool supports_in = 1;

Returns
TypeDescription
boolean

The supportsIn.

getSupportsUnder()

public boolean getSupportsUnder()

Indicates whether subtrees of the Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.

bool supports_under = 2;

Returns
TypeDescription
boolean

The supportsUnder.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Constraint.ListConstraint.Builder newBuilderForType()
Returns
TypeDescription
Constraint.ListConstraint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Constraint.ListConstraint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Constraint.ListConstraint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Constraint.ListConstraint.Builder toBuilder()
Returns
TypeDescription
Constraint.ListConstraint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException