| 1021 | } |
| 1022 | |
| 1023 | func (p *TSStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1024 | if p.IsSetMessage() { |
| 1025 | if err := oprot.WriteFieldBegin(ctx, "message", thrift.STRING, 2); err != nil { |
| 1026 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:message: ", p), err) } |
| 1027 | if err := oprot.WriteString(ctx, string(*p.Message)); err != nil { |
| 1028 | return thrift.PrependError(fmt.Sprintf("%T.message (2) field write error: ", p), err) } |
| 1029 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 1030 | return thrift.PrependError(fmt.Sprintf("%T write field end error 2:message: ", p), err) } |
| 1031 | } |
| 1032 | return err |
| 1033 | } |
| 1034 | |
| 1035 | func (p *TSStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1036 | if p.IsSetSubStatus() { |