public void Read(TProtocol iprot)
            {
                TField field;

                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 1:
                        if (field.Type == TType.Struct)
                        {
                            this.req = new KVPutRequest();
                            this.req.Read(iprot);
                            this.__isset.req = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
            public void send_put(KVPutRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("put", TMessageType.Call, seqid_));
                put_args args = new put_args();

                args.Req = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
 public ExecResponse put(KVPutRequest req)
 {
     send_put(req);
     return(recv_put());
 }