Class ComposeCoupletRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.nlp.v20190408.models.ComposeCoupletRequest
-
public class ComposeCoupletRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ComposeCoupletRequest()ComposeCoupletRequest(ComposeCoupletRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetTargetType()Get 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。StringgetText()Get 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。voidsetTargetType(Long TargetType)Set 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。voidsetText(String Text)Set 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ComposeCoupletRequest
public ComposeCoupletRequest()
-
ComposeCoupletRequest
public ComposeCoupletRequest(ComposeCoupletRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getText
public String getText()
Get 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。- Returns:
- Text 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
-
setText
public void setText(String Text)
Set 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。- Parameters:
Text- 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
-
getTargetType
public Long getTargetType()
Get 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。- Returns:
- TargetType 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
-
setTargetType
public void setTargetType(Long TargetType)
Set 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。- Parameters:
TargetType- 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
-
-