Class CustomInfoType.DetectionRule.HotwordRule.Builder

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

public static final class CustomInfoType.DetectionRule.HotwordRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.DetectionRule.HotwordRule.Builder> implements CustomInfoType.DetectionRule.HotwordRuleOrBuilder
 The rule that adjusts the likelihood of findings within a certain
 proximity of hotwords.
 
Protobuf type google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule
  • 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.HotwordRule.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.HotwordRule.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.HotwordRule.Builder>
    • getDefaultInstanceForType

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

      public CustomInfoType.DetectionRule.HotwordRule.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.HotwordRule.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 CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      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 CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      Returns:
      The hotwordRegex.
    • setHotwordRegex

       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • setHotwordRegex

       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • mergeHotwordRegex

       Regular expression pattern defining what qualifies as a hotword.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
    • 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 CustomInfoType.DetectionRule.HotwordRuleOrBuilder
    • 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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      hasProximity in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      getProximity in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
    • clearProximity

       Range of characters within which the entire hotword must reside.
       The total length of the window cannot exceed 1000 characters.
       The finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .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 finding itself will be included in the window, so that hotwords can
       be used to match substrings of the finding itself. Suppose you
       want Cloud DLP to promote the likelihood of the phone number
       regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
       area code of a company's office. In this case, use the hotword regex
       "\(xxx\)", where "xxx" is the area code in question.
      
       For tabular data, if you want to modify the likelihood of an entire
       column of findngs, 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).
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
      Specified by:
      getProximityOrBuilder in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
    • hasLikelihoodAdjustment

      public boolean hasLikelihoodAdjustment()
       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
      Specified by:
      hasLikelihoodAdjustment in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      Returns:
      Whether the likelihoodAdjustment field is set.
    • getLikelihoodAdjustment

      public CustomInfoType.DetectionRule.LikelihoodAdjustment getLikelihoodAdjustment()
       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
      Specified by:
      getLikelihoodAdjustment in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
      Returns:
      The likelihoodAdjustment.
    • setLikelihoodAdjustment

       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
    • setLikelihoodAdjustment

       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
    • mergeLikelihoodAdjustment

       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
    • clearLikelihoodAdjustment

      public CustomInfoType.DetectionRule.HotwordRule.Builder clearLikelihoodAdjustment()
       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
    • getLikelihoodAdjustmentBuilder

      public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder getLikelihoodAdjustmentBuilder()
       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
    • getLikelihoodAdjustmentOrBuilder

      public CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder getLikelihoodAdjustmentOrBuilder()
       Likelihood adjustment to apply to all matching findings.
       
      .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
      Specified by:
      getLikelihoodAdjustmentOrBuilder in interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder