Class CustomInfoType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Builder>
com.google.privacy.dlp.v2.CustomInfoType.Builder
All Implemented Interfaces:
CustomInfoTypeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CustomInfoType

public static final class CustomInfoType.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Builder>
    • clear

      public CustomInfoType.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Builder>
    • getDefaultInstanceForType

      public CustomInfoType getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CustomInfoType build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CustomInfoType buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CustomInfoType.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomInfoType.Builder>
    • mergeFrom

      public CustomInfoType.Builder mergeFrom(CustomInfoType other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Builder>
    • mergeFrom

      public CustomInfoType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CustomInfoType.Builder>
      Throws:
      IOException
    • getTypeCase

      public CustomInfoType.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface CustomInfoTypeOrBuilder
    • clearType

      public CustomInfoType.Builder clearType()
    • 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;
      Specified by:
      hasInfoType in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the infoType field is set.
    • 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;
      Specified by:
      getInfoType in interface CustomInfoTypeOrBuilder
      Returns:
      The infoType.
    • setInfoType

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

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

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getInfoTypeOrBuilder in interface CustomInfoTypeOrBuilder
    • 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;
      Specified by:
      getLikelihoodValue in interface CustomInfoTypeOrBuilder
      Returns:
      The enum numeric value on the wire for likelihood.
    • setLikelihoodValue

      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;
      Parameters:
      value - The enum numeric value on the wire for likelihood to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getLikelihood in interface CustomInfoTypeOrBuilder
      Returns:
      The likelihood.
    • setLikelihood

      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;
      Parameters:
      value - The likelihood to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • hasDictionary

      public boolean hasDictionary()
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
      Specified by:
      hasDictionary in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the dictionary field is set.
    • getDictionary

      public CustomInfoType.Dictionary getDictionary()
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
      Specified by:
      getDictionary in interface CustomInfoTypeOrBuilder
      Returns:
      The dictionary.
    • setDictionary

      public CustomInfoType.Builder setDictionary(CustomInfoType.Dictionary value)
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
    • setDictionary

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

      public CustomInfoType.Builder mergeDictionary(CustomInfoType.Dictionary value)
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
    • clearDictionary

      public CustomInfoType.Builder clearDictionary()
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
    • getDictionaryBuilder

      public CustomInfoType.Dictionary.Builder getDictionaryBuilder()
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
    • getDictionaryOrBuilder

      public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
       A list of phrases to detect as a CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
      Specified by:
      getDictionaryOrBuilder in interface CustomInfoTypeOrBuilder
    • hasRegex

      public boolean hasRegex()
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
      Specified by:
      hasRegex in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the regex field is set.
    • getRegex

      public CustomInfoType.Regex getRegex()
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
      Specified by:
      getRegex in interface CustomInfoTypeOrBuilder
      Returns:
      The regex.
    • setRegex

       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
    • setRegex

      public CustomInfoType.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
    • mergeRegex

      public CustomInfoType.Builder mergeRegex(CustomInfoType.Regex value)
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
    • clearRegex

      public CustomInfoType.Builder clearRegex()
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
    • getRegexBuilder

      public CustomInfoType.Regex.Builder getRegexBuilder()
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
    • getRegexOrBuilder

      public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
       Regular expression based CustomInfoType.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
      Specified by:
      getRegexOrBuilder in interface CustomInfoTypeOrBuilder
    • hasSurrogateType

      public boolean hasSurrogateType()
       Message for detecting output from deidentification transformations that
       support reversing.
       
      .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
      Specified by:
      hasSurrogateType in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the surrogateType field is set.
    • getSurrogateType

      public CustomInfoType.SurrogateType getSurrogateType()
       Message for detecting output from deidentification transformations that
       support reversing.
       
      .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
      Specified by:
      getSurrogateType in interface CustomInfoTypeOrBuilder
      Returns:
      The surrogateType.
    • setSurrogateType

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

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

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

      public CustomInfoType.Builder clearSurrogateType()
       Message for detecting output from deidentification transformations that
       support reversing.
       
      .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
    • 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;
    • getSurrogateTypeOrBuilder

      public CustomInfoType.SurrogateTypeOrBuilder getSurrogateTypeOrBuilder()
       Message for detecting output from deidentification transformations that
       support reversing.
       
      .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
      Specified by:
      getSurrogateTypeOrBuilder in interface CustomInfoTypeOrBuilder
    • hasStoredType

      public boolean hasStoredType()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
      Specified by:
      hasStoredType in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the storedType field is set.
    • getStoredType

      public StoredType getStoredType()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
      Specified by:
      getStoredType in interface CustomInfoTypeOrBuilder
      Returns:
      The storedType.
    • setStoredType

      public CustomInfoType.Builder setStoredType(StoredType value)
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
    • setStoredType

      public CustomInfoType.Builder setStoredType(StoredType.Builder builderForValue)
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
    • mergeStoredType

      public CustomInfoType.Builder mergeStoredType(StoredType value)
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
    • clearStoredType

      public CustomInfoType.Builder clearStoredType()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
    • getStoredTypeBuilder

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

      public StoredTypeOrBuilder getStoredTypeOrBuilder()
       Loads an existing `StoredInfoType` resource.
       
      .google.privacy.dlp.v2.StoredType stored_type = 5;
      Specified by:
      getStoredTypeOrBuilder in interface CustomInfoTypeOrBuilder
    • hasMetadataKeyValueExpression

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

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

      public CustomInfoType.Builder setMetadataKeyValueExpression(CustomInfoType.MetadataKeyValueExpression value)
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
    • setMetadataKeyValueExpression

      public CustomInfoType.Builder setMetadataKeyValueExpression(CustomInfoType.MetadataKeyValueExpression.Builder builderForValue)
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
    • mergeMetadataKeyValueExpression

      public CustomInfoType.Builder mergeMetadataKeyValueExpression(CustomInfoType.MetadataKeyValueExpression value)
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
    • clearMetadataKeyValueExpression

      public CustomInfoType.Builder clearMetadataKeyValueExpression()
       Key-value pair to detect in the metadata.
       
      .google.privacy.dlp.v2.CustomInfoType.MetadataKeyValueExpression metadata_key_value_expression = 10;
    • getMetadataKeyValueExpressionBuilder

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

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

      public 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;
      Specified by:
      getDetectionRulesList in interface CustomInfoTypeOrBuilder
    • getDetectionRulesCount

      public 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;
      Specified by:
      getDetectionRulesCount in interface CustomInfoTypeOrBuilder
    • getDetectionRules

      public 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;
      Specified by:
      getDetectionRules in interface CustomInfoTypeOrBuilder
    • setDetectionRules

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

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

      public CustomInfoType.Builder addDetectionRules(CustomInfoType.DetectionRule value)
       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;
    • addDetectionRules

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

      public CustomInfoType.Builder addDetectionRules(CustomInfoType.DetectionRule.Builder builderForValue)
       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;
    • addDetectionRules

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

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

      public CustomInfoType.Builder clearDetectionRules()
       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;
    • removeDetectionRules

      public CustomInfoType.Builder removeDetectionRules(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;
    • getDetectionRulesBuilder

      public CustomInfoType.DetectionRule.Builder getDetectionRulesBuilder(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;
    • getDetectionRulesOrBuilder

      public 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;
      Specified by:
      getDetectionRulesOrBuilder in interface CustomInfoTypeOrBuilder
    • getDetectionRulesOrBuilderList

      public 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;
      Specified by:
      getDetectionRulesOrBuilderList in interface CustomInfoTypeOrBuilder
    • addDetectionRulesBuilder

      public CustomInfoType.DetectionRule.Builder addDetectionRulesBuilder()
       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;
    • addDetectionRulesBuilder

      public CustomInfoType.DetectionRule.Builder addDetectionRulesBuilder(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;
    • getDetectionRulesBuilderList

      public List<CustomInfoType.DetectionRule.Builder> getDetectionRulesBuilderList()
       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

      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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Specified by:
      getExclusionTypeValue in interface CustomInfoTypeOrBuilder
      Returns:
      The enum numeric value on the wire for exclusionType.
    • setExclusionTypeValue

      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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Parameters:
      value - The enum numeric value on the wire for exclusionType to set.
      Returns:
      This builder for chaining.
    • 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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Specified by:
      getExclusionType in interface CustomInfoTypeOrBuilder
      Returns:
      The exclusionType.
    • setExclusionType

      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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Parameters:
      value - The exclusionType to set.
      Returns:
      This builder for chaining.
    • 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. Only supported
       for the `dictionary`, `regex`, and `stored_type` CustomInfoTypes.
       
      .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasSensitivityScore in interface CustomInfoTypeOrBuilder
      Returns:
      Whether the sensitivityScore field is set.
    • 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;
      Specified by:
      getSensitivityScore in interface CustomInfoTypeOrBuilder
      Returns:
      The sensitivityScore.
    • setSensitivityScore

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

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

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getSensitivityScoreOrBuilder in interface CustomInfoTypeOrBuilder