Class CustomInfoType (3.7.2)

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
TypeDescription
int

DICTIONARY_FIELD_NUMBER

public static final int DICTIONARY_FIELD_NUMBER
Field Value
TypeDescription
int

EXCLUSION_TYPE_FIELD_NUMBER

public static final int EXCLUSION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

INFO_TYPE_FIELD_NUMBER

public static final int INFO_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

LIKELIHOOD_FIELD_NUMBER

public static final int LIKELIHOOD_FIELD_NUMBER
Field Value
TypeDescription
int

REGEX_FIELD_NUMBER

public static final int REGEX_FIELD_NUMBER
Field Value
TypeDescription
int

STORED_TYPE_FIELD_NUMBER

public static final int STORED_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

SURROGATE_TYPE_FIELD_NUMBER

public static final int SURROGATE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomInfoType getDefaultInstance()
Returns
TypeDescription
CustomInfoType

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CustomInfoType.Builder newBuilder()
Returns
TypeDescription
CustomInfoType.Builder

newBuilder(CustomInfoType prototype)

public static CustomInfoType.Builder newBuilder(CustomInfoType prototype)
Parameter
NameDescription
prototypeCustomInfoType
Returns
TypeDescription
CustomInfoType.Builder

parseDelimitedFrom(InputStream input)

public static CustomInfoType parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomInfoType parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomInfoType parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomInfoType parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomInfoType parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomInfoType parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomInfoType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomInfoType
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomInfoType> parser()
Returns
TypeDescription
Parser<CustomInfoType>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CustomInfoType getDefaultInstanceForType()
Returns
TypeDescription
CustomInfoType

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
NameDescription
indexint
Returns
TypeDescription
CustomInfoType.DetectionRule

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
TypeDescription
int

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
TypeDescription
List<DetectionRule>

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
NameDescription
indexint
Returns
TypeDescription
CustomInfoType.DetectionRuleOrBuilder

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
TypeDescription
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
TypeDescription
CustomInfoType.Dictionary

The dictionary.

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
TypeDescription
CustomInfoType.DictionaryOrBuilder

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
TypeDescription
CustomInfoType.ExclusionType

The exclusionType.

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
TypeDescription
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
TypeDescription
InfoType

The infoType.

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
TypeDescription
InfoTypeOrBuilder

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
TypeDescription
Likelihood

The likelihood.

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
TypeDescription
int

The enum numeric value on the wire for likelihood.

getParserForType()

public Parser<CustomInfoType> getParserForType()
Returns
TypeDescription
Parser<CustomInfoType>
Overrides

getRegex()

public CustomInfoType.Regex getRegex()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
TypeDescription
CustomInfoType.Regex

The regex.

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
TypeDescription
CustomInfoType.RegexOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
TypeDescription
StoredType

The storedType.

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
TypeDescription
StoredTypeOrBuilder

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
TypeDescription
CustomInfoType.SurrogateType

The surrogateType.

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
TypeDescription
CustomInfoType.SurrogateTypeOrBuilder

getTypeCase()

public CustomInfoType.TypeCase getTypeCase()
Returns
TypeDescription
CustomInfoType.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasDictionary()

public boolean hasDictionary()

A list of phrases to detect as a CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the infoType field is set.

hasRegex()

public boolean hasRegex()

Regular expression based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the surrogateType field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomInfoType.Builder newBuilderForType()
Returns
TypeDescription
CustomInfoType.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomInfoType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomInfoType.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomInfoType.Builder toBuilder()
Returns
TypeDescription
CustomInfoType.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException