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 AppendLogRequest(); 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_appendLog(AppendLogRequest req) { oprot_.WriteMessageBegin(new TMessage("appendLog", TMessageType.Call, seqid_)); appendLog_args args = new appendLog_args(); args.Req = req; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public AppendLogResponse appendLog(AppendLogRequest req) { send_appendLog(req); return(recv_appendLog()); }