Send feedback
Class CustomInfoType.DetectionRule.LikelihoodAdjustment (3.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.20.0 keyboard_arrow_down
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
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 ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilder ()
newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilder ( CustomInfoType . DetectionRule . LikelihoodAdjustment prototype )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseDelimitedFrom ( InputStream input )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( byte [] data )
Parameter Name Description data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( CodedInputStream input )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( InputStream input )
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<CustomInfoType . DetectionRule . LikelihoodAdjustment > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getAdjustmentCase()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . AdjustmentCase getAdjustmentCase ()
getDefaultInstanceForType()
public CustomInfoType . DetectionRule . LikelihoodAdjustment getDefaultInstanceForType ()
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 ()
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
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()
Returns Type Description int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
toBuilder()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]