| Modifier and Type | Method and Description |
|---|---|
SoyMsg |
build() |
SoyMsg.Builder |
setAltId(long altId) |
SoyMsg.Builder |
setContentType(String contentType) |
SoyMsg.Builder |
setDesc(String desc) |
SoyMsg.Builder |
setId(long id) |
SoyMsg.Builder |
setIsHidden(boolean isHidden) |
SoyMsg.Builder |
setIsPlrselMsg(boolean isPlrselMsg) |
SoyMsg.Builder |
setLocaleString(String localeString) |
SoyMsg.Builder |
setMeaning(String meaning) |
SoyMsg.Builder |
setParts(Iterable<? extends SoyMsgPart> parts) |
SoyMsg.Builder |
setSourceLocation(SourceLocation sourceLocation) |
public SoyMsg.Builder setId(long id)
id - A unique id for this message (same across all translations).public SoyMsg.Builder setAltId(long altId)
altId - An alternate unique id for this message.public SoyMsg.Builder setLocaleString(String localeString)
localeString - The language/locale string, or null if unknown. Should only be null for
messages newly extracted from source files. Should always be set for messages parsed from
message files/resourcespublic SoyMsg.Builder setMeaning(String meaning)
meaning - The meaning string, or null if not necessary (usually null). This is a string
to create unique messages for two otherwise identical messages. This is usually done for
messages used in different contexts. (For example, the same word can be used as a noun in
one location and as a verb in another location, and the message texts would be the same
but the messages would have meanings of "noun" and "verb".). May not be applicable to all
message plugins.public SoyMsg.Builder setDesc(String desc)
desc - The description for translators.public SoyMsg.Builder setIsHidden(boolean isHidden)
isHidden - Whether this message should be hidden. May not be applicable to all message
plugins.public SoyMsg.Builder setContentType(String contentType)
contentType - Content type of the document that this message will appear in (e.g.
"text/html"). May not be applicable to all message plugins.public SoyMsg.Builder setSourceLocation(SourceLocation sourceLocation)
sourceLocation - Location of a source file that this message comes from. More sources
can be added using addSourceLocation(). May not be applicable to all message
plugins.public SoyMsg.Builder setIsPlrselMsg(boolean isPlrselMsg)
isPlrselMsg - Whether this is a plural/select message.public SoyMsg.Builder setParts(Iterable<? extends SoyMsgPart> parts)
parts - The parts that make up the message content.public SoyMsg build()