- 3.55.0 (latest)
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomInfoType.BuilderImplements
CustomInfoTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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;
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRule> |
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;
Name | Description |
value | CustomInfoType.DetectionRule |
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;
Name | Description |
builderForValue | CustomInfoType.DetectionRule.Builder |
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;
Name | Description |
index | int |
value | CustomInfoType.DetectionRule |
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;
Name | Description |
index | int |
builderForValue | CustomInfoType.DetectionRule.Builder |
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;
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;
Name | Description |
index | int |
Type | Description |
CustomInfoType.DetectionRule.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomInfoType.Builder |
build()
public CustomInfoType build()
Type | Description |
CustomInfoType |
buildPartial()
public CustomInfoType buildPartial()
Type | Description |
CustomInfoType |
clear()
public CustomInfoType.Builder clear()
Type | Description |
CustomInfoType.Builder |
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;
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;
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;
Type | Description |
CustomInfoType.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomInfoType.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CustomInfoType.Builder |
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;
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;
Type | Description |
CustomInfoType.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomInfoType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CustomInfoType.Builder |
clearRegex()
public CustomInfoType.Builder clearRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
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;
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;
Type | Description |
CustomInfoType.Builder |
clearType()
public CustomInfoType.Builder clearType()
Type | Description |
CustomInfoType.Builder |
clone()
public CustomInfoType.Builder clone()
Type | Description |
CustomInfoType.Builder |
getDefaultInstanceForType()
public CustomInfoType getDefaultInstanceForType()
Type | Description |
CustomInfoType |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Name | Description |
index | int |
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;
Name | Description |
index | int |
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;
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;
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;
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;
Name | Description |
index | int |
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
CustomInfoType.Regex | The regex. |
getRegexBuilder()
public CustomInfoType.Regex.Builder getRegexBuilder()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
Type | Description |
CustomInfoType.Regex.Builder |
getRegexOrBuilder()
public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
Type | Description |
CustomInfoType.RegexOrBuilder |
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;
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;
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;
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;
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;
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;
Type | Description |
CustomInfoType.SurrogateTypeOrBuilder |
getTypeCase()
public CustomInfoType.TypeCase getTypeCase()
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;
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;
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;
Type | Description |
boolean | Whether the regex 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;
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;
Type | Description |
boolean | Whether the surrogateType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | CustomInfoType.Dictionary |
Type | Description |
CustomInfoType.Builder |
mergeFrom(CustomInfoType other)
public CustomInfoType.Builder mergeFrom(CustomInfoType other)
Name | Description |
other | CustomInfoType |
Type | Description |
CustomInfoType.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomInfoType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CustomInfoType.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CustomInfoType.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CustomInfoType.Builder |
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;
Name | Description |
value | InfoType |
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;
Name | Description |
value | CustomInfoType.Regex |
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;
Name | Description |
value | StoredType |
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;
Name | Description |
value | CustomInfoType.SurrogateType |
Type | Description |
CustomInfoType.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomInfoType.Builder |
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;
Name | Description |
index | int |
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;
Name | Description |
index | int |
value | CustomInfoType.DetectionRule |
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;
Name | Description |
index | int |
builderForValue | CustomInfoType.DetectionRule.Builder |
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;
Name | Description |
value | CustomInfoType.Dictionary |
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;
Name | Description |
builderForValue | CustomInfoType.Dictionary.Builder |
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;
Name | Description |
value | CustomInfoType.ExclusionType The exclusionType to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for exclusionType to set. |
Type | Description |
CustomInfoType.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomInfoType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomInfoType.Builder |
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;
Name | Description |
value | InfoType |
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;
Name | Description |
builderForValue | InfoType.Builder |
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;
Name | Description |
value | Likelihood The likelihood to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for likelihood to set. |
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;
Name | Description |
value | CustomInfoType.Regex |
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;
Name | Description |
builderForValue | CustomInfoType.Regex.Builder |
Type | Description |
CustomInfoType.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomInfoType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
value | StoredType |
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;
Name | Description |
builderForValue | StoredType.Builder |
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;
Name | Description |
value | CustomInfoType.SurrogateType |
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;
Name | Description |
builderForValue | CustomInfoType.SurrogateType.Builder |
Type | Description |
CustomInfoType.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomInfoType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomInfoType.Builder |