public static final class ExclusionRule.Builder extends GeneratedMessage.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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExclusionRule.BuilderImplements
ExclusionRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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 |
|
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. |
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 |
|
getDefaultInstanceForType()
public ExclusionRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExclusionRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExclusionRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExclusionRule.Builder |
|
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 |
|
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 |
|
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 |
MatchingTypeThe 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 |
intThe 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 |
|