Class AdjustByMatchingInfoTypes.Builder (3.92.0)

public static final class AdjustByMatchingInfoTypes.Builder extends GeneratedMessage.Builder<AdjustByMatchingInfoTypes.Builder> implements AdjustByMatchingInfoTypesOrBuilder

AdjustmentRule condition for matching infoTypes.

Protobuf type google.privacy.dlp.v2.AdjustByMatchingInfoTypes

Static Methods

getDescriptor()

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

Methods

addAllInfoTypes(Iterable<? extends InfoType> values)

public AdjustByMatchingInfoTypes.Builder addAllInfoTypes(Iterable<? extends InfoType> values)

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
values Iterable<? extends com.google.privacy.dlp.v2.InfoType>
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

addInfoTypes(InfoType value)

public AdjustByMatchingInfoTypes.Builder addInfoTypes(InfoType value)

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
value InfoType
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

addInfoTypes(InfoType.Builder builderForValue)

public AdjustByMatchingInfoTypes.Builder addInfoTypes(InfoType.Builder builderForValue)

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
builderForValue InfoType.Builder
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

addInfoTypes(int index, InfoType value)

public AdjustByMatchingInfoTypes.Builder addInfoTypes(int index, InfoType value)

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;

Parameters
Name Description
index int
value InfoType
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

addInfoTypes(int index, InfoType.Builder builderForValue)

public AdjustByMatchingInfoTypes.Builder addInfoTypes(int index, InfoType.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue InfoType.Builder
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

addInfoTypesBuilder()

public InfoType.Builder addInfoTypesBuilder()

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
InfoType.Builder

addInfoTypesBuilder(int index)

public InfoType.Builder addInfoTypesBuilder(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.Builder

build()

public AdjustByMatchingInfoTypes build()
Returns
Type Description
AdjustByMatchingInfoTypes

buildPartial()

public AdjustByMatchingInfoTypes buildPartial()
Returns
Type Description
AdjustByMatchingInfoTypes

clear()

public AdjustByMatchingInfoTypes.Builder clear()
Returns
Type Description
AdjustByMatchingInfoTypes.Builder
Overrides

clearInfoTypes()

public AdjustByMatchingInfoTypes.Builder clearInfoTypes()

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
AdjustByMatchingInfoTypes.Builder

clearMatchingType()

public AdjustByMatchingInfoTypes.Builder clearMatchingType()

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
AdjustByMatchingInfoTypes.Builder

This builder for chaining.

clearMinLikelihood()

public AdjustByMatchingInfoTypes.Builder clearMinLikelihood()

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
AdjustByMatchingInfoTypes.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdjustByMatchingInfoTypes getDefaultInstanceForType()
Returns
Type Description
AdjustByMatchingInfoTypes

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getInfoTypesBuilder(int index)

public InfoType.Builder getInfoTypesBuilder(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.Builder

getInfoTypesBuilderList()

public List<InfoType.Builder> getInfoTypesBuilderList()

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<Builder>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdjustByMatchingInfoTypes other)

public AdjustByMatchingInfoTypes.Builder mergeFrom(AdjustByMatchingInfoTypes other)
Parameter
Name Description
other AdjustByMatchingInfoTypes
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdjustByMatchingInfoTypes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdjustByMatchingInfoTypes.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdjustByMatchingInfoTypes.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdjustByMatchingInfoTypes.Builder
Overrides

removeInfoTypes(int index)

public AdjustByMatchingInfoTypes.Builder removeInfoTypes(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
AdjustByMatchingInfoTypes.Builder

setInfoTypes(int index, InfoType value)

public AdjustByMatchingInfoTypes.Builder setInfoTypes(int index, InfoType value)

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;

Parameters
Name Description
index int
value InfoType
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

setInfoTypes(int index, InfoType.Builder builderForValue)

public AdjustByMatchingInfoTypes.Builder setInfoTypes(int index, InfoType.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue InfoType.Builder
Returns
Type Description
AdjustByMatchingInfoTypes.Builder

setMatchingType(MatchingType value)

public AdjustByMatchingInfoTypes.Builder setMatchingType(MatchingType value)

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;

Parameter
Name Description
value MatchingType

The matchingType to set.

Returns
Type Description
AdjustByMatchingInfoTypes.Builder

This builder for chaining.

setMatchingTypeValue(int value)

public AdjustByMatchingInfoTypes.Builder setMatchingTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for matchingType to set.

Returns
Type Description
AdjustByMatchingInfoTypes.Builder

This builder for chaining.

setMinLikelihood(Likelihood value)

public AdjustByMatchingInfoTypes.Builder setMinLikelihood(Likelihood value)

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;

Parameter
Name Description
value Likelihood

The minLikelihood to set.

Returns
Type Description
AdjustByMatchingInfoTypes.Builder

This builder for chaining.

setMinLikelihoodValue(int value)

public AdjustByMatchingInfoTypes.Builder setMinLikelihoodValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for minLikelihood to set.

Returns
Type Description
AdjustByMatchingInfoTypes.Builder

This builder for chaining.