Package com.google.privacy.dlp.v2
Interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CustomInfoType.DetectionRule.HotwordRule,CustomInfoType.DetectionRule.HotwordRule.Builder
- Enclosing class:
- CustomInfoType.DetectionRule
public static interface CustomInfoType.DetectionRule.HotwordRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRegular expression pattern defining what qualifies as a hotword.Regular expression pattern defining what qualifies as a hotword.Likelihood adjustment to apply to all matching findings.Likelihood adjustment to apply to all matching findings.Range of characters within which the entire hotword must reside.Range of characters within which the entire hotword must reside.booleanRegular expression pattern defining what qualifies as a hotword.booleanLikelihood adjustment to apply to all matching findings.booleanRange of characters within which the entire hotword must reside.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasHotwordRegex
boolean hasHotwordRegex()Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;- Returns:
- Whether the hotwordRegex field is set.
-
getHotwordRegex
CustomInfoType.Regex getHotwordRegex()Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;- Returns:
- The hotwordRegex.
-
getHotwordRegexOrBuilder
CustomInfoType.RegexOrBuilder getHotwordRegexOrBuilder()Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; -
hasProximity
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;- Returns:
- Whether the proximity field is set.
-
getProximity
CustomInfoType.DetectionRule.Proximity 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;- Returns:
- The proximity.
-
getProximityOrBuilder
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; -
hasLikelihoodAdjustment
boolean hasLikelihoodAdjustment()Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;- Returns:
- Whether the likelihoodAdjustment field is set.
-
getLikelihoodAdjustment
CustomInfoType.DetectionRule.LikelihoodAdjustment getLikelihoodAdjustment()Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;- Returns:
- The likelihoodAdjustment.
-
getLikelihoodAdjustmentOrBuilder
CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder getLikelihoodAdjustmentOrBuilder()Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
-