public static class TranslateOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.util.List<java.lang.String> text)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TranslateOptions.Builder |
addText(java.lang.String text)
Adds an text to text.
|
TranslateOptions |
build()
Builds a TranslateOptions.
|
TranslateOptions.Builder |
modelId(java.lang.String modelId)
Set the modelId.
|
TranslateOptions.Builder |
source(java.lang.String source)
Set the source.
|
TranslateOptions.Builder |
target(java.lang.String target)
Set the target.
|
TranslateOptions.Builder |
text(java.util.List<java.lang.String> text)
Set the text.
|
public Builder()
public Builder(java.util.List<java.lang.String> text)
text
- the textpublic TranslateOptions build()
public TranslateOptions.Builder addText(java.lang.String text)
text
- the new textpublic TranslateOptions.Builder text(java.util.List<java.lang.String> text)
text
- the textpublic TranslateOptions.Builder modelId(java.lang.String modelId)
modelId
- the modelIdpublic TranslateOptions.Builder source(java.lang.String source)
source
- the sourcepublic TranslateOptions.Builder target(java.lang.String target)
target
- the target