| 2795 | } |
| 2796 | |
| 2797 | func (p *TSOpenSessionReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2798 | if err := oprot.WriteFieldBegin(ctx, "client_protocol", thrift.I32, 1); err != nil { |
| 2799 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:client_protocol: ", p), err) } |
| 2800 | if err := oprot.WriteI32(ctx, int32(p.ClientProtocol)); err != nil { |
| 2801 | return thrift.PrependError(fmt.Sprintf("%T.client_protocol (1) field write error: ", p), err) } |
| 2802 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2803 | return thrift.PrependError(fmt.Sprintf("%T write field end error 1:client_protocol: ", p), err) } |
| 2804 | return err |
| 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 { |