Class ExclusionRule.Builder (3.7.2)

public static final class ExclusionRule.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExclusionRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExclusionRule.Builder
Overrides

build()

public ExclusionRule build()
Returns
TypeDescription
ExclusionRule

buildPartial()

public ExclusionRule buildPartial()
Returns
TypeDescription
ExclusionRule

clear()

public ExclusionRule.Builder clear()
Returns
TypeDescription
ExclusionRule.Builder
Overrides

clearDictionary()

public ExclusionRule.Builder clearDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
TypeDescription
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
TypeDescription
ExclusionRule.Builder

clearField(Descriptors.FieldDescriptor field)

public ExclusionRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExclusionRule.Builder
Overrides

clearMatchingType()

public ExclusionRule.Builder clearMatchingType()

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Returns
TypeDescription
ExclusionRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExclusionRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExclusionRule.Builder
Overrides

clearRegex()

public ExclusionRule.Builder clearRegex()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
TypeDescription
ExclusionRule.Builder

clearType()

public ExclusionRule.Builder clearType()
Returns
TypeDescription
ExclusionRule.Builder

clone()

public ExclusionRule.Builder clone()
Returns
TypeDescription
ExclusionRule.Builder
Overrides

getDefaultInstanceForType()

public ExclusionRule getDefaultInstanceForType()
Returns
TypeDescription
ExclusionRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDictionary()

public CustomInfoType.Dictionary getDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
TypeDescription
CustomInfoType.Dictionary

The dictionary.

getDictionaryBuilder()

public CustomInfoType.Dictionary.Builder getDictionaryBuilder()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
TypeDescription
CustomInfoType.Dictionary.Builder

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
TypeDescription
CustomInfoType.DictionaryOrBuilder

getExcludeInfoTypes()

public ExcludeInfoTypes getExcludeInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExcludeInfoTypesOrBuilder

getMatchingType()

public MatchingType getMatchingType()

How the rule is applied, see MatchingType documentation for details.

.google.privacy.dlp.v2.MatchingType matching_type = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;

Returns
TypeDescription
CustomInfoType.RegexOrBuilder

getTypeCase()

public ExclusionRule.TypeCase getTypeCase()
Returns
TypeDescription
ExclusionRule.TypeCase

hasDictionary()

public boolean hasDictionary()

Dictionary which defines the rule.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;

Returns
TypeDescription
boolean

Whether the dictionary 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
TypeDescription
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
TypeDescription
boolean

Whether the regex field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueCustomInfoType.Dictionary
Returns
TypeDescription
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
NameDescription
valueExcludeInfoTypes
Returns
TypeDescription
ExclusionRule.Builder

mergeFrom(ExclusionRule other)

public ExclusionRule.Builder mergeFrom(ExclusionRule other)
Parameter
NameDescription
otherExclusionRule
Returns
TypeDescription
ExclusionRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExclusionRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExclusionRule.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExclusionRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExclusionRule.Builder
Overrides

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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
ExclusionRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExclusionRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExclusionRule.Builder
Overrides

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
NameDescription
valueCustomInfoType.Dictionary
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Dictionary.Builder
Returns
TypeDescription
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
NameDescription
valueExcludeInfoTypes
Returns
TypeDescription
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
NameDescription
builderForValueExcludeInfoTypes.Builder
Returns
TypeDescription
ExclusionRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExclusionRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExclusionRule.Builder
Overrides

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
NameDescription
valueMatchingType

The matchingType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for matchingType to set.

Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Regex.Builder
Returns
TypeDescription
ExclusionRule.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExclusionRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExclusionRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExclusionRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExclusionRule.Builder
Overrides