public static interface TextAnnotation.DetectedLanguageOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
float |
getConfidence()
Confidence of detected language.
|
java.lang.String |
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
ByteString |
getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn".
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String getLanguageCode()
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;
ByteString getLanguageCodeBytes()
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;
float getConfidence()
Confidence of detected language. Range [0, 1].
float confidence = 2;