(ctx context.Context, oprot thrift.TProtocol)
| 1033 | } |
| 1034 | |
| 1035 | func (p *TSStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1036 | if p.IsSetSubStatus() { |
| 1037 | if err := oprot.WriteFieldBegin(ctx, "subStatus", thrift.LIST, 3); err != nil { |
| 1038 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:subStatus: ", p), err) } |
| 1039 | if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.SubStatus)); err != nil { |
| 1040 | return thrift.PrependError("error writing list begin: ", err) |
| 1041 | } |
| 1042 | for _, v := range p.SubStatus { |
| 1043 | if err := v.Write(ctx, oprot); err != nil { |
| 1044 | return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) |
| 1045 | } |
| 1046 | } |
| 1047 | if err := oprot.WriteListEnd(ctx); err != nil { |
| 1048 | return thrift.PrependError("error writing list end: ", err) |
| 1049 | } |
| 1050 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 1051 | return thrift.PrependError(fmt.Sprintf("%T write field end error 3:subStatus: ", p), err) } |
| 1052 | } |
| 1053 | return err |
| 1054 | } |
| 1055 | |
| 1056 | func (p *TSStatus) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1057 | if p.IsSetRedirectNode() { |
no test coverage detected