Class AdjustByMatchingInfoTypes (3.92.0)

public final class AdjustByMatchingInfoTypes extends GeneratedMessage implements AdjustByMatchingInfoTypesOrBuilder

AdjustmentRule condition for matching infoTypes.

Protobuf type google.privacy.dlp.v2.AdjustByMatchingInfoTypes

Static Fields

INFO_TYPES_FIELD_NUMBER

public static final int INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

MATCHING_TYPE_FIELD_NUMBER

public static final int MATCHING_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MIN_LIKELIHOOD_FIELD_NUMBER

public static final int MIN_LIKELIHOOD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdjustByMatchingInfoTypes getDefaultInstance()
Returns
Type Description
AdjustByMatchingInfoTypes

getDescriptor()

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

newBuilder()

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

newBuilder(AdjustByMatchingInfoTypes prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AdjustByMatchingInfoTypes getDefaultInstanceForType()
Returns
Type Description
AdjustByMatchingInfoTypes

getInfoTypes(int index)

public InfoType getInfoTypes(int index)

Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes.

For example, you can create a rule to adjust the likelihood of a PHONE_NUMBER finding if the string is found within a document that is classified as DOCUMENT_TYPE/HR/RESUME. To configure this, set PHONE_NUMBER in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_matching_info_types.info_types that contains DOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of the PHONE_NUMBER finding is adjusted, but the likelihood of the DOCUMENT_TYPE/HR/RESUME finding is not.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoType

getInfoTypesCount()

public int getInfoTypesCount()

Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes.

For example, you can create a rule to adjust the likelihood of a PHONE_NUMBER finding if the string is found within a document that is classified as DOCUMENT_TYPE/HR/RESUME. To configure this, set PHONE_NUMBER in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_matching_info_types.info_types that contains DOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of the PHONE_NUMBER finding is adjusted, but the likelihood of the DOCUMENT_TYPE/HR/RESUME finding is not.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
int

getInfoTypesList()

public List<InfoType> getInfoTypesList()

Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes.

For example, you can create a rule to adjust the likelihood of a PHONE_NUMBER finding if the string is found within a document that is classified as DOCUMENT_TYPE/HR/RESUME. To configure this, set PHONE_NUMBER in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_matching_info_types.info_types that contains DOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of the PHONE_NUMBER finding is adjusted, but the likelihood of the DOCUMENT_TYPE/HR/RESUME finding is not.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<InfoType>

getInfoTypesOrBuilder(int index)

public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)

Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes.

For example, you can create a rule to adjust the likelihood of a PHONE_NUMBER finding if the string is found within a document that is classified as DOCUMENT_TYPE/HR/RESUME. To configure this, set PHONE_NUMBER in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_matching_info_types.info_types that contains DOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of the PHONE_NUMBER finding is adjusted, but the likelihood of the DOCUMENT_TYPE/HR/RESUME finding is not.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
Name Description
index int
Returns
Type Description
InfoTypeOrBuilder

getInfoTypesOrBuilderList()

public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()

Sensitive Data Protection adjusts the likelihood of a finding if that finding also matches one of these infoTypes.

For example, you can create a rule to adjust the likelihood of a PHONE_NUMBER finding if the string is found within a document that is classified as DOCUMENT_TYPE/HR/RESUME. To configure this, set PHONE_NUMBER in InspectionRuleSet.info_types. Add an adjustment_rule with an adjust_by_matching_info_types.info_types that contains DOCUMENT_TYPE/HR/RESUME. In this case, the likelihood of the PHONE_NUMBER finding is adjusted, but the likelihood of the DOCUMENT_TYPE/HR/RESUME finding is not.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getMatchingType()

public MatchingType getMatchingType()

How the adjustment rule is applied.

Only MATCHING_TYPE_PARTIAL_MATCH is supported:

  • Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule.

.google.privacy.dlp.v2.MatchingType matching_type = 3;

Returns
Type Description
MatchingType

The matchingType.

getMatchingTypeValue()

public int getMatchingTypeValue()

How the adjustment rule is applied.

Only MATCHING_TYPE_PARTIAL_MATCH is supported:

  • Partial match: adjusts the findings of infoTypes specified in the inspection rule when they have a nonempty intersection with a finding of an infoType specified in this adjustment rule.

.google.privacy.dlp.v2.MatchingType matching_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for matchingType.

getMinLikelihood()

public Likelihood getMinLikelihood()

Required. Minimum likelihood of the adjust_by_matching_info_types.info_types finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the InspectionRuleSet.info_types finding.

.google.privacy.dlp.v2.Likelihood min_likelihood = 2;

Returns
Type Description
Likelihood

The minLikelihood.

getMinLikelihoodValue()

public int getMinLikelihoodValue()

Required. Minimum likelihood of the adjust_by_matching_info_types.info_types finding. If the likelihood is lower than this value, Sensitive Data Protection doesn't adjust the likelihood of the InspectionRuleSet.info_types finding.

.google.privacy.dlp.v2.Likelihood min_likelihood = 2;

Returns
Type Description
int

The enum numeric value on the wire for minLikelihood.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 AdjustByMatchingInfoTypes.Builder newBuilderForType()
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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