Interface DetectLanguageResponseOrBuilder (2.55.0)

public interface DetectLanguageResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLanguages(int index)

public abstract DetectedLanguage getLanguages(int index)

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.

repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;

Parameter
Name Description
index int
Returns
Type Description
DetectedLanguage

getLanguagesCount()

public abstract int getLanguagesCount()

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.

repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;

Returns
Type Description
int

getLanguagesList()

public abstract List<DetectedLanguage> getLanguagesList()

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.

repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;

Returns
Type Description
List<DetectedLanguage>

getLanguagesOrBuilder(int index)

public abstract DetectedLanguageOrBuilder getLanguagesOrBuilder(int index)

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.

repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;

Parameter
Name Description
index int
Returns
Type Description
DetectedLanguageOrBuilder

getLanguagesOrBuilderList()

public abstract List<? extends DetectedLanguageOrBuilder> getLanguagesOrBuilderList()

The most probable language detected by the Translation API. For each request, the Translation API will always return only one result.

repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;

Returns
Type Description
List<? extends com.google.cloud.translate.v3.DetectedLanguageOrBuilder>