| 1067 | } |
| 1068 | |
| 1069 | func (p *TSStatus) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1070 | if p.IsSetNeedRetry() { |
| 1071 | if err := oprot.WriteFieldBegin(ctx, "needRetry", thrift.BOOL, 5); err != nil { |
| 1072 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:needRetry: ", p), err) } |
| 1073 | if err := oprot.WriteBool(ctx, bool(*p.NeedRetry)); err != nil { |
| 1074 | return thrift.PrependError(fmt.Sprintf("%T.needRetry (5) field write error: ", p), err) } |
| 1075 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 1076 | return thrift.PrependError(fmt.Sprintf("%T write field end error 5:needRetry: ", p), err) } |
| 1077 | } |
| 1078 | return err |
| 1079 | } |
| 1080 | |
| 1081 | func (p *TSStatus) Equals(other *TSStatus) bool { |
| 1082 | if p == other { |