Package com.google.privacy.dlp.v2
Class CustomInfoType.Dictionary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
com.google.privacy.dlp.v2.CustomInfoType.Dictionary.Builder
- All Implemented Interfaces:
CustomInfoType.DictionaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomInfoType.Dictionary
public static final class CustomInfoType.Dictionary.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
implements CustomInfoType.DictionaryOrBuilder
Custom information type based on a dictionary of words or phrases. This can be used to match sensitive information specific to the data, such as a list of employee IDs or job titles. Dictionary words are case-insensitive and all characters other than letters and digits in the unicode [Basic Multilingual Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) will be replaced with whitespace when scanning for matches, so the dictionary phrase "Sam Johnson" will match all three phrases "sam johnson", "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters surrounding any match must be of a different type than the adjacent characters within the word, so letters must be next to non-letters and digits next to non-digits. For example, the dictionary word "jen" will match the first three letters of the text "jen123" but will return no matches for "jennifer". Dictionary words containing a large number of characters that are not letters or digits may result in unexpected findings because such characters are treated as whitespace. The [limits](https://cloud.google.com/sensitive-data-protection/limits) page contains details about the size limits of dictionaries. For dictionaries that do not fit within these constraints, consider using `LargeCustomDictionaryConfig` in the `StoredInfoType` API.Protobuf type
google.privacy.dlp.v2.CustomInfoType.Dictionary-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Newline-delimited file of words in Cloud Storage.List of words or phrases to search for.Newline-delimited file of words in Cloud Storage.Newline-delimited file of words in Cloud Storage.Newline-delimited file of words in Cloud Storage.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorList of words or phrases to search for.List of words or phrases to search for.List of words or phrases to search for.booleanNewline-delimited file of words in Cloud Storage.booleanList of words or phrases to search for.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanNewline-delimited file of words in Cloud Storage.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) List of words or phrases to search for.Newline-delimited file of words in Cloud Storage.setCloudStoragePath(CloudStoragePath.Builder builderForValue) Newline-delimited file of words in Cloud Storage.List of words or phrases to search for.setWordList(CustomInfoType.Dictionary.WordList.Builder builderForValue) List of words or phrases to search for.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Dictionary.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceCustomInfoType.DictionaryOrBuilder
-
clearSource
-
hasWordList
public boolean hasWordList()List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;- Specified by:
hasWordListin interfaceCustomInfoType.DictionaryOrBuilder- Returns:
- Whether the wordList field is set.
-
getWordList
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;- Specified by:
getWordListin interfaceCustomInfoType.DictionaryOrBuilder- Returns:
- The wordList.
-
setWordList
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; -
setWordList
public CustomInfoType.Dictionary.Builder setWordList(CustomInfoType.Dictionary.WordList.Builder builderForValue) List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; -
mergeWordList
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; -
clearWordList
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; -
getWordListBuilder
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; -
getWordListOrBuilder
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;- Specified by:
getWordListOrBuilderin interfaceCustomInfoType.DictionaryOrBuilder
-
hasCloudStoragePath
public boolean hasCloudStoragePath()Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3;- Specified by:
hasCloudStoragePathin interfaceCustomInfoType.DictionaryOrBuilder- Returns:
- Whether the cloudStoragePath field is set.
-
getCloudStoragePath
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3;- Specified by:
getCloudStoragePathin interfaceCustomInfoType.DictionaryOrBuilder- Returns:
- The cloudStoragePath.
-
setCloudStoragePath
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; -
setCloudStoragePath
public CustomInfoType.Dictionary.Builder setCloudStoragePath(CloudStoragePath.Builder builderForValue) Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; -
mergeCloudStoragePath
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; -
clearCloudStoragePath
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; -
getCloudStoragePathBuilder
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; -
getCloudStoragePathOrBuilder
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3;- Specified by:
getCloudStoragePathOrBuilderin interfaceCustomInfoType.DictionaryOrBuilder
-