@Override
  protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    switch (setField_) {
      case SHORT_VALUE:
        Short short_value = (Short)value_;
        oprot.writeI16(short_value);
        return;
      case INT_VALUE:
        Integer int_value = (Integer)value_;
        oprot.writeI32(int_value);
        return;
      case LONG_VALUE:
        Long long_value = (Long)value_;
        oprot.writeI64(long_value);
        return;
      case DOUBLE_VALUE:
        Double double_value = (Double)value_;
        oprot.writeDouble(double_value);
        return;
      case STRING_VALUE:
        String string_value = (String)value_;
        oprot.writeString(string_value);
        return;
      case BYTES_VALUE:
        ByteBuffer bytes_value = (ByteBuffer)value_;
        oprot.writeBinary(bytes_value);
        return;
      default:
        throw new IllegalStateException("Cannot write union with unknown field " + setField_);
    }
  }