Class ExcludeByImageFindings (3.92.0)

public final class ExcludeByImageFindings extends GeneratedMessage implements ExcludeByImageFindingsOrBuilder

The rule to exclude image findings based on spatial relationships with other image findings. For example, exclude an image finding if it overlaps with another image finding. This rule is silently ignored if the content being inspected is not an image.

Protobuf type google.privacy.dlp.v2.ExcludeByImageFindings

Static Fields

IMAGE_CONTAINMENT_TYPE_FIELD_NUMBER

public static final int IMAGE_CONTAINMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

INFO_TYPES_FIELD_NUMBER

public static final int INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExcludeByImageFindings getDefaultInstance()
Returns
Type Description
ExcludeByImageFindings

getDescriptor()

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

newBuilder()

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

newBuilder(ExcludeByImageFindings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExcludeByImageFindings getDefaultInstanceForType()
Returns
Type Description
ExcludeByImageFindings

getImageContainmentType()

public ImageContainmentType getImageContainmentType()

Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.

.google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2;

Returns
Type Description
ImageContainmentType

The imageContainmentType.

getImageContainmentTypeOrBuilder()

public ImageContainmentTypeOrBuilder getImageContainmentTypeOrBuilder()

Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.

.google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2;

Returns
Type Description
ImageContainmentTypeOrBuilder

getInfoTypes(int index)

public InfoType getInfoTypes(int index)

A list of image-supported infoTypes—excluding document infoTypes—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by image_containment_type) with a finding of an infoType in this list.

For example, if InspectionRuleSet.info_types includes OBJECT_TYPE/PERSON and this exclusion_rule specifies info_types as OBJECT_TYPE/PERSON/PASSPORT with image_containment_type set to encloses, then OBJECT_TYPE/PERSON findings will be excluded if they are fully contained within the bounding box of an OBJECT_TYPE/PERSON/PASSPORT finding.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoType

getInfoTypesCount()

public int getInfoTypesCount()

A list of image-supported infoTypes—excluding document infoTypes—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by image_containment_type) with a finding of an infoType in this list.

For example, if InspectionRuleSet.info_types includes OBJECT_TYPE/PERSON and this exclusion_rule specifies info_types as OBJECT_TYPE/PERSON/PASSPORT with image_containment_type set to encloses, then OBJECT_TYPE/PERSON findings will be excluded if they are fully contained within the bounding box of an OBJECT_TYPE/PERSON/PASSPORT finding.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
int

getInfoTypesList()

public List<InfoType> getInfoTypesList()

A list of image-supported infoTypes—excluding document infoTypes—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by image_containment_type) with a finding of an infoType in this list.

For example, if InspectionRuleSet.info_types includes OBJECT_TYPE/PERSON and this exclusion_rule specifies info_types as OBJECT_TYPE/PERSON/PASSPORT with image_containment_type set to encloses, then OBJECT_TYPE/PERSON findings will be excluded if they are fully contained within the bounding box of an OBJECT_TYPE/PERSON/PASSPORT finding.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<InfoType>

getInfoTypesOrBuilder(int index)

public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)

A list of image-supported infoTypes—excluding document infoTypes—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by image_containment_type) with a finding of an infoType in this list.

For example, if InspectionRuleSet.info_types includes OBJECT_TYPE/PERSON and this exclusion_rule specifies info_types as OBJECT_TYPE/PERSON/PASSPORT with image_containment_type set to encloses, then OBJECT_TYPE/PERSON findings will be excluded if they are fully contained within the bounding box of an OBJECT_TYPE/PERSON/PASSPORT finding.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoTypeOrBuilder

getInfoTypesOrBuilderList()

public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()

A list of image-supported infoTypes—excluding document infoTypes—to be used as context for the exclusion rule. A finding is excluded if its bounding box has the specified spatial relationship (defined by image_containment_type) with a finding of an infoType in this list.

For example, if InspectionRuleSet.info_types includes OBJECT_TYPE/PERSON and this exclusion_rule specifies info_types as OBJECT_TYPE/PERSON/PASSPORT with image_containment_type set to encloses, then OBJECT_TYPE/PERSON findings will be excluded if they are fully contained within the bounding box of an OBJECT_TYPE/PERSON/PASSPORT finding.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasImageContainmentType()

public boolean hasImageContainmentType()

Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.

.google.privacy.dlp.v2.ImageContainmentType image_containment_type = 2;

Returns
Type Description
boolean

Whether the imageContainmentType 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 ExcludeByImageFindings.Builder newBuilderForType()
Returns
Type Description
ExcludeByImageFindings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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