Interface DetectLanguageResponseOrBuilder (2.34.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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.translate.v3.DetectedLanguageOrBuilder>