Class AdjustByImageFindings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder>
com.google.privacy.dlp.v2.AdjustByImageFindings.Builder
All Implemented Interfaces:
AdjustByImageFindingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdjustByImageFindings

public static final class AdjustByImageFindings.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder> 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
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllInfoTypes(Iterable<? extends InfoType> values)
    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.
    addInfoTypes(int index, InfoType value)
    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.
    addInfoTypes(int index, InfoType.Builder builderForValue)
    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.
    addInfoTypes(InfoType.Builder builderForValue)
    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.
     
     
     
    Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
    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.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    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.
    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.
    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.
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    Specifies the required spatial relationship between the bounding boxes of the target finding and the context infoType findings.
    removeInfoTypes(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.
    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.
    setInfoTypes(int index, InfoType value)
    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.
    setInfoTypes(int index, InfoType.Builder builderForValue)
    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.
    Required.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder>
    • getDefaultInstanceForType

      public AdjustByImageFindings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AdjustByImageFindings build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AdjustByImageFindings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AdjustByImageFindings.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdjustByImageFindings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AdjustByImageFindings.Builder>
    • mergeFrom

      public AdjustByImageFindings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdjustByImageFindings.Builder>
      Throws:
      IOException
    • getInfoTypesList

      public 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;
      Specified by:
      getInfoTypesList in interface AdjustByImageFindingsOrBuilder
    • getInfoTypesCount

      public 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;
      Specified by:
      getInfoTypesCount in interface AdjustByImageFindingsOrBuilder
    • getInfoTypes

      public 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;
      Specified by:
      getInfoTypes in interface AdjustByImageFindingsOrBuilder
    • setInfoTypes

      public AdjustByImageFindings.Builder setInfoTypes(int index, InfoType value)
       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;
    • setInfoTypes

      public AdjustByImageFindings.Builder setInfoTypes(int index, InfoType.Builder builderForValue)
       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;
    • addInfoTypes

      public AdjustByImageFindings.Builder addInfoTypes(InfoType value)
       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;
    • addInfoTypes

      public AdjustByImageFindings.Builder addInfoTypes(int index, InfoType value)
       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;
    • addInfoTypes

      public AdjustByImageFindings.Builder addInfoTypes(InfoType.Builder builderForValue)
       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;
    • addInfoTypes

      public AdjustByImageFindings.Builder addInfoTypes(int index, InfoType.Builder builderForValue)
       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;
    • addAllInfoTypes

      public AdjustByImageFindings.Builder addAllInfoTypes(Iterable<? extends InfoType> values)
       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;
    • clearInfoTypes

      public AdjustByImageFindings.Builder clearInfoTypes()
       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;
    • removeInfoTypes

      public AdjustByImageFindings.Builder removeInfoTypes(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;
    • getInfoTypesBuilder

      public InfoType.Builder getInfoTypesBuilder(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;
    • getInfoTypesOrBuilder

      public 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;
      Specified by:
      getInfoTypesOrBuilder in interface AdjustByImageFindingsOrBuilder
    • getInfoTypesOrBuilderList

      public 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;
      Specified by:
      getInfoTypesOrBuilderList in interface AdjustByImageFindingsOrBuilder
    • addInfoTypesBuilder

      public InfoType.Builder addInfoTypesBuilder()
       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;
    • addInfoTypesBuilder

      public InfoType.Builder addInfoTypesBuilder(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;
    • getInfoTypesBuilderList

      public List<InfoType.Builder> getInfoTypesBuilderList()
       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

      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;
      Specified by:
      getMinLikelihoodValue in interface AdjustByImageFindingsOrBuilder
      Returns:
      The enum numeric value on the wire for minLikelihood.
    • setMinLikelihoodValue

      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;
      Parameters:
      value - The enum numeric value on the wire for minLikelihood to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getMinLikelihood in interface AdjustByImageFindingsOrBuilder
      Returns:
      The minLikelihood.
    • setMinLikelihood

      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;
      Parameters:
      value - The minLikelihood to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      hasImageContainmentType in interface AdjustByImageFindingsOrBuilder
      Returns:
      Whether the imageContainmentType field is set.
    • 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;
      Specified by:
      getImageContainmentType in interface AdjustByImageFindingsOrBuilder
      Returns:
      The imageContainmentType.
    • setImageContainmentType

      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;
    • setImageContainmentType

      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;
    • mergeImageContainmentType

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getImageContainmentTypeOrBuilder in interface AdjustByImageFindingsOrBuilder