Package com.google.privacy.dlp.v2
Class CustomInfoType.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.privacy.dlp.v2.CustomInfoType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomInfoType.Builder
addAllDetectionRules(Iterable<? extends CustomInfoType.DetectionRule> values)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
addDetectionRules(int index, CustomInfoType.DetectionRule value)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
addDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
addDetectionRules(CustomInfoType.DetectionRule value)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
addDetectionRules(CustomInfoType.DetectionRule.Builder builderForValue)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.DetectionRule.Builder
addDetectionRulesBuilder()
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.DetectionRule.Builder
addDetectionRulesBuilder(int index)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CustomInfoType
build()
CustomInfoType
buildPartial()
CustomInfoType.Builder
clear()
CustomInfoType.Builder
clearDetectionRules()
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
clearDictionary()
A list of phrases to detect as a CustomInfoType.CustomInfoType.Builder
clearExclusionType()
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned.CustomInfoType.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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.CustomInfoType.Builder
clearLikelihood()
Likelihood to return for this CustomInfoType.CustomInfoType.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CustomInfoType.Builder
clearRegex()
Regular expression based CustomInfoType.CustomInfoType.Builder
clearStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.CustomInfoType.Builder
clearSurrogateType()
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.Builder
clearType()
CustomInfoType.Builder
clone()
CustomInfoType
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CustomInfoType.DetectionRule
getDetectionRules(int index)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.DetectionRule.Builder
getDetectionRulesBuilder(int index)
Set of detection rules to apply to all findings of this CustomInfoType.List<CustomInfoType.DetectionRule.Builder>
getDetectionRulesBuilderList()
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.Dictionary.Builder
getDictionaryBuilder()
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.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.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.Regex.Builder
getRegexBuilder()
Regular expression based CustomInfoType.CustomInfoType.RegexOrBuilder
getRegexOrBuilder()
Regular expression based CustomInfoType.StoredType
getStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.StoredType.Builder
getStoredTypeBuilder()
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.SurrogateType.Builder
getSurrogateTypeBuilder()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CustomInfoType.Builder
mergeDictionary(CustomInfoType.Dictionary value)
A list of phrases to detect as a CustomInfoType.CustomInfoType.Builder
mergeFrom(CustomInfoType other)
CustomInfoType.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CustomInfoType.Builder
mergeFrom(com.google.protobuf.Message other)
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.CustomInfoType.Builder
mergeRegex(CustomInfoType.Regex value)
Regular expression based CustomInfoType.CustomInfoType.Builder
mergeStoredType(StoredType value)
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.CustomInfoType.Builder
mergeSurrogateType(CustomInfoType.SurrogateType value)
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CustomInfoType.Builder
removeDetectionRules(int index)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
setDetectionRules(int index, CustomInfoType.DetectionRule value)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
setDetectionRules(int index, CustomInfoType.DetectionRule.Builder builderForValue)
Set of detection rules to apply to all findings of this CustomInfoType.CustomInfoType.Builder
setDictionary(CustomInfoType.Dictionary value)
A list of phrases to detect as a CustomInfoType.CustomInfoType.Builder
setDictionary(CustomInfoType.Dictionary.Builder builderForValue)
A list of phrases to detect as a CustomInfoType.CustomInfoType.Builder
setExclusionType(CustomInfoType.ExclusionType value)
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned.CustomInfoType.Builder
setExclusionTypeValue(int value)
If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding to be returned.CustomInfoType.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.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.CustomInfoType.Builder
setLikelihood(Likelihood value)
Likelihood to return for this CustomInfoType.CustomInfoType.Builder
setLikelihoodValue(int value)
Likelihood to return for this CustomInfoType.CustomInfoType.Builder
setRegex(CustomInfoType.Regex value)
Regular expression based CustomInfoType.CustomInfoType.Builder
setRegex(CustomInfoType.Regex.Builder builderForValue)
Regular expression based CustomInfoType.CustomInfoType.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CustomInfoType.Builder
setStoredType(StoredType value)
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.CustomInfoType.Builder
setStoredType(StoredType.Builder builderForValue)
Load an existing `StoredInfoType` resource for use in `InspectDataSource`.CustomInfoType.Builder
setSurrogateType(CustomInfoType.SurrogateType value)
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.Builder
setSurrogateType(CustomInfoType.SurrogateType.Builder builderForValue)
Message for detecting output from deidentification transformations that support reversing.CustomInfoType.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
clear
public CustomInfoType.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
getDefaultInstanceForType
public CustomInfoType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomInfoType build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomInfoType buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomInfoType.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
setField
public CustomInfoType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
clearField
public CustomInfoType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
clearOneof
public CustomInfoType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
addRepeatedField
public CustomInfoType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
mergeFrom
public CustomInfoType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Builder>
-
mergeFrom
public CustomInfoType.Builder mergeFrom(CustomInfoType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Builder>
- Throws:
IOException
-
getTypeCase
public CustomInfoType.TypeCase getTypeCase()
- Specified by:
getTypeCase
in interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
-
hasRegex
public boolean hasRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
- Specified by:
hasRegex
in interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- Returns:
- The regex.
-
setRegex
public CustomInfoType.Builder setRegex(CustomInfoType.Regex value)
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
-
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 interfaceCustomInfoTypeOrBuilder
- 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 interfaceCustomInfoTypeOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
mergeUnknownFields
public final CustomInfoType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Builder>
-
-