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
EXCLUDE_BY_HOTWORD_FIELD_NUMBER
public static final int EXCLUDE_BY_HOTWORD_FIELD_NUMBER
Field Value
EXCLUDE_INFO_TYPES_FIELD_NUMBER
public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
Field Value
MATCHING_TYPE_FIELD_NUMBER
public static final int MATCHING_TYPE_FIELD_NUMBER
Field Value
REGEX_FIELD_NUMBER
public static final int REGEX_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ExclusionRule getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ExclusionRule.Builder newBuilder()
Returns
newBuilder(ExclusionRule prototype)
public static ExclusionRule.Builder newBuilder(ExclusionRule prototype)
Parameter
Returns
public static ExclusionRule parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExclusionRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ExclusionRule parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExclusionRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ExclusionRule parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExclusionRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExclusionRule parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ExclusionRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ExclusionRule parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ExclusionRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ExclusionRule parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExclusionRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ExclusionRule> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ExclusionRule getDefaultInstanceForType()
Returns
getDictionary()
public CustomInfoType.Dictionary getDictionary()
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
Returns
getDictionaryOrBuilder()
public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
Returns
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
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
getExcludeInfoTypes()
public ExcludeInfoTypes getExcludeInfoTypes()
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
Returns
getExcludeInfoTypesOrBuilder()
public ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder()
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
Returns
getMatchingType()
public MatchingType getMatchingType()
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;
Returns
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
Overrides
getRegex()
public CustomInfoType.Regex getRegex()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
Returns
getRegexOrBuilder()
public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTypeCase()
public ExclusionRule.TypeCase getTypeCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ExclusionRule.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ExclusionRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ExclusionRule.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions