(ctx context.Context, oprot thrift.TProtocol)
| 17496 | } |
| 17497 | |
| 17498 | func (p *TSQueryTemplateResp) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 17499 | if p.IsSetMeasurements() { |
| 17500 | if err := oprot.WriteFieldBegin(ctx, "measurements", thrift.LIST, 5); err != nil { |
| 17501 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:measurements: ", p), err) } |
| 17502 | if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.Measurements)); err != nil { |
| 17503 | return thrift.PrependError("error writing list begin: ", err) |
| 17504 | } |
| 17505 | for _, v := range p.Measurements { |
| 17506 | if err := oprot.WriteString(ctx, string(v)); err != nil { |
| 17507 | return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } |
| 17508 | } |
| 17509 | if err := oprot.WriteListEnd(ctx); err != nil { |
| 17510 | return thrift.PrependError("error writing list end: ", err) |
| 17511 | } |
| 17512 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 17513 | return thrift.PrependError(fmt.Sprintf("%T write field end error 5:measurements: ", p), err) } |
| 17514 | } |
| 17515 | return err |
| 17516 | } |
| 17517 | |
| 17518 | func (p *TSQueryTemplateResp) Equals(other *TSQueryTemplateResp) bool { |
| 17519 | if p == other { |
no test coverage detected