| 2805 | } |
| 2806 | |
| 2807 | func (p *TSOpenSessionReq) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2808 | if err := oprot.WriteFieldBegin(ctx, "zoneId", thrift.STRING, 2); err != nil { |
| 2809 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:zoneId: ", p), err) } |
| 2810 | if err := oprot.WriteString(ctx, string(p.ZoneId)); err != nil { |
| 2811 | return thrift.PrependError(fmt.Sprintf("%T.zoneId (2) field write error: ", p), err) } |
| 2812 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2813 | return thrift.PrependError(fmt.Sprintf("%T write field end error 2:zoneId: ", p), err) } |
| 2814 | return err |
| 2815 | } |
| 2816 | |
| 2817 | func (p *TSOpenSessionReq) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2818 | if err := oprot.WriteFieldBegin(ctx, "username", thrift.STRING, 3); err != nil { |