(ctx context.Context, oprot thrift.TProtocol)
| 2468 | } |
| 2469 | |
| 2470 | func (p *TSOpenSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 2471 | if err := oprot.WriteStructBegin(ctx, "TSOpenSessionResp"); err != nil { |
| 2472 | return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } |
| 2473 | if p != nil { |
| 2474 | if err := p.writeField1(ctx, oprot); err != nil { return err } |
| 2475 | if err := p.writeField2(ctx, oprot); err != nil { return err } |
| 2476 | if err := p.writeField3(ctx, oprot); err != nil { return err } |
| 2477 | if err := p.writeField4(ctx, oprot); err != nil { return err } |
| 2478 | } |
| 2479 | if err := oprot.WriteFieldStop(ctx); err != nil { |
| 2480 | return thrift.PrependError("write field stop error: ", err) } |
| 2481 | if err := oprot.WriteStructEnd(ctx); err != nil { |
| 2482 | return thrift.PrependError("write struct stop error: ", err) } |
| 2483 | return nil |
| 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 { |
nothing calls this directly
no test coverage detected