Class ExcludeByHotword.Builder

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

public static final class ExcludeByHotword.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExcludeByHotword.Builder> implements ExcludeByHotwordOrBuilder
 The rule to exclude findings based on a hotword. For record inspection of
 tables, column names are considered hotwords. An example of this is to
 exclude a finding if it belongs to a BigQuery column that matches a specific
 pattern.
 
Protobuf type google.privacy.dlp.v2.ExcludeByHotword
  • 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<ExcludeByHotword.Builder>
    • clear

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

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

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

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

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

      public ExcludeByHotword.Builder mergeFrom(ExcludeByHotword other)
    • isInitialized

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

      public ExcludeByHotword.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<ExcludeByHotword.Builder>
      Throws:
      IOException
    • hasHotwordRegex

      public boolean hasHotwordRegex()
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
      Specified by:
      hasHotwordRegex in interface ExcludeByHotwordOrBuilder
      Returns:
      Whether the hotwordRegex field is set.
    • getHotwordRegex

      public CustomInfoType.Regex getHotwordRegex()
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
      Specified by:
      getHotwordRegex in interface ExcludeByHotwordOrBuilder
      Returns:
      The hotwordRegex.
    • setHotwordRegex

      public ExcludeByHotword.Builder setHotwordRegex(CustomInfoType.Regex value)
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • setHotwordRegex

      public ExcludeByHotword.Builder setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • mergeHotwordRegex

      public ExcludeByHotword.Builder mergeHotwordRegex(CustomInfoType.Regex value)
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • clearHotwordRegex

      public ExcludeByHotword.Builder clearHotwordRegex()
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • getHotwordRegexBuilder

      public CustomInfoType.Regex.Builder getHotwordRegexBuilder()
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • getHotwordRegexOrBuilder

      public CustomInfoType.RegexOrBuilder getHotwordRegexOrBuilder()
       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
      Specified by:
      getHotwordRegexOrBuilder in interface ExcludeByHotwordOrBuilder
    • hasProximity

      public boolean hasProximity()
       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      hasProximity in interface ExcludeByHotwordOrBuilder
      Returns:
      Whether the proximity field is set.
    • getProximity

       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      getProximity in interface ExcludeByHotwordOrBuilder
      Returns:
      The proximity.
    • setProximity

       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • setProximity

       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • mergeProximity

       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • clearProximity

      public ExcludeByHotword.Builder clearProximity()
       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • getProximityBuilder

      public CustomInfoType.DetectionRule.Proximity.Builder getProximityBuilder()
       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • getProximityOrBuilder

      public CustomInfoType.DetectionRule.ProximityOrBuilder getProximityOrBuilder()
       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The windowBefore property in proximity should be set to 1 if the hotword
       needs to be included in a column header.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      getProximityOrBuilder in interface ExcludeByHotwordOrBuilder