Class CustomInfoType.DetectionRule.Proximity.Builder

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

public static final class CustomInfoType.DetectionRule.Proximity.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.DetectionRule.Proximity.Builder> implements CustomInfoType.DetectionRule.ProximityOrBuilder
 Message for specifying a window around a finding to apply a detection
 rule.
 
Protobuf type google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity
  • 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<CustomInfoType.DetectionRule.Proximity.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<CustomInfoType.DetectionRule.Proximity.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<CustomInfoType.DetectionRule.Proximity.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CustomInfoType.DetectionRule.Proximity.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<CustomInfoType.DetectionRule.Proximity.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<CustomInfoType.DetectionRule.Proximity.Builder>
    • mergeFrom

      public CustomInfoType.DetectionRule.Proximity.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<CustomInfoType.DetectionRule.Proximity.Builder>
      Throws:
      IOException
    • getWindowBefore

      public int getWindowBefore()
       Number of characters before the finding to consider. For tabular data,
       if you want to modify the likelihood of an entire column of findngs,
       set this to 1. For more information, see
       [Hotword example: Set the match likelihood of a table column]
       (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
       
      int32 window_before = 1;
      Specified by:
      getWindowBefore in interface CustomInfoType.DetectionRule.ProximityOrBuilder
      Returns:
      The windowBefore.
    • setWindowBefore

      public CustomInfoType.DetectionRule.Proximity.Builder setWindowBefore(int value)
       Number of characters before the finding to consider. For tabular data,
       if you want to modify the likelihood of an entire column of findngs,
       set this to 1. For more information, see
       [Hotword example: Set the match likelihood of a table column]
       (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
       
      int32 window_before = 1;
      Parameters:
      value - The windowBefore to set.
      Returns:
      This builder for chaining.
    • clearWindowBefore

       Number of characters before the finding to consider. For tabular data,
       if you want to modify the likelihood of an entire column of findngs,
       set this to 1. For more information, see
       [Hotword example: Set the match likelihood of a table column]
       (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
       
      int32 window_before = 1;
      Returns:
      This builder for chaining.
    • getWindowAfter

      public int getWindowAfter()
       Number of characters after the finding to consider.
       
      int32 window_after = 2;
      Specified by:
      getWindowAfter in interface CustomInfoType.DetectionRule.ProximityOrBuilder
      Returns:
      The windowAfter.
    • setWindowAfter

      public CustomInfoType.DetectionRule.Proximity.Builder setWindowAfter(int value)
       Number of characters after the finding to consider.
       
      int32 window_after = 2;
      Parameters:
      value - The windowAfter to set.
      Returns:
      This builder for chaining.
    • clearWindowAfter

       Number of characters after the finding to consider.
       
      int32 window_after = 2;
      Returns:
      This builder for chaining.