Class InspectConfig.InfoTypeLikelihood.Builder (3.51.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
Type Description
InfoType

The infoType.

getInfoTypeBuilder()

public InfoType.Builder getInfoTypeBuilder()

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
InfoType.Builder

getInfoTypeOrBuilder()

public InfoTypeOrBuilder getInfoTypeOrBuilder()

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
InfoTypeOrBuilder

getMinLikelihood()

public Likelihood getMinLikelihood()

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
Likelihood

The minLikelihood.

getMinLikelihoodValue()

public int getMinLikelihoodValue()

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
int

The enum numeric value on the wire for minLikelihood.

hasInfoType()

public boolean hasInfoType()

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
boolean

Whether the infoType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InspectConfig.InfoTypeLikelihood other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInfoType(InfoType value)

public InspectConfig.InfoTypeLikelihood.Builder mergeInfoType(InfoType value)

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;

Parameter
Name Description
value InfoType
Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInfoType(InfoType value)

public InspectConfig.InfoTypeLikelihood.Builder setInfoType(InfoType value)

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;

Parameter
Name Description
value InfoType
Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

setInfoType(InfoType.Builder builderForValue)

public InspectConfig.InfoTypeLikelihood.Builder setInfoType(InfoType.Builder builderForValue)

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;

Parameter
Name Description
builderForValue InfoType.Builder
Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

setMinLikelihood(Likelihood value)

public InspectConfig.InfoTypeLikelihood.Builder setMinLikelihood(Likelihood value)

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;

Parameter
Name Description
value Likelihood

The minLikelihood to set.

Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

This builder for chaining.

setMinLikelihoodValue(int value)

public InspectConfig.InfoTypeLikelihood.Builder setMinLikelihoodValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for minLikelihood to set.

Returns
Type Description
InspectConfig.InfoTypeLikelihood.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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