com.tencentcloudapi.vod.v20180717.models.PoliticalImageResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-vod Show documentation
Show all versions of tencentcloud-sdk-java-vod Show documentation
Tencent Cloud Open API SDK for Java
/*
* 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.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class PoliticalImageResult extends AbstractModel{
/**
* 鉴别涉及令人不适宜信息的评分,分值为0到100。
*/
@SerializedName("Confidence")
@Expose
private Float Confidence;
/**
* 鉴别涉及令人不适宜信息的结果建议,取值范围:
pass;
review;
block。
*/
@SerializedName("Suggestion")
@Expose
private String Suggestion;
/**
* 涉及令人不适宜的信息、违规图标名字。
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
*/
@SerializedName("AreaCoordSet")
@Expose
private Long [] AreaCoordSet;
/**
* Get 鉴别涉及令人不适宜信息的评分,分值为0到100。
* @return Confidence 鉴别涉及令人不适宜信息的评分,分值为0到100。
*/
public Float getConfidence() {
return this.Confidence;
}
/**
* Set 鉴别涉及令人不适宜信息的评分,分值为0到100。
* @param Confidence 鉴别涉及令人不适宜信息的评分,分值为0到100。
*/
public void setConfidence(Float Confidence) {
this.Confidence = Confidence;
}
/**
* Get 鉴别涉及令人不适宜信息的结果建议,取值范围:
pass;
review;
block。
* @return Suggestion 鉴别涉及令人不适宜信息的结果建议,取值范围:
pass;
review;
block。
*/
public String getSuggestion() {
return this.Suggestion;
}
/**
* Set 鉴别涉及令人不适宜信息的结果建议,取值范围:
pass;
review;
block。
* @param Suggestion 鉴别涉及令人不适宜信息的结果建议,取值范围:
pass;
review;
block。
*/
public void setSuggestion(String Suggestion) {
this.Suggestion = Suggestion;
}
/**
* Get 涉及令人不适宜的信息、违规图标名字。
* @return Name 涉及令人不适宜的信息、违规图标名字。
*/
public String getName() {
return this.Name;
}
/**
* Set 涉及令人不适宜的信息、违规图标名字。
* @param Name 涉及令人不适宜的信息、违规图标名字。
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
* @return AreaCoordSet 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
*/
public Long [] getAreaCoordSet() {
return this.AreaCoordSet;
}
/**
* Set 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
* @param AreaCoordSet 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
*/
public void setAreaCoordSet(Long [] AreaCoordSet) {
this.AreaCoordSet = AreaCoordSet;
}
public PoliticalImageResult() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public PoliticalImageResult(PoliticalImageResult source) {
if (source.Confidence != null) {
this.Confidence = new Float(source.Confidence);
}
if (source.Suggestion != null) {
this.Suggestion = new String(source.Suggestion);
}
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.AreaCoordSet != null) {
this.AreaCoordSet = new Long[source.AreaCoordSet.length];
for (int i = 0; i < source.AreaCoordSet.length; i++) {
this.AreaCoordSet[i] = new Long(source.AreaCoordSet[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Confidence", this.Confidence);
this.setParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamArraySimple(map, prefix + "AreaCoordSet.", this.AreaCoordSet);
}
}