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.GeneratedMessageV3.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.GeneratedMessageV3.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/dlp/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 typegoogle.privacy.dlp.v2.CustomInfoType.Dictionary
-
-
Method Summary
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
getDefaultInstanceForType
public CustomInfoType.Dictionary getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomInfoType.Dictionary build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomInfoType.Dictionary buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomInfoType.Dictionary.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
setField
public CustomInfoType.Dictionary.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clearField
public CustomInfoType.Dictionary.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clearOneof
public CustomInfoType.Dictionary.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
setRepeatedField
public CustomInfoType.Dictionary.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
addRepeatedField
public CustomInfoType.Dictionary.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.Builder mergeFrom(CustomInfoType.Dictionary other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public CustomInfoType.Dictionary.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceCustomInfoType.DictionaryOrBuilder
-
clearSource
public CustomInfoType.Dictionary.Builder 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
public CustomInfoType.Dictionary.WordList 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
public CustomInfoType.Dictionary.Builder setWordList(CustomInfoType.Dictionary.WordList value)
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
public CustomInfoType.Dictionary.Builder mergeWordList(CustomInfoType.Dictionary.WordList value)
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;
-
clearWordList
public CustomInfoType.Dictionary.Builder clearWordList()
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;
-
getWordListBuilder
public CustomInfoType.Dictionary.WordList.Builder getWordListBuilder()
List of words or phrases to search for.
.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1;
-
getWordListOrBuilder
public CustomInfoType.Dictionary.WordListOrBuilder 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
public CloudStoragePath 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
public CustomInfoType.Dictionary.Builder setCloudStoragePath(CloudStoragePath value)
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
public CustomInfoType.Dictionary.Builder mergeCloudStoragePath(CloudStoragePath value)
Newline-delimited file of words in Cloud Storage. Only a single file is accepted.
.google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3;
-
clearCloudStoragePath
public CustomInfoType.Dictionary.Builder 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
public CloudStoragePath.Builder 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
public CloudStoragePathOrBuilder 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
-
setUnknownFields
public final CustomInfoType.Dictionary.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
mergeUnknownFields
public final CustomInfoType.Dictionary.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
-