Class ExclusionRule.Builder (3.57.0)

public static final class ExclusionRule.Builder extends GeneratedMessageV3.Builder<ExclusionRule.Builder> implements ExclusionRuleOrBuilder

The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.

Protobuf type google.privacy.dlp.v2.ExclusionRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExclusionRule build()
Returns
Type Description
ExclusionRule

buildPartial()

public ExclusionRule buildPartial()
Returns
Type Description
ExclusionRule

clear()

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

clearDictionary()

public ExclusionRule.Builder clearDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
Type Description
ExclusionRule.Builder

clearExcludeByHotword()

public ExclusionRule.Builder clearExcludeByHotword()

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Returns
Type Description
ExclusionRule.Builder

clearExcludeInfoTypes()

public ExclusionRule.Builder clearExcludeInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
Type Description
ExclusionRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMatchingType()

public ExclusionRule.Builder clearMatchingType()

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Returns
Type Description
ExclusionRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegex()

public ExclusionRule.Builder clearRegex()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
Type Description
ExclusionRule.Builder

clearType()

public ExclusionRule.Builder clearType()
Returns
Type Description
ExclusionRule.Builder

clone()

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

getDefaultInstanceForType()

public ExclusionRule getDefaultInstanceForType()
Returns
Type Description
ExclusionRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDictionary()

public CustomInfoType.Dictionary getDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
Type Description
CustomInfoType.Dictionary

The dictionary.

getDictionaryBuilder()

public CustomInfoType.Dictionary.Builder getDictionaryBuilder()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
Type Description
CustomInfoType.Dictionary.Builder

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
Type Description
CustomInfoType.DictionaryOrBuilder

getExcludeByHotword()

public ExcludeByHotword getExcludeByHotword()

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Returns
Type Description
ExcludeByHotword

The excludeByHotword.

getExcludeByHotwordBuilder()

public ExcludeByHotword.Builder getExcludeByHotwordBuilder()

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Returns
Type Description
ExcludeByHotword.Builder

getExcludeByHotwordOrBuilder()

public ExcludeByHotwordOrBuilder getExcludeByHotwordOrBuilder()

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Returns
Type Description
ExcludeByHotwordOrBuilder

getExcludeInfoTypes()

public ExcludeInfoTypes getExcludeInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
Type Description
ExcludeInfoTypes

The excludeInfoTypes.

getExcludeInfoTypesBuilder()

public ExcludeInfoTypes.Builder getExcludeInfoTypesBuilder()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
Type Description
ExcludeInfoTypes.Builder

getExcludeInfoTypesOrBuilder()

public ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
Type Description
ExcludeInfoTypesOrBuilder

getMatchingType()

public MatchingType getMatchingType()

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Returns
Type Description
MatchingType

The matchingType.

getMatchingTypeValue()

public int getMatchingTypeValue()

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for matchingType.

getRegex()

public CustomInfoType.Regex getRegex()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
Type Description
CustomInfoType.Regex

The regex.

getRegexBuilder()

public CustomInfoType.Regex.Builder getRegexBuilder()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
Type Description
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
Type Description
CustomInfoType.RegexOrBuilder

getTypeCase()

public ExclusionRule.TypeCase getTypeCase()
Returns
Type Description
ExclusionRule.TypeCase

hasDictionary()

public boolean hasDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
Type Description
boolean

Whether the dictionary field is set.

hasExcludeByHotword()

public boolean hasExcludeByHotword()

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Returns
Type Description
boolean

Whether the excludeByHotword field is set.

hasExcludeInfoTypes()

public boolean hasExcludeInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
Type Description
boolean

Whether the excludeInfoTypes field is set.

hasRegex()

public boolean hasRegex()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
Type Description
boolean

Whether the regex field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDictionary(CustomInfoType.Dictionary value)

public ExclusionRule.Builder mergeDictionary(CustomInfoType.Dictionary value)

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
ExclusionRule.Builder

mergeExcludeByHotword(ExcludeByHotword value)

public ExclusionRule.Builder mergeExcludeByHotword(ExcludeByHotword value)

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Parameter
Name Description
value ExcludeByHotword
Returns
Type Description
ExclusionRule.Builder

mergeExcludeInfoTypes(ExcludeInfoTypes value)

public ExclusionRule.Builder mergeExcludeInfoTypes(ExcludeInfoTypes value)

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Parameter
Name Description
value ExcludeInfoTypes
Returns
Type Description
ExclusionRule.Builder

mergeFrom(ExclusionRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRegex(CustomInfoType.Regex value)

public ExclusionRule.Builder mergeRegex(CustomInfoType.Regex value)

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDictionary(CustomInfoType.Dictionary value)

public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary value)

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
ExclusionRule.Builder

setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Parameter
Name Description
builderForValue CustomInfoType.Dictionary.Builder
Returns
Type Description
ExclusionRule.Builder

setExcludeByHotword(ExcludeByHotword value)

public ExclusionRule.Builder setExcludeByHotword(ExcludeByHotword value)

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Parameter
Name Description
value ExcludeByHotword
Returns
Type Description
ExclusionRule.Builder

setExcludeByHotword(ExcludeByHotword.Builder builderForValue)

public ExclusionRule.Builder setExcludeByHotword(ExcludeByHotword.Builder builderForValue)

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;

Parameter
Name Description
builderForValue ExcludeByHotword.Builder
Returns
Type Description
ExclusionRule.Builder

setExcludeInfoTypes(ExcludeInfoTypes value)

public ExclusionRule.Builder setExcludeInfoTypes(ExcludeInfoTypes value)

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Parameter
Name Description
value ExcludeInfoTypes
Returns
Type Description
ExclusionRule.Builder

setExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue)

public ExclusionRule.Builder setExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue)

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Parameter
Name Description
builderForValue ExcludeInfoTypes.Builder
Returns
Type Description
ExclusionRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMatchingType(MatchingType value)

public ExclusionRule.Builder setMatchingType(MatchingType value)

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Parameter
Name Description
value MatchingType

The matchingType to set.

Returns
Type Description
ExclusionRule.Builder

This builder for chaining.

setMatchingTypeValue(int value)

public ExclusionRule.Builder setMatchingTypeValue(int value)

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for matchingType to set.

Returns
Type Description
ExclusionRule.Builder

This builder for chaining.

setRegex(CustomInfoType.Regex value)

public ExclusionRule.Builder setRegex(CustomInfoType.Regex value)

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

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

setRegex(CustomInfoType.Regex.Builder builderForValue)

public ExclusionRule.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Parameter
Name Description
builderForValue CustomInfoType.Regex.Builder
Returns
Type Description
ExclusionRule.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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