Class TranslationOptions

java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.generation.TranslationOptions

@Deprecated public class TranslationOptions extends Object
Deprecated.
  • Constructor Details

  • Method Details

    • builder

      public static TranslationOptions.TranslationOptionsBuilder<?,?> builder()
      Deprecated.
    • getSourceLang

      public String getSourceLang()
      Deprecated.
      Full English name of the source language.
    • getTargetLang

      public String getTargetLang()
      Deprecated.
      Full English name of the target language.
    • getDomains

      public String getDomains()
      Deprecated.
      Domain hints to use when domain prompting is enabled.
    • getTerms

      public List<TranslationOptions.Term> getTerms()
      Deprecated.
      Terms to use when terminology-based translation intervention is enabled.
    • getTmList

      public List<TranslationOptions.Tm> getTmList()
      Deprecated.
      Translation memories to use when translation memory is enabled.
    • setSourceLang

      public void setSourceLang(String sourceLang)
      Deprecated.
      Full English name of the source language.
    • setTargetLang

      public void setTargetLang(String targetLang)
      Deprecated.
      Full English name of the target language.
    • setDomains

      public void setDomains(String domains)
      Deprecated.
      Domain hints to use when domain prompting is enabled.
    • setTerms

      public void setTerms(List<TranslationOptions.Term> terms)
      Deprecated.
      Terms to use when terminology-based translation intervention is enabled.
    • setTmList

      public void setTmList(List<TranslationOptions.Tm> tmList)
      Deprecated.
      Translation memories to use when translation memory is enabled.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object