Class InspectConfig.InfoTypeLikelihood.Builder (3.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InspectConfig.InfoTypeLikelihood.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

build()

public InspectConfig.InfoTypeLikelihood build()
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood

buildPartial()

public InspectConfig.InfoTypeLikelihood buildPartial()
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood

clear()

public InspectConfig.InfoTypeLikelihood.Builder clear()
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InspectConfig.InfoTypeLikelihood.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

clone()

public InspectConfig.InfoTypeLikelihood.Builder clone()
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

getDefaultInstanceForType()

public InspectConfig.InfoTypeLikelihood getDefaultInstanceForType()
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the infoType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InspectConfig.InfoTypeLikelihood other)

public InspectConfig.InfoTypeLikelihood.Builder mergeFrom(InspectConfig.InfoTypeLikelihood other)
Parameter
NameDescription
otherInspectConfig.InfoTypeLikelihood
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public InspectConfig.InfoTypeLikelihood.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInfoType
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InspectConfig.InfoTypeLikelihood.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The minLikelihood to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InspectConfig.InfoTypeLikelihood.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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