public static class DetectedLanguage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectedLanguage |
build() |
DetectedLanguage.Builder |
code(String code)
Detected language code as per ISO
639-1 standard.
|
DetectedLanguage.Builder |
copy(DetectedLanguage model) |
DetectedLanguage.Builder |
name(String name)
Full language name.
|
DetectedLanguage.Builder |
score(Double score)
Score or confidence of detected language code.
|
public DetectedLanguage.Builder name(String name)
Full language name. Example: English, Hindi, and so on
name
- the value to setpublic DetectedLanguage.Builder code(String code)
Detected language code as per ISO
639-1 standard. Example: en, fr, hi etc
.
code
- the value to setpublic DetectedLanguage.Builder score(Double score)
Score or confidence of detected language code. Example: 0.9999856066867399
score
- the value to setpublic DetectedLanguage build()
public DetectedLanguage.Builder copy(DetectedLanguage model)
Copyright © 2016–2024. All rights reserved.