Class 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.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
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CustomInfoType.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • setField

        public CustomInfoType.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • clearField

        public CustomInfoType.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • clearOneof

        public CustomInfoType.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • setRepeatedField

        public CustomInfoType.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • addRepeatedField

        public CustomInfoType.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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;
      • 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.
      • 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;
      • 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;
      • 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;
      • 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;
        Specified by:
        hasStoredType in interface CustomInfoTypeOrBuilder
        Returns:
        Whether the storedType field is set.
      • 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;
        Specified by:
        getStoredType in interface CustomInfoTypeOrBuilder
        Returns:
        The storedType.
      • setStoredType

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

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

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getStoredTypeOrBuilder 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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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 order that they are specified. Not supported for the
         `surrogate_type` CustomInfoType.
         
        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.
         
        .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.
         
        .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.
         
        .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.
         
        .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.
         
        .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CustomInfoType.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
      • mergeUnknownFields

        public final CustomInfoType.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>