public final class CustomInfoType extends GeneratedMessageV3 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
Static Fields
DETECTION_RULES_FIELD_NUMBER
public static final int DETECTION_RULES_FIELD_NUMBER
Field Value
DICTIONARY_FIELD_NUMBER
public static final int DICTIONARY_FIELD_NUMBER
Field Value
EXCLUSION_TYPE_FIELD_NUMBER
public static final int EXCLUSION_TYPE_FIELD_NUMBER
Field Value
INFO_TYPE_FIELD_NUMBER
public static final int INFO_TYPE_FIELD_NUMBER
Field Value
LIKELIHOOD_FIELD_NUMBER
public static final int LIKELIHOOD_FIELD_NUMBER
Field Value
REGEX_FIELD_NUMBER
public static final int REGEX_FIELD_NUMBER
Field Value
STORED_TYPE_FIELD_NUMBER
public static final int STORED_TYPE_FIELD_NUMBER
Field Value
SURROGATE_TYPE_FIELD_NUMBER
public static final int SURROGATE_TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CustomInfoType getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CustomInfoType.Builder newBuilder()
Returns
newBuilder(CustomInfoType prototype)
public static CustomInfoType.Builder newBuilder(CustomInfoType prototype)
Parameter
Returns
public static CustomInfoType parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CustomInfoType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CustomInfoType parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CustomInfoType parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CustomInfoType parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CustomInfoType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CustomInfoType parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CustomInfoType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CustomInfoType parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CustomInfoType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CustomInfoType> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CustomInfoType getDefaultInstanceForType()
Returns
getDetectionRules(int index)
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;
Parameter
Returns
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;
Returns
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;
Returns
getDetectionRulesOrBuilder(int index)
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;
Parameter
Returns
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;
Returns
Type | Description |
List<? extends com.google.privacy.dlp.v2.CustomInfoType.DetectionRuleOrBuilder> | |
getDictionary()
public CustomInfoType.Dictionary getDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
Returns
getDictionaryOrBuilder()
public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
Returns
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;
Returns
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;
Returns
Type | Description |
int | The enum numeric value on the wire for exclusionType.
|
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;
Returns
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;
Returns
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;
Returns
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;
Returns
Type | Description |
int | The enum numeric value on the wire for likelihood.
|
getParserForType()
public Parser<CustomInfoType> getParserForType()
Returns
Overrides
getRegex()
public CustomInfoType.Regex getRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
Returns
getRegexOrBuilder()
public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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;
Returns
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;
Returns
getSurrogateType()
public CustomInfoType.SurrogateType getSurrogateType()
Message for detecting output from deidentification transformations that
support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
Returns
getSurrogateTypeOrBuilder()
public CustomInfoType.SurrogateTypeOrBuilder getSurrogateTypeOrBuilder()
Message for detecting output from deidentification transformations that
support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
Returns
getTypeCase()
public CustomInfoType.TypeCase getTypeCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDictionary()
public boolean hasDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;
Returns
Type | Description |
boolean | Whether the dictionary field is set.
|
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;
Returns
Type | Description |
boolean | Whether the infoType field is set.
|
hasRegex()
public boolean hasRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;
Returns
Type | Description |
boolean | Whether the regex field is set.
|
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;
Returns
Type | Description |
boolean | Whether the storedType field is set.
|
hasSurrogateType()
public boolean hasSurrogateType()
Message for detecting output from deidentification transformations that
support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;
Returns
Type | Description |
boolean | Whether the surrogateType field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CustomInfoType.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CustomInfoType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CustomInfoType.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions