Class InspectionRuleSet.Builder (3.49.0)

public static final class InspectionRuleSet.Builder extends GeneratedMessageV3.Builder<InspectionRuleSet.Builder> implements InspectionRuleSetOrBuilder

Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set.

Protobuf type google.privacy.dlp.v2.InspectionRuleSet

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInfoTypes(Iterable<? extends InfoType> values)

public InspectionRuleSet.Builder addAllInfoTypes(Iterable<? extends InfoType> values)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.InfoType>
Returns
Type Description
InspectionRuleSet.Builder

addAllRules(Iterable<? extends InspectionRule> values)

public InspectionRuleSet.Builder addAllRules(Iterable<? extends InspectionRule> values)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.InspectionRule>
Returns
Type Description
InspectionRuleSet.Builder

addInfoTypes(InfoType value)

public InspectionRuleSet.Builder addInfoTypes(InfoType value)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
value InfoType
Returns
Type Description
InspectionRuleSet.Builder

addInfoTypes(InfoType.Builder builderForValue)

public InspectionRuleSet.Builder addInfoTypes(InfoType.Builder builderForValue)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
builderForValue InfoType.Builder
Returns
Type Description
InspectionRuleSet.Builder

addInfoTypes(int index, InfoType value)

public InspectionRuleSet.Builder addInfoTypes(int index, InfoType value)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
Name Description
index int
value InfoType
Returns
Type Description
InspectionRuleSet.Builder

addInfoTypes(int index, InfoType.Builder builderForValue)

public InspectionRuleSet.Builder addInfoTypes(int index, InfoType.Builder builderForValue)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
Name Description
index int
builderForValue InfoType.Builder
Returns
Type Description
InspectionRuleSet.Builder

addInfoTypesBuilder()

public InfoType.Builder addInfoTypesBuilder()

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
InfoType.Builder

addInfoTypesBuilder(int index)

public InfoType.Builder addInfoTypesBuilder(int index)

List of infoTypes this rule set is applied to.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InspectionRuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InspectionRuleSet.Builder
Overrides

addRules(InspectionRule value)

public InspectionRuleSet.Builder addRules(InspectionRule value)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameter
Name Description
value InspectionRule
Returns
Type Description
InspectionRuleSet.Builder

addRules(InspectionRule.Builder builderForValue)

public InspectionRuleSet.Builder addRules(InspectionRule.Builder builderForValue)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameter
Name Description
builderForValue InspectionRule.Builder
Returns
Type Description
InspectionRuleSet.Builder

addRules(int index, InspectionRule value)

public InspectionRuleSet.Builder addRules(int index, InspectionRule value)

Set of rules to be applied to infoTypes. The rules are applied in order.

repeated .google.privacy.dlp.v2.InspectionRule rules = 2;

Parameters
Name Description
index int
value InspectionRule
Returns
Type Description
InspectionRuleSet.Builder

addRules(int index, InspectionRule.Builder builderForValue)

public InspectionRuleSet.Builder addRules(int index, InspectionRule.Builder builderForValue)

Set of rules to be applied to