func (p *User) writeField9(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("IsAdmin", thrift.BOOL, 9); err != nil { return fmt.Errorf("%T write field begin error 9:IsAdmin: %s", p, err) } if err := oprot.WriteBool(bool(p.IsAdmin)); err != nil { return fmt.Errorf("%T.IsAdmin (9) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 9:IsAdmin: %s", p, err) } return err }