(ctx context.Context, oprot thrift.TProtocol)
| 4243 | } |
| 4244 | |
| 4245 | func (p *TSPrepareReq) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 4246 | if err := oprot.WriteStructBegin(ctx, "TSPrepareReq"); err != nil { |
| 4247 | return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } |
| 4248 | if p != nil { |
| 4249 | if err := p.writeField1(ctx, oprot); err != nil { return err } |
| 4250 | if err := p.writeField2(ctx, oprot); err != nil { return err } |
| 4251 | if err := p.writeField3(ctx, oprot); err != nil { return err } |
| 4252 | } |
| 4253 | if err := oprot.WriteFieldStop(ctx); err != nil { |
| 4254 | return thrift.PrependError("write field stop error: ", err) } |
| 4255 | if err := oprot.WriteStructEnd(ctx); err != nil { |
| 4256 | return thrift.PrependError("write struct stop error: ", err) } |
| 4257 | return nil |
| 4258 | } |
| 4259 | |
| 4260 | func (p *TSPrepareReq) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 4261 | if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.I64, 1); err != nil { |
no test coverage detected