Class ExclusionRule (3.58.0)

public final class ExclusionRule extends GeneratedMessageV3 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 Fields

DICTIONARY_FIELD_NUMBER

public static final int DICTIONARY_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDE_BY_HOTWORD_FIELD_NUMBER

public static final int EXCLUDE_BY_HOTWORD_FIELD_NUMBER
Field Value
Type Description
int

EXCLUDE_INFO_TYPES_FIELD_NUMBER

public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

MATCHING_TYPE_FIELD_NUMBER

public static final int MATCHING_TYPE_FIELD_NUMBER
Field Value
Type Description
int

REGEX_FIELD_NUMBER

public static final int REGEX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExclusionRule getDefaultInstance()
Returns
Type Description
ExclusionRule

getDescriptor()

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

newBuilder()

public static ExclusionRule.Builder newBuilder()
Returns
Type Description
ExclusionRule.Builder

newBuilder(ExclusionRule prototype)

public static ExclusionRule.Builder newBuilder(ExclusionRule prototype)
Parameter
Name Description
prototype ExclusionRule
Returns
Type Description
ExclusionRule.Builder

parseDelimitedFrom(InputStream input)

public static ExclusionRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExclusionRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExclusionRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExclusionRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExclusionRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExclusionRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExclusionRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExclusionRule> parser()
Returns
Type Description
Parser<ExclusionRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ExclusionRule getDefaultInstanceForType()
Returns
Type Description
ExclusionRule

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.

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.

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.

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.

getParserForType()

public Parser<ExclusionRule> getParserForType()
Returns
Type Description
Parser<ExclusionRule>
Overrides

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.

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression which defines the rule.

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

Returns
Type Description
CustomInfoType.RegexOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExclusionRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExclusionRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException