| 17412 | } |
| 17413 | |
| 17414 | func (p *TSQueryTemplateResp) ReadField5(ctx context.Context, iprot thrift.TProtocol) error { |
| 17415 | _, size, err := iprot.ReadListBegin(ctx) |
| 17416 | if err != nil { |
| 17417 | return thrift.PrependError("error reading list begin: ", err) |
| 17418 | } |
| 17419 | tSlice := make([]string, 0, size) |
| 17420 | p.Measurements = tSlice |
| 17421 | for i := 0; i < size; i ++ { |
| 17422 | var _elem189 string |
| 17423 | if v, err := iprot.ReadString(ctx); err != nil { |
| 17424 | return thrift.PrependError("error reading field 0: ", err) |
| 17425 | } else { |
| 17426 | _elem189 = v |
| 17427 | } |
| 17428 | p.Measurements = append(p.Measurements, _elem189) |
| 17429 | } |
| 17430 | if err := iprot.ReadListEnd(ctx); err != nil { |
| 17431 | return thrift.PrependError("error reading list end: ", err) |
| 17432 | } |
| 17433 | return nil |
| 17434 | } |
| 17435 | |
| 17436 | func (p *TSQueryTemplateResp) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 17437 | if err := oprot.WriteStructBegin(ctx, "TSQueryTemplateResp"); err != nil { |