Class ExcludeByHotword.Builder (3.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExcludeByHotword.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides

build()

public ExcludeByHotword build()
Returns
TypeDescription
ExcludeByHotword

buildPartial()

public ExcludeByHotword buildPartial()
Returns
TypeDescription
ExcludeByHotword

clear()

public ExcludeByHotword.Builder clear()
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExcludeByHotword.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ExcludeByHotword.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExcludeByHotword.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ExcludeByHotword.Builder

clone()

public ExcludeByHotword.Builder clone()
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides

getDefaultInstanceForType()

public ExcludeByHotword getDefaultInstanceForType()
Returns
TypeDescription
ExcludeByHotword

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the proximity field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExcludeByHotword other)

public ExcludeByHotword.Builder mergeFrom(ExcludeByHotword other)
Parameter
NameDescription
otherExcludeByHotword
Returns
TypeDescription
ExcludeByHotword.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExcludeByHotword.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExcludeByHotword.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.DetectionRule.Proximity
Returns
TypeDescription
ExcludeByHotword.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExcludeByHotword.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ExcludeByHotword.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Regex.Builder
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.DetectionRule.Proximity
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.DetectionRule.Proximity.Builder
Returns
TypeDescription
ExcludeByHotword.Builder

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

public ExcludeByHotword.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExcludeByHotword.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExcludeByHotword.Builder
Overrides