Class CustomInfoType.DetectionRule.LikelihoodAdjustment (3.1.4)

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
TypeDescription
int

RELATIVE_LIKELIHOOD_FIELD_NUMBER

public static final int RELATIVE_LIKELIHOOD_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomInfoType.DetectionRule.LikelihoodAdjustment getDefaultInstance()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment

getDescriptor()

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

newBuilder()

public static CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilder()
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)
Parameter
NameDescription
prototypeCustomInfoType.DetectionRule.LikelihoodAdjustment
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType.DetectionRule.LikelihoodAdjustment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<CustomInfoType.DetectionRule.LikelihoodAdjustment> getParserForType()
Returns
TypeDescription
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
TypeDescription
int

The relativeLikelihood.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException