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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clear
public CustomInfoType.Dictionary.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
getDefaultInstanceForType
public CustomInfoType.Dictionary getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CustomInfoType.Dictionary build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CustomInfoType.Dictionary buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CustomInfoType.Dictionary.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
setField
public CustomInfoType.Dictionary.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clearField
public CustomInfoType.Dictionary.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
clearOneof
public CustomInfoType.Dictionary.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
addRepeatedField
public CustomInfoType.Dictionary.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Dictionary.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.Builder mergeFrom(CustomInfoType.Dictionary other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CustomInfoType.Dictionary.Builder>
- Throws:
IOException
-
getSourceCase
public CustomInfoType.Dictionary.SourceCase getSourceCase()
- Specified by:
getSourceCase
in 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:
hasWordList
in 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:
getWordList
in 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:
getWordListOrBuilder
in 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:
hasCloudStoragePath
in 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:
getCloudStoragePath
in 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:
getCloudStoragePathOrBuilder
in interfaceCustomInfoType.DictionaryOrBuilder
-
setUnknownFields
public final CustomInfoType.Dictionary.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
mergeUnknownFields
public final CustomInfoType.Dictionary.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CustomInfoType.Dictionary.Builder>
-
-