| 2484 | } |
| 2485 | |
| 2486 | func (p *TSOpenSessionResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2487 | if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { |
| 2488 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) } |
| 2489 | if err := p.Status.Write(ctx, oprot); err != nil { |
| 2490 | return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err) |
| 2491 | } |
| 2492 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2493 | return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) } |
| 2494 | return err |
| 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 { |