public List<FieldSchema> recv_get_fields() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } get_fields_result result = new get_fields_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.o1) { throw result.O1; } if (result.__isset.o2) { throw result.O2; } if (result.__isset.o3) { throw result.O3; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "get_fields failed: unknown result"); }
public void get_fields_Process(int seqid, TProtocol iprot, TProtocol oprot) { get_fields_args args = new get_fields_args(); args.Read(iprot); iprot.ReadMessageEnd(); get_fields_result result = new get_fields_result(); try { result.Success = iface_.get_fields(args.Db_name, args.Table_name); } catch (MetaException o1) { result.O1 = o1; } catch (UnknownTableException o2) { result.O2 = o2; } catch (UnknownDBException o3) { result.O3 = o3; } oprot.WriteMessageBegin(new TMessage("get_fields", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }