public static final class AdjustByImageFindings.Builder extends GeneratedMessage.Builder<AdjustByImageFindings.Builder> implements AdjustByImageFindingsOrBuilderAdjustmentRule 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AdjustByImageFindings.BuilderImplements
AdjustByImageFindingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllInfoTypes(Iterable<? extends InfoType> values)
public AdjustByImageFindings.Builder addAllInfoTypes(Iterable<? extends InfoType> values) 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 |
values |
Iterable<? extends com.google.privacy.dlp.v2.InfoType> |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
addInfoTypes(InfoType value)
public AdjustByImageFindings.Builder addInfoTypes(InfoType value) 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 |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
addInfoTypes(InfoType.Builder builderForValue)
public AdjustByImageFindings.Builder addInfoTypes(InfoType.Builder builderForValue) 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 |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
addInfoTypes(int index, InfoType value)
public AdjustByImageFindings.Builder addInfoTypes(int index, InfoType value) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
addInfoTypes(int index, InfoType.Builder builderForValue)
public AdjustByImageFindings.Builder addInfoTypes(int index, InfoType.Builder builderForValue) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
addInfoTypesBuilder()
public InfoType.Builder addInfoTypesBuilder() 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 |
InfoType.Builder |
|
addInfoTypesBuilder(int index)
public InfoType.Builder addInfoTypesBuilder(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.Builder |
|
build()
public AdjustByImageFindings build()| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings |
|
buildPartial()
public AdjustByImageFindings buildPartial()| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings |
|
clear()
public AdjustByImageFindings.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
clearImageContainmentType()
public AdjustByImageFindings.Builder clearImageContainmentType()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 |
AdjustByImageFindings.Builder |
|
clearInfoTypes()
public AdjustByImageFindings.Builder clearInfoTypes() 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 |
AdjustByImageFindings.Builder |
|
clearMinLikelihood()
public AdjustByImageFindings.Builder clearMinLikelihood() 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 |
AdjustByImageFindings.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AdjustByImageFindings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getImageContainmentTypeBuilder()
public ImageContainmentType.Builder getImageContainmentTypeBuilder()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.Builder |
|
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 |
|
getInfoTypesBuilder(int index)
public InfoType.Builder getInfoTypesBuilder(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.Builder |
|
getInfoTypesBuilderList()
public List<InfoType.Builder> getInfoTypesBuilderList() 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<Builder> |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdjustByImageFindings other)
public AdjustByImageFindings.Builder mergeFrom(AdjustByImageFindings other)| Parameter | |
|---|---|
| Name | Description |
other |
AdjustByImageFindings |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdjustByImageFindings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdjustByImageFindings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
mergeImageContainmentType(ImageContainmentType value)
public AdjustByImageFindings.Builder mergeImageContainmentType(ImageContainmentType value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ImageContainmentType |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
removeInfoTypes(int index)
public AdjustByImageFindings.Builder removeInfoTypes(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 |
AdjustByImageFindings.Builder |
|
setImageContainmentType(ImageContainmentType value)
public AdjustByImageFindings.Builder setImageContainmentType(ImageContainmentType value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ImageContainmentType |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
setImageContainmentType(ImageContainmentType.Builder builderForValue)
public AdjustByImageFindings.Builder setImageContainmentType(ImageContainmentType.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ImageContainmentType.Builder |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
setInfoTypes(int index, InfoType value)
public AdjustByImageFindings.Builder setInfoTypes(int index, InfoType value) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
setInfoTypes(int index, InfoType.Builder builderForValue)
public AdjustByImageFindings.Builder setInfoTypes(int index, InfoType.Builder builderForValue) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
|
setMinLikelihood(Likelihood value)
public AdjustByImageFindings.Builder setMinLikelihood(Likelihood value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
LikelihoodThe minLikelihood to set. |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
This builder for chaining. |
setMinLikelihoodValue(int value)
public AdjustByImageFindings.Builder setMinLikelihoodValue(int value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for minLikelihood to set. |
| Returns | |
|---|---|
| Type | Description |
AdjustByImageFindings.Builder |
This builder for chaining. |