| 1011 | } |
| 1012 | |
| 1013 | func (p *TSStatus) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1014 | if err := oprot.WriteFieldBegin(ctx, "code", thrift.I32, 1); err != nil { |
| 1015 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:code: ", p), err) } |
| 1016 | if err := oprot.WriteI32(ctx, int32(p.Code)); err != nil { |
| 1017 | return thrift.PrependError(fmt.Sprintf("%T.code (1) field write error: ", p), err) } |
| 1018 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 1019 | return thrift.PrependError(fmt.Sprintf("%T write field end error 1:code: ", p), err) } |
| 1020 | return err |
| 1021 | } |
| 1022 | |
| 1023 | func (p *TSStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 1024 | if p.IsSetMessage() { |