func (p *Manylists) writeField2(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.I16list != nil { if p.IsSetI16list() { err = oprot.WriteFieldBegin("i16list", thrift.LIST, 2) if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "i16list", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.I16, len(p.I16list)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter78 := range p.I16list { err = oprot.WriteI16(int16(Iter78)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Iter78", "", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(2, "i16list", p.ThriftName(), err) } } } return err }
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) writeField6(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.Binarstructymap != nil { err = oprot.WriteFieldBegin("binarstructymap", thrift.MAP, 6) if err != nil { return thrift.NewTProtocolExceptionWriteField(6, "binarstructymap", p.ThriftName(), err) } err = oprot.WriteMapBegin(thrift.STRING, thrift.STRUCT, len(p.Binarstructymap)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "map", err) } for Kiter91, Viter92 := range p.Binarstructymap { err = oprot.WriteString(Kiter91) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Kiter91", "", err) } err = Viter92.Write(oprot) if err != nil { return thrift.NewTProtocolExceptionWriteStruct("intstruct", err) } } err = oprot.WriteMapEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "map", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(6, "binarstructymap", p.ThriftName(), err) } } return err }
func (p *Manylists) writeField1(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.Bytelist != nil { err = oprot.WriteFieldBegin("bytelist", thrift.LIST, 1) if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "bytelist", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.BYTE, len(p.Bytelist)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter77 := range p.Bytelist { err = oprot.WriteByte(int8(Iter77)) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Iter77", "", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(1, "bytelist", p.ThriftName(), err) } } return err }
func (p *Manylists) readField6(iprot thrift.TProtocol) (err thrift.TProtocolException) { _etype62, _size59, err := iprot.ReadListBegin() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "p.Listoflist", "", err) } _ = _etype62 p.Listoflist = make([][]int32, _size59, _size59) for i := 0; i < _size59; i++ { _etype70, _size67, err := iprot.ReadListBegin() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "_elem64", "", err) } _ = _etype70 _elem64 := make([]int32, _size67, _size67) for i := 0; i < _size67; i++ { v73, err74 := iprot.ReadI32() if err74 != nil { return thrift.NewTProtocolExceptionReadField(0, "_elem72", "", err74) } _elem72 := v73 _elem64[i] = _elem72 } err = iprot.ReadListEnd() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "", "list", err) } p.Listoflist[i] = _elem64 } err = iprot.ReadListEnd() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "", "list", err) } return err }
func (p *Manylists) writeField4(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.Stringlist != nil { err = oprot.WriteFieldBegin("stringlist", thrift.LIST, 4) if err != nil { return thrift.NewTProtocolExceptionWriteField(4, "stringlist", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.STRING, len(p.Stringlist)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter80 := range p.Stringlist { err = oprot.WriteString(Iter80) if err != nil { return thrift.NewTProtocolExceptionWriteField(0, "Iter80", "", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(4, "stringlist", p.ThriftName(), err) } } return err }
func (p *MyMethodResult) Read(iprot thrift.TProtocol) (err thrift.TProtocolException) { _, err = iprot.ReadStructBegin() if err != nil { return thrift.NewTProtocolExceptionReadStruct(p.ThriftName(), err) } for { fieldName, fieldTypeId, fieldId, err := iprot.ReadFieldBegin() if fieldId < 0 { fieldId = int16(tstructMyMethodResult.FieldIdFromFieldName(fieldName)) fieldTypeId = tstructMyMethodResult.FieldFromFieldName(fieldName).TypeId() } if err != nil { return thrift.NewTProtocolExceptionReadField(int(fieldId), fieldName, p.ThriftName(), err) } if fieldTypeId == thrift.STOP { break } switch fieldId { default: err = iprot.Skip(fieldTypeId) if err != nil { return thrift.NewTProtocolExceptionReadField(int(fieldId), fieldName, p.ThriftName(), err) } } //switch err = iprot.ReadFieldEnd() if err != nil { return thrift.NewTProtocolExceptionReadField(int(fieldId), fieldName, p.ThriftName(), err) } } err = iprot.ReadStructEnd() if err != nil { return thrift.NewTProtocolExceptionReadStruct(p.ThriftName(), err) } return err }
func (p *Manylists) readField7(iprot thrift.TProtocol) (err thrift.TProtocolException) { v75, err76 := iprot.ReadI32() if err76 != nil { return thrift.NewTProtocolExceptionReadField(7, "optionalint", p.ThriftName(), err76) } p.Optionalint = v75 return err }
func (p *AddResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) { v46, err47 := iprot.ReadI32() if err47 != nil { return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err47) } p.Success = v46 return err }
func (p *AddArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) { v44, err45 := iprot.ReadI32() if err45 != nil { return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err45) } p.Num2 = v44 return err }
func (p *AddArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v42, err43 := iprot.ReadI32() if err43 != nil { return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err43) } p.Num1 = v42 return err }
func (p *CalculateResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) { v53, err54 := iprot.ReadI32() if err54 != nil { return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err54) } p.Success = v53 return err }
func (p *CalculateArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v48, err49 := iprot.ReadI32() if err49 != nil { return thrift.NewTProtocolExceptionReadField(1, "logid", p.ThriftName(), err49) } p.Logid = v48 return err }
func (p *MulResult) readField0(iprot thrift.TProtocol) (err thrift.TProtocolException) { v23, err24 := iprot.ReadI32() if err24 != nil { return thrift.NewTProtocolExceptionReadField(0, "success", p.ThriftName(), err24) } p.Success = v23 return err }
func (p *MulArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) { v21, err22 := iprot.ReadI32() if err22 != nil { return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err22) } p.Num2 = v21 return err }
func (p *InvalidOperation) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) { v10, err11 := iprot.ReadString() if err11 != nil { return thrift.NewTProtocolExceptionReadField(2, "why", p.ThriftName(), err11) } p.Why = v10 return err }
func (p *MulArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v19, err20 := iprot.ReadI32() if err20 != nil { return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err20) } p.Num1 = v19 return err }
func (p *Work) readField4(iprot thrift.TProtocol) (err thrift.TProtocolException) { v6, err7 := iprot.ReadString() if err7 != nil { return thrift.NewTProtocolExceptionReadField(4, "comment", p.ThriftName(), err7) } p.Comment = v6 return err }
func (p *InvalidOperation) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v8, err9 := iprot.ReadI32() if err9 != nil { return thrift.NewTProtocolExceptionReadField(1, "what", p.ThriftName(), err9) } p.What = v8 return err }
func (p *Work) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) { v2, err3 := iprot.ReadI32() if err3 != nil { return thrift.NewTProtocolExceptionReadField(2, "num2", p.ThriftName(), err3) } p.Num2 = v2 return err }
func (p *Work) readField3(iprot thrift.TProtocol) (err thrift.TProtocolException) { v4, err5 := iprot.ReadI32() if err5 != nil { return thrift.NewTProtocolExceptionReadField(3, "op", p.ThriftName(), err5) } p.Op = Operation(v4) return err }
func (p *Ping) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v0, err1 := iprot.ReadI32() if err1 != nil { return thrift.NewTProtocolExceptionReadField(1, "timestamp", p.ThriftName(), err1) } p.Timestamp = v0 return err }
func (p *Work) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v0, err1 := iprot.ReadI32() if err1 != nil { return thrift.NewTProtocolExceptionReadField(1, "num1", p.ThriftName(), err1) } p.Num1 = v0 return err }
func (p *MyMethodArgs) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v1125, err1126 := iprot.ReadI64() if err1126 != nil { return thrift.NewTProtocolExceptionReadField(1, "fourth", p.ThriftName(), err1126) } p.Fourth = v1125 return err }
func (p *MyMethodArgs) readField2(iprot thrift.TProtocol) (err thrift.TProtocolException) { v1123, err1124 := iprot.ReadI32() if err1124 != nil { return thrift.NewTProtocolExceptionReadField(2, "third", p.ThriftName(), err1124) } p.Third = v1123 return err }
func (p *MyMethodArgs) readField3(iprot thrift.TProtocol) (err thrift.TProtocolException) { v1121, err1122 := iprot.ReadI16() if err1122 != nil { return thrift.NewTProtocolExceptionReadField(3, "second", p.ThriftName(), err1122) } p.Second = v1121 return err }
func (p *MyMethodArgs) readField4(iprot thrift.TProtocol) (err thrift.TProtocolException) { v1119, err1120 := iprot.ReadString() if err1120 != nil { return thrift.NewTProtocolExceptionReadField(4, "first", p.ThriftName(), err1120) } p.First = v1119 return err }
func (p *Intstruct) readField1(iprot thrift.TProtocol) (err thrift.TProtocolException) { v0, err1 := iprot.ReadI32() if err1 != nil { return thrift.NewTProtocolExceptionReadField(1, "ifield", p.ThriftName(), err1) } p.Ifield = v0 return err }
func (p *Manymaps) readField5(iprot thrift.TProtocol) (err thrift.TProtocolException) { _ktype57, _vtype58, _size56, err := iprot.ReadMapBegin() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "p.Binarymap", "", err) } _, _ = _ktype57, _vtype58 p.Binarymap = make(map[string]string, _size56) for i := 0; i < _size56; i++ { v63, err64 := iprot.ReadString() if err64 != nil { return thrift.NewTProtocolExceptionReadField(0, "_key61", "", err64) } _key61 := v63 v65, err66 := iprot.ReadString() if err66 != nil { return thrift.NewTProtocolExceptionReadField(0, "_val62", "", err66) } _val62 := v65 p.Binarymap[_key61] = _val62 } err = iprot.ReadMapEnd() if err != nil { return thrift.NewTProtocolExceptionReadField(-1, "", "map", err) } return err }
func (p *Manylists) writeField5(oprot thrift.TProtocol) (err thrift.TProtocolException) { if p.Structlist != nil { err = oprot.WriteFieldBegin("structlist", thrift.LIST, 5) if err != nil { return thrift.NewTProtocolExceptionWriteField(5, "structlist", p.ThriftName(), err) } err = oprot.WriteListBegin(thrift.STRUCT, len(p.Structlist)) if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } for _, Iter81 := range p.Structlist { err = Iter81.Write(oprot) if err != nil { return thrift.NewTProtocolExceptionWriteStruct("intstruct", err) } } err = oprot.WriteListEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(-1, "", "list", err) } err = oprot.WriteFieldEnd() if err != nil { return thrift.NewTProtocolExceptionWriteField(5, "structlist", p.ThriftName(), err) } } return err }