Package com.google.privacy.dlp.v2
Class ExclusionRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder>
com.google.privacy.dlp.v2.ExclusionRule.Builder
- All Implemented Interfaces:
ExclusionRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExclusionRule
public static final class ExclusionRule.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Dictionary which defines the rule.Drop if the hotword rule is contained in the proximate context.Exclude findings based on image containment rules.Set of infoTypes for which findings would affect this rule.How the rule is applied, see MatchingType documentation for details.Regular expression which defines the rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDictionary which defines the rule.Dictionary which defines the rule.Dictionary which defines the rule.Drop if the hotword rule is contained in the proximate context.Drop if the hotword rule is contained in the proximate context.Drop if the hotword rule is contained in the proximate context.Exclude findings based on image containment rules.Exclude findings based on image containment rules.Exclude findings based on image containment rules.Set of infoTypes for which findings would affect this rule.Set of infoTypes for which findings would affect this rule.Set of infoTypes for which findings would affect this rule.How the rule is applied, see MatchingType documentation for details.intHow the rule is applied, see MatchingType documentation for details.getRegex()Regular expression which defines the rule.Regular expression which defines the rule.Regular expression which defines the rule.booleanDictionary which defines the rule.booleanDrop if the hotword rule is contained in the proximate context.booleanExclude findings based on image containment rules.booleanSet of infoTypes for which findings would affect this rule.booleanhasRegex()Regular expression which defines the rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDictionary which defines the rule.Drop if the hotword rule is contained in the proximate context.Exclude findings based on image containment rules.Set of infoTypes for which findings would affect this rule.mergeFrom(ExclusionRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRegex(CustomInfoType.Regex value) Regular expression which defines the rule.Dictionary which defines the rule.setDictionary(CustomInfoType.Dictionary.Builder builderForValue) Dictionary which defines the rule.Drop if the hotword rule is contained in the proximate context.setExcludeByHotword(ExcludeByHotword.Builder builderForValue) Drop if the hotword rule is contained in the proximate context.Exclude findings based on image containment rules.setExcludeByImageFindings(ExcludeByImageFindings.Builder builderForValue) Exclude findings based on image containment rules.Set of infoTypes for which findings would affect this rule.setExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue) Set of infoTypes for which findings would affect this rule.setMatchingType(MatchingType value) How the rule is applied, see MatchingType documentation for details.setMatchingTypeValue(int value) How the rule is applied, see MatchingType documentation for details.setRegex(CustomInfoType.Regex value) Regular expression which defines the rule.setRegex(CustomInfoType.Regex.Builder builderForValue) Regular expression which defines the rule.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExclusionRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExclusionRule.Builder>
-
mergeFrom
public ExclusionRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExclusionRule.Builder>- Throws:
IOException
-
getTypeCase
- Specified by:
getTypeCasein interfaceExclusionRuleOrBuilder
-
clearType
-
hasDictionary
public boolean hasDictionary()Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;- Specified by:
hasDictionaryin interfaceExclusionRuleOrBuilder- Returns:
- Whether the dictionary field is set.
-
getDictionary
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;- Specified by:
getDictionaryin interfaceExclusionRuleOrBuilder- Returns:
- The dictionary.
-
setDictionary
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; -
setDictionary
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; -
mergeDictionary
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; -
clearDictionary
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; -
getDictionaryBuilder
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; -
getDictionaryOrBuilder
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;- Specified by:
getDictionaryOrBuilderin interfaceExclusionRuleOrBuilder
-
hasRegex
public boolean hasRegex()Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;- Specified by:
hasRegexin interfaceExclusionRuleOrBuilder- Returns:
- Whether the regex field is set.
-
getRegex
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;- Specified by:
getRegexin interfaceExclusionRuleOrBuilder- Returns:
- The regex.
-
setRegex
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; -
setRegex
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; -
mergeRegex
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; -
clearRegex
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; -
getRegexBuilder
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; -
getRegexOrBuilder
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;- Specified by:
getRegexOrBuilderin interfaceExclusionRuleOrBuilder
-
hasExcludeInfoTypes
public boolean hasExcludeInfoTypes()Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;- Specified by:
hasExcludeInfoTypesin interfaceExclusionRuleOrBuilder- Returns:
- Whether the excludeInfoTypes field is set.
-
getExcludeInfoTypes
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;- Specified by:
getExcludeInfoTypesin interfaceExclusionRuleOrBuilder- Returns:
- The excludeInfoTypes.
-
setExcludeInfoTypes
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; -
setExcludeInfoTypes
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; -
mergeExcludeInfoTypes
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; -
clearExcludeInfoTypes
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; -
getExcludeInfoTypesBuilder
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; -
getExcludeInfoTypesOrBuilder
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;- Specified by:
getExcludeInfoTypesOrBuilderin interfaceExclusionRuleOrBuilder
-
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;- Specified by:
hasExcludeByHotwordin interfaceExclusionRuleOrBuilder- Returns:
- Whether the excludeByHotword field is set.
-
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;- Specified by:
getExcludeByHotwordin interfaceExclusionRuleOrBuilder- Returns:
- The excludeByHotword.
-
setExcludeByHotword
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; -
setExcludeByHotword
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; -
mergeExcludeByHotword
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; -
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; -
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; -
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;- Specified by:
getExcludeByHotwordOrBuilderin interfaceExclusionRuleOrBuilder
-
hasExcludeByImageFindings
public boolean hasExcludeByImageFindings()Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;- Specified by:
hasExcludeByImageFindingsin interfaceExclusionRuleOrBuilder- Returns:
- Whether the excludeByImageFindings field is set.
-
getExcludeByImageFindings
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;- Specified by:
getExcludeByImageFindingsin interfaceExclusionRuleOrBuilder- Returns:
- The excludeByImageFindings.
-
setExcludeByImageFindings
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; -
setExcludeByImageFindings
public ExclusionRule.Builder setExcludeByImageFindings(ExcludeByImageFindings.Builder builderForValue) Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; -
mergeExcludeByImageFindings
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; -
clearExcludeByImageFindings
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; -
getExcludeByImageFindingsBuilder
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6; -
getExcludeByImageFindingsOrBuilder
Exclude findings based on image containment rules. For example, exclude an image finding if it overlaps with another image finding.
.google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;- Specified by:
getExcludeByImageFindingsOrBuilderin interfaceExclusionRuleOrBuilder
-
getMatchingTypeValue
public int getMatchingTypeValue()How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Specified by:
getMatchingTypeValuein interfaceExclusionRuleOrBuilder- Returns:
- The enum numeric value on the wire for matchingType.
-
setMatchingTypeValue
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Parameters:
value- The enum numeric value on the wire for matchingType to set.- Returns:
- This builder for chaining.
-
getMatchingType
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Specified by:
getMatchingTypein interfaceExclusionRuleOrBuilder- Returns:
- The matchingType.
-
setMatchingType
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Parameters:
value- The matchingType to set.- Returns:
- This builder for chaining.
-
clearMatchingType
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Returns:
- This builder for chaining.
-