| 2825 | } |
| 2826 | |
| 2827 | func (p *TSOpenSessionReq) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2828 | if p.IsSetPassword() { |
| 2829 | if err := oprot.WriteFieldBegin(ctx, "password", thrift.STRING, 4); err != nil { |
| 2830 | return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:password: ", p), err) } |
| 2831 | if err := oprot.WriteString(ctx, string(*p.Password)); err != nil { |
| 2832 | return thrift.PrependError(fmt.Sprintf("%T.password (4) field write error: ", p), err) } |
| 2833 | if err := oprot.WriteFieldEnd(ctx); err != nil { |
| 2834 | return thrift.PrependError(fmt.Sprintf("%T write field end error 4:password: ", p), err) } |
| 2835 | } |
| 2836 | return err |
| 2837 | } |
| 2838 | |
| 2839 | func (p *TSOpenSessionReq) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 2840 | if p.IsSetConfiguration() { |