Interface AdjustByImageFindingsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
AdjustByImageFindings, AdjustByImageFindings.Builder

@Generated public interface AdjustByImageFindingsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
    Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
    getInfoTypes(int index)
    A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule.
    int
    A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule.
    A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule.
    A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule.
    A list of image-supported infoTypes—excluding [document infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—to be used as context for the adjustment rule.
    Required.
    int
    Required.
    boolean
    Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getInfoTypesList

      List<InfoType> getInfoTypesList()
       A list of image-supported infoTypes—excluding [document
       infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—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;
    • getInfoTypes

      InfoType getInfoTypes(int index)
       A list of image-supported infoTypes—excluding [document
       infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—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;
    • getInfoTypesCount

      int getInfoTypesCount()
       A list of image-supported infoTypes—excluding [document
       infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—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;
    • getInfoTypesOrBuilderList

      List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()
       A list of image-supported infoTypes—excluding [document
       infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—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

      InfoTypeOrBuilder getInfoTypesOrBuilder(int index)
       A list of image-supported infoTypes—excluding [document
       infoTypes](https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#documents)—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;
    • getMinLikelihoodValue

      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:
      The enum numeric value on the wire for minLikelihood.
    • getMinLikelihood

      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:
      The minLikelihood.
    • hasImageContainmentType

      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:
      Whether the imageContainmentType field is set.
    • getImageContainmentType

      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:
      The imageContainmentType.
    • getImageContainmentTypeOrBuilder

      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;