Interface DetectedLanguageOrBuilder (2.55.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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for languageCode.