Interface DetectedLanguageOrBuilder (2.3.1)

public interface DetectedLanguageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

The confidence of the detection result for this language.

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getLanguageCode()

public abstract String getLanguageCode()

The BCP-47 language code of source content in the request, detected automatically.

string language_code = 1;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The BCP-47 language code of source content in the request, detected automatically.

string language_code = 1;

Returns
TypeDescription
ByteString

The bytes for languageCode.