Class InspectionRuleSet.Builder (3.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoType>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InspectionRule>
Returns
TypeDescription
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
NameDescription
valueInfoType
Returns
TypeDescription
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
NameDescription
builderForValueInfoType.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInfoType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInfoType.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InfoType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InspectionRuleSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInspectionRule
Returns
TypeDescription
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
NameDescription
builderForValueInspectionRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInspectionRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInspectionRule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InspectionRule.Builder

build()

public InspectionRuleSet build()
Returns
TypeDescription
InspectionRuleSet

buildPartial()

public InspectionRuleSet buildPartial()
Returns
TypeDescription
InspectionRuleSet

clear()

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

clearField(Descriptors.FieldDescriptor field)

public InspectionRuleSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
InspectionRuleSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InspectionRuleSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InspectionRuleSet.Builder

clone()

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

getDefaultInstanceForType()

public InspectionRuleSet getDefaultInstanceForType()
Returns
TypeDescription
InspectionRuleSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.privacy.dlp.v2.InspectionRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InspectionRuleSet other)

public InspectionRuleSet.Builder mergeFrom(InspectionRuleSet other)
Parameter
NameDescription
otherInspectionRuleSet
Returns
TypeDescription
InspectionRuleSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InspectionRuleSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InspectionRuleSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InspectionRuleSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInfoType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInfoType.Builder
Returns
TypeDescription
InspectionRuleSet.Builder

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

public InspectionRuleSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInspectionRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInspectionRule.Builder
Returns
TypeDescription
InspectionRuleSet.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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