Interface TranslateTextResponseOrBuilder (2.23.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.Translation glossary_translations = 3;

Returns
TypeDescription
List<? extends com.google.cloud.translate.v3beta1.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.v3beta1.Translation translations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3beta1.Translation translations = 1;

Returns
TypeDescription
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.v3beta1.Translation translations = 1;

Returns
TypeDescription
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.v3beta1.Translation translations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3beta1.Translation translations = 1;

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