Class CustomInfoType.DetectionRule.HotwordRule (3.3.2) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.3.2keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  CustomInfoType . DetectionRule . HotwordRule   extends   GeneratedMessageV3   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
 
  
  
  
  Static Fields
   
  HOTWORD_REGEX_FIELD_NUMBER 
  
    
public   static   final   int   HOTWORD_REGEX_FIELD_NUMBER  
   
  Field Value 
  
  LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER 
  
    
public   static   final   int   LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER  
   
  Field Value 
  
  PROXIMITY_FIELD_NUMBER 
  
    
public   static   final   int   PROXIMITY_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(CustomInfoType.DetectionRule.HotwordRule prototype) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule . Builder   newBuilder ( CustomInfoType . DetectionRule . HotwordRule   prototype )  
   
  Parameter 
  
  Returns 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   CustomInfoType . DetectionRule . HotwordRule   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<CustomInfoType . DetectionRule . HotwordRule >  parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   CustomInfoType . DetectionRule . HotwordRule   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getHotwordRegex() 
  
    
public   CustomInfoType . Regex   getHotwordRegex ()  
   
   Regular expression pattern defining what qualifies as a hotword.
 .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
 
  Returns 
  
   
  getHotwordRegexOrBuilder() 
  
    
public   CustomInfoType . RegexOrBuilder   getHotwordRegexOrBuilder ()  
   
   Regular expression pattern defining what qualifies as a hotword.
 .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
 
  Returns 
  
   
  getLikelihoodAdjustment() 
  
    
public   CustomInfoType . DetectionRule . LikelihoodAdjustment   getLikelihoodAdjustment ()  
   
   Likelihood adjustment to apply to all matching findings.
 
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
 
 
  Returns 
  
   
  getLikelihoodAdjustmentOrBuilder() 
  
    
public   CustomInfoType . DetectionRule . LikelihoodAdjustmentOrBuilder   getLikelihoodAdjustmentOrBuilder ()  
   
   Likelihood adjustment to apply to all matching findings.
 
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
 
 
  Returns 
  
   
  getParserForType() 
  
    
public   Parser<CustomInfoType . DetectionRule . HotwordRule >  getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getProximity() 
  
    
public   CustomInfoType . DetectionRule . Proximity   getProximity ()  
   
   Proximity of the finding within which the entire hotword must reside.
 The total length of the window cannot exceed 1000 characters. Note that
 the finding itself will be included in the window, so that hotwords may
 be used to match substrings of the finding itself. For example, the
 certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
 adjusted upwards if the area code is known to be the local area code of
 a company office using the hotword regex "\(xxx\)", where "xxx"
 is the area code in question.
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
 
  Returns 
  
   
  getProximityOrBuilder() 
  
    
public   CustomInfoType . DetectionRule . ProximityOrBuilder   getProximityOrBuilder ()  
   
   Proximity of the finding within which the entire hotword must reside.
 The total length of the window cannot exceed 1000 characters. Note that
 the finding itself will be included in the window, so that hotwords may
 be used to match substrings of the finding itself. For example, the
 certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
 adjusted upwards if the area code is known to be the local area code of
 a company office using the hotword regex "\(xxx\)", where "xxx"
 is the area code in question.
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
 
  Returns 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hasHotwordRegex() 
  
    
public   boolean   hasHotwordRegex ()  
   
   Regular expression pattern defining what qualifies as a hotword.
 .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the hotwordRegex field is set.
 
       
     
  
   
  hasLikelihoodAdjustment() 
  
    
public   boolean   hasLikelihoodAdjustment ()  
   
   Likelihood adjustment to apply to all matching findings.
 
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the likelihoodAdjustment field is set.
 
       
     
  
   
  hasProximity() 
  
    
public   boolean   hasProximity ()  
   
   Proximity of the finding within which the entire hotword must reside.
 The total length of the window cannot exceed 1000 characters. Note that
 the finding itself will be included in the window, so that hotwords may
 be used to match substrings of the finding itself. For example, the
 certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
 adjusted upwards if the area code is known to be the local area code of
 a company office using the hotword regex "\(xxx\)", where "xxx"
 is the area code in question.
 .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        boolean  
        Whether the proximity field is set.
 
       
     
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   CustomInfoType . DetectionRule . HotwordRule . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   CustomInfoType . DetectionRule . HotwordRule . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   CustomInfoType . DetectionRule . HotwordRule . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]