code: @Override
  	public void write(TProtocol oprot) throws TException {
  		if (!"org.apache.thrift.scheme.StandardScheme".equals(oprot.getScheme().getName()))
  			throw new TApplicationException("Service scheme must be 'org.apache.thrift.scheme.StandardScheme' !");
  		oprot.writeStructBegin(getTStruct());
  		if (str != null) {
  			oprot.writeFieldBegin(new TField("value", TType.STRING, (short) 0));
  			oprot.writeString(str);
  			oprot.writeFieldEnd();
  		}
  		oprot.writeFieldStop();
  		oprot.writeStructEnd();
  	}
docs: 写入操作