public static final class ExcludeByImageFindings.Builder extends GeneratedMessage.Builder<ExcludeByImageFindings.Builder> implements ExcludeByImageFindingsOrBuilderThe 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExcludeByImageFindings.BuilderImplements
ExcludeByImageFindingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllInfoTypes(Iterable<? extends InfoType> values)
public ExcludeByImageFindings.Builder addAllInfoTypes(Iterable<? extends InfoType> values) 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 |
values |
Iterable<? extends com.google.privacy.dlp.v2.InfoType> |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
addInfoTypes(InfoType value)
public ExcludeByImageFindings.Builder addInfoTypes(InfoType value) 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 |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
addInfoTypes(InfoType.Builder builderForValue)
public ExcludeByImageFindings.Builder addInfoTypes(InfoType.Builder builderForValue) 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 |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
addInfoTypes(int index, InfoType value)
public ExcludeByImageFindings.Builder addInfoTypes(int index, InfoType value) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
addInfoTypes(int index, InfoType.Builder builderForValue)
public ExcludeByImageFindings.Builder addInfoTypes(int index, InfoType.Builder builderForValue) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
addInfoTypesBuilder()
public InfoType.Builder addInfoTypesBuilder() 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 |
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 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.Builder |
|
build()
public ExcludeByImageFindings build()| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings |
|
buildPartial()
public ExcludeByImageFindings buildPartial()| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings |
|
clear()
public ExcludeByImageFindings.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
clearImageContainmentType()
public ExcludeByImageFindings.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 = 2;
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
clearInfoTypes()
public ExcludeByImageFindings.Builder clearInfoTypes() 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 |
ExcludeByImageFindings.Builder |
|
getDefaultInstanceForType()
public ExcludeByImageFindings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings |
|
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 = 2;
| 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 = 2;
| 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 = 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 |
|
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 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.Builder |
|
getInfoTypesBuilderList()
public List<InfoType.Builder> getInfoTypesBuilderList() 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<Builder> |
|
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> |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExcludeByImageFindings other)
public ExcludeByImageFindings.Builder mergeFrom(ExcludeByImageFindings other)| Parameter | |
|---|---|
| Name | Description |
other |
ExcludeByImageFindings |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExcludeByImageFindings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExcludeByImageFindings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
mergeImageContainmentType(ImageContainmentType value)
public ExcludeByImageFindings.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 = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ImageContainmentType |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
removeInfoTypes(int index)
public ExcludeByImageFindings.Builder removeInfoTypes(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 |
ExcludeByImageFindings.Builder |
|
setImageContainmentType(ImageContainmentType value)
public ExcludeByImageFindings.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 = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ImageContainmentType |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
setImageContainmentType(ImageContainmentType.Builder builderForValue)
public ExcludeByImageFindings.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 = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ImageContainmentType.Builder |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
setInfoTypes(int index, InfoType value)
public ExcludeByImageFindings.Builder setInfoTypes(int index, InfoType value) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
InfoType |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|
setInfoTypes(int index, InfoType.Builder builderForValue)
public ExcludeByImageFindings.Builder setInfoTypes(int index, InfoType.Builder builderForValue) 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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
InfoType.Builder |
| Returns | |
|---|---|
| Type | Description |
ExcludeByImageFindings.Builder |
|