public bool recv_foo()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     foo_result result = new foo_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "foo failed: unknown result");
 }
 public void recv_foo()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     foo_result result = new foo_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     return;
 }