Class ImageContainmentType (3.92.0)

public final class ImageContainmentType extends GeneratedMessage implements ImageContainmentTypeOrBuilder

Specifies the relationship between bounding boxes for image findings.

Protobuf type google.privacy.dlp.v2.ImageContainmentType

Static Fields

ENCLOSES_FIELD_NUMBER

public static final int ENCLOSES_FIELD_NUMBER
Field Value
Type Description
int

FULLY_INSIDE_FIELD_NUMBER

public static final int FULLY_INSIDE_FIELD_NUMBER
Field Value
Type Description
int

OVERLAPS_FIELD_NUMBER

public static final int OVERLAPS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImageContainmentType getDefaultInstance()
Returns
Type Description
ImageContainmentType

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ImageContainmentType.Builder newBuilder()
Returns
Type Description
ImageContainmentType.Builder

newBuilder(ImageContainmentType prototype)

public static ImageContainmentType.Builder newBuilder(ImageContainmentType prototype)
Parameter
Name Description
prototype ImageContainmentType
Returns
Type Description
ImageContainmentType.Builder

parseDelimitedFrom(InputStream input)

public static ImageContainmentType parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImageContainmentType parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageContainmentType parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageContainmentType parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImageContainmentType parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImageContainmentType parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageContainmentType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageContainmentType
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImageContainmentType> parser()
Returns
Type Description
Parser<ImageContainmentType>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ImageContainmentType getDefaultInstanceForType()
Returns
Type Description
ImageContainmentType

getEncloses()

public Encloses getEncloses()

The context finding's bounding box must fully contain the target finding's bounding box.

.google.privacy.dlp.v2.Encloses encloses = 1;

Returns
Type Description
Encloses

The encloses.

getEnclosesOrBuilder()

public EnclosesOrBuilder getEnclosesOrBuilder()

The context finding's bounding box must fully contain the target finding's bounding box.

.google.privacy.dlp.v2.Encloses encloses = 1;

Returns
Type Description
EnclosesOrBuilder

getFullyInside()

public FullyInside getFullyInside()

The context finding's bounding box must be fully inside the target finding's bounding box.

.google.privacy.dlp.v2.FullyInside fully_inside = 2;

Returns
Type Description
FullyInside

The fullyInside.

getFullyInsideOrBuilder()

public FullyInsideOrBuilder getFullyInsideOrBuilder()

The context finding's bounding box must be fully inside the target finding's bounding box.

.google.privacy.dlp.v2.FullyInside fully_inside = 2;

Returns
Type Description
FullyInsideOrBuilder

getOverlaps()

public Overlap getOverlaps()

The context finding's bounding box and the target finding's bounding box must have a non-zero intersection.

.google.privacy.dlp.v2.Overlap overlaps = 3;

Returns
Type Description
Overlap

The overlaps.

getOverlapsOrBuilder()

public OverlapOrBuilder getOverlapsOrBuilder()

The context finding's bounding box and the target finding's bounding box must have a non-zero intersection.

.google.privacy.dlp.v2.Overlap overlaps = 3;

Returns
Type Description
OverlapOrBuilder

getParserForType()

public Parser<ImageContainmentType> getParserForType()
Returns
Type Description
Parser<ImageContainmentType>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeCase()

public ImageContainmentType.TypeCase getTypeCase()
Returns
Type Description
ImageContainmentType.TypeCase

hasEncloses()

public boolean hasEncloses()

The context finding's bounding box must fully contain the target finding's bounding box.

.google.privacy.dlp.v2.Encloses encloses = 1;

Returns
Type Description
boolean

Whether the encloses field is set.

hasFullyInside()

public boolean hasFullyInside()

The context finding's bounding box must be fully inside the target finding's bounding box.

.google.privacy.dlp.v2.FullyInside fully_inside = 2;

Returns
Type Description
boolean

Whether the fullyInside field is set.

hasOverlaps()

public boolean hasOverlaps()

The context finding's bounding box and the target finding's bounding box must have a non-zero intersection.

.google.privacy.dlp.v2.Overlap overlaps = 3;

Returns
Type Description
boolean

Whether the overlaps field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImageContainmentType.Builder newBuilderForType()
Returns
Type Description
ImageContainmentType.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ImageContainmentType.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImageContainmentType.Builder
Overrides

toBuilder()

public ImageContainmentType.Builder toBuilder()
Returns
Type Description
ImageContainmentType.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException