Class AdjustmentRule (3.92.0)

public final class AdjustmentRule extends GeneratedMessage implements AdjustmentRuleOrBuilder

Rule that specifies conditions when a certain infoType's finding details should be adjusted.

Protobuf type google.privacy.dlp.v2.AdjustmentRule

Static Fields

ADJUST_BY_IMAGE_FINDINGS_FIELD_NUMBER

public static final int ADJUST_BY_IMAGE_FINDINGS_FIELD_NUMBER
Field Value
Type Description
int

ADJUST_BY_MATCHING_INFO_TYPES_FIELD_NUMBER

public static final int ADJUST_BY_MATCHING_INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER

public static final int LIKELIHOOD_ADJUSTMENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdjustmentRule getDefaultInstance()
Returns
Type Description
AdjustmentRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AdjustmentRule.Builder newBuilder()
Returns
Type Description
AdjustmentRule.Builder

newBuilder(AdjustmentRule prototype)

public static AdjustmentRule.Builder newBuilder(AdjustmentRule prototype)
Parameter
Name Description
prototype AdjustmentRule
Returns
Type Description
AdjustmentRule.Builder

parseDelimitedFrom(InputStream input)

public static AdjustmentRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdjustmentRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdjustmentRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdjustmentRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdjustmentRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdjustmentRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdjustmentRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustmentRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdjustmentRule> parser()
Returns
Type Description
Parser<AdjustmentRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdjustByImageFindings()

public AdjustByImageFindings getAdjustByImageFindings()

AdjustmentRule condition for image findings.

.google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;

Returns
Type Description
AdjustByImageFindings

The adjustByImageFindings.

getAdjustByImageFindingsOrBuilder()

public AdjustByImageFindingsOrBuilder getAdjustByImageFindingsOrBuilder()

AdjustmentRule condition for image findings.

.google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;

Returns
Type Description
AdjustByImageFindingsOrBuilder

getAdjustByMatchingInfoTypes()

public AdjustByMatchingInfoTypes getAdjustByMatchingInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;

Returns
Type Description
AdjustByMatchingInfoTypes

The adjustByMatchingInfoTypes.

getAdjustByMatchingInfoTypesOrBuilder()

public AdjustByMatchingInfoTypesOrBuilder getAdjustByMatchingInfoTypesOrBuilder()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;

Returns
Type Description
AdjustByMatchingInfoTypesOrBuilder

getConditionsCase()

public AdjustmentRule.ConditionsCase getConditionsCase()
Returns
Type Description
AdjustmentRule.ConditionsCase

getDefaultInstanceForType()

public AdjustmentRule getDefaultInstanceForType()
Returns
Type Description
AdjustmentRule

getLikelihoodAdjustment()

public CustomInfoType.DetectionRule.LikelihoodAdjustment getLikelihoodAdjustment()

Likelihood adjustment to apply to the infoType.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustment

The likelihoodAdjustment.

getLikelihoodAdjustmentOrBuilder()

public CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder getLikelihoodAdjustmentOrBuilder()

Likelihood adjustment to apply to the infoType.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;

Returns
Type Description
CustomInfoType.DetectionRule.LikelihoodAdjustmentOrBuilder

getParserForType()

public Parser<AdjustmentRule> getParserForType()
Returns
Type Description
Parser<AdjustmentRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAdjustByImageFindings()

public boolean hasAdjustByImageFindings()

AdjustmentRule condition for image findings.

.google.privacy.dlp.v2.AdjustByImageFindings adjust_by_image_findings = 3;

Returns
Type Description
boolean

Whether the adjustByImageFindings field is set.

hasAdjustByMatchingInfoTypes()

public boolean hasAdjustByMatchingInfoTypes()

Set of infoTypes for which findings would affect this rule.

.google.privacy.dlp.v2.AdjustByMatchingInfoTypes adjust_by_matching_info_types = 1;

Returns
Type Description
boolean

Whether the adjustByMatchingInfoTypes field is set.

hasLikelihoodAdjustment()

public boolean hasLikelihoodAdjustment()

Likelihood adjustment to apply to the infoType.

.google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 2;

Returns
Type Description
boolean

Whether the likelihoodAdjustment field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AdjustmentRule.Builder newBuilderForType()
Returns
Type Description
AdjustmentRule.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AdjustmentRule.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdjustmentRule.Builder
Overrides

toBuilder()

public AdjustmentRule.Builder toBuilder()
Returns
Type Description
AdjustmentRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException