Class Dictionary.Builder (0.44.0)
Stay organized with collections
Save and categorize content based on your preferences.
0.44.0 (latest)
0.40.0
0.36.0
0.35.0
0.34.0
0.32.0
0.29.0
0.28.0
0.26.0
0.24.0
0.23.0
0.21.0
0.19.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.0
0.11.0
0.9.0
0.8.0
0.5.0
0.4.0
0.3.0
0.1.0
public static final class Dictionary . Builder extends GeneratedMessage . Builder<Dictionary . Builder > implements DictionaryOrBuilder
Message defining a custom dictionary of words or phrases for syntactic match.
Dictionary words are case-insensitive and all characters other than letters
and digits in the unicode Basic Multilingual
Plane
will be replaced with whitespace when scanning for matches. For example, 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 must be 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 matches because such characters
are treated as whitespace. For details about the size limits of dictionaries,
see Quotas and
limits .
Protobuf type google.cloud.modelarmor.v1.Dictionary
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public Dictionary build ()
buildPartial()
public Dictionary buildPartial ()
clear()
public Dictionary . Builder clear ()
Overrides
clearSource()
public Dictionary . Builder clearSource ()
clearWordList()
public Dictionary . Builder clearWordList ()
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
getDefaultInstanceForType()
public Dictionary getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getSourceCase()
public Dictionary . SourceCase getSourceCase ()
getWordList()
public WordList getWordList ()
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
Returns
Type
Description
WordList
The wordList.
getWordListBuilder()
public WordList . Builder getWordListBuilder ()
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
getWordListOrBuilder()
public WordListOrBuilder getWordListOrBuilder ()
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
hasWordList()
public boolean hasWordList ()
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
Returns
Type
Description
boolean
Whether the wordList field is set.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Dictionary other)
public Dictionary . Builder mergeFrom ( Dictionary other )
public Dictionary . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Dictionary . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeWordList(WordList value)
public Dictionary . Builder mergeWordList ( WordList value )
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
Parameter
Name
Description
value
WordList
setWordList(WordList value)
public Dictionary . Builder setWordList ( WordList value )
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
Parameter
Name
Description
value
WordList
setWordList(WordList.Builder builderForValue)
public Dictionary . Builder setWordList ( WordList . Builder builderForValue )
Message defining a list of words or phrases.
.google.cloud.modelarmor.v1.WordList word_list = 1;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-19 UTC.
[null,null,["Last updated 2026-11-19 UTC."],[],[]]