Send feedback
Class CustomInfoType.DetectionRule.LikelihoodAdjustment.Builder (3.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.2.1 keyboard_arrow_down
public static final class CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder extends GeneratedMessageV3 . Builder<CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder> 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 Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CustomInfoType . DetectionRule . LikelihoodAdjustment build ()
Returns
buildPartial()
public CustomInfoType . DetectionRule . LikelihoodAdjustment buildPartial ()
Returns
clear()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clear ()
Returns
Overrides
clearAdjustment()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clearAdjustment ()
Returns
clearField(Descriptors.FieldDescriptor field)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearFixedLikelihood()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clearFixedLikelihood ()
Set the likelihood of a finding to a fixed value.
.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearRelativeLikelihood()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clearRelativeLikelihood ()
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
clone()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder clone ()
Returns
Overrides
getAdjustmentCase()
public CustomInfoType . DetectionRule . LikelihoodAdjustment . AdjustmentCase getAdjustmentCase ()
Returns
getDefaultInstanceForType()
public CustomInfoType . DetectionRule . LikelihoodAdjustment getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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.
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.
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.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(CustomInfoType.DetectionRule.LikelihoodAdjustment other)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder mergeFrom ( CustomInfoType . DetectionRule . LikelihoodAdjustment other )
Parameter
Returns
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setFixedLikelihood(Likelihood value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setFixedLikelihood ( Likelihood value )
Set the likelihood of a finding to a fixed value.
.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;
Parameter
Name Description value Likelihood
The fixedLikelihood to set.
Returns
setFixedLikelihoodValue(int value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setFixedLikelihoodValue ( int value )
Set the likelihood of a finding to a fixed value.
.google.privacy.dlp.v2.Likelihood fixed_likelihood = 1;
Parameter
Name Description value int
The enum numeric value on the wire for fixedLikelihood to set.
Returns
setRelativeLikelihood(int value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setRelativeLikelihood ( int value )
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;
Parameter
Name Description value int
The relativeLikelihood to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType . DetectionRule . LikelihoodAdjustment . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["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 2024-09-19 UTC."]]