Class ChatRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.aai.v20180522.models.ChatRequest
-
public class ChatRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ChatRequest()ChatRequest(ChatRequest 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 LonggetProjectId()Get 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。StringgetText()Get 聊天输入文本StringgetUser()Get json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响voidsetProjectId(Long ProjectId)Set 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。voidsetText(String Text)Set 聊天输入文本voidsetUser(String User)Set json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响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
-
ChatRequest
public ChatRequest()
-
ChatRequest
public ChatRequest(ChatRequest 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 聊天输入文本- Returns:
- Text 聊天输入文本
-
setText
public void setText(String Text)
Set 聊天输入文本- Parameters:
Text- 聊天输入文本
-
getProjectId
public Long getProjectId()
Get 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。- Returns:
- ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
-
setProjectId
public void setProjectId(Long ProjectId)
Set 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。- Parameters:
ProjectId- 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
-
getUser
public String getUser()
Get json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响- Returns:
- User json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
-
setUser
public void setUser(String User)
Set json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响- Parameters:
User- json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
-
-