| 2495 | } |
| 2496 | |
| 2497 | func (p *TSOpenSessionResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2498 | if err := oprot.WriteFieldBegin(ctx, "serverProtocolVersion", thrift.I32, 2); err != nil { |
| 2499 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:serverProtocolVersion: ", p), err) } |
| 2500 | if err := oprot.WriteI32(ctx, int32(p.ServerProtocolVersion)); err != nil { |
| 2501 | return thrift.PrependError(fmt.Sprintf("%T.serverProtocolVersion (2) field write error: ", p), err) } |
| 2502 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2503 | return thrift.PrependError(fmt.Sprintf("%T write field end error 2:serverProtocolVersion: ", p), err) } |
| 2504 | return err |
| 2505 | } |
| 2506 | |
| 2507 | func (p *TSOpenSessionResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2508 | if p.IsSetSessionId() { |