The response message for language detection.
| JSON representation |
|---|
{
"languages": [
{
object ( |
| Fields | |
|---|---|
languages[] |
A list of detected languages sorted by detection confidence in descending order. The most probable language first. |
DetectedLanguage
The response message for language detection.
| JSON representation |
|---|
{ "languageCode": string, "confidence": number } |
| Fields | |
|---|---|
languageCode |
The BCP-47 language code of source content in the request, detected automatically. |
confidence |
The confidence of the detection result for this language. |