public static class DetectedLanguage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectedLanguage |
build() |
DetectedLanguage.Builder |
confidence(Float confidence)
The confidence score between 0 and 1.
|
DetectedLanguage.Builder |
copy(DetectedLanguage model) |
DetectedLanguage.Builder |
languageCode(DocumentLanguage languageCode)
The language of the document, abbreviated according to ISO 639-2.
|
public DetectedLanguage.Builder languageCode(DocumentLanguage languageCode)
The language of the document, abbreviated according to ISO 639-2.
languageCode
- the value to setpublic DetectedLanguage.Builder confidence(Float confidence)
The confidence score between 0 and 1.
confidence
- the value to setpublic DetectedLanguage build()
public DetectedLanguage.Builder copy(DetectedLanguage model)
Copyright © 2016–2024. All rights reserved.