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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ExcludeByImageFindings.Builder newBuilder()
newBuilder(ExcludeByImageFindings prototype)
public static ExcludeByImageFindings.Builder newBuilder(ExcludeByImageFindings prototype)
public static ExcludeByImageFindings parseDelimitedFrom(InputStream input)
public static ExcludeByImageFindings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ExcludeByImageFindings parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExcludeByImageFindings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ExcludeByImageFindings parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExcludeByImageFindings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExcludeByImageFindings parseFrom(CodedInputStream input)
public static ExcludeByImageFindings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ExcludeByImageFindings parseFrom(InputStream input)
public static ExcludeByImageFindings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ExcludeByImageFindings parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExcludeByImageFindings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ExcludeByImageFindings> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ExcludeByImageFindings getDefaultInstanceForType()
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;
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;
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
|
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;
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
|
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ExcludeByImageFindings.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ExcludeByImageFindings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ExcludeByImageFindings.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides