![JAR search and dependency download from the Maven repository](/logo.png)
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-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud 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.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class PoliticalImageResult extends AbstractModel {
/**
* The confidence score for the moderation result. Value range: 0-100.
*/
@SerializedName("Confidence")
@Expose
private Float Confidence;
/**
* The suggestion for handling the detected politically sensitive content. Valid values:
pass/li>
review
block
*/
@SerializedName("Suggestion")
@Expose
private String Suggestion;
/**
* The name of the politically sensitive content or banned icon detected.
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* The coordinates (pixel) of the top-left and bottom-right corners of the frame where the politically sensitive content or banned icon appears. Format: [x1, y1, x2, y2].
*/
@SerializedName("AreaCoordSet")
@Expose
private Long [] AreaCoordSet;
/**
* Get The confidence score for the moderation result. Value range: 0-100.
* @return Confidence The confidence score for the moderation result. Value range: 0-100.
*/
public Float getConfidence() {
return this.Confidence;
}
/**
* Set The confidence score for the moderation result. Value range: 0-100.
* @param Confidence The confidence score for the moderation result. Value range: 0-100.
*/
public void setConfidence(Float Confidence) {
this.Confidence = Confidence;
}
/**
* Get The suggestion for handling the detected politically sensitive content. Valid values:
pass/li>
review
block
* @return Suggestion The suggestion for handling the detected politically sensitive content. Valid values:
pass/li>
review
block
*/
public String getSuggestion() {
return this.Suggestion;
}
/**
* Set The suggestion for handling the detected politically sensitive content. Valid values:
pass/li>
review
block
* @param Suggestion The suggestion for handling the detected politically sensitive content. Valid values:
pass/li>
review
block
*/
public void setSuggestion(String Suggestion) {
this.Suggestion = Suggestion;
}
/**
* Get The name of the politically sensitive content or banned icon detected.
* @return Name The name of the politically sensitive content or banned icon detected.
*/
public String getName() {
return this.Name;
}
/**
* Set The name of the politically sensitive content or banned icon detected.
* @param Name The name of the politically sensitive content or banned icon detected.
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get The coordinates (pixel) of the top-left and bottom-right corners of the frame where the politically sensitive content or banned icon appears. Format: [x1, y1, x2, y2].
* @return AreaCoordSet The coordinates (pixel) of the top-left and bottom-right corners of the frame where the politically sensitive content or banned icon appears. Format: [x1, y1, x2, y2].
*/
public Long [] getAreaCoordSet() {
return this.AreaCoordSet;
}
/**
* Set The coordinates (pixel) of the top-left and bottom-right corners of the frame where the politically sensitive content or banned icon appears. Format: [x1, y1, x2, y2].
* @param AreaCoordSet The coordinates (pixel) of the top-left and bottom-right corners of the frame where the politically sensitive content or banned icon appears. Format: [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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy