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

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

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

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

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

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

/**
 * 审核信息公共实体类 https://cloud.tencent.com/document/product/460/37318
 */
public class AudtingCommonInfo {
    /**
     * 错误码,0为正确,其他数字对应相应错误。详情请参见 https://cloud.tencent.com/document/product/460/8523
     */
    @XStreamAlias("Code")
    private String code;

    /**
     * 具体错误信息,如正常则为 OK
     */
    @XStreamAlias("Msg")
    private String msg;

    /**
     * 是否命中该审核分类,0表示未命中,1表示命中,2表示疑似
     */
    @XStreamAlias("HitFlag")
    private String hitFlag;

    /**
     * 审核分值。0 - 60分表示图片正常,60 - 90分表示图片疑似敏感,90 - 100分表示图片确定敏感
     */
    @XStreamAlias("Score")
    private String score;

    /**
     * 识别出的图片标签
     */
    @XStreamAlias("Label")
    private String label;

    /**
     * 在当前审核场景下命中的关键词,多关键词以,分隔。
     */
    @XStreamAlias("Keywords")
    private String keywords;

    /**
     * 次数
     */
    @XStreamAlias("Count")
    private String count;

    /**
     * 该字段表示审核命中的具体子标签,例如:Porn 下的 SexBehavior 子标签。
     * 注意:该字段可能返回空,表示未命中具体的子标签。
     */
    @XStreamAlias("SubLabel")
    private String subLabel;

    @XStreamAlias("OcrResults")
    private OcrResults ocrResults;

    @XStreamAlias("Category")
    private String category;

    @XStreamImplicit(itemFieldName = "ObjectResults")
    private List objectResults = new ArrayList<>();

    @XStreamImplicit(itemFieldName = "LibResult")
    private List libResults;

    @XStreamImplicit(itemFieldName = "HitInfos")
    private List hitInfos;

    public List getHitInfos() {
        return hitInfos;
    }

    public void setHitInfos(List hitInfos) {
        this.hitInfos = hitInfos;
    }

    public AudtingCommonInfo() {
    }

    public AudtingCommonInfo(String code, String msg, String hitFlag, String score, String label, String count) {
        this.code = code;
        this.msg = msg;
        this.hitFlag = hitFlag;
        this.score = score;
        this.label = label;
        this.count = count;
    }

    public String getCode() {
        return code;
    }

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

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getHitFlag() {
        return hitFlag;
    }

    public void setHitFlag(String hitFlag) {
        this.hitFlag = hitFlag;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getLabel() {
        return label;
    }

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

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public OcrResults getOcrResults() {
        if (ocrResults == null) {
            ocrResults = new OcrResults();
        }
        return ocrResults;
    }

    public void setOcrResults(OcrResults ocrResults) {
        this.ocrResults = ocrResults;
    }

    public List getObjectResults() {
        return objectResults;
    }

    public void setObjectResults(List objectResults) {
        this.objectResults = objectResults;
    }

    public String getSubLabel() {
        return subLabel;
    }

    public void setSubLabel(String subLabel) {
        this.subLabel = subLabel;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public List getLibResults() {
        if (libResults == null) {
            libResults = new ArrayList<>();
        }
        return libResults;
    }

    public void setLibResults(List libResults) {
        this.libResults = libResults;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AudtingCommonInfo{");
        sb.append("code='").append(code).append('\'');
        sb.append(", msg='").append(msg).append('\'');
        sb.append(", hitFlag='").append(hitFlag).append('\'');
        sb.append(", score='").append(score).append('\'');
        sb.append(", label='").append(label).append('\'');
        sb.append(", keywords='").append(keywords).append('\'');
        sb.append(", count='").append(count).append('\'');
        sb.append(", subLabel='").append(subLabel).append('\'');
        sb.append(", ocrResults=").append(ocrResults);
        sb.append(", category='").append(category).append('\'');
        sb.append(", objectResults=").append(objectResults);
        sb.append(", libResults=").append(libResults);
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy