All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.model.ciModel.auditing.DocumentAuditingJobsDetail Maven / Gradle / Ivy

There is a newer version: 5.6.238.2
Show newest version
package com.qcloud.cos.model.ciModel.auditing;

import java.util.ArrayList;
import java.util.List;

public class DocumentAuditingJobsDetail {
    /**
     * 新创建任务的 ID
     */
    private String jobId;
    /**
     * 任务的状态,为 Submitted、Snapshoting、Success、Failed、Auditing 其中一个
     */
    private String state;
    /**
     * 任务的创建时间
     */
    private String creationTime;

    /**
     * 错误码,只有 State 为 Failed 时有意义
     */
    private String code;
    /**
     * 错误描述,只有 State 为 Failed 时有意义
     */
    private String message;

    /**
     * 文档地址
     */
    private String url;

    /**
     * 文档的cos相对地址
     */
    private String object;

    /**
     * 表示本次判定的审核结果
     * 0(审核正常),1 (判定为违规敏感文件),2(疑似敏感,建议人工复核)
     */
    private String suggestion;

    /**
     * 转换的图片总数量
     */
    private String pageCount;

    /**
     * 请求标识
     */
    private String dataId;
    /**
     * 请求标识
     */
    private String forbidState;

    /**
     * 该字段用于返回检测结果中所对应的优先级最高的恶意标签
     * 表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。
     * 返回值:Normal:正常,Porn:色情,Ads:广告,以及其他不安全或不适宜的类型。
     */
    private String label;

    /**
     * 文档转换为图片后,具体每张图片的审核结果信息,只返回带有违规结果的图片
     */
    private List pageSegment;

    /**
     * 该字段用于返回命中的审核场景及对应的结果
     */
    private DocumentResultInfo labels;

    private UserInfo userInfo = new UserInfo();
    private ListInfo listInfo = new ListInfo();

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getState() {
        return state;
    }

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

    public String getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(String creationTime) {
        this.creationTime = creationTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }

    public String getPageCount() {
        return pageCount;
    }

    public void setPageCount(String pageCount) {
        this.pageCount = pageCount;
    }

    public List getPageSegment() {
        if (pageSegment == null) {
            pageSegment = new ArrayList<>();
        }
        return pageSegment;
    }

    public void setPageSegment(List pageSegment) {
        if (pageSegment == null) {
            pageSegment = new ArrayList<>();
        }
        this.pageSegment = pageSegment;
    }

    public DocumentResultInfo getLabels() {
        if (labels == null) {
            labels = new DocumentResultInfo();
        }
        return labels;
    }

    public void setLabels(DocumentResultInfo labels) {
        this.labels = labels;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public ListInfo getListInfo() {
        return listInfo;
    }

    public void setListInfo(ListInfo listInfo) {
        this.listInfo = listInfo;
    }

    public String getForbidState() {
        return forbidState;
    }

    public void setForbidState(String forbidState) {
        this.forbidState = forbidState;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("DocumentAuditingJobsDetail{");
        sb.append("jobId='").append(jobId).append('\'');
        sb.append(", state='").append(state).append('\'');
        sb.append(", creationTime='").append(creationTime).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", message='").append(message).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", object='").append(object).append('\'');
        sb.append(", suggestion='").append(suggestion).append('\'');
        sb.append(", pageCount='").append(pageCount).append('\'');
        sb.append(", dataId='").append(dataId).append('\'');
        sb.append(", forbidState='").append(forbidState).append('\'');
        sb.append(", label='").append(label).append('\'');
        sb.append(", pageSegment=").append(pageSegment);
        sb.append(", labels=").append(labels);
        sb.append(", userInfo=").append(userInfo);
        sb.append(", listInfo=").append(listInfo);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy