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 }
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 *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 *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) 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) 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 }