Interface CustomInfoTypeOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CustomInfoType, CustomInfoType.Builder

@Generated public interface CustomInfoTypeOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • 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

       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()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
      Returns:
      Whether the storedType field is set.
    • getStoredType

      StoredType getStoredType()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
      Returns:
      The storedType.
    • getStoredTypeOrBuilder

      StoredTypeOrBuilder getStoredTypeOrBuilder()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
    • hasMetadataKeyValueExpression

      boolean hasMetadataKeyValueExpression()
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
      Returns:
      Whether the metadataKeyValueExpression field is set.
    • getMetadataKeyValueExpression

      CustomInfoType.MetadataKeyValueExpression getMetadataKeyValueExpression()
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
      Returns:
      The metadataKeyValueExpression.
    • getMetadataKeyValueExpressionOrBuilder

      CustomInfoType.MetadataKeyValueExpressionOrBuilder getMetadataKeyValueExpressionOrBuilder()
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
    • getDetectionRulesList

      List<CustomInfoType.DetectionRule> getDetectionRulesList()
       Set of detection rules to apply to all findings of this CustomInfoType.
       Rules are applied in the order that they are specified. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      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 the order that they are specified. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      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 the order that they are specified. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      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 the order that they are specified. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      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 the order that they are specified. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Returns:
      The exclusionType.
    • hasSensitivityScore

      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:
      Whether the sensitivityScore field is set.
    • getSensitivityScore

      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:
      The sensitivityScore.
    • getSensitivityScoreOrBuilder

      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;
    • getTypeCase