public final class CustomInfoType extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
CustomInfoType.Builder
Custom information type provided by the user.
|
static class |
CustomInfoType.DetectionRule
Deprecated; use `InspectionRuleSet` instead.
|
static interface |
CustomInfoType.DetectionRuleOrBuilder |
static class |
CustomInfoType.Dictionary
Custom information type based on a dictionary of words or phrases.
|
static interface |
CustomInfoType.DictionaryOrBuilder |
static class |
CustomInfoType.ExclusionType
Protobuf enum
google.privacy.dlp.v2.CustomInfoType.ExclusionType |
static class |
CustomInfoType.Regex
Message defining a custom regular expression.
|
static interface |
CustomInfoType.RegexOrBuilder |
static class |
CustomInfoType.SurrogateType
Message for detecting output from deidentification transformations
such as
[`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
|
static interface |
CustomInfoType.SurrogateTypeOrBuilder |
static class |
CustomInfoType.TypeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DETECTION_RULES_FIELD_NUMBER |
static int |
DICTIONARY_FIELD_NUMBER |
static int |
EXCLUSION_TYPE_FIELD_NUMBER |
static int |
INFO_TYPE_FIELD_NUMBER |
static int |
LIKELIHOOD_FIELD_NUMBER |
static int |
REGEX_FIELD_NUMBER |
static int |
STORED_TYPE_FIELD_NUMBER |
static int |
SURROGATE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static CustomInfoType |
getDefaultInstance() |
CustomInfoType |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
CustomInfoType.DetectionRule |
getDetectionRules(int index)
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.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.
|
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.
|
com.google.protobuf.Parser<CustomInfoType> |
getParserForType() |
CustomInfoType.Regex |
getRegex()
Regular expression based CustomInfoType.
|
CustomInfoType.RegexOrBuilder |
getRegexOrBuilder()
Regular expression based CustomInfoType.
|
int |
getSerializedSize() |
StoredType |
getStoredType()
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.SurrogateTypeOrBuilder |
getSurrogateTypeOrBuilder()
Message for detecting output from deidentification transformations that
support reversing.
|
CustomInfoType.TypeCase |
getTypeCase() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDictionary()
A list of phrases to detect as a CustomInfoType.
|
int |
hashCode() |
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() |
static CustomInfoType.Builder |
newBuilder() |
static CustomInfoType.Builder |
newBuilder(CustomInfoType prototype) |
CustomInfoType.Builder |
newBuilderForType() |
protected CustomInfoType.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CustomInfoType |
parseDelimitedFrom(InputStream input) |
static CustomInfoType |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomInfoType |
parseFrom(byte[] data) |
static CustomInfoType |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomInfoType |
parseFrom(ByteBuffer data) |
static CustomInfoType |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomInfoType |
parseFrom(com.google.protobuf.ByteString data) |
static CustomInfoType |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomInfoType |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CustomInfoType |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomInfoType |
parseFrom(InputStream input) |
static CustomInfoType |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CustomInfoType> |
parser() |
CustomInfoType.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INFO_TYPE_FIELD_NUMBER
public static final int LIKELIHOOD_FIELD_NUMBER
public static final int DICTIONARY_FIELD_NUMBER
public static final int REGEX_FIELD_NUMBER
public static final int SURROGATE_TYPE_FIELD_NUMBER
public static final int STORED_TYPE_FIELD_NUMBER
public static final int DETECTION_RULES_FIELD_NUMBER
public static final int EXCLUSION_TYPE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public CustomInfoType.TypeCase getTypeCase()
getTypeCase in interface CustomInfoTypeOrBuilderpublic 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;hasInfoType in interface CustomInfoTypeOrBuilderpublic 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;getInfoType in interface CustomInfoTypeOrBuilderpublic 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;getInfoTypeOrBuilder in interface CustomInfoTypeOrBuilderpublic 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;getLikelihoodValue in interface CustomInfoTypeOrBuilderpublic 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;getLikelihood in interface CustomInfoTypeOrBuilderpublic boolean hasDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;hasDictionary in interface CustomInfoTypeOrBuilderpublic CustomInfoType.Dictionary getDictionary()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;getDictionary in interface CustomInfoTypeOrBuilderpublic CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
A list of phrases to detect as a CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2;getDictionaryOrBuilder in interface CustomInfoTypeOrBuilderpublic boolean hasRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;hasRegex in interface CustomInfoTypeOrBuilderpublic CustomInfoType.Regex getRegex()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;getRegex in interface CustomInfoTypeOrBuilderpublic CustomInfoType.RegexOrBuilder getRegexOrBuilder()
Regular expression based CustomInfoType.
.google.privacy.dlp.v2.CustomInfoType.Regex regex = 3;getRegexOrBuilder in interface CustomInfoTypeOrBuilderpublic boolean hasSurrogateType()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;hasSurrogateType in interface CustomInfoTypeOrBuilderpublic CustomInfoType.SurrogateType getSurrogateType()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;getSurrogateType in interface CustomInfoTypeOrBuilderpublic CustomInfoType.SurrogateTypeOrBuilder getSurrogateTypeOrBuilder()
Message for detecting output from deidentification transformations that support reversing.
.google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4;getSurrogateTypeOrBuilder in interface CustomInfoTypeOrBuilderpublic boolean hasStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`. Not currently supported in `InspectContent`.
.google.privacy.dlp.v2.StoredType stored_type = 5;hasStoredType in interface CustomInfoTypeOrBuilderpublic StoredType getStoredType()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`. Not currently supported in `InspectContent`.
.google.privacy.dlp.v2.StoredType stored_type = 5;getStoredType in interface CustomInfoTypeOrBuilderpublic StoredTypeOrBuilder getStoredTypeOrBuilder()
Load an existing `StoredInfoType` resource for use in `InspectDataSource`. Not currently supported in `InspectContent`.
.google.privacy.dlp.v2.StoredType stored_type = 5;getStoredTypeOrBuilder in interface CustomInfoTypeOrBuilderpublic 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;getDetectionRulesList in interface CustomInfoTypeOrBuilderpublic 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;getDetectionRulesOrBuilderList in interface CustomInfoTypeOrBuilderpublic 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;getDetectionRulesCount in interface CustomInfoTypeOrBuilderpublic 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;getDetectionRules in interface CustomInfoTypeOrBuilderpublic 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;getDetectionRulesOrBuilder in interface CustomInfoTypeOrBuilderpublic 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;getExclusionTypeValue in interface CustomInfoTypeOrBuilderpublic 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;getExclusionType in interface CustomInfoTypeOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CustomInfoType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomInfoType parseFrom(InputStream input) throws IOException
IOExceptionpublic static CustomInfoType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomInfoType parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CustomInfoType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomInfoType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CustomInfoType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CustomInfoType.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CustomInfoType.Builder newBuilder()
public static CustomInfoType.Builder newBuilder(CustomInfoType prototype)
public CustomInfoType.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CustomInfoType.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CustomInfoType getDefaultInstance()
public static com.google.protobuf.Parser<CustomInfoType> parser()
public com.google.protobuf.Parser<CustomInfoType> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CustomInfoType getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.