
com.tencentcloudapi.aai.v20180522.models.ChatRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.aai.v20180522.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ChatRequest extends AbstractModel{
/**
* 聊天输入文本
*/
@SerializedName("Text")
@Expose
private String Text;
/**
* 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
*/
@SerializedName("User")
@Expose
private String User;
/**
* Get 聊天输入文本
* @return Text 聊天输入文本
*/
public String getText() {
return this.Text;
}
/**
* Set 聊天输入文本
* @param Text 聊天输入文本
*/
public void setText(String Text) {
this.Text = Text;
}
/**
* Get 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
* @return ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
* @param ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
* @return User json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
*/
public String getUser() {
return this.User;
}
/**
* Set json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
* @param User json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
*/
public void setUser(String User) {
this.User = User;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Text", this.Text);
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "User", this.User);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy