# TranslateTextParam

public class TranslateTextParam

翻译文本参数

#### Author

rongcloud

#### Since

5.24.0

## Constructors

TranslateTextParam
Link copied to clipboard
public void TranslateTextParam()
public void TranslateTextParam(String text)
public void TranslateTextParam(String text, String sourceLanguage, String targetLanguage)

## Properties

CREATOR
Link copied to clipboard
public final static Creator<TranslateTextParam> CREATOR
sourceLanguage
Link copied to clipboard
public String sourceLanguage
默认值 'auto'
targetLanguage
Link copied to clipboard
public String targetLanguage
选填，未传时取用户级配置，未取到配置时默认翻译为中文
text
Link copied to clipboard
public String text
待翻译内容

## Functions

describeContents
Link copied to clipboard
public int describeContents()
getIdentifier
Link copied to clipboard
public final String getIdentifier()
获取标识符，用于匹配翻译结果（计算text的hash值）
getSourceLanguage
Link copied to clipboard
public String getSourceLanguage()
获取源语言
getTargetLanguage
Link copied to clipboard
public String getTargetLanguage()
获取目标语言
getText
Link copied to clipboard
public String getText()
获取待翻译内容
setSourceLanguage
Link copied to clipboard
public void setSourceLanguage(String sourceLanguage)
设置源语言
setTargetLanguage
Link copied to clipboard
public void setTargetLanguage(String targetLanguage)
设置目标语言
setText
Link copied to clipboard
public void setText(String text)
设置待翻译内容
toString
Link copied to clipboard
public String toString()
writeToParcel
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)