package com.infoepoch.pms.dispatchassistant.domain.langchain.history;


import com.infoepoch.pms.dispatchassistant.common.component.AbstractCriteria;

/**
 * generated by code-generator
 * 查询条件类
 */
public class MessagesCriteria extends AbstractCriteria {

    //region 样例
    //public boolean byId() {
    //    return this.andMap.containsKey("Id");
    //}
    //
    //private String id;
    //
    //public String getId() {
    //    if (byId())
    //        return id;
    //    return null;
    //}
    //
    //public void setId(String value) {
    //    this.id = value;
    //    this.andMap.put("Id", value);
    //}
    //endregion

    //region 主键
    public boolean byId() {
        return this.andMap.containsKey("Id");
    }

    private String id;

    public String getId() {
        if (byId())
            return id;
        return null;
    }

    public void setId(String value) {
        this.id = value;
        this.andMap.put("Id", value);
    }
    //endregion

    //region 会话表主键
    public boolean byCid() {
        return this.andMap.containsKey("Cid");
    }

    private String cid;

    public String getCid() {
        if (byCid())
            return cid;
        return null;
    }

    public void setCid(String value) {
        this.cid = value;
        this.andMap.put("Cid", value);
    }
    //endregion

    //region 会话id
    public boolean bySessionId() {
        return this.andMap.containsKey("SessionId");
    }

    private String sessionId;

    public String getSessionId() {
        if (bySessionId())
            return sessionId;
        return null;
    }

    public void setSessionId(String value) {
        this.sessionId = value;
        this.andMap.put("SessionId", value);
    }
    //endregion

    //region 请求id
    public boolean byRequestId() {
        return this.andMap.containsKey("RequestId");
    }

    private String requestId;

    public String getRequestId() {
        if (byRequestId())
            return requestId;
        return null;
    }

    public void setRequestId(String value) {
        this.requestId = value;
        this.andMap.put("RequestId", value);
    }
    //endregion

    //region 角色'user','assistant'
    public boolean byRole() {
        return this.andMap.containsKey("Role");
    }

    private String role;

    public String getRole() {
        if (byRole())
            return role;
        return null;
    }

    public void setRole(String value) {
        this.role = value;
        this.andMap.put("Role", value);
    }
    //endregion

    //region 父消息id
    public boolean byParentMsgId() {
        return this.andMap.containsKey("ParentMsgId");
    }

    private String parentMsgId;

    public String getParentMsgId() {
        if (byParentMsgId())
            return parentMsgId;
        return null;
    }

    public void setParentMsgId(String value) {
        this.parentMsgId = value;
        this.andMap.put("ParentMsgId", value);
    }
    //endregion

}
