| 957 | } |
| 958 | |
| 959 | func (p *TSStatus) ReadField3(ctx context.Context, iprot thrift.TProtocol) error { |
| 960 | _, size, err := iprot.ReadListBegin(ctx) |
| 961 | if err != nil { |
| 962 | return thrift.PrependError("error reading list begin: ", err) |
| 963 | } |
| 964 | tSlice := make([]*TSStatus, 0, size) |
| 965 | p.SubStatus = tSlice |
| 966 | for i := 0; i < size; i ++ { |
| 967 | _elem0 := &TSStatus{} |
| 968 | if err := _elem0.Read(ctx, iprot); err != nil { |
| 969 | return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem0), err) |
| 970 | } |
| 971 | p.SubStatus = append(p.SubStatus, _elem0) |
| 972 | } |
| 973 | if err := iprot.ReadListEnd(ctx); err != nil { |
| 974 | return thrift.PrependError("error reading list end: ", err) |
| 975 | } |
| 976 | return nil |
| 977 | } |
| 978 | |
| 979 | func (p *TSStatus) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { |
| 980 | p.RedirectNode = &TEndPoint{} |