Class TranslateMessageParam

  • All Implemented Interfaces:

    
    public final class TranslateMessageParam
    
                        

    Parameters for translating a specific message.

    Specifies which message to translate and optionally overrides the language settings.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getSourceLanguage() Source language.
      final Unit setSourceLanguage(String sourceLanguage) Source language.
      final String getTargetLanguage() Target language.
      final Unit setTargetLanguage(String targetLanguage) Target language.
      final String getMessageId()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslateMessageParam

        TranslateMessageParam(String messageId)
        Parameters:
        messageId - Server-side unique message ID, used to match the translation result
    • Method Detail

      • getSourceLanguage

         final String getSourceLanguage()

        Source language.

        Default is "auto", meaning the source language is auto-detected.

      • setSourceLanguage

         final Unit setSourceLanguage(String sourceLanguage)

        Source language.

        Default is "auto", meaning the source language is auto-detected.

      • getTargetLanguage

         final String getTargetLanguage()

        Target language.

        Optional. When not set, the user-level language configuration is used.

      • setTargetLanguage

         final Unit setTargetLanguage(String targetLanguage)

        Target language.

        Optional. When not set, the user-level language configuration is used.