Class ExclusionRule (3.9.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
TypeDescription
int

EXCLUDE_INFO_TYPES_FIELD_NUMBER

public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

MATCHING_TYPE_FIELD_NUMBER

public static final int MATCHING_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

REGEX_FIELD_NUMBER

public static final int REGEX_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExclusionRule getDefaultInstance()
Returns
TypeDescription
ExclusionRule

getDescriptor()

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

newBuilder()

public static ExclusionRule.Builder newBuilder()
Returns
TypeDescription
ExclusionRule.Builder

newBuilder(ExclusionRule prototype)

public static ExclusionRule.Builder newBuilder(ExclusionRule prototype)
Parameter
NameDescription
prototypeExclusionRule
Returns
TypeDescription
ExclusionRule.Builder

parseDelimitedFrom(InputStream input)

public static ExclusionRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExclusionRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ExclusionRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExclusionRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExclusionRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExclusionRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExclusionRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExclusionRule> parser()
Returns
TypeDescription
Parser<ExclusionRule>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ExclusionRule getDefaultInstanceForType()
Returns
TypeDescription
ExclusionRule

getDictionary()

public CustomInfoType.Dictionary getDictionary()

Dictionary which defines the rule.

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

Returns
TypeDescription
CustomInfoType.Dictionary

The dictionary.

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Dictionary which defines the rule.

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

Returns
TypeDescription
CustomInfoType.DictionaryOrBuilder

getExcludeInfoTypes()

public ExcludeInfoTypes getExcludeInfoTypes()

Set of infoTypes for which findings would affect this rule.

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

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

getMatchingType()

public MatchingType getMatchingType()

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

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

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

The enum numeric value on the wire for matchingType.

getParserForType()

public Parser<ExclusionRule> getParserForType()
Returns
TypeDescription
Parser<ExclusionRule>
Overrides

getRegex()

public CustomInfoType.Regex getRegex()

Regular expression which defines the rule.

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

Returns
TypeDescription
CustomInfoType.Regex

The regex.

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression which defines the rule.

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

Returns
TypeDescription
CustomInfoType.RegexOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTypeCase()

public ExclusionRule.TypeCase getTypeCase()
Returns
TypeDescription
ExclusionRule.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDictionary()

public boolean hasDictionary()

Dictionary which defines the rule.

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

Returns
TypeDescription
boolean

Whether the dictionary 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
TypeDescription
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
TypeDescription
boolean

Whether the regex 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 ExclusionRule.Builder newBuilderForType()
Returns
TypeDescription
ExclusionRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExclusionRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExclusionRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public ExclusionRule.Builder toBuilder()
Returns
TypeDescription
ExclusionRule.Builder

writeTo(CodedOutputStream output)

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