Interface TranslateTextResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TranslateTextResponse, TranslateTextResponse.Builder

@Generated public interface TranslateTextResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getTranslationsList

      List<Translation> getTranslationsList()
       Text translation responses with no glossary applied.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation translations = 1;
    • getTranslations

      Translation getTranslations(int index)
       Text translation responses with no glossary applied.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation translations = 1;
    • getTranslationsCount

      int getTranslationsCount()
       Text translation responses with no glossary applied.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation translations = 1;
    • getTranslationsOrBuilderList

      List<? extends TranslationOrBuilder> getTranslationsOrBuilderList()
       Text translation responses with no glossary applied.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation translations = 1;
    • getTranslationsOrBuilder

      TranslationOrBuilder getTranslationsOrBuilder(int index)
       Text translation responses with no glossary applied.
       This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation translations = 1;
    • getGlossaryTranslationsList

      List<Translation> getGlossaryTranslationsList()
       Text translation responses if a glossary is provided in the request.
       This can be the same as
       [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
       if no terms apply. This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    • getGlossaryTranslations

      Translation getGlossaryTranslations(int index)
       Text translation responses if a glossary is provided in the request.
       This can be the same as
       [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
       if no terms apply. This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    • getGlossaryTranslationsCount

      int getGlossaryTranslationsCount()
       Text translation responses if a glossary is provided in the request.
       This can be the same as
       [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
       if no terms apply. This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    • getGlossaryTranslationsOrBuilderList

      List<? extends TranslationOrBuilder> getGlossaryTranslationsOrBuilderList()
       Text translation responses if a glossary is provided in the request.
       This can be the same as
       [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
       if no terms apply. This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation glossary_translations = 3;
    • getGlossaryTranslationsOrBuilder

      TranslationOrBuilder getGlossaryTranslationsOrBuilder(int index)
       Text translation responses if a glossary is provided in the request.
       This can be the same as
       [`translations`][google.cloud.translation.v3.TranslateTextResponse.translations]
       if no terms apply. This field has the same length as
       [`contents`][google.cloud.translation.v3.TranslateTextRequest.contents].
       
      repeated .google.cloud.translation.v3.Translation glossary_translations = 3;