Class InspectConfig.InfoTypeLikelihood.Builder (3.50.0)

public static final class InspectConfig.InfoTypeLikelihood.Builder extends GeneratedMessageV3.Builder<InspectConfig.InfoTypeLikelihood.Builder> implements InspectConfig.InfoTypeLikelihoodOrBuilder

Configuration for setting a minimum likelihood per infotype. Used to customize the minimum likelihood level for specific infotypes in the request. For example, use this if you want to lower the precision for PERSON_NAME without lowering the precision for the other infotypes in the request.

Protobuf type google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectConfig.InfoTypeLikelihood build()
Returns
Type Description
InspectConfig.InfoTypeLikelihood

buildPartial()

public InspectConfig.InfoTypeLikelihood buildPartial()
Returns
Type Description
InspectConfig.InfoTypeLikelihood

clear()

public InspectConfig.InfoTypeLikelihood.Builder clear()
Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearInfoType()

public InspectConfig.InfoTypeLikelihood.Builder clearInfoType()

Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

clearMinLikelihood()

public InspectConfig.InfoTypeLikelihood.Builder clearMinLikelihood()

Only returns findings equal to or above this threshold. This field is required or else the configuration fails.

.google.privacy.dlp.v2.Likelihood min_likelihood = 2;

Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public InspectConfig.InfoTypeLikelihood.Builder clone()
Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder
Overrides

getDefaultInstanceForType()

public InspectConfig.InfoTypeLikelihood getDefaultInstanceForType()
Returns
Type Description
InspectConfig.InfoTypeLikelihood

getDescriptorForType()

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

getInfoType()

public InfoType getInfoType()

Type of information the likelihood threshold applies to. Only one likelihood per info_type should be provided. If InfoTypeLikelihood does not have an info_type, the configuration fails.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns