Class CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder (3.87.0)

public static final class CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder extends GeneratedMessage.Builder<CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder> implements CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder

Message for specifying an adjustment to the likelihood of a finding as part of a detection rule.

Protobuf type google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment

Static Methods

getDescriptor()

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

Methods

build()

public CustomInfoType.DetectionRule.LikelihoodAdjustment build()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment

buildPartial()

public CustomInfoType.DetectionRule.LikelihoodAdjustment buildPartial()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment

clear()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clear()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

clearAdjustment()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearAdjustment()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

clearFixedLikelihood()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearFixedLikelihood()

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

clearRelativeLikelihood()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearRelativeLikelihood()

Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relative_likelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY.

int32 relative_likelihood = 2;

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

getAdjustmentCase()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.AdjustmentCase getAdjustmentCase()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.AdjustmentCase

getDefaultInstanceForType()

public CustomInfoType.DetectionRule.LikelihoodAdjustment getDefaultInstanceForType()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment

getDescriptorForType()

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

getFixedLikelihood()

public Likelihood getFixedLikelihood()

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Returns
Type Description
Likelihood

The fixedLikelihood.

getFixedLikelihoodValue()

public int getFixedLikelihoodValue()

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Returns
Type Description
int

The enum numeric value on the wire for fixedLikelihood.

getRelativeLikelihood()

public int getRelativeLikelihood()

Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relative_likelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY.

int32 relative_likelihood = 2;

Returns
Type Description
int

The relativeLikelihood.

hasFixedLikelihood()

public boolean hasFixedLikelihood()

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Returns
Type Description
boolean

Whether the fixedLikelihood field is set.

hasRelativeLikelihood()

public boolean hasRelativeLikelihood()

Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relative_likelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY.

int32 relative_likelihood = 2;

Returns
Type Description
boolean

Whether the relativeLikelihood field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomInfoType.DetectionRule.LikelihoodAdjustment other)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeFrom(CustomInfoType.DetectionRule.LikelihoodAdjustment other)
Parameter
Name Description
other CustomInfoType.DetectionRule.LikelihoodAdjustment
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

setFixedLikelihood(Likelihood value)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setFixedLikelihood(Likelihood value)

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Parameter
Name Description
value Likelihood

The fixedLikelihood to set.

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

setFixedLikelihoodValue(int value)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setFixedLikelihoodValue(int value)

Set the likelihood of a finding to a fixed value.

.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;

Parameter
Name Description
value int

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

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

setRelativeLikelihood(int value)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setRelativeLikelihood(int value)

Increase or decrease the likelihood by the specified number of levels. For example, if a finding would be POSSIBLE without the detection rule and relative_likelihood is 1, then it is upgraded to LIKELY, while a value of -1 would downgrade it to UNLIKELY. Likelihood may never drop below VERY_UNLIKELY or exceed VERY_LIKELY, so applying an adjustment of 1 followed by an adjustment of -1 when base likelihood is VERY_LIKELY will result in a final likelihood of LIKELY.

int32 relative_likelihood = 2;

Parameter
Name Description
value int

The relativeLikelihood to set.

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.