@Override
  public Message messageFromObject() {
    Cell.Builder builder = Cell.newBuilder();
    builder.setColumn(UnsafeByteOperations.unsafeWrap(getColumn()));
    if (valueLength == MAGIC_LENGTH) {
      builder.setData(UnsafeByteOperations.unsafeWrap(getValue()));
    } else {
      builder.setData(UnsafeByteOperations.unsafeWrap(value, valueOffset, valueLength));
    }
    if (hasUserTimestamp()) {
      builder.setTimestamp(getTimestamp());
    }
    return builder.build();
  }
@param value the value to set
hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/CellModel.java