Package com.google.privacy.dlp.v2
Interface CustomInfoTypeOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CustomInfoType
,CustomInfoType.Builder
public interface CustomInfoTypeOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomInfoType.DetectionRule
getDetectionRules(int index)
Set of detection rules to apply to all findings of this CustomInfoType.int
getDetectionRulesCount()
Set of detection rules to apply to all findings of this CustomInfoType.List<CustomInfoType.DetectionRule>
getDetectionRulesList()
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.DetectionRuleOrBuilder
getDetectionRulesOrBuilder(int index)
Set of detection rules to apply to all findings of this CustomInfoType.List<? extends CustomInfoType.DetectionRuleOrBuilder>
getDetectionRulesOrBuilderList()
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Dictionary
getDictionary()
A list of phrases to detect as a CustomInfoType.CustomInfoType.DictionaryOrBuilder
getDictionaryOrBuilder()
A list of phrases to detect as a CustomInfoType.CustomInfoType.ExclusionType
getExclusionType()
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned.int
getExclusionTypeValue()
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned.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.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.Likelihood
getLikelihood()
Likelihood to return for this CustomInfoType.int
getLikelihoodValue()
Likelihood to return for this CustomInfoType.CustomInfoType.Regex
getRegex()
Regular expression based CustomInfoType.CustomInfoType.RegexOrBuilder
getRegexOrBuilder()
Regular expression based CustomInfoType.StoredType
getStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.StoredTypeOrBuilder
getStoredTypeOrBuilder()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.CustomInfoType.SurrogateType
getSurrogateType()
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.SurrogateTypeOrBuilder
getSurrogateTypeOrBuilder()
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.TypeCase
getTypeCase()
boolean
hasDictionary()
A list of phrases to detect as a CustomInfoType.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.boolean
hasRegex()
Regular expression based CustomInfoType.boolean
hasStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.boolean
hasSurrogateType()
Message for detecting output from deidentification transformations that support reversing.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasInfoType
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:
- Whether the infoType field is set.
-
getInfoType
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:
- The infoType.
-
getInfoTypeOrBuilder
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;
-
getLikelihoodValue
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:
- The enum numeric value on the wire for likelihood.
-
getLikelihood
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:
- The likelihood.
-
hasDictionary
boolean hasDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
- Returns:
- Whether the dictionary field is set.
-
getDictionary
CustomInfoType.Dictionary getDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
- Returns:
- The dictionary.
-
getDictionaryOrBuilder
CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
-
hasRegex
boolean hasRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
- Returns:
- Whether the regex field is set.
-
getRegex
CustomInfoType.Regex getRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
- Returns:
- The regex.
-
getRegexOrBuilder
CustomInfoType.RegexOrBuilder getRegexOrBuilder()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
-
hasSurrogateType
boolean hasSurrogateType()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
- Returns:
- Whether the surrogateType field is set.
-
getSurrogateType
CustomInfoType.SurrogateType getSurrogateType()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
- Returns:
- The surrogateType.
-
getSurrogateTypeOrBuilder
CustomInfoType.SurrogateTypeOrBuilder getSurrogateTypeOrBuilder()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
-
hasStoredType
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:
- Whether the storedType field is set.
-
getStoredType
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:
- The storedType.
-
getStoredTypeOrBuilder
StoredTypeOrBuilder getStoredTypeOrBuilder()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`. Not currently supported in `InspectContent`.
.google.privacy.dlp.v2.StoredType stored_type = 5;
-
getDetectionRulesList
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;
-
getDetectionRules
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;
-
getDetectionRulesCount
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;
-
getDetectionRulesOrBuilderList
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;
-
getDetectionRulesOrBuilder
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;
-
getExclusionTypeValue
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:
- The enum numeric value on the wire for exclusionType.
-
getExclusionType
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:
- The exclusionType.
-
getTypeCase
CustomInfoType.TypeCase getTypeCase()
-
-