(ctx context.Context, oprot thrift.TProtocol)
| 17434 | } |
| 17435 | |
| 17436 | func (p *TSQueryTemplateResp) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 17437 | if err := oprot.WriteStructBegin(ctx, "TSQueryTemplateResp"); err != nil { |
| 17438 | return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } |
| 17439 | if p != nil { |
| 17440 | if err := p.writeField1(ctx, oprot); err != nil { return err } |
| 17441 | if err := p.writeField2(ctx, oprot); err != nil { return err } |
| 17442 | if err := p.writeField3(ctx, oprot); err != nil { return err } |
| 17443 | if err := p.writeField4(ctx, oprot); err != nil { return err } |
| 17444 | if err := p.writeField5(ctx, oprot); err != nil { return err } |
| 17445 | } |
| 17446 | if err := oprot.WriteFieldStop(ctx); err != nil { |
| 17447 | return thrift.PrependError("write field stop error: ", err) } |
| 17448 | if err := oprot.WriteStructEnd(ctx); err != nil { |
| 17449 | return thrift.PrependError("write struct stop error: ", err) } |
| 17450 | return nil |
| 17451 | } |
| 17452 | |
| 17453 | func (p *TSQueryTemplateResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 17454 | if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { |
nothing calls this directly
no test coverage detected