Column implements ProtoObject<ColumnProto>, GsonObject { @Override public ColumnProto getProto() { ColumnProto.Builder builder = ColumnProto.newBuilder(); builder .setName(this.name) .setDataType(this.typeDesc.getDataType()); return builder.build(); } Column(String name, TypeDesc typeDesc);  Column(String name, DataType dataType);  Column(String name, TajoDataTypes.Type type);  Column(String name, TajoDataTypes.Type type, int typeLength);  Column(ColumnProto proto); boolean hasQualifier(); String getQualifiedName(); String getQualifier(); String getSimpleName(); TypeDesc getTypeDesc(); DataType getDataType(); @Override boolean equals(Object o); int hashCode(); @Override ColumnProto getProto(); String toString(); @Override String toJson();  }
@Test public final void testToProto() { Column column = new Column(field1.getProto()); CatalogProtos.ColumnProto proto = column.getProto(); Column fromProto = new Column(proto); assertEquals(column, fromProto); }