Class InspectionRule.Builder (3.50.0)

public static final class InspectionRule.Builder extends GeneratedMessageV3.Builder<InspectionRule.Builder> implements InspectionRuleOrBuilder

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

Protobuf type google.privacy.dlp.v2.InspectionRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectionRule build()
Returns
Type Description
InspectionRule

buildPartial()

public InspectionRule buildPartial()
Returns
Type Description
InspectionRule

clear()

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

clearExclusionRule()

public InspectionRule.Builder clearExclusionRule()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
InspectionRule.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHotwordRule()

public InspectionRule.Builder clearHotwordRule()

Hotword-based detection rule.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1;

Returns
Type Description
InspectionRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public InspectionRule.Builder clearType()
Returns
Type Description
InspectionRule.Builder

clone()

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

getDefaultInstanceForType()

public InspectionRule getDefaultInstanceForType()
Returns
Type Description
InspectionRule

getDescriptorForType()

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

getExclusionRule()

public ExclusionRule getExclusionRule()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
ExclusionRule

The exclusionRule.

getExclusionRuleBuilder()

public ExclusionRule.Builder getExclusionRuleBuilder()

Exclusion rule.

.google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2;

Returns
Type Description
ExclusionRule.Builder

getExclusionRuleOrBuilder()

public ExclusionRuleOrBuilder getExclus