Interface DetectedLanguageOrBuilder (2.31.0)

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 ISO-639 language code of the source content in the request, detected automatically.

string language_code = 1;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The ISO-639 language code of the source content in the request, detected automatically.

string language_code = 1;

Returns
TypeDescription
ByteString

The bytes for languageCode.