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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExclusionRule
build()
ExclusionRule
buildPartial()
ExclusionRule.Builder
clear()
ExclusionRule.Builder
clearDictionary()
Dictionary which defines the rule.ExclusionRule.Builder
clearExcludeByHotword()
Drop if the hotword rule is contained in the proximate context.ExclusionRule.Builder
clearExcludeInfoTypes()
Set of infoTypes for which findings would affect this rule.ExclusionRule.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ExclusionRule.Builder
clearMatchingType()
How the rule is applied, see MatchingType documentation for details.ExclusionRule.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ExclusionRule.Builder
clearRegex()
Regular expression which defines the rule.ExclusionRule.Builder
clearType()
ExclusionRule.Builder
clone()
ExclusionRule
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CustomInfoType.Dictionary
getDictionary()
Dictionary which defines the rule.CustomInfoType.Dictionary.Builder
getDictionaryBuilder()
Dictionary which defines the rule.CustomInfoType.DictionaryOrBuilder
getDictionaryOrBuilder()
Dictionary which defines the rule.ExcludeByHotword
getExcludeByHotword()
Drop if the hotword rule is contained in the proximate context.ExcludeByHotword.Builder
getExcludeByHotwordBuilder()
Drop if the hotword rule is contained in the proximate context.ExcludeByHotwordOrBuilder
getExcludeByHotwordOrBuilder()
Drop if the hotword rule is contained in the proximate context.ExcludeInfoTypes
getExcludeInfoTypes()
Set of infoTypes for which findings would affect this rule.ExcludeInfoTypes.Builder
getExcludeInfoTypesBuilder()
Set of infoTypes for which findings would affect this rule.ExcludeInfoTypesOrBuilder
getExcludeInfoTypesOrBuilder()
Set of infoTypes for which findings would affect this rule.MatchingType
getMatchingType()
How the rule is applied, see MatchingType documentation for details.int
getMatchingTypeValue()
How the rule is applied, see MatchingType documentation for details.CustomInfoType.Regex
getRegex()
Regular expression which defines the rule.CustomInfoType.Regex.Builder
getRegexBuilder()
Regular expression which defines the rule.CustomInfoType.RegexOrBuilder
getRegexOrBuilder()
Regular expression which defines the rule.ExclusionRule.TypeCase
getTypeCase()
boolean
hasDictionary()
Dictionary which defines the rule.boolean
hasExcludeByHotword()
Drop if the hotword rule is contained in the proximate context.boolean
hasExcludeInfoTypes()
Set of infoTypes for which findings would affect this rule.boolean
hasRegex()
Regular expression which defines the rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ExclusionRule.Builder
mergeDictionary(CustomInfoType.Dictionary value)
Dictionary which defines the rule.ExclusionRule.Builder
mergeExcludeByHotword(ExcludeByHotword value)
Drop if the hotword rule is contained in the proximate context.ExclusionRule.Builder
mergeExcludeInfoTypes(ExcludeInfoTypes value)
Set of infoTypes for which findings would affect this rule.ExclusionRule.Builder
mergeFrom(ExclusionRule other)
ExclusionRule.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ExclusionRule.Builder
mergeFrom(com.google.protobuf.Message other)
ExclusionRule.Builder
mergeRegex(CustomInfoType.Regex value)
Regular expression which defines the rule.ExclusionRule.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ExclusionRule.Builder
setDictionary(CustomInfoType.Dictionary value)
Dictionary which defines the rule.ExclusionRule.Builder
setDictionary(CustomInfoType.Dictionary.Builder builderForValue)
Dictionary which defines the rule.ExclusionRule.Builder
setExcludeByHotword(ExcludeByHotword value)
Drop if the hotword rule is contained in the proximate context.ExclusionRule.Builder
setExcludeByHotword(ExcludeByHotword.Builder builderForValue)
Drop if the hotword rule is contained in the proximate context.ExclusionRule.Builder
setExcludeInfoTypes(ExcludeInfoTypes value)
Set of infoTypes for which findings would affect this rule.ExclusionRule.Builder
setExcludeInfoTypes(ExcludeInfoTypes.Builder builderForValue)
Set of infoTypes for which findings would affect this rule.ExclusionRule.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ExclusionRule.Builder
setMatchingType(MatchingType value)
How the rule is applied, see MatchingType documentation for details.ExclusionRule.Builder
setMatchingTypeValue(int value)
How the rule is applied, see MatchingType documentation for details.ExclusionRule.Builder
setRegex(CustomInfoType.Regex value)
Regular expression which defines the rule.ExclusionRule.Builder
setRegex(CustomInfoType.Regex.Builder builderForValue)
Regular expression which defines the rule.ExclusionRule.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ExclusionRule.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clear
public ExclusionRule.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
getDefaultInstanceForType
public ExclusionRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ExclusionRule build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ExclusionRule buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ExclusionRule.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
setField
public ExclusionRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clearField
public ExclusionRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
clearOneof
public ExclusionRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
setRepeatedField
public ExclusionRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
addRepeatedField
public ExclusionRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
mergeFrom
public ExclusionRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExclusionRule.Builder>
-
mergeFrom
public ExclusionRule.Builder mergeFrom(ExclusionRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ExclusionRule.Builder>
- Throws:
IOException
-
getTypeCase
public ExclusionRule.TypeCase getTypeCase()
- Specified by:
getTypeCase
in 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:
hasDictionary
in 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:
getDictionary
in 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:
getDictionaryOrBuilder
in interfaceExclusionRuleOrBuilder
-
hasRegex
public boolean hasRegex()
Regular expression which defines the rule.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
- Specified by:
hasRegex
in 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:
getRegex
in 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:
getRegexOrBuilder
in 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:
hasExcludeInfoTypes
in 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:
getExcludeInfoTypes
in 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:
getExcludeInfoTypesOrBuilder
in 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:
hasExcludeByHotword
in 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:
getExcludeByHotword
in 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:
getExcludeByHotwordOrBuilder
in 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:
getMatchingTypeValue
in 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:
getMatchingType
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
mergeUnknownFields
public final ExclusionRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
-
-