func (p *RestResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetBody() { if err := oprot.WriteFieldBegin("body", thrift.STRING, 3); err != nil { return fmt.Errorf("%T write field begin error 3:body: %s", p, err) } if err := oprot.WriteBinary(p.Body); err != nil { return fmt.Errorf("%T.body (3) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 3:body: %s", p, err) } } return err }