Class CustomInfoType.DetectionRule.LikelihoodAdjustment (3.47.0)

public static final class CustomInfoType.DetectionRule.LikelihoodAdjustment extends GeneratedMessageV3 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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CustomInfoType.DetectionRule.LikelihoodAdjustment

Static Fields

FIXED_LIKELIHOOD_FIELD_NUMBER

public static final int FIXED_LIKELIHOOD_FIELD_NUMBER
Field Value
Type Description
int

RELATIVE_LIKELIHOOD_FIELD_NUMBER

public static final int RELATIVE_LIKELIHOOD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomInfoType.DetectionRule.LikelihoodAdjustment getDefaultInstance()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment

getDescriptor()

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

newBuilder()

public static CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilder()
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)
Parameter
Name Description
prototype CustomInfoType.DetectionRule.LikelihoodAdjustment
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomInfoType.DetectionRule.LikelihoodAdjustment> parser()
Returns
Type Description
Parser<LikelihoodAdjustment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<CustomInfoType.DetectionRule.LikelihoodAdjustment> getParserForType()
Returns
Type Description
Parser<LikelihoodAdjustment>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException