Class ExclusionRule.Builder

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

public static final class ExclusionRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder> implements ExclusionRuleOrBuilder
 The rule that specifies conditions when findings of infoTypes specified in
 `InspectionRuleSet` are removed from results.
 
Protobuf type google.privacy.dlp.v2.ExclusionRule
  • 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<ExclusionRule.Builder>
    • clear

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

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

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

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

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

      public ExclusionRule.Builder mergeFrom(ExclusionRule other)
    • isInitialized

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

      public ExclusionRule.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<ExclusionRule.Builder>
      Throws:
      IOException
    • getTypeCase

      public ExclusionRule.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface ExclusionRuleOrBuilder
    • clearType

      public ExclusionRule.Builder clearType()
    • hasDictionary

      public boolean hasDictionary()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      Specified by:
      hasDictionary in interface ExclusionRuleOrBuilder
      Returns:
      Whether the dictionary field is set.
    • getDictionary

      public CustomInfoType.Dictionary getDictionary()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      Specified by:
      getDictionary in interface ExclusionRuleOrBuilder
      Returns:
      The dictionary.
    • setDictionary

      public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary value)
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
    • setDictionary

      public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
    • mergeDictionary

      public ExclusionRule.Builder mergeDictionary(CustomInfoType.Dictionary value)
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
    • clearDictionary

      public ExclusionRule.Builder clearDictionary()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
    • getDictionaryBuilder

      public CustomInfoType.Dictionary.Builder getDictionaryBuilder()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
    • getDictionaryOrBuilder

      public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      Specified by:
      getDictionaryOrBuilder in interface ExclusionRuleOrBuilder
    • hasRegex

      public boolean hasRegex()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      Specified by:
      hasRegex in interface ExclusionRuleOrBuilder
      Returns:
      Whether the regex field is set.
    • getRegex

      public CustomInfoType.Regex getRegex()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      Specified by:
      getRegex in interface ExclusionRuleOrBuilder
      Returns:
      The regex.
    • setRegex

       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
    • setRegex

      public ExclusionRule.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
    • mergeRegex

      public ExclusionRule.Builder mergeRegex(CustomInfoType.Regex value)
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
    • clearRegex

      public ExclusionRule.Builder clearRegex()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
    • getRegexBuilder

      public CustomInfoType.Regex.Builder getRegexBuilder()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
    • getRegexOrBuilder

      public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      Specified by:
      getRegexOrBuilder in interface ExclusionRuleOrBuilder
    • hasExcludeInfoTypes

      public boolean hasExcludeInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      Specified by:
      hasExcludeInfoTypes in interface ExclusionRuleOrBuilder
      Returns:
      Whether the excludeInfoTypes field is set.
    • getExcludeInfoTypes

      public ExcludeInfoTypes getExcludeInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      Specified by:
      getExcludeInfoTypes in interface ExclusionRuleOrBuilder
      Returns:
      The excludeInfoTypes.
    • setExcludeInfoTypes

      public ExclusionRule.Builder setExcludeInfoTypes(ExcludeInfoTypes value)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
    • setExcludeInfoTypes

      public ExclusionRule.Builder setExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
    • mergeExcludeInfoTypes

      public ExclusionRule.Builder mergeExcludeInfoTypes(ExcludeInfoTypes value)
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
    • clearExcludeInfoTypes

      public ExclusionRule.Builder clearExcludeInfoTypes()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
    • getExcludeInfoTypesBuilder

      public ExcludeInfoTypes.Builder getExcludeInfoTypesBuilder()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
    • getExcludeInfoTypesOrBuilder

      public ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      Specified by:
      getExcludeInfoTypesOrBuilder in interface ExclusionRuleOrBuilder
    • hasExcludeByHotword

      public boolean hasExcludeByHotword()
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      Specified by:
      hasExcludeByHotword in interface ExclusionRuleOrBuilder
      Returns:
      Whether the excludeByHotword field is set.
    • getExcludeByHotword

      public ExcludeByHotword getExcludeByHotword()
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      Specified by:
      getExcludeByHotword in interface ExclusionRuleOrBuilder
      Returns:
      The excludeByHotword.
    • setExcludeByHotword

      public ExclusionRule.Builder setExcludeByHotword(ExcludeByHotword value)
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
    • setExcludeByHotword

      public ExclusionRule.Builder setExcludeByHotword(ExcludeByHotword.Builder builderForValue)
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
    • mergeExcludeByHotword

      public ExclusionRule.Builder mergeExcludeByHotword(ExcludeByHotword value)
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
    • clearExcludeByHotword

      public ExclusionRule.Builder clearExcludeByHotword()
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
    • getExcludeByHotwordBuilder

      public ExcludeByHotword.Builder getExcludeByHotwordBuilder()
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
    • getExcludeByHotwordOrBuilder

      public ExcludeByHotwordOrBuilder getExcludeByHotwordOrBuilder()
       Drop if the hotword rule is contained in the proximate context. For
       tabular data, the context includes the column name.
       
      .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      Specified by:
      getExcludeByHotwordOrBuilder in interface ExclusionRuleOrBuilder
    • hasExcludeByImageFindings

      public boolean hasExcludeByImageFindings()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      hasExcludeByImageFindings in interface ExclusionRuleOrBuilder
      Returns:
      Whether the excludeByImageFindings field is set.
    • getExcludeByImageFindings

      public ExcludeByImageFindings getExcludeByImageFindings()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      getExcludeByImageFindings in interface ExclusionRuleOrBuilder
      Returns:
      The excludeByImageFindings.
    • setExcludeByImageFindings

      public ExclusionRule.Builder setExcludeByImageFindings(ExcludeByImageFindings value)
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
    • setExcludeByImageFindings

      public ExclusionRule.Builder setExcludeByImageFindings(ExcludeByImageFindings.Builder builderForValue)
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
    • mergeExcludeByImageFindings

      public ExclusionRule.Builder mergeExcludeByImageFindings(ExcludeByImageFindings value)
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
    • clearExcludeByImageFindings

      public ExclusionRule.Builder clearExcludeByImageFindings()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
    • getExcludeByImageFindingsBuilder

      public ExcludeByImageFindings.Builder getExcludeByImageFindingsBuilder()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
    • getExcludeByImageFindingsOrBuilder

      public ExcludeByImageFindingsOrBuilder getExcludeByImageFindingsOrBuilder()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      getExcludeByImageFindingsOrBuilder in interface ExclusionRuleOrBuilder
    • getMatchingTypeValue

      public int getMatchingTypeValue()
       How the rule is applied, see MatchingType documentation for details.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 4;
      Specified by:
      getMatchingTypeValue in interface ExclusionRuleOrBuilder
      Returns:
      The enum numeric value on the wire for matchingType.
    • setMatchingTypeValue

      public ExclusionRule.Builder setMatchingTypeValue(int value)
       How the rule is applied, see MatchingType documentation for details.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 4;
      Parameters:
      value - The enum numeric value on the wire for matchingType to set.
      Returns:
      This builder for chaining.
    • getMatchingType

      public MatchingType getMatchingType()
       How the rule is applied, see MatchingType documentation for details.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 4;
      Specified by:
      getMatchingType in interface ExclusionRuleOrBuilder
      Returns:
      The matchingType.
    • setMatchingType

      public ExclusionRule.Builder setMatchingType(MatchingType value)
       How the rule is applied, see MatchingType documentation for details.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 4;
      Parameters:
      value - The matchingType to set.
      Returns:
      This builder for chaining.
    • clearMatchingType

      public ExclusionRule.Builder clearMatchingType()
       How the rule is applied, see MatchingType documentation for details.
       
      .google.privacy.dlp.v2.MatchingType matching_type = 4;
      Returns:
      This builder for chaining.