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

com.tencentcloudapi.ft.v20200304.models.SwapGenderPicRequest 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.ft.v20200304.models;

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

public class SwapGenderPicRequest extends AbstractModel{

    /**
    * 人脸转化性别信息。 
您可以输入最多3个 GenderInfo 来实现给一张图中的最多3张人脸转换性别。
    */
    @SerializedName("GenderInfos")
    @Expose
    private GenderInfo [] GenderInfos;

    /**
    * 图片 base64 数据,base64 编码后大小不可超过5M。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
    */
    @SerializedName("Image")
    @Expose
    private String Image;

    /**
    * 图片的 Url ,对应图片 base64 编码后大小不可超过5M。 
图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 
图片存储于腾讯云的 Url 可保障更高下载速度和稳定性,建议图片存储于腾讯云。 
非腾讯云存储的Url速度和稳定性可能受一定影响。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
    */
    @SerializedName("Url")
    @Expose
    private String Url;

    /**
    * 返回图像方式(base64 或 url ) ,二选一。url有效期为1天。
    */
    @SerializedName("RspImgType")
    @Expose
    private String RspImgType;

    /**
     * Get 人脸转化性别信息。 
您可以输入最多3个 GenderInfo 来实现给一张图中的最多3张人脸转换性别。 
     * @return GenderInfos 人脸转化性别信息。 
您可以输入最多3个 GenderInfo 来实现给一张图中的最多3张人脸转换性别。
     */
    public GenderInfo [] getGenderInfos() {
        return this.GenderInfos;
    }

    /**
     * Set 人脸转化性别信息。 
您可以输入最多3个 GenderInfo 来实现给一张图中的最多3张人脸转换性别。
     * @param GenderInfos 人脸转化性别信息。 
您可以输入最多3个 GenderInfo 来实现给一张图中的最多3张人脸转换性别。
     */
    public void setGenderInfos(GenderInfo [] GenderInfos) {
        this.GenderInfos = GenderInfos;
    }

    /**
     * Get 图片 base64 数据,base64 编码后大小不可超过5M。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。 
     * @return Image 图片 base64 数据,base64 编码后大小不可超过5M。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     */
    public String getImage() {
        return this.Image;
    }

    /**
     * Set 图片 base64 数据,base64 编码后大小不可超过5M。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     * @param Image 图片 base64 数据,base64 编码后大小不可超过5M。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     */
    public void setImage(String Image) {
        this.Image = Image;
    }

    /**
     * Get 图片的 Url ,对应图片 base64 编码后大小不可超过5M。 
图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 
图片存储于腾讯云的 Url 可保障更高下载速度和稳定性,建议图片存储于腾讯云。 
非腾讯云存储的Url速度和稳定性可能受一定影响。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。 
     * @return Url 图片的 Url ,对应图片 base64 编码后大小不可超过5M。 
图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 
图片存储于腾讯云的 Url 可保障更高下载速度和稳定性,建议图片存储于腾讯云。 
非腾讯云存储的Url速度和稳定性可能受一定影响。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     */
    public String getUrl() {
        return this.Url;
    }

    /**
     * Set 图片的 Url ,对应图片 base64 编码后大小不可超过5M。 
图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 
图片存储于腾讯云的 Url 可保障更高下载速度和稳定性,建议图片存储于腾讯云。 
非腾讯云存储的Url速度和稳定性可能受一定影响。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     * @param Url 图片的 Url ,对应图片 base64 编码后大小不可超过5M。 
图片的 Url、Image必须提供一个,如果都提供,只使用 Url。 
图片存储于腾讯云的 Url 可保障更高下载速度和稳定性,建议图片存储于腾讯云。 
非腾讯云存储的Url速度和稳定性可能受一定影响。 
支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
     */
    public void setUrl(String Url) {
        this.Url = Url;
    }

    /**
     * Get 返回图像方式(base64 或 url ) ,二选一。url有效期为1天。 
     * @return RspImgType 返回图像方式(base64 或 url ) ,二选一。url有效期为1天。
     */
    public String getRspImgType() {
        return this.RspImgType;
    }

    /**
     * Set 返回图像方式(base64 或 url ) ,二选一。url有效期为1天。
     * @param RspImgType 返回图像方式(base64 或 url ) ,二选一。url有效期为1天。
     */
    public void setRspImgType(String RspImgType) {
        this.RspImgType = RspImgType;
    }

    public SwapGenderPicRequest() {
    }

    /**
     * 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 SwapGenderPicRequest(SwapGenderPicRequest source) {
        if (source.GenderInfos != null) {
            this.GenderInfos = new GenderInfo[source.GenderInfos.length];
            for (int i = 0; i < source.GenderInfos.length; i++) {
                this.GenderInfos[i] = new GenderInfo(source.GenderInfos[i]);
            }
        }
        if (source.Image != null) {
            this.Image = new String(source.Image);
        }
        if (source.Url != null) {
            this.Url = new String(source.Url);
        }
        if (source.RspImgType != null) {
            this.RspImgType = new String(source.RspImgType);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamArrayObj(map, prefix + "GenderInfos.", this.GenderInfos);
        this.setParamSimple(map, prefix + "Image", this.Image);
        this.setParamSimple(map, prefix + "Url", this.Url);
        this.setParamSimple(map, prefix + "RspImgType", this.RspImgType);

    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy