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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CustomInfoType.DetectionRule.HotwordRule build()
Returns
buildPartial()
public CustomInfoType.DetectionRule.HotwordRule buildPartial()
Returns
clear()
public CustomInfoType.DetectionRule.HotwordRule.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CustomInfoType.DetectionRule.HotwordRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomInfoType.DetectionRule.HotwordRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProximity()
public CustomInfoType.DetectionRule.HotwordRule.Builder clearProximity()
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
clone()
public CustomInfoType.DetectionRule.HotwordRule.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CustomInfoType.DetectionRule.HotwordRule getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getHotwordRegex()
public CustomInfoType.Regex getHotwordRegex()
Regular expression pattern defining what qualifies as a hotword.
.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;
Returns
getHotwordRegexBuilder()
public CustomInfoType.Regex.Builder getHotwordRegexBuilder()
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
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;
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
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
getProximityBuilder()
public CustomInfoType.DetectionRule.Proximity.Builder getProximityBuilder()
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CustomInfoType.DetectionRule.HotwordRule other)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(CustomInfoType.DetectionRule.HotwordRule other)
Parameter
Returns
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeFrom(Message other)
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
mergeProximity(CustomInfoType.DetectionRule.Proximity value)
public CustomInfoType.DetectionRule.HotwordRule.Builder mergeProximity(CustomInfoType.DetectionRule.Proximity value)
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.DetectionRule.HotwordRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setProximity(CustomInfoType.DetectionRule.Proximity value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setProximity(CustomInfoType.DetectionRule.Proximity value)
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;
Parameter
Returns
setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
public CustomInfoType.DetectionRule.HotwordRule.Builder setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomInfoType.DetectionRule.HotwordRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.DetectionRule.HotwordRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides