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()
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
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;
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()
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.
|
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