Package com.google.privacy.dlp.v2
Class CustomInfoType.Dictionary.WordList.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.WordList.Builder>
com.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList.Builder
- All Implemented Interfaces:
CustomInfoType.Dictionary.WordListOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CustomInfoType.Dictionary.WordList
public static final class CustomInfoType.Dictionary.WordList.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.WordList.Builder>
implements CustomInfoType.Dictionary.WordListOrBuilder
Message defining a list of words or phrases to search for in the data.Protobuf type
google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList-
Method Summary
Modifier and TypeMethodDescriptionaddAllWords(Iterable<String> values) Words or phrases defining the dictionary.Words or phrases defining the dictionary.addWordsBytes(com.google.protobuf.ByteString value) Words or phrases defining the dictionary.build()clear()Words or phrases defining the dictionary.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetWords(int index) Words or phrases defining the dictionary.com.google.protobuf.ByteStringgetWordsBytes(int index) Words or phrases defining the dictionary.intWords or phrases defining the dictionary.com.google.protobuf.ProtocolStringListWords or phrases defining the dictionary.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Words or phrases defining the dictionary.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.WordList.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.WordList.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.WordList.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.WordList.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.WordList.Builder mergeFrom(CustomInfoType.Dictionary.WordList other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CustomInfoType.Dictionary.WordList.Builder>
-
mergeFrom
public CustomInfoType.Dictionary.WordList.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.WordList.Builder>- Throws:
IOException
-
getWordsList
public com.google.protobuf.ProtocolStringList getWordsList()Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Specified by:
getWordsListin interfaceCustomInfoType.Dictionary.WordListOrBuilder- Returns:
- A list containing the words.
-
getWordsCount
public int getWordsCount()Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Specified by:
getWordsCountin interfaceCustomInfoType.Dictionary.WordListOrBuilder- Returns:
- The count of words.
-
getWords
Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Specified by:
getWordsin interfaceCustomInfoType.Dictionary.WordListOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The words at the given index.
-
getWordsBytes
public com.google.protobuf.ByteString getWordsBytes(int index) Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Specified by:
getWordsBytesin interfaceCustomInfoType.Dictionary.WordListOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the words at the given index.
-
setWords
Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Parameters:
index- The index to set the value at.value- The words to set.- Returns:
- This builder for chaining.
-
addWords
Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Parameters:
value- The words to add.- Returns:
- This builder for chaining.
-
addAllWords
Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Parameters:
values- The words to add.- Returns:
- This builder for chaining.
-
clearWords
Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Returns:
- This builder for chaining.
-
addWordsBytes
public CustomInfoType.Dictionary.WordList.Builder addWordsBytes(com.google.protobuf.ByteString value) Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least 2 characters that are letters or digits. [required]
repeated string words = 1;- Parameters:
value- The bytes of the words to add.- Returns:
- This builder for chaining.
-