Class AdjustByImageFindings (3.92.0)

public final class AdjustByImageFindings extends GeneratedMessage implements AdjustByImageFindingsOrBuilder

AdjustmentRule condition for image findings. This rule is silently ignored if the content being inspected is not an image.

Protobuf type google.privacy.dlp.v2.AdjustByImageFindings

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

MIN_LIKELIHOOD_FIELD_NUMBER

public static final int MIN_LIKELIHOOD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdjustByImageFindings getDefaultInstance()
Returns
Type Description
AdjustByImageFindings

getDescriptor()

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

newBuilder()

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

newBuilder(AdjustByImageFindings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AdjustByImageFindings getDefaultInstanceForType()
Returns
Type Description
AdjustByImageFindings

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 = 3;

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 = 3;

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 adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding 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, you can create a rule to adjust the likelihood of a US_PASSPORT finding if it is enclosed by a finding of OBJECT_TYPE/PERSON/PASSPORT. To configure this, set US_PASSPORT in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_image_findings.info_types that contains OBJECT_TYPE/PERSON/PASSPORT and image_containment_type set to encloses. In this case, the likelihood of the US_PASSPORT finding is adjusted, but the likelihood of the OBJECT_TYPE/PERSON/PASSPORT finding is not.

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 adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding 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, you can create a rule to adjust the likelihood of a US_PASSPORT finding if it is enclosed by a finding of OBJECT_TYPE/PERSON/PASSPORT. To configure this, set US_PASSPORT in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_image_findings.info_types that contains OBJECT_TYPE/PERSON/PASSPORT and image_containment_type set to encloses. In this case, the likelihood of the US_PASSPORT finding is adjusted, but the likelihood of the OBJECT_TYPE/PERSON/PASSPORT finding is not.

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 adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding 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, you can create a rule to adjust the likelihood of a US_PASSPORT finding if it is enclosed by a finding of OBJECT_TYPE/PERSON/PASSPORT. To configure this, set US_PASSPORT in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_image_findings.info_types that contains OBJECT_TYPE/PERSON/PASSPORT and image_containment_type set to encloses. In this case, the likelihood of the US_PASSPORT finding is adjusted, but the likelihood of the OBJECT_TYPE/PERSON/PASSPORT finding is not.

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 adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding 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, you can create a rule to adjust the likelihood of a US_PASSPORT finding if it is enclosed by a finding of OBJECT_TYPE/PERSON/PASSPORT. To configure this, set US_PASSPORT in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_image_findings.info_types that contains OBJECT_TYPE/PERSON/PASSPORT and image_containment_type set to encloses. In this case, the likelihood of the US_PASSPORT finding is adjusted, but the likelihood of the OBJECT_TYPE/PERSON/PASSPORT finding is not.

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 adjustment rule. Sensitive Data Protection adjusts the likelihood of an image finding 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, you can create a rule to adjust the likelihood of a US_PASSPORT finding if it is enclosed by a finding of OBJECT_TYPE/PERSON/PASSPORT. To configure this, set US_PASSPORT in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_image_findings.info_types that contains OBJECT_TYPE/PERSON/PASSPORT and image_containment_type set to encloses. In this case, the likelihood of the US_PASSPORT finding is adjusted, but the likelihood of the OBJECT_TYPE/PERSON/PASSPORT finding is not.

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

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

getMinLikelihood()

public Likelihood getMinLikelihood()

Required. Minimum likelihood of the adjust_by_image_findings.info_types finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the InspectionRuleSet.info_types finding.

.google.privacy.dlp.v2.Likelihood min_likelihood = 2;

Returns
Type Description
Likelihood

The minLikelihood.

getMinLikelihoodValue()

public int getMinLikelihoodValue()

Required. Minimum likelihood of the adjust_by_image_findings.info_types finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the InspectionRuleSet.info_types finding.

.google.privacy.dlp.v2.Likelihood min_likelihood = 2;

Returns
Type Description
int

The enum numeric value on the wire for minLikelihood.

getParserForType()

public Parser<AdjustByImageFindings> getParserForType()
Returns
Type Description
Parser<AdjustByImageFindings>
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 = 3;

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 AdjustByImageFindings.Builder newBuilderForType()
Returns
Type Description
AdjustByImageFindings.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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