Class ExcludeByHotword.Builder (3.49.0)

public static final class ExcludeByHotword.Builder extends GeneratedMessageV3.Builder<ExcludeByHotword.Builder> implements ExcludeByHotwordOrBuilder

The rule to exclude findings based on a hotword. For record inspection of tables, column names are considered hotwords. An example of this is to exclude a finding if it belongs to a BigQuery column that matches a specific pattern.

Protobuf type google.privacy.dlp.v2.ExcludeByHotword

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExcludeByHotword.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExcludeByHotword.Builder
Overrides

build()

public ExcludeByHotword build()
Returns
Type Description
ExcludeByHotword

buildPartial()

public ExcludeByHotword buildPartial()
Returns
Type Description
ExcludeByHotword

clear()

public ExcludeByHotword.Builder clear()
Returns
Type Description
ExcludeByHotword.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExcludeByHotword.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExcludeByHotword.Builder
Overrides

clearHotwordRegex()

public ExcludeByHotword.Builder clearHotwordRegex()

Regular expression pattern defining what qualifies as a hotword.

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

Returns
Type Description
ExcludeByHotword.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExcludeByHotword.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExcludeByHotword.Builder
Overrides

clearProximity()

public ExcludeByHotword.Builder clearProximity()

Range of characters within which the entire hotword must reside. The total length of the window cannot exceed 1000 characters. The windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Returns
Type Description
ExcludeByHotword.Builder

clone()

public ExcludeByHotword.Builder clone()
Returns
Type Description
ExcludeByHotword.Builder
Overrides

getDefaultInstanceForType()

public ExcludeByHotword getDefaultInstanceForType()
Returns
Type Description
ExcludeByHotword

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
CustomInfoType.Regex

The hotwordRegex.

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
Type Description
CustomInfoType.Regex.Builder

getHotwordRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getHotwordRegexOrBuilder()

Regular expression pattern defining what qualifies as a hotword.

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

Returns
Type Description
CustomInfoType.RegexOrBuilder

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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Returns
Type Description
CustomInfoType.DetectionRule.Proximity

The proximity.

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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Returns
Type Description
CustomInfoType.DetectionRule.Proximity.Builder

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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Returns
Type Description
CustomInfoType.DetectionRule.ProximityOrBuilder

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.

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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExcludeByHotword other)

public ExcludeByHotword.Builder mergeFrom(ExcludeByHotword other)
Parameter
Name Description
other ExcludeByHotword
Returns
Type Description
ExcludeByHotword.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExcludeByHotword.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExcludeByHotword.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExcludeByHotword.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExcludeByHotword.Builder
Overrides

mergeHotwordRegex(CustomInfoType.Regex value)

public ExcludeByHotword.Builder mergeHotwordRegex(CustomInfoType.Regex value)

Regular expression pattern defining what qualifies as a hotword.

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

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
ExcludeByHotword.Builder

mergeProximity(CustomInfoType.DetectionRule.Proximity value)

public ExcludeByHotword.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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Parameter
Name Description
value CustomInfoType.DetectionRule.Proximity
Returns
Type Description
ExcludeByHotword.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExcludeByHotword.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExcludeByHotword.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExcludeByHotword.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExcludeByHotword.Builder
Overrides

setHotwordRegex(CustomInfoType.Regex value)

public ExcludeByHotword.Builder setHotwordRegex(CustomInfoType.Regex value)

Regular expression pattern defining what qualifies as a hotword.

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

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
ExcludeByHotword.Builder

setHotwordRegex(CustomInfoType.Regex.Builder builderForValue)

public ExcludeByHotword.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
Name Description
builderForValue CustomInfoType.Regex.Builder
Returns
Type Description
ExcludeByHotword.Builder

setProximity(CustomInfoType.DetectionRule.Proximity value)

public ExcludeByHotword.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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Parameter
Name Description
value CustomInfoType.DetectionRule.Proximity
Returns
Type Description
ExcludeByHotword.Builder

setProximity(CustomInfoType.DetectionRule.Proximity.Builder builderForValue)

public ExcludeByHotword.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 windowBefore property in proximity should be set to 1 if the hotword needs to be included in a column header.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;

Parameter
Name Description
builderForValue CustomInfoType.DetectionRule.Proximity.Builder
Returns
Type Description
ExcludeByHotword.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExcludeByHotword.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExcludeByHotword.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExcludeByHotword.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExcludeByHotword.Builder
Overrides