package com.alipay.api.domain;

import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;

import java.util.List;

/**
 * 表格ocr结构
 *
 * @author auto create
 * @since 1.0, 2018-07-04 14:04:10
 */
public class AiOcrTableContext extends AlipayObject {

	private static final long serialVersionUID = 3651155843342439311L;

	/**
	 * one past end column index(单元格所占的列数(colspan)为ex - sx)
	 */
	@ApiField("ex")
	private Long ex;

	/**
	 * one past end row index(单元格所占的行数(rowspan)为ey - sy)
	 */
	@ApiField("ey")
	private Long ey;

	/**
	 * cell height,图片上单元格的高度
	 */
	@ApiField("height")
	private Long height;

	/**
	 * start from column(单元格的起始列id)
	 */
	@ApiField("sx")
	private Long sx;

	/**
	 * start row(单元格的起始行id)
	 */
	@ApiField("sy")
	private Long sy;

	/**
	 * 表格文字内容
	 */
	@ApiListField("text")
	@ApiField("string")
	private List<String> text;

	/**
	 * 类型
	 */
	@ApiField("type")
	private String type;

	/**
	 * cell width，图片上单元格的宽度
	 */
	@ApiField("width")
	private Long width;

	public Long getEx() {
		return this.ex;
	}

	public void setEx(Long ex) {
		this.ex = ex;
	}

	public Long getEy() {
		return this.ey;
	}

	public void setEy(Long ey) {
		this.ey = ey;
	}

	public Long getHeight() {
		return this.height;
	}

	public void setHeight(Long height) {
		this.height = height;
	}

	public Long getSx() {
		return this.sx;
	}

	public void setSx(Long sx) {
		this.sx = sx;
	}

	public Long getSy() {
		return this.sy;
	}

	public void setSy(Long sy) {
		this.sy = sy;
	}

	public List<String> getText() {
		return this.text;
	}

	public void setText(List<String> text) {
		this.text = text;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getWidth() {
		return this.width;
	}

	public void setWidth(Long width) {
		this.width = width;
	}

}
