| 2505 | } |
| 2506 | |
| 2507 | func (p *TSOpenSessionResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2508 | if p.IsSetSessionId() { |
| 2509 | if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.I64, 3); err != nil { |
| 2510 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sessionId: ", p), err) } |
| 2511 | if err := oprot.WriteI64(ctx, int64(*p.SessionId)); err != nil { |
| 2512 | return thrift.PrependError(fmt.Sprintf("%T.sessionId (3) field write error: ", p), err) } |
| 2513 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2514 | return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sessionId: ", p), err) } |
| 2515 | } |
| 2516 | return err |
| 2517 | } |
| 2518 | |
| 2519 | func (p *TSOpenSessionResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2520 | if p.IsSetConfiguration() { |