Interface TranslateTextResponseOrBuilder (2.46.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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.translate.v3.TranslationOrBuilder>

getTranslations(int index)

public abstract Translation getTranslations(int index)

Text translation responses with no glossary applied. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation translations = 1;

Parameter
Name Description
index int
Returns
Type Description
Translation

getTranslationsCount()

public abstract int getTranslationsCount()

Text translation responses with no glossary applied. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation translations = 1;

Returns
Type Description
int

getTranslationsList()

public abstract List<Translation> getTranslationsList()

Text translation responses with no glossary applied. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation translations = 1;

Returns
Type Description
List<Translation>

getTranslationsOrBuilder(int index)

public abstract TranslationOrBuilder getTranslationsOrBuilder(int index)

Text translation responses with no glossary applied. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation translations = 1;

Parameter
Name Description
index int
Returns
Type Description
TranslationOrBuilder

getTranslationsOrBuilderList()

public abstract List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()

Text translation responses with no glossary applied. This field has the same length as contents.

repeated .google.cloud.translation.v3.Translation translations = 1;

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