public static final class CustomInfoType.DetectionRule.HotwordRule.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CustomInfoType.DetectionRule.HotwordRule build()
buildPartial()
public CustomInfoType.DetectionRule.HotwordRule buildPartial()
clear()
public CustomInfoType.DetectionRule.HotwordRule.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CustomInfoType.DetectionRule.HotwordRule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearHotwordRegex()
public CustomInfoType.DetectionRule.HotwordRule.Builder clearHotwordRegex()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomInfoType.DetectionRule.HotwordRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProximity()
public CustomInfoType.DetectionRule.HotwordRule.Builder 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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
clone()
public CustomInfoType.DetectionRule.HotwordRule.Builder clone()
Overrides
getDefaultInstanceForType()
public CustomInfoType.DetectionRule.HotwordRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getHotwordRegex()
public CustomInfoType.Regex getHotwordRegex()
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;
getLikelihoodAdjustment()
public CustomInfoType.DetectionRule.LikelihoodAdjustment getLikelihoodAdjustment()
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;
getProximity()
public 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.
.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.
.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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
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()
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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
Returns |
---|
Type | Description |
boolean | Whether the proximity field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CustomInfoType.DetectionRule.HotwordRule other)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(CustomInfoType.DetectionRule.HotwordRule other)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeHotwordRegex(CustomInfoType.Regex value)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeHotwordRegex(CustomInfoType.Regex value)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
mergeLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value)
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
mergeProximity(CustomInfoType.DetectionRule.Proximity value)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeProximity(CustomInfoType.DetectionRule.Proximity value)
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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.DetectionRule.HotwordRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setHotwordRegex(CustomInfoType.Regex value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setHotwordRegex(CustomInfoType.Regex value)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)
public CustomInfoType.DetectionRule.HotwordRule.Builder setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment value)
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder builderForValue)
public CustomInfoType.DetectionRule.HotwordRule.Builder setLikelihoodAdjustment(CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder builderForValue)
Likelihood adjustment to apply to all matching findings.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3;
setProximity(CustomInfoType.DetectionRule.Proximity value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setProximity(CustomInfoType.DetectionRule.Proximity value)
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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
public CustomInfoType.DetectionRule.HotwordRule.Builder setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
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.
.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.DetectionRule.HotwordRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides