Class CustomInfoType.DetectionRule.HotwordRule (3.33.0)

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CustomInfoType.DetectionRule.HotwordRule

Static Fields

HOTWORD_REGEX_FIELD_NUMBER

public static final int HOTWORD_REGEX_FIELD_NUMBER
Field Value
TypeDescription
int

LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER

public static final int LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER
Field Value
TypeDescription
int

PROXIMITY_FIELD_NUMBER

public static final int PROXIMITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomInfoType.DetectionRule.HotwordRule getDefaultInstance()
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CustomInfoType.DetectionRule.HotwordRule.Builder newBuilder()
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule.Builder

newBuilder(CustomInfoType.DetectionRule.HotwordRule prototype)

public static CustomInfoType.DetectionRule.HotwordRule.Builder newBuilder(CustomInfoType.DetectionRule.HotwordRule prototype)
Parameter
NameDescription
prototypeCustomInfoType.DetectionRule.HotwordRule
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType.DetectionRule.HotwordRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.HotwordRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomInfoType.DetectionRule.HotwordRule> parser()
Returns
TypeDescription
Parser<HotwordRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CustomInfoType.DetectionRule.HotwordRule getDefaultInstanceForType()
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule

getHotwordRegex()

public CustomInfoType.Regex getHotwordRegex()

Regular expression pattern defining what qualifies as a hotword.

.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;

Returns
TypeDescription
CustomInfoType.Regex

The hotwordRegex.

getHotwordRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getHotwordRegexOrBuilder()

Regular expression pattern defining what qualifies as a hotword.

.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;

Returns
TypeDescription
CustomInfoType.RegexOrBuilder

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
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment

The likelihoodAdjustment.

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
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder

getParserForType()

public Parser<CustomInfoType.DetectionRule.HotwordRule> getParserForType()
Returns
TypeDescription
Parser<HotwordRule>
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
TypeDescription
CustomInfoType.DetectionRule.Proximity

The proximity.

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
TypeDescription
CustomInfoType.DetectionRule.ProximityOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasHotwordRegex()

public boolean hasHotwordRegex()

Regular expression pattern defining what qualifies as a hotword.

.google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the proximity field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomInfoType.DetectionRule.HotwordRule.Builder newBuilderForType()
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomInfoType.DetectionRule.HotwordRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomInfoType.DetectionRule.HotwordRule.Builder toBuilder()
Returns
TypeDescription
CustomInfoType.DetectionRule.HotwordRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException