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 infoTypes. The rules are applied in order.

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

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

addRulesBuilder()

public InspectionRule.Builder addRulesBuilder()

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

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

Returns
Type Description
InspectionRule.Builder

addRulesBuilder(int index)

public InspectionRule.Builder addRulesBuilder(int index)

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
index int
Returns
Type Description
InspectionRule.Builder

build()

public InspectionRuleSet build()
Returns
Type Description
InspectionRuleSet

buildPartial()

public InspectionRuleSet buildPartial()
Returns
Type Description
InspectionRuleSet

clear()

public InspectionRuleSet.Builder clear()
Returns
Type Description
InspectionRuleSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InspectionRuleSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InspectionRuleSet.Builder
Overrides

clearInfoTypes()

public InspectionRuleSet.Builder clearInfoTypes()

List of infoTypes this rule set is applied to.

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

Returns
Type Description
InspectionRuleSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InspectionRuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InspectionRuleSet.Builder
Overrides

clearRules()

public InspectionRuleSet.Builder clearRules()

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

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

Returns
Type Description
InspectionRuleSet.Builder

clone()

public InspectionRuleSet.Builder clone()
Returns
Type Description
InspectionRuleSet.Builder
Overrides

getDefaultInstanceForType()

public InspectionRuleSet getDefaultInstanceForType()
Returns
Type Description
InspectionRuleSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInfoTypes(int index)

public InfoType getInfoTypes(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

getInfoTypesBuilder(int index)

public InfoType.Builder getInfoTypesBuilder(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

getInfoTypesBuilderList()

public List<InfoType.Builder> getInfoTypesBuilderList()

List of infoTypes this rule set is applied to.

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

Returns
Type Description
List<Builder>

getInfoTypesCount()

public int getInfoTypesCount()

List of infoTypes this rule set is applied to.

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

Returns
Type Description
int

getInfoTypesList()

public List<InfoType> getInfoTypesList()

List of infoTypes this rule set is applied to.

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

Returns
Type Description
List<InfoType>

getInfoTypesOrBuilder(int index)

public InfoTypeOrBuilder getInfoTypesOrBuilder(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
InfoTypeOrBuilder

getInfoTypesOrBuilderList()

public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()

List of infoTypes this rule set is applied to.

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

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getRules(int index)

public InspectionRule getRules(int index)

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
index int
Returns
Type Description
InspectionRule

getRulesBuilder(int index)

public InspectionRule.Builder getRulesBuilder(int index)

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
index int
Returns
Type Description
InspectionRule.Builder

getRulesBuilderList()

public List<InspectionRule.Builder> getRulesBuilderList()

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

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

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

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

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

Returns
Type Description
int

getRulesList()

public List<InspectionRule> getRulesList()

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

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

Returns
Type Description
List<InspectionRule>

getRulesOrBuilder(int index)

public InspectionRuleOrBuilder getRulesOrBuilder(int index)

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
index int
Returns
Type Description
InspectionRuleOrBuilder

getRulesOrBuilderList()

public List<? extends InspectionRuleOrBuilder> getRulesOrBuilderList()

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

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

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InspectionRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InspectionRuleSet other)

public InspectionRuleSet.Builder mergeFrom(InspectionRuleSet other)
Parameter
Name Description
other InspectionRuleSet
Returns
Type Description
InspectionRuleSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InspectionRuleSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InspectionRuleSet.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InspectionRuleSet.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InspectionRuleSet.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InspectionRuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InspectionRuleSet.Builder
Overrides

removeInfoTypes(int index)

public InspectionRuleSet.Builder removeInfoTypes(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
InspectionRuleSet.Builder

removeRules(int index)

public InspectionRuleSet.Builder removeRules(int index)

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
index int
Returns
Type Description
InspectionRuleSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInfoTypes(int index, InfoType value)

public InspectionRuleSet.Builder setInfoTypes(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

setInfoTypes(int index, InfoType.Builder builderForValue)

public InspectionRuleSet.Builder setInfoTypes(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

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

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

setRules(int index, InspectionRule value)

public InspectionRuleSet.Builder setRules(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

setRules(int index, InspectionRule.Builder builderForValue)

public InspectionRuleSet.Builder setRules(int index, 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;

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

setUnknownFields(UnknownFieldSet unknownFields)

public final InspectionRuleSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InspectionRuleSet.Builder
Overrides