public Index recv_add_index() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } add_index_result result = new add_index_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, "add_index failed: unknown result"); }
public void add_index_Process(int seqid, TProtocol iprot, TProtocol oprot) { add_index_args args = new add_index_args(); args.Read(iprot); iprot.ReadMessageEnd(); add_index_result result = new add_index_result(); try { result.Success = iface_.add_index(args.New_index, args.Index_table); } catch (InvalidObjectException o1) { result.O1 = o1; } catch (AlreadyExistsException o2) { result.O2 = o2; } catch (MetaException o3) { result.O3 = o3; } oprot.WriteMessageBegin(new TMessage("add_index", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }