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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ExclusionRule.Builder> implements ExclusionRuleOrBuilder
The rule that specifies conditions when findings of infoTypes specified in `InspectionRuleSet` are removed from results.
Protobuf typegoogle.privacy.dlp.v2.ExclusionRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExclusionRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExclusionRulebuild()ExclusionRulebuildPartial()ExclusionRule.Builderclear()ExclusionRule.BuilderclearDictionary()Dictionary which defines the rule.ExclusionRule.BuilderclearExcludeByHotword()Drop if the hotword rule is contained in the proximate context.ExclusionRule.BuilderclearExcludeInfoTypes()Set of infoTypes for which findings would affect this rule.ExclusionRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ExclusionRule.BuilderclearMatchingType()How the rule is applied, see MatchingType documentation for details.ExclusionRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ExclusionRule.BuilderclearRegex()Regular expression which defines the rule.ExclusionRule.BuilderclearType()ExclusionRule.Builderclone()ExclusionRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CustomInfoType.DictionarygetDictionary()Dictionary which defines the rule.CustomInfoType.Dictionary.BuildergetDictionaryBuilder()Dictionary which defines the rule.CustomInfoType.DictionaryOrBuildergetDictionaryOrBuilder()Dictionary which defines the rule.ExcludeByHotwordgetExcludeByHotword()Drop if the hotword rule is contained in the proximate context.ExcludeByHotword.BuildergetExcludeByHotwordBuilder()Drop if the hotword rule is contained in the proximate context.ExcludeByHotwordOrBuildergetExcludeByHotwordOrBuilder()Drop if the hotword rule is contained in the proximate context.ExcludeInfoTypesgetExcludeInfoTypes()Set of infoTypes for which findings would affect this rule.ExcludeInfoTypes.BuildergetExcludeInfoTypesBuilder()Set of infoTypes for which findings would affect this rule.ExcludeInfoTypesOrBuildergetExcludeInfoTypesOrBuilder()Set of infoTypes for which findings would affect this rule.MatchingTypegetMatchingType()How the rule is applied, see MatchingType documentation for details.intgetMatchingTypeValue()How the rule is applied, see MatchingType documentation for details.CustomInfoType.RegexgetRegex()Regular expression which defines the rule.CustomInfoType.Regex.BuildergetRegexBuilder()Regular expression which defines the rule.CustomInfoType.RegexOrBuildergetRegexOrBuilder()Regular expression which defines the rule.ExclusionRule.TypeCasegetTypeCase()booleanhasDictionary()Dictionary which defines the rule.booleanhasExcludeByHotword()Drop if the hotword rule is contained in the proximate context.booleanhasExcludeInfoTypes()Set of infoTypes for which findings would affect this rule.booleanhasRegex()Regular expression which defines the rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ExclusionRule.BuildermergeDictionary(CustomInfoType.Dictionary value)Dictionary which defines the rule.ExclusionRule.BuildermergeExcludeByHotword(ExcludeByHotword value)Drop if the hotword rule is contained in the proximate context.ExclusionRule.BuildermergeExcludeInfoTypes(ExcludeInfoTypes value)Set of infoTypes for which findings would affect this rule.ExclusionRule.BuildermergeFrom(ExclusionRule other)ExclusionRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ExclusionRule.BuildermergeFrom(com.google.protobuf.Message other)ExclusionRule.BuildermergeRegex(CustomInfoType.Regex value)Regular expression which defines the rule.ExclusionRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ExclusionRule.BuildersetDictionary(CustomInfoType.Dictionary value)Dictionary which defines the rule.ExclusionRule.BuildersetDictionary(CustomInfoType.Dictionary.Builder builderForValue)Dictionary which defines the rule.ExclusionRule.BuildersetExcludeByHotword(ExcludeByHotword value)Drop if the hotword rule is contained in the proximate context.ExclusionRule.BuildersetExcludeByHotword(ExcludeByHotword.Builder builderForValue)Drop if the hotword rule is contained in the proximate context.ExclusionRule.BuildersetExcludeInfoTypes(ExcludeInfoTypes value)Set of infoTypes for which findings would affect this rule.ExclusionRule.BuildersetExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue)Set of infoTypes for which findings would affect this rule.ExclusionRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ExclusionRule.BuildersetMatchingType(MatchingType value)How the rule is applied, see MatchingType documentation for details.ExclusionRule.BuildersetMatchingTypeValue(int value)How the rule is applied, see MatchingType documentation for details.ExclusionRule.BuildersetRegex(CustomInfoType.Regex value)Regular expression which defines the rule.ExclusionRule.BuildersetRegex(CustomInfoType.Regex.Builder builderForValue)Regular expression which defines the rule.ExclusionRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ExclusionRule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clear
public ExclusionRule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
getDefaultInstanceForType
public ExclusionRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExclusionRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExclusionRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExclusionRule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
setField
public ExclusionRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clearField
public ExclusionRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clearOneof
public ExclusionRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
setRepeatedField
public ExclusionRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
addRepeatedField
public ExclusionRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
mergeFrom
public ExclusionRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExclusionRule.Builder>
-
mergeFrom
public ExclusionRule.Builder mergeFrom(ExclusionRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public ExclusionRule.TypeCase getTypeCase()
- Specified by:
getTypeCasein interfaceExclusionRuleOrBuilder
-
clearType
public ExclusionRule.Builder 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
public CustomInfoType.Dictionary getDictionary()
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;- Specified by:
getDictionaryin interfaceExclusionRuleOrBuilder- Returns:
- The dictionary.
-
setDictionary
public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary value)
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
-
setDictionary
public ExclusionRule.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
-
mergeDictionary
public ExclusionRule.Builder mergeDictionary(CustomInfoType.Dictionary value)
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
-
clearDictionary
public ExclusionRule.Builder clearDictionary()
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
-
getDictionaryBuilder
public CustomInfoType.Dictionary.Builder getDictionaryBuilder()
Dictionary which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
-
getDictionaryOrBuilder
public CustomInfoType.DictionaryOrBuilder 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
public CustomInfoType.Regex getRegex()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;- Specified by:
getRegexin interfaceExclusionRuleOrBuilder- Returns:
- The regex.
-
setRegex
public ExclusionRule.Builder setRegex(CustomInfoType.Regex value)
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
-
setRegex
public ExclusionRule.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
-
mergeRegex
public ExclusionRule.Builder mergeRegex(CustomInfoType.Regex value)
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
-
clearRegex
public ExclusionRule.Builder clearRegex()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
-
getRegexBuilder
public CustomInfoType.Regex.Builder getRegexBuilder()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
-
getRegexOrBuilder
public CustomInfoType.RegexOrBuilder 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
public ExcludeInfoTypes 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
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;
-
setExcludeInfoTypes
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;
-
mergeExcludeInfoTypes
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;
-
clearExcludeInfoTypes
public ExclusionRule.Builder clearExcludeInfoTypes()
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
-
getExcludeInfoTypesBuilder
public ExcludeInfoTypes.Builder getExcludeInfoTypesBuilder()
Set of infoTypes for which findings would affect this rule.
.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
-
getExcludeInfoTypesOrBuilder
public ExcludeInfoTypesOrBuilder 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
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;- Specified by:
getExcludeByHotwordin interfaceExclusionRuleOrBuilder- Returns:
- The excludeByHotword.
-
setExcludeByHotword
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;
-
setExcludeByHotword
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;
-
mergeExcludeByHotword
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;
-
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;
-
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;
-
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;- Specified by:
getExcludeByHotwordOrBuilderin 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
public ExclusionRule.Builder setMatchingTypeValue(int value)
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
public MatchingType 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
public ExclusionRule.Builder setMatchingType(MatchingType value)
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
public ExclusionRule.Builder clearMatchingType()
How the rule is applied, see MatchingType documentation for details.
.google.privacy.dlp.v2.MatchingType matching_type = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final ExclusionRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
mergeUnknownFields
public final ExclusionRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
-