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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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
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