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

com.tencentcloudapi.tiia.v20190529.models.DetectMisbehaviorRequest Maven / Gradle / Ivy

/*
 * 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.tiia.v20190529.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DetectMisbehaviorRequest extends AbstractModel{

    /**
    * 图片URL地址。 
图片限制: 
• 图片格式:PNG、JPG、JPEG。 
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 
建议:
• 图片像素:大于50*50像素,否则影响识别效果; 
• 长宽比:长边:短边<5; 
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
    */
    @SerializedName("ImageUrl")
    @Expose
    private String ImageUrl;

    /**
    * 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
**注意:图片需要base64编码,并且要去掉编码头部。**
    */
    @SerializedName("ImageBase64")
    @Expose
    private String ImageBase64;

    /**
     * Get 图片URL地址。 
图片限制: 
• 图片格式:PNG、JPG、JPEG。 
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 
建议:
• 图片像素:大于50*50像素,否则影响识别效果; 
• 长宽比:长边:短边<5; 
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。 
     * @return ImageUrl 图片URL地址。 
图片限制: 
• 图片格式:PNG、JPG、JPEG。 
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 
建议:
• 图片像素:大于50*50像素,否则影响识别效果; 
• 长宽比:长边:短边<5; 
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
     */
    public String getImageUrl() {
        return this.ImageUrl;
    }

    /**
     * Set 图片URL地址。 
图片限制: 
• 图片格式:PNG、JPG、JPEG。 
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 
建议:
• 图片像素:大于50*50像素,否则影响识别效果; 
• 长宽比:长边:短边<5; 
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
     * @param ImageUrl 图片URL地址。 
图片限制: 
• 图片格式:PNG、JPG、JPEG。 
• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 
建议:
• 图片像素:大于50*50像素,否则影响识别效果; 
• 长宽比:长边:短边<5; 
接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
     */
    public void setImageUrl(String ImageUrl) {
        this.ImageUrl = ImageUrl;
    }

    /**
     * Get 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
**注意:图片需要base64编码,并且要去掉编码头部。** 
     * @return ImageBase64 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
**注意:图片需要base64编码,并且要去掉编码头部。**
     */
    public String getImageBase64() {
        return this.ImageBase64;
    }

    /**
     * Set 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
**注意:图片需要base64编码,并且要去掉编码头部。**
     * @param ImageBase64 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
**注意:图片需要base64编码,并且要去掉编码头部。**
     */
    public void setImageBase64(String ImageBase64) {
        this.ImageBase64 = ImageBase64;
    }

    public DetectMisbehaviorRequest() {
    }

    /**
     * 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 DetectMisbehaviorRequest(DetectMisbehaviorRequest source) {
        if (source.ImageUrl != null) {
            this.ImageUrl = new String(source.ImageUrl);
        }
        if (source.ImageBase64 != null) {
            this.ImageBase64 = new String(source.ImageBase64);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "ImageUrl", this.ImageUrl);
        this.setParamSimple(map, prefix + "ImageBase64", this.ImageBase64);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy