Class CustomInfoType.Builder (3.56.0)

public static final class CustomInfoType.Builder extends GeneratedMessageV3.Builder<CustomInfoType.Builder> implements CustomInfoTypeOrBuilder

Custom information type provided by the user. Used to find domain-specific sensitive information configurable to the data in question.

Protobuf type google.privacy.dlp.v2.CustomInfoType

Static Methods

getDescriptor()

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

Methods

addAllDetectionRules(Iterable<? extends CustomInfoType.DetectionRule> values)

public CustomInfoType.Builder addAllDetectionRules(Iterable<? extends CustomInfoType.DetectionRule> values)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRule>
Returns
Type Description
CustomInfoType.Builder

addDetectionRules(CustomInfoType.DetectionRule value)

public CustomInfoType.Builder addDetectionRules(CustomInfoType.DetectionRule value)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
value CustomInfoType.DetectionRule
Returns
Type Description
CustomInfoType.Builder

addDetectionRules(CustomInfoType.DetectionRule.Builder builderForValue)

public CustomInfoType.Builder addDetectionRules(CustomInfoType.DetectionRule.Builder builderForValue)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
builderForValue CustomInfoType.DetectionRule.Builder
Returns
Type Description
CustomInfoType.Builder

addDetectionRules(int index, CustomInfoType.DetectionRule value)

public CustomInfoType.Builder addDetectionRules(int index, CustomInfoType.DetectionRule value)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameters
Name Description
index int
value CustomInfoType.DetectionRule
Returns
Type Description
CustomInfoType.Builder

addDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)

public CustomInfoType.Builder addDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameters
Name Description
index int
builderForValue CustomInfoType.DetectionRule.Builder
Returns
Type Description
CustomInfoType.Builder

addDetectionRulesBuilder()

public CustomInfoType.DetectionRule.Builder addDetectionRulesBuilder()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Returns
Type Description
CustomInfoType.DetectionRule.Builder

addDetectionRulesBuilder(int index)

public CustomInfoType.DetectionRule.Builder addDetectionRulesBuilder(int index)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
index int
Returns
Type Description
CustomInfoType.DetectionRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomInfoType.Builder
Overrides

build()

public CustomInfoType build()
Returns
Type Description
CustomInfoType

buildPartial()

public CustomInfoType buildPartial()
Returns
Type Description
CustomInfoType

clear()

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

clearDetectionRules()

public CustomInfoType.Builder clearDetectionRules()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Returns
Type Description
CustomInfoType.Builder

clearDictionary()

public CustomInfoType.Builder clearDictionary()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
Type Description
CustomInfoType.Builder

clearExclusionType()

public CustomInfoType.Builder clearExclusionType()

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

.google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CustomInfoType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomInfoType.Builder
Overrides

clearInfoType()

public CustomInfoType.Builder clearInfoType()

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
CustomInfoType.Builder

clearLikelihood()

public CustomInfoType.Builder clearLikelihood()

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

.google.privacy.dlp.v2.Likelihood likelihood = 6;

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomInfoType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomInfoType.Builder
Overrides

clearRegex()

public CustomInfoType.Builder clearRegex()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
Type Description
CustomInfoType.Builder

clearSensitivityScore()

public CustomInfoType.Builder clearSensitivityScore()

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Returns
Type Description
CustomInfoType.Builder

clearStoredType()

public CustomInfoType.Builder clearStoredType()

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Returns
Type Description
CustomInfoType.Builder

clearSurrogateType()

public CustomInfoType.Builder clearSurrogateType()

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Returns
Type Description
CustomInfoType.Builder

clearType()

public CustomInfoType.Builder clearType()
Returns
Type Description
CustomInfoType.Builder

clone()

public CustomInfoType.Builder clone()
Returns
Type Description
CustomInfoType.Builder
Overrides

getDefaultInstanceForType()

public CustomInfoType getDefaultInstanceForType()
Returns
Type Description
CustomInfoType

getDescriptorForType()

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

getDetectionRules(int index)

public CustomInfoType.DetectionRule getDetectionRules(int index)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
index int
Returns
Type Description
CustomInfoType.DetectionRule

getDetectionRulesBuilder(int index)

public CustomInfoType.DetectionRule.Builder getDetectionRulesBuilder(int index)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
index int
Returns
Type Description
CustomInfoType.DetectionRule.Builder

getDetectionRulesBuilderList()

public List<CustomInfoType.DetectionRule.Builder> getDetectionRulesBuilderList()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Returns
Type Description
List<Builder>

getDetectionRulesCount()

public int getDetectionRulesCount()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Returns
Type Description
int

getDetectionRulesList()

public List<CustomInfoType.DetectionRule> getDetectionRulesList()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Returns
Type Description
List<DetectionRule>

getDetectionRulesOrBuilder(int index)

public CustomInfoType.DetectionRuleOrBuilder getDetectionRulesOrBuilder(int index)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
index int
Returns
Type Description
CustomInfoType.DetectionRuleOrBuilder

getDetectionRulesOrBuilderList()

public List<? extends CustomInfoType.DetectionRuleOrBuilder> getDetectionRulesOrBuilderList()

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

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

getDictionary()

public CustomInfoType.Dictionary getDictionary()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
Type Description
CustomInfoType.Dictionary

The dictionary.

getDictionaryBuilder()

public CustomInfoType.Dictionary.Builder getDictionaryBuilder()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
Type Description
CustomInfoType.Dictionary.Builder

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
Type Description
CustomInfoType.DictionaryOrBuilder

getExclusionType()

public CustomInfoType.ExclusionType getExclusionType()

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

.google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;

Returns
Type Description
CustomInfoType.ExclusionType

The exclusionType.

getExclusionTypeValue()

public int getExclusionTypeValue()

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

.google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;

Returns
Type Description
int

The enum numeric value on the wire for exclusionType.

getInfoType()

public InfoType getInfoType()

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
InfoType

The infoType.

getInfoTypeBuilder()

public InfoType.Builder getInfoTypeBuilder()

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
InfoType.Builder

getInfoTypeOrBuilder()

public InfoTypeOrBuilder getInfoTypeOrBuilder()

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
InfoTypeOrBuilder

getLikelihood()

public Likelihood getLikelihood()

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

.google.privacy.dlp.v2.Likelihood likelihood = 6;

Returns
Type Description
Likelihood

The likelihood.

getLikelihoodValue()

public int getLikelihoodValue()

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

.google.privacy.dlp.v2.Likelihood likelihood = 6;

Returns
Type Description
int

The enum numeric value on the wire for likelihood.

getRegex()

public CustomInfoType.Regex getRegex()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
Type Description
CustomInfoType.Regex

The regex.

getRegexBuilder()

public CustomInfoType.Regex.Builder getRegexBuilder()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
Type Description
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
Type Description
CustomInfoType.RegexOrBuilder

getSensitivityScore()

public SensitivityScore getSensitivityScore()

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Returns
Type Description
SensitivityScore

The sensitivityScore.

getSensitivityScoreBuilder()

public SensitivityScore.Builder getSensitivityScoreBuilder()

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Returns
Type Description
SensitivityScore.Builder

getSensitivityScoreOrBuilder()

public SensitivityScoreOrBuilder getSensitivityScoreOrBuilder()

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Returns
Type Description
SensitivityScoreOrBuilder

getStoredType()

public StoredType getStoredType()

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Returns
Type Description
StoredType

The storedType.

getStoredTypeBuilder()

public StoredType.Builder getStoredTypeBuilder()

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Returns
Type Description
StoredType.Builder

getStoredTypeOrBuilder()

public StoredTypeOrBuilder getStoredTypeOrBuilder()

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Returns
Type Description
StoredTypeOrBuilder

getSurrogateType()

public CustomInfoType.SurrogateType getSurrogateType()

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Returns
Type Description
CustomInfoType.SurrogateType

The surrogateType.

getSurrogateTypeBuilder()

public CustomInfoType.SurrogateType.Builder getSurrogateTypeBuilder()

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Returns
Type Description
CustomInfoType.SurrogateType.Builder

getSurrogateTypeOrBuilder()

public CustomInfoType.SurrogateTypeOrBuilder getSurrogateTypeOrBuilder()

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Returns
Type Description
CustomInfoType.SurrogateTypeOrBuilder

getTypeCase()

public CustomInfoType.TypeCase getTypeCase()
Returns
Type Description
CustomInfoType.TypeCase

hasDictionary()

public boolean hasDictionary()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
Type Description
boolean

Whether the dictionary field is set.

hasInfoType()

public boolean hasInfoType()

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
Type Description
boolean

Whether the infoType field is set.

hasRegex()

public boolean hasRegex()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
Type Description
boolean

Whether the regex field is set.

hasSensitivityScore()

public boolean hasSensitivityScore()

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Returns
Type Description
boolean

Whether the sensitivityScore field is set.

hasStoredType()

public boolean hasStoredType()

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Returns
Type Description
boolean

Whether the storedType field is set.

hasSurrogateType()

public boolean hasSurrogateType()

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Returns
Type Description
boolean

Whether the surrogateType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDictionary(CustomInfoType.Dictionary value)

public CustomInfoType.Builder mergeDictionary(CustomInfoType.Dictionary value)

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
CustomInfoType.Builder

mergeFrom(CustomInfoType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInfoType(InfoType value)

public CustomInfoType.Builder mergeInfoType(InfoType value)

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
Name Description
value InfoType
Returns
Type Description
CustomInfoType.Builder

mergeRegex(CustomInfoType.Regex value)

public CustomInfoType.Builder mergeRegex(CustomInfoType.Regex value)

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
CustomInfoType.Builder

mergeSensitivityScore(SensitivityScore value)

public CustomInfoType.Builder mergeSensitivityScore(SensitivityScore value)

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Parameter
Name Description
value SensitivityScore
Returns
Type Description
CustomInfoType.Builder

mergeStoredType(StoredType value)

public CustomInfoType.Builder mergeStoredType(StoredType value)

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Parameter
Name Description
value StoredType
Returns
Type Description
CustomInfoType.Builder

mergeSurrogateType(CustomInfoType.SurrogateType value)

public CustomInfoType.Builder mergeSurrogateType(CustomInfoType.SurrogateType value)

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Parameter
Name Description
value CustomInfoType.SurrogateType
Returns
Type Description
CustomInfoType.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomInfoType.Builder
Overrides

removeDetectionRules(int index)

public CustomInfoType.Builder removeDetectionRules(int index)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameter
Name Description
index int
Returns
Type Description
CustomInfoType.Builder

setDetectionRules(int index, CustomInfoType.DetectionRule value)

public CustomInfoType.Builder setDetectionRules(int index, CustomInfoType.DetectionRule value)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameters
Name Description
index int
value CustomInfoType.DetectionRule
Returns
Type Description
CustomInfoType.Builder

setDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)

public CustomInfoType.Builder setDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)

Set of detection rules to apply to all findings of this CustomInfoType. Rules are applied in order that they are specified. Not supported for the surrogate_type CustomInfoType.

repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;

Parameters
Name Description
index int
builderForValue CustomInfoType.DetectionRule.Builder
Returns
Type Description
CustomInfoType.Builder

setDictionary(CustomInfoType.Dictionary value)

public CustomInfoType.Builder setDictionary(CustomInfoType.Dictionary value)

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
CustomInfoType.Builder

setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

public CustomInfoType.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Parameter
Name Description
builderForValue CustomInfoType.Dictionary.Builder
Returns
Type Description
CustomInfoType.Builder

setExclusionType(CustomInfoType.ExclusionType value)

public CustomInfoType.Builder setExclusionType(CustomInfoType.ExclusionType value)

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

.google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;

Parameter
Name Description
value CustomInfoType.ExclusionType

The exclusionType to set.

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

setExclusionTypeValue(int value)

public CustomInfoType.Builder setExclusionTypeValue(int value)

If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned. It still can be used for rules matching.

.google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;

Parameter
Name Description
value int

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

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomInfoType.Builder
Overrides

setInfoType(InfoType value)

public CustomInfoType.Builder setInfoType(InfoType value)

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
Name Description
value InfoType
Returns
Type Description
CustomInfoType.Builder

setInfoType(InfoType.Builder builderForValue)

public CustomInfoType.Builder setInfoType(InfoType.Builder builderForValue)

CustomInfoType can either be a new infoType, or an extension of built-in infoType, when the name matches one of existing infoTypes and that infoType is specified in InspectContent.info_types field. Specifying the latter adds findings to the one detected by the system. If built-in info type is not specified in InspectContent.info_types list then the name is treated as a custom info type.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
Name Description
builderForValue InfoType.Builder
Returns
Type Description
CustomInfoType.Builder

setLikelihood(Likelihood value)

public CustomInfoType.Builder setLikelihood(Likelihood value)

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

.google.privacy.dlp.v2.Likelihood likelihood = 6;

Parameter
Name Description
value Likelihood

The likelihood to set.

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

setLikelihoodValue(int value)

public CustomInfoType.Builder setLikelihoodValue(int value)

Likelihood to return for this CustomInfoType. This base value can be altered by a detection rule if the finding meets the criteria specified by the rule. Defaults to VERY_LIKELY if not specified.

.google.privacy.dlp.v2.Likelihood likelihood = 6;

Parameter
Name Description
value int

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

Returns
Type Description
CustomInfoType.Builder

This builder for chaining.

setRegex(CustomInfoType.Regex value)

public CustomInfoType.Builder setRegex(CustomInfoType.Regex value)

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
CustomInfoType.Builder

setRegex(CustomInfoType.Regex.Builder builderForValue)

public CustomInfoType.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Parameter
Name Description
builderForValue CustomInfoType.Regex.Builder
Returns
Type Description
CustomInfoType.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomInfoType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomInfoType.Builder
Overrides

setSensitivityScore(SensitivityScore value)

public CustomInfoType.Builder setSensitivityScore(SensitivityScore value)

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Parameter
Name Description
value SensitivityScore
Returns
Type Description
CustomInfoType.Builder

setSensitivityScore(SensitivityScore.Builder builderForValue)

public CustomInfoType.Builder setSensitivityScore(SensitivityScore.Builder builderForValue)

Sensitivity for this CustomInfoType. If this CustomInfoType extends an existing InfoType, the sensitivity here will take precedence over that of the original InfoType. If unset for a CustomInfoType, it will default to HIGH. This only applies to data profiling.

.google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9;

Parameter
Name Description
builderForValue SensitivityScore.Builder
Returns
Type Description
CustomInfoType.Builder

setStoredType(StoredType value)

public CustomInfoType.Builder setStoredType(StoredType value)

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Parameter
Name Description
value StoredType
Returns
Type Description
CustomInfoType.Builder

setStoredType(StoredType.Builder builderForValue)

public CustomInfoType.Builder setStoredType(StoredType.Builder builderForValue)

Load an existing StoredInfoType resource for use in InspectDataSource. Not currently supported in InspectContent.

.google.privacy.dlp.v2.StoredType stored_type = 5;

Parameter
Name Description
builderForValue StoredType.Builder
Returns
Type Description
CustomInfoType.Builder

setSurrogateType(CustomInfoType.SurrogateType value)

public CustomInfoType.Builder setSurrogateType(CustomInfoType.SurrogateType value)

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Parameter
Name Description
value CustomInfoType.SurrogateType
Returns
Type Description
CustomInfoType.Builder

setSurrogateType(CustomInfoType.SurrogateType.Builder builderForValue)

public CustomInfoType.Builder setSurrogateType(CustomInfoType.SurrogateType.Builder builderForValue)

Message for detecting output from deidentification transformations that support reversing.

.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;

Parameter
Name Description
builderForValue CustomInfoType.SurrogateType.Builder
Returns
Type Description
CustomInfoType.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomInfoType.Builder
Overrides