Interface Document.Page.DetectedLanguageOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Document.Page.DetectedLanguage
,Document.Page.DetectedLanguage.Builder
- Enclosing class:
- Document.Page
public static interface Document.Page.DetectedLanguageOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getConfidence()
Confidence of detected language.String
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".com.google.protobuf.ByteString
getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn".-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getLanguageCode
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;
- Returns:
- The languageCode.
-
getLanguageCodeBytes
com.google.protobuf.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;
- Returns:
- The bytes for languageCode.
-
getConfidence
float getConfidence()
Confidence of detected language. Range [0, 1].
float confidence = 2;
- Returns:
- The confidence.
-
-