Interface Document.Page.DetectedLanguageOrBuilder (2.27.0)

public static interface Document.Page.DetectedLanguageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

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

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getLanguageCode()

public abstract String getLanguageCode()

The BCP-47 language code, such as en-US or sr-Latn.

string language_code = 1;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The BCP-47 language code, such as en-US or sr-Latn.

string language_code = 1;

Returns
TypeDescription
ByteString

The bytes for languageCode.