Send feedback
Class CustomInfoType.DetectionRule.LikelihoodAdjustment (3.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.10.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
RELATIVE_LIKELIHOOD_FIELD_NUMBER
public static final int RELATIVE_LIKELIHOOD_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CustomInfoType . DetectionRule . LikelihoodAdjustment getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilder ()
Returns
newBuilder(CustomInfoType.DetectionRule.LikelihoodAdjustment prototype)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilder ( CustomInfoType . DetectionRule . LikelihoodAdjustment prototype )
Parameter
Returns
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType . DetectionRule . LikelihoodAdjustment parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<CustomInfoType . DetectionRule . LikelihoodAdjustment > parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getAdjustmentCase()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . AdjustmentCase getAdjustmentCase ()
Returns
getDefaultInstanceForType()
public CustomInfoType . DetectionRule . LikelihoodAdjustment getDefaultInstanceForType ()
Returns
getFixedLikelihood()
public Likelihood getFixedLikelihood ()
Set the likelihood of a finding to a fixed value.
.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;
Returns
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-01-27 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-01-27 UTC."],[],[]]