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
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 |
|
MIN_LIKELIHOOD_FIELD_NUMBER
public static final int MIN_LIKELIHOOD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AdjustByImageFindings getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AdjustByImageFindings.Builder newBuilder()
newBuilder(AdjustByImageFindings prototype)
public static AdjustByImageFindings.Builder newBuilder(AdjustByImageFindings prototype)
public static AdjustByImageFindings parseDelimitedFrom(InputStream input)
public static AdjustByImageFindings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AdjustByImageFindings parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdjustByImageFindings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AdjustByImageFindings parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdjustByImageFindings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdjustByImageFindings parseFrom(CodedInputStream input)
public static AdjustByImageFindings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdjustByImageFindings parseFrom(InputStream input)
public static AdjustByImageFindings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AdjustByImageFindings parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdjustByImageFindings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AdjustByImageFindings> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public AdjustByImageFindings 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 = 3;
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;
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
|
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;
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
|
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AdjustByImageFindings.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AdjustByImageFindings.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public AdjustByImageFindings.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides