| 17484 | } |
| 17485 | |
| 17486 | func (p *TSQueryTemplateResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 17487 | if p.IsSetCount() { |
| 17488 | if err := oprot.WriteFieldBegin(ctx, "count", thrift.I32, 4); err != nil { |
| 17489 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:count: ", p), err) } |
| 17490 | if err := oprot.WriteI32(ctx, int32(*p.Count)); err != nil { |
| 17491 | return thrift.PrependError(fmt.Sprintf("%T.count (4) field write error: ", p), err) } |
| 17492 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 17493 | return thrift.PrependError(fmt.Sprintf("%T write field end error 4:count: ", p), err) } |
| 17494 | } |
| 17495 | return err |
| 17496 | } |
| 17497 | |
| 17498 | func (p *TSQueryTemplateResp) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 17499 | if p.IsSetMeasurements() { |