Class CustomInfoType.Builder (3.44.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRule>
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.DetectionRule
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.DetectionRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomInfoType.DetectionRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomInfoType.DetectionRule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CustomInfoType.DetectionRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomInfoType.Builder
Overrides

build()

public CustomInfoType build()
Returns
TypeDescription
CustomInfoType

buildPartial()

public CustomInfoType buildPartial()
Returns
TypeDescription
CustomInfoType

clear()

public CustomInfoType.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CustomInfoType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomInfoType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CustomInfoType.Builder
Overrides

clearRegex()

public CustomInfoType.Builder clearRegex()

Regular expression based CustomInfoType.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.Builder

clearType()

public CustomInfoType.Builder clearType()
Returns
TypeDescription
CustomInfoType.Builder

clone()

public CustomInfoType.Builder clone()
Returns
TypeDescription
CustomInfoType.Builder
Overrides

getDefaultInstanceForType()

public CustomInfoType getDefaultInstanceForType()
Returns
TypeDescription
CustomInfoType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.Regex

The regex.

getRegexBuilder()

public CustomInfoType.Regex.Builder getRegexBuilder()

Regular expression based CustomInfoType.

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

Returns
TypeDescription
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression based CustomInfoType.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CustomInfoType.SurrogateTypeOrBuilder

getTypeCase()

public CustomInfoType.TypeCase getTypeCase()
Returns
TypeDescription
CustomInfoType.TypeCase

hasDictionary()

public boolean hasDictionary()

A list of phrases to detect as a CustomInfoType.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the infoType field is set.

hasRegex()

public boolean hasRegex()

Regular expression based CustomInfoType.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the surrogateType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Dictionary
Returns
TypeDescription
CustomInfoType.Builder

mergeFrom(CustomInfoType other)

public CustomInfoType.Builder mergeFrom(CustomInfoType other)
Parameter
NameDescription
otherCustomInfoType
Returns
TypeDescription
CustomInfoType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomInfoType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CustomInfoType.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInfoType
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
valueSensitivityScore
Returns
TypeDescription
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
NameDescription
valueStoredType
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.SurrogateType
Returns
TypeDescription
CustomInfoType.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCustomInfoType.DetectionRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomInfoType.DetectionRule.Builder
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Dictionary
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Dictionary.Builder
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.ExclusionType

The exclusionType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
CustomInfoType.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomInfoType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInfoType
Returns
TypeDescription
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
NameDescription
builderForValueInfoType.Builder
Returns
TypeDescription
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
NameDescription
valueLikelihood

The likelihood to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Regex.Builder
Returns
TypeDescription
CustomInfoType.Builder

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

public CustomInfoType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSensitivityScore
Returns
TypeDescription
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
NameDescription
builderForValueSensitivityScore.Builder
Returns
TypeDescription
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
NameDescription
valueStoredType
Returns
TypeDescription
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
NameDescription
builderForValueStoredType.Builder
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.SurrogateType
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.SurrogateType.Builder
Returns
TypeDescription
CustomInfoType.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomInfoType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomInfoType.Builder
Overrides