Class ExcludeByImageFindings.Builder

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

public static final class ExcludeByImageFindings.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExcludeByImageFindings.Builder> 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
  • 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion rule.
     
    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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion 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 exclusion rule.
    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 exclusion 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 exclusion 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 exclusion rule.

    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<ExcludeByImageFindings.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<ExcludeByImageFindings.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<ExcludeByImageFindings.Builder>
    • getDefaultInstanceForType

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

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

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

      public ExcludeByImageFindings.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<ExcludeByImageFindings.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<ExcludeByImageFindings.Builder>
    • mergeFrom

      public ExcludeByImageFindings.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<ExcludeByImageFindings.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 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;
      Specified by:
      getInfoTypesList in interface ExcludeByImageFindingsOrBuilder
    • 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 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;
      Specified by:
      getInfoTypesCount in interface ExcludeByImageFindingsOrBuilder
    • 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 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;
      Specified by:
      getInfoTypes in interface ExcludeByImageFindingsOrBuilder
    • setInfoTypes

      public ExcludeByImageFindings.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 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;
    • setInfoTypes

      public ExcludeByImageFindings.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 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;
    • addInfoTypes

      public ExcludeByImageFindings.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 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;
    • addInfoTypes

      public ExcludeByImageFindings.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 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;
    • addInfoTypes

      public ExcludeByImageFindings.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 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;
    • addInfoTypes

      public ExcludeByImageFindings.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 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;
    • addAllInfoTypes

      public ExcludeByImageFindings.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 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;
    • clearInfoTypes

      public ExcludeByImageFindings.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 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;
    • removeInfoTypes

      public ExcludeByImageFindings.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 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;
    • 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 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

      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 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;
      Specified by:
      getInfoTypesOrBuilder in interface ExcludeByImageFindingsOrBuilder
    • 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 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;
      Specified by:
      getInfoTypesOrBuilderList in interface ExcludeByImageFindingsOrBuilder
    • 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 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;
    • 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 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;
    • 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 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;
    • 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;
      Specified by:
      hasImageContainmentType in interface ExcludeByImageFindingsOrBuilder
      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 = 2;
      Specified by:
      getImageContainmentType in interface ExcludeByImageFindingsOrBuilder
      Returns:
      The imageContainmentType.
    • setImageContainmentType

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

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

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