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

com.huaweicloud.sdk.frs.v2.model.FaceCompareBase64Req Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.frs.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * FaceCompareBase64Req
 */
public class FaceCompareBase64Req {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "image2_base64")

    private String image2Base64;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "image1_base64")

    private String image1Base64;

    public FaceCompareBase64Req withImage2Base64(String image2Base64) {
        this.image2Base64 = image2Base64;
        return this;
    }

    /**
     * 图像数据,Base64编码,要求: • Base64编码后大小不超过8MB,建议小于1MB。 • 图片为JPG/JPEG/BMP/PNG格式。
     * @return image2Base64
     */
    public String getImage2Base64() {
        return image2Base64;
    }

    public void setImage2Base64(String image2Base64) {
        this.image2Base64 = image2Base64;
    }

    public FaceCompareBase64Req withImage1Base64(String image1Base64) {
        this.image1Base64 = image1Base64;
        return this;
    }

    /**
     * 图像数据,Base64编码,要求: • Base64编码后大小不超过8MB,建议小于1MB。 • 图片为JPG/JPEG/BMP/PNG格式。
     * @return image1Base64
     */
    public String getImage1Base64() {
        return image1Base64;
    }

    public void setImage1Base64(String image1Base64) {
        this.image1Base64 = image1Base64;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        FaceCompareBase64Req that = (FaceCompareBase64Req) obj;
        return Objects.equals(this.image2Base64, that.image2Base64)
            && Objects.equals(this.image1Base64, that.image1Base64);
    }

    @Override
    public int hashCode() {
        return Objects.hash(image2Base64, image1Base64);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class FaceCompareBase64Req {\n");
        sb.append("    image2Base64: ").append(toIndentedString(image2Base64)).append("\n");
        sb.append("    image1Base64: ").append(toIndentedString(image1Base64)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy