Interface TranslateTextResponseOrBuilder (2.24.0)

public interface TranslateTextResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getGlossaryTranslations(int index)

public abstract Translation getGlossaryTranslations(int index)

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation glossary_translations = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Translation

getGlossaryTranslationsCount()

public abstract int getGlossaryTranslationsCount()

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation glossary_translations = 3;

Returns
TypeDescription
int

getGlossaryTranslationsList()

public abstract List<Translation> getGlossaryTranslationsList()

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation glossary_translations = 3;

Returns
TypeDescription
List<Translation>

getGlossaryTranslationsOrBuilder(int index)

public abstract TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation glossary_translations = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TranslationOrBuilder

getGlossaryTranslationsOrBuilderList()

public abstract List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()

Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation glossary_translations = 3;

Returns
TypeDescription
List<? extends com.google.cloud.translate.v3.TranslationOrBuilder>