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

net.gdface.sdk.fse.thrift.client.CodeBean Maven / Gradle / Ivy

The newest version!
package net.gdface.sdk.fse.thrift.client;

import com.facebook.swift.codec.*;
import com.facebook.swift.codec.ThriftField.Requiredness;
import java.util.*;

import static com.google.common.base.Objects.toStringHelper;

@ThriftStruct("CodeBean")
public final class CodeBean
{
    public CodeBean() {
    }

    private byte [] code;

    @ThriftField(value=1, name="code", requiredness=Requiredness.OPTIONAL)
    public byte [] getCode() { return code; }

    @ThriftField
    public void setCode(final byte [] code) { this.code = code; }

    private int group;

    @ThriftField(value=2, name="group", requiredness=Requiredness.REQUIRED)
    public int getGroup() { return group; }

    @ThriftField
    public void setGroup(final int group) { this.group = group; }

    private byte [] id;

    @ThriftField(value=3, name="id", requiredness=Requiredness.OPTIONAL)
    public byte [] getId() { return id; }

    @ThriftField
    public void setId(final byte [] id) { this.id = id; }

    private String imgMD5;

    @ThriftField(value=4, name="imgMD5", requiredness=Requiredness.OPTIONAL)
    public String getImgMD5() { return imgMD5; }

    @ThriftField
    public void setImgMD5(final String imgMD5) { this.imgMD5 = imgMD5; }

    private double similarity;

    @ThriftField(value=5, name="similarity", requiredness=Requiredness.REQUIRED)
    public double getSimilarity() { return similarity; }

    @ThriftField
    public void setSimilarity(final double similarity) { this.similarity = similarity; }

    @Override
    public String toString()
    {
        return toStringHelper(this)
            .add("code", code)
            .add("group", group)
            .add("id", id)
            .add("imgMD5", imgMD5)
            .add("similarity", similarity)
            .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy