Class CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder (3.34.0)

public static final class CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder extends GeneratedMessageV3.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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

build()

public CustomInfoType.DetectionRule.LikelihoodAdjustment build()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment

buildPartial()

public CustomInfoType.DetectionRule.LikelihoodAdjustment buildPartial()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment

clear()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clear()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

clearAdjustment()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearAdjustment()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

clearField(Descriptors.FieldDescriptor field)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

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
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

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
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

clone()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder clone()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

getAdjustmentCase()

public CustomInfoType.DetectionRule.LikelihoodAdjustment.AdjustmentCase getAdjustmentCase()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.AdjustmentCase

getDefaultInstanceForType()

public CustomInfoType.DetectionRule.LikelihoodAdjustment getDefaultInstanceForType()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment

getDescriptorForType()

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

Whether the relativeLikelihood field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomInfoType.DetectionRule.LikelihoodAdjustment other)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeFrom(CustomInfoType.DetectionRule.LikelihoodAdjustment other)
Parameter
NameDescription
otherCustomInfoType.DetectionRule.LikelihoodAdjustment
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueLikelihood

The fixedLikelihood to set.

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

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

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

The relativeLikelihood to set.

Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

This builder for chaining.

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

public CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides