
net.gdface.facedb.db.ImageBean Maven / Gradle / Ivy
// ______________________________________________________
// Generated by sql2java - https://github.com/10km/sql2java
// JDBC driver used at code generation time: com.mysql.jdbc.Driver
// template: bean.java.vm
// ______________________________________________________
package net.gdface.facedb.db;
import java.io.Serializable;
import java.util.Objects;
import gu.sql2java.BaseRow;
import com.facebook.swift.codec.ThriftStruct;
import com.facebook.swift.codec.ThriftField;
import com.facebook.swift.codec.ThriftField.Requiredness;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* ImageBean is a mapping of fd_image Table.
*
Meta Data Information (in progress):
*
* - comments: 图像信息存储表,用于存储系统中所有用到的图像数据,表中只包含图像基本信息
*
* @author guyadong
*/
@ThriftStruct
@ApiModel(description="图像信息存储表,用于存储系统中所有用到的图像数据,表中只包含图像基本信息")
public final class ImageBean extends BaseRow
implements Serializable,Constant
{
private static final long serialVersionUID = -5562592083876692784L;
/** comments:主键,图像md5检验码,同时也是从 fd_store 获取图像数据的key */
@ApiModelProperty(value = "主键,图像md5检验码,同时也是从 fd_store 获取图像数据的key" ,required=true ,dataType="String")
private String md5;
/** comments:图像格式,jpeg,png... */
@ApiModelProperty(value = "图像格式,jpeg,png..." ,dataType="String")
private String format;
/** comments:图像宽度 */
@ApiModelProperty(value = "图像宽度" ,required=true ,dataType="Integer")
private Integer width;
/** comments:图像高度 */
@ApiModelProperty(value = "图像高度" ,required=true ,dataType="Integer")
private Integer height;
/** comments:通道数 */
@ApiModelProperty(value = "通道数" ,dataType="Integer")
private Integer depth;
/** comments:图像中的人脸数目 */
@ApiModelProperty(value = "图像中的人脸数目" ,dataType="Integer")
private Integer faceNum;
/** comments:图像存储位置URL */
@ApiModelProperty(value = "图像存储位置URL" ,dataType="String")
private String location;
@ApiModelProperty(value = "update_time" ,dataType="Date")
private java.util.Date updateTime;
@ApiModelProperty(value = "create_time" ,dataType="Date")
private java.util.Date createTime;
/** columns modified flag */
@ApiModelProperty(value="columns modified flag",dataType="int",required=true)
private int modified;
/** columns initialized flag */
@ApiModelProperty(value="columns initialized flag",dataType="int",required=true)
private int initialized;
/** new record flag */
@ApiModelProperty(value="new record flag",dataType="boolean",required=true)
private boolean isNew;
@ThriftField(value=1,name="_new",requiredness=Requiredness.REQUIRED)
@Override
public boolean isNew()
{
return this.isNew;
}
/**
* Specifies to the object if it has been set as new.
*
* @param isNew the boolean value to be assigned to the isNew field
*/
@ThriftField()
@Override
public void setNew(boolean isNew)
{
this.isNew = isNew;
}
/**
* @return the modified status of columns
*/
@ThriftField(value=2,requiredness=Requiredness.REQUIRED)
@Override
public int getModified(){
return modified;
}
/**
* @param modified the modified status bit to be assigned to {@link #modified}
*/
@ThriftField()
@Override
public void setModified(int modified){
this.modified = modified;
}
/**
* @return the initialized status of columns
*/
@ThriftField(value=3,requiredness=Requiredness.REQUIRED)
@Override
public int getInitialized(){
return initialized;
}
/**
* @param initialized the initialized status bit to be assigned to {@link #initialized}
*/
@ThriftField()
@Override
public void setInitialized(int initialized){
this.initialized = initialized;
}
public ImageBean(){
reset();
}
/**
* construct a new instance filled with primary keys
* @param md5 PK# 1
*/
public ImageBean(String md5){
setMd5(md5);
}
/**
* Getter method for {@link #md5}.
* PRIMARY KEY.
* Meta Data Information (in progress):
*
* - full name: fd_image.md5
* - imported key: fd_face.image_md5
* - comments: 主键,图像md5检验码,同时也是从 fd_store 获取图像数据的key
* - NOT NULL
* - column size: 32
* - JDBC type returned by the driver: Types.CHAR
*
*
* @return the value of md5
*/
@ThriftField(value=4)
@JsonProperty("md5")
public String getMd5(){
return md5;
}
/**
* Setter method for {@link #md5}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to md5
*/
@ThriftField(name="md5")
@JsonProperty("md5")
public void setMd5(String newVal)
{
modified |= FD_IMAGE_ID_MD5_MASK;
initialized |= FD_IMAGE_ID_MD5_MASK;
if (Objects.equals(newVal, md5)) {
return;
}
md5 = newVal;
}
/**
* Determines if the md5 has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkMd5Modified()
{
return 0 != (modified & FD_IMAGE_ID_MD5_MASK);
}
/**
* Determines if the md5 has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkMd5Initialized()
{
return 0 != (initialized & FD_IMAGE_ID_MD5_MASK);
}
/**
* Getter method for {@link #format}.
* Meta Data Information (in progress):
*
* - full name: fd_image.format
* - comments: 图像格式,jpeg,png...
* - column size: 32
* - JDBC type returned by the driver: Types.VARCHAR
*
*
* @return the value of format
*/
@ThriftField(value=5)
@JsonProperty("format")
public String getFormat(){
return format;
}
/**
* Setter method for {@link #format}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value to be assigned to format
*/
@ThriftField(name="format")
@JsonProperty("format")
public void setFormat(String newVal)
{
modified |= FD_IMAGE_ID_FORMAT_MASK;
initialized |= FD_IMAGE_ID_FORMAT_MASK;
if (Objects.equals(newVal, format)) {
return;
}
format = newVal;
}
/**
* Determines if the format has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkFormatModified()
{
return 0 != (modified & FD_IMAGE_ID_FORMAT_MASK);
}
/**
* Determines if the format has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkFormatInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_FORMAT_MASK);
}
/**
* Getter method for {@link #width}.
* Meta Data Information (in progress):
*
* - full name: fd_image.width
* - comments: 图像宽度
* - NOT NULL
* - column size: 10
* - JDBC type returned by the driver: Types.INTEGER
*
*
* @return the value of width
*/
@ThriftField(value=6)
@JsonProperty("width")
public Integer getWidth(){
return width;
}
/**
* Setter method for {@link #width}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to width
*/
@ThriftField(name="width")
@JsonProperty("width")
public void setWidth(Integer newVal)
{
modified |= FD_IMAGE_ID_WIDTH_MASK;
initialized |= FD_IMAGE_ID_WIDTH_MASK;
if (Objects.equals(newVal, width)) {
return;
}
width = newVal;
}
/**
* Setter method for {@link #width}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to width
*/
@JsonIgnore
public void setWidth(int newVal)
{
setWidth(new Integer(newVal));
}
/**
* Determines if the width has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkWidthModified()
{
return 0 != (modified & FD_IMAGE_ID_WIDTH_MASK);
}
/**
* Determines if the width has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkWidthInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_WIDTH_MASK);
}
/**
* Getter method for {@link #height}.
* Meta Data Information (in progress):
*
* - full name: fd_image.height
* - comments: 图像高度
* - NOT NULL
* - column size: 10
* - JDBC type returned by the driver: Types.INTEGER
*
*
* @return the value of height
*/
@ThriftField(value=7)
@JsonProperty("height")
public Integer getHeight(){
return height;
}
/**
* Setter method for {@link #height}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to height
*/
@ThriftField(name="height")
@JsonProperty("height")
public void setHeight(Integer newVal)
{
modified |= FD_IMAGE_ID_HEIGHT_MASK;
initialized |= FD_IMAGE_ID_HEIGHT_MASK;
if (Objects.equals(newVal, height)) {
return;
}
height = newVal;
}
/**
* Setter method for {@link #height}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to height
*/
@JsonIgnore
public void setHeight(int newVal)
{
setHeight(new Integer(newVal));
}
/**
* Determines if the height has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkHeightModified()
{
return 0 != (modified & FD_IMAGE_ID_HEIGHT_MASK);
}
/**
* Determines if the height has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkHeightInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_HEIGHT_MASK);
}
/**
* Getter method for {@link #depth}.
* Meta Data Information (in progress):
*
* - full name: fd_image.depth
* - comments: 通道数
* - default value: '0'
* - NOT NULL
* - column size: 10
* - JDBC type returned by the driver: Types.INTEGER
*
*
* @return the value of depth
*/
@ThriftField(value=8)
@JsonProperty("depth")
public Integer getDepth(){
return depth;
}
/**
* Setter method for {@link #depth}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to depth
*/
@ThriftField(name="depth")
@JsonProperty("depth")
public void setDepth(Integer newVal)
{
modified |= FD_IMAGE_ID_DEPTH_MASK;
initialized |= FD_IMAGE_ID_DEPTH_MASK;
if (Objects.equals(newVal, depth)) {
return;
}
depth = newVal;
}
/**
* Setter method for {@link #depth}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to depth
*/
@JsonIgnore
public void setDepth(int newVal)
{
setDepth(new Integer(newVal));
}
/**
* Determines if the depth has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkDepthModified()
{
return 0 != (modified & FD_IMAGE_ID_DEPTH_MASK);
}
/**
* Determines if the depth has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkDepthInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_DEPTH_MASK);
}
/**
* Getter method for {@link #faceNum}.
* Meta Data Information (in progress):
*
* - full name: fd_image.face_num
* - comments: 图像中的人脸数目
* - default value: '0'
* - NOT NULL
* - column size: 10
* - JDBC type returned by the driver: Types.INTEGER
*
*
* @return the value of faceNum
*/
@ThriftField(value=9)
@JsonProperty("faceNum")
public Integer getFaceNum(){
return faceNum;
}
/**
* Setter method for {@link #faceNum}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to faceNum
*/
@ThriftField(name="faceNum")
@JsonProperty("faceNum")
public void setFaceNum(Integer newVal)
{
modified |= FD_IMAGE_ID_FACE_NUM_MASK;
initialized |= FD_IMAGE_ID_FACE_NUM_MASK;
if (Objects.equals(newVal, faceNum)) {
return;
}
faceNum = newVal;
}
/**
* Setter method for {@link #faceNum}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to faceNum
*/
@JsonIgnore
public void setFaceNum(int newVal)
{
setFaceNum(new Integer(newVal));
}
/**
* Determines if the faceNum has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkFaceNumModified()
{
return 0 != (modified & FD_IMAGE_ID_FACE_NUM_MASK);
}
/**
* Determines if the faceNum has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkFaceNumInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_FACE_NUM_MASK);
}
/**
* Getter method for {@link #location}.
* Meta Data Information (in progress):
*
* - full name: fd_image.location
* - comments: 图像存储位置URL
* - column size: 64
* - JDBC type returned by the driver: Types.VARCHAR
*
*
* @return the value of location
*/
@ThriftField(value=10)
@JsonProperty("location")
public String getLocation(){
return location;
}
/**
* Setter method for {@link #location}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value to be assigned to location
*/
@ThriftField(name="location")
@JsonProperty("location")
public void setLocation(String newVal)
{
modified |= FD_IMAGE_ID_LOCATION_MASK;
initialized |= FD_IMAGE_ID_LOCATION_MASK;
if (Objects.equals(newVal, location)) {
return;
}
location = newVal;
}
/**
* Determines if the location has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkLocationModified()
{
return 0 != (modified & FD_IMAGE_ID_LOCATION_MASK);
}
/**
* Determines if the location has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkLocationInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_LOCATION_MASK);
}
/**
* Getter method for {@link #updateTime}.
* Meta Data Information (in progress):
*
* - full name: fd_image.update_time
* - default value: 'CURRENT_TIMESTAMP'
* - NOT NULL
* - column size: 19
* - JDBC type returned by the driver: Types.TIMESTAMP
*
*
* @return the value of updateTime
*/
@JsonIgnore
public java.util.Date getUpdateTime(){
return updateTime;
}
/**
* use Long to represent date type for thrift:swift support
* @see #getUpdateTime()
*/
@ThriftField(value=11,name="updateTime")
@JsonProperty("updateTime")
public Long readUpdateTime(){
return null == updateTime ? null:updateTime.getTime();
}
/**
* Setter method for {@link #updateTime}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to updateTime
*/
@JsonIgnore
public void setUpdateTime(java.util.Date newVal)
{
modified |= FD_IMAGE_ID_UPDATE_TIME_MASK;
initialized |= FD_IMAGE_ID_UPDATE_TIME_MASK;
if (Objects.equals(newVal, updateTime)) {
return;
}
updateTime = newVal;
}
/**
* setter for thrift:swift OR jackson support
* without modification for {@link #modified} and {@link #initialized}
* NOTE:DO NOT use the method in your code
*/
@ThriftField(name="updateTime")
@JsonProperty("updateTime")
public void writeUpdateTime(Long newVal){
setUpdateTime(null == newVal?null:new java.util.Date(newVal));
}
/**
* Setter method for {@link #updateTime}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to updateTime
*/
@JsonIgnore
public void setUpdateTime(long newVal)
{
setUpdateTime(new java.util.Date(newVal));
}
/**
* Setter method for {@link #updateTime}.
* @param newVal the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
*/
@JsonIgnore
public void setUpdateTime(Long newVal)
{
setUpdateTime(null == newVal ? null : new java.util.Date(newVal));
}
/**
* Determines if the updateTime has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkUpdateTimeModified()
{
return 0 != (modified & FD_IMAGE_ID_UPDATE_TIME_MASK);
}
/**
* Determines if the updateTime has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkUpdateTimeInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_UPDATE_TIME_MASK);
}
/**
* Getter method for {@link #createTime}.
* Meta Data Information (in progress):
*
* - full name: fd_image.create_time
* - default value: 'CURRENT_TIMESTAMP'
* - NOT NULL
* - column size: 19
* - JDBC type returned by the driver: Types.TIMESTAMP
*
*
* @return the value of createTime
*/
@JsonIgnore
public java.util.Date getCreateTime(){
return createTime;
}
/**
* use Long to represent date type for thrift:swift support
* @see #getCreateTime()
*/
@ThriftField(value=12,name="createTime")
@JsonProperty("createTime")
public Long readCreateTime(){
return null == createTime ? null:createTime.getTime();
}
/**
* Setter method for {@link #createTime}.
* The new value is set only if equals() says it is different,
* or if one of either the new value or the current value is null.
* In case the new value is different, it is set and the field is marked as 'modified'.
*
* @param newVal the new value( NOT NULL) to be assigned to createTime
*/
@JsonIgnore
public void setCreateTime(java.util.Date newVal)
{
modified |= FD_IMAGE_ID_CREATE_TIME_MASK;
initialized |= FD_IMAGE_ID_CREATE_TIME_MASK;
if (Objects.equals(newVal, createTime)) {
return;
}
createTime = newVal;
}
/**
* setter for thrift:swift OR jackson support
* without modification for {@link #modified} and {@link #initialized}
* NOTE:DO NOT use the method in your code
*/
@ThriftField(name="createTime")
@JsonProperty("createTime")
public void writeCreateTime(Long newVal){
setCreateTime(null == newVal?null:new java.util.Date(newVal));
}
/**
* Setter method for {@link #createTime}.
* Convenient for those who do not want to deal with Objects for primary types.
*
* @param newVal the new value to be assigned to createTime
*/
@JsonIgnore
public void setCreateTime(long newVal)
{
setCreateTime(new java.util.Date(newVal));
}
/**
* Setter method for {@link #createTime}.
* @param newVal the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
*/
@JsonIgnore
public void setCreateTime(Long newVal)
{
setCreateTime(null == newVal ? null : new java.util.Date(newVal));
}
/**
* Determines if the createTime has been modified.
*
* @return true if the field has been modified, false if the field has not been modified
*/
public boolean checkCreateTimeModified()
{
return 0 != (modified & FD_IMAGE_ID_CREATE_TIME_MASK);
}
/**
* Determines if the createTime has been initialized.
*
* It is useful to determine if a field is null on purpose or just because it has not been initialized.
*
* @return true if the field has been initialized, false otherwise
*/
public boolean checkCreateTimeInitialized()
{
return 0 != (initialized & FD_IMAGE_ID_CREATE_TIME_MASK);
}
@Override
public boolean beModified()
{
return 0 != modified;
}
@Override
public boolean isModified(int columnID){
return columnID>=0 && columnID < metaData.columnCount && 0 != (modified & (1 << columnID));
}
@Override
public boolean isInitialized(int columnID){
return columnID>=0 && columnID < metaData.columnCount && 0 != (initialized & (1 << columnID));
}
@Override
public void resetIsModified()
{
modified = 0;
}
@Override
public void resetPrimaryKeysModified()
{
modified &= (~(FD_IMAGE_ID_MD5_MASK));
}
/**
* Resets columns modification status except primary keys to 'not modified'.
*/
public void resetModifiedExceptPrimaryKeys()
{
modified &= (~(FD_IMAGE_ID_FORMAT_MASK |
FD_IMAGE_ID_WIDTH_MASK |
FD_IMAGE_ID_HEIGHT_MASK |
FD_IMAGE_ID_DEPTH_MASK |
FD_IMAGE_ID_FACE_NUM_MASK |
FD_IMAGE_ID_LOCATION_MASK |
FD_IMAGE_ID_UPDATE_TIME_MASK |
FD_IMAGE_ID_CREATE_TIME_MASK));
}
/** reset all fields to initial value, equal to a new bean */
public void reset(){
this.md5 = null;
this.format = null;
this.width = null;
this.height = null;
/* DEFAULT:'0'*/
this.depth = new Integer(0);
/* DEFAULT:'0'*/
this.faceNum = new Integer(0);
this.location = null;
/* DEFAULT:'CURRENT_TIMESTAMP'*/
this.updateTime = null;
/* DEFAULT:'CURRENT_TIMESTAMP'*/
this.createTime = null;
this.isNew = true;
this.modified = 0;
this.initialized = (FD_IMAGE_ID_DEPTH_MASK | FD_IMAGE_ID_FACE_NUM_MASK);
}
@Override
public ImageBean clone(){
return (ImageBean) super.clone();
}
public static final Builder builder(){
return new Builder().reset();
}
/**
* a builder for ImageBean,the template instance is thread local variable
* a instance of Builder can be reused.
*/
public static final class Builder{
/** ImageBean instance used for template to create new ImageBean instance. */
static final ThreadLocal TEMPLATE = new ThreadLocal(){
@Override
protected ImageBean initialValue() {
return new ImageBean();
}};
private Builder() {}
/**
* reset the bean as template
* @see ImageBean#reset()
*/
public Builder reset(){
TEMPLATE.get().reset();
return this;
}
/** set a bean as template,must not be {@code null} */
public Builder template(ImageBean bean){
if(null == bean){
throw new NullPointerException();
}
TEMPLATE.set(bean);
return this;
}
/** return a clone instance of {@link #TEMPLATE}*/
public ImageBean build(){
return TEMPLATE.get().clone();
}
/**
* fill the field : fd_image.md5
* @param md5 主键,图像md5检验码,同时也是从 fd_store 获取图像数据的key
* @see ImageBean#getMd5()
* @see ImageBean#setMd5(String)
*/
public Builder md5(String md5){
TEMPLATE.get().setMd5(md5);
return this;
}
/**
* fill the field : fd_image.format
* @param format 图像格式,jpeg,png...
* @see ImageBean#getFormat()
* @see ImageBean#setFormat(String)
*/
public Builder format(String format){
TEMPLATE.get().setFormat(format);
return this;
}
/**
* fill the field : fd_image.width
* @param width 图像宽度
* @see ImageBean#getWidth()
* @see ImageBean#setWidth(Integer)
*/
public Builder width(Integer width){
TEMPLATE.get().setWidth(width);
return this;
}
/**
* fill the field : fd_image.height
* @param height 图像高度
* @see ImageBean#getHeight()
* @see ImageBean#setHeight(Integer)
*/
public Builder height(Integer height){
TEMPLATE.get().setHeight(height);
return this;
}
/**
* fill the field : fd_image.depth
* @param depth 通道数
* @see ImageBean#getDepth()
* @see ImageBean#setDepth(Integer)
*/
public Builder depth(Integer depth){
TEMPLATE.get().setDepth(depth);
return this;
}
/**
* fill the field : fd_image.face_num
* @param faceNum 图像中的人脸数目
* @see ImageBean#getFaceNum()
* @see ImageBean#setFaceNum(Integer)
*/
public Builder faceNum(Integer faceNum){
TEMPLATE.get().setFaceNum(faceNum);
return this;
}
/**
* fill the field : fd_image.location
* @param location 图像存储位置URL
* @see ImageBean#getLocation()
* @see ImageBean#setLocation(String)
*/
public Builder location(String location){
TEMPLATE.get().setLocation(location);
return this;
}
/**
* fill the field : fd_image.update_time
* @param updateTime
* @see ImageBean#getUpdateTime()
* @see ImageBean#setUpdateTime(java.util.Date)
*/
public Builder updateTime(java.util.Date updateTime){
TEMPLATE.get().setUpdateTime(updateTime);
return this;
}
/**
* fill the field : fd_image.create_time
* @param createTime
* @see ImageBean#getCreateTime()
* @see ImageBean#setCreateTime(java.util.Date)
*/
public Builder createTime(java.util.Date createTime){
TEMPLATE.get().setCreateTime(createTime);
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy