Interface TextAnnotation.DetectedLanguageOrBuilder (3.15.0)

publicstaticinterface TextAnnotation.DetectedLanguageOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

publicabstractfloatgetConfidence()

Confidence of detected language. Range [0, 1].

float confidence = 2;

Returns
Type Description
float

The confidence.

getLanguageCode()

publicabstractStringgetLanguageCode()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 1;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

publicabstractByteStringgetLanguageCodeBytes()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

string language_code = 1;

Returns
Type Description
ByteString

The bytes for languageCode.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.