func (p *Manylists) writeField3(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.I32list != nil { err = oprot.WriteFieldBegin("i32list", thrift.LIST, 3) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "i32list", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.I32, len(p.I32list)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter79 := range p.I32list { err = oprot.WriteI32(int32(Iter79)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Iter79", "", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "i32list", p.ThriftName(), err) } } return err }
func (p *Manymaps) writeField3(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.I32map != nil { err = oprot.WriteFieldBegin("i32map", thrift.MAP, 3) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "i32map", p.ThriftName(), err) } err = oprot.WriteMapBegin(thrift.I32, thrift.STRING, len(p.I32map)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "map", err) } for Kiter85, Viter86 := range p.I32map { err = oprot.WriteI32(int32(Kiter85)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Kiter85", "", err) } err = oprot.WriteString(Viter86) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Viter86", "", err) } } err = oprot.WriteMapEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "map", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "i32map", p.ThriftName(), err) } } return err }
func (p *InvalidOperation) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("what", thrift.I32, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "what", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.What)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "what", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "what", p.ThriftName(), err) } return err }
func (p *Work) writeField2(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("num2", thrift.I32, 2) if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "num2", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Num2)) if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "num2", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "num2", p.ThriftName(), err) } return err }
func (p *Ping) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("timestamp", thrift.I32, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "timestamp", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Timestamp)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "timestamp", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "timestamp", p.ThriftName(), err) } return err }
func (p *MyMethodArgs) writeField2(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("third", thrift.I32, 2) if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "third", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Third)) if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "third", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "third", p.ThriftName(), err) } return err }
func (p *Intstruct) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("ifield", thrift.I32, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "ifield", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Ifield)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "ifield", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "ifield", p.ThriftName(), err) } return err }
func (p *AddArgs) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("num1", thrift.I32, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "num1", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Num1)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "num1", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "num1", p.ThriftName(), err) } return err }
func (p *CalculateResult) writeField0(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("success", thrift.I32, 0) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Success)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "success", p.ThriftName(), err) } return err }
func (p *CalculateArgs) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { err = oprot.WriteFieldBegin("logid", thrift.I32, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "logid", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Logid)) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "logid", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "logid", p.ThriftName(), err) } return err }
func (p *Work) writeField3(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.IsSetOp() { err = oprot.WriteFieldBegin("op", thrift.I32, 3) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "op", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Op)) if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "op", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(3, "op", p.ThriftName(), err) } } return err }
func (p *Manylists) writeField7(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.IsSetOptionalint() { err = oprot.WriteFieldBegin("optionalint", thrift.I32, 7) if err != nil { return thrift.NewTProtocolExceptionWriteField(7, "optionalint", p.ThriftName(), err) } err = oprot.WriteI32(int32(p.Optionalint)) if err != nil { return thrift.NewTProtocolExceptionWriteField(7, "optionalint", p.ThriftName(), err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(7, "optionalint", p.ThriftName(), err) } } return err }
func (p *Manylists) writeField6(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.Listoflist != nil { err = oprot.WriteFieldBegin("listoflist", thrift.LIST, 6) if err != nil { return thrift.NewTProtocolExceptionWriteField(6, "listoflist", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.LIST, len(p.Listoflist)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter82 := range p.Listoflist { err = oprot.WriteListBegin(thrift.I32, len(Iter82)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter83 := range Iter82 { err = oprot.WriteI32(int32(Iter83)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Iter83", "", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(6, "listoflist", p.ThriftName(), err) } } return err }