class InputCreateChatroom {
    private String chatroomId;
    private String title;
    private String desc;
    private String portrait;
    private String extra;
    private Integer state;

    public WFCMessage.ChatroomInfo toChatroomInfo() {<FILL_FUNCTION_BODY>}
    public InputCreateChatroom() {
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getChatroomId() {
        return chatroomId;
    }

    public void setChatroomId(String chatroomId) {
        this.chatroomId = chatroomId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }
}

        WFCMessage.ChatroomInfo.Builder builder = WFCMessage.ChatroomInfo.newBuilder().setTitle(title);
        if (!StringUtil.isNullOrEmpty(desc)) {
            builder.setDesc(desc);
        }

        if (!StringUtil.isNullOrEmpty(portrait)) {
            builder.setPortrait(portrait);
        }

        long current = System.currentTimeMillis();
        builder.setCreateDt(current).setUpdateDt(current).setMemberCount(0);

        if (!StringUtil.isNullOrEmpty(extra)) {
            builder.setExtra(extra);
        }

        if (state == null || state == 0) {
            builder.setState(ProtoConstants.ChatroomState.Chatroom_State_Normal);
        } else if(state == 1) {
            builder.setState(ProtoConstants.ChatroomState.Chatroom_State_NotStart);
        } else {
            builder.setState(ProtoConstants.ChatroomState.Chatroom_State_End);
        }

        return builder.build();
    
<no_super_class>