public void getRegionInfo_Process(int seqid, TProtocol iprot, TProtocol oprot) { getRegionInfo_args args = new getRegionInfo_args(); args.Read(iprot); iprot.ReadMessageEnd(); getRegionInfo_result result = new getRegionInfo_result(); try { result.Success = iface_.getRegionInfo(args.Row); } catch (IOError io) { result.Io = io; } oprot.WriteMessageBegin(new TMessage("getRegionInfo", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public TRegionInfo recv_getRegionInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getRegionInfo_result result = new getRegionInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.io) { throw result.Io; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getRegionInfo failed: unknown result"); }