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 KVGetRequest();
                            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_get(KVGetRequest req)
            {
                oprot_.WriteMessageBegin(new TMessage("get", TMessageType.Call, seqid_));
                get_args args = new get_args();

                args.Req = req;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
                oprot_.Transport.Flush();
            }
 public KVGetResponse get(KVGetRequest req)
 {
     send_get(req);
     return(recv_get());
 }