| 2440 | } |
| 2441 | |
| 2442 | func (p *TSOpenSessionResp) ReadField4(ctx context.Context, iprot thrift.TProtocol) error { |
| 2443 | _, _, size, err := iprot.ReadMapBegin(ctx) |
| 2444 | if err != nil { |
| 2445 | return thrift.PrependError("error reading map begin: ", err) |
| 2446 | } |
| 2447 | tMap := make(map[string]string, size) |
| 2448 | p.Configuration = tMap |
| 2449 | for i := 0; i < size; i ++ { |
| 2450 | var _key27 string |
| 2451 | if v, err := iprot.ReadString(ctx); err != nil { |
| 2452 | return thrift.PrependError("error reading field 0: ", err) |
| 2453 | } else { |
| 2454 | _key27 = v |
| 2455 | } |
| 2456 | var _val28 string |
| 2457 | if v, err := iprot.ReadString(ctx); err != nil { |
| 2458 | return thrift.PrependError("error reading field 0: ", err) |
| 2459 | } else { |
| 2460 | _val28 = v |
| 2461 | } |
| 2462 | p.Configuration[_key27] = _val28 |
| 2463 | } |
| 2464 | if err := iprot.ReadMapEnd(ctx); err != nil { |
| 2465 | return thrift.PrependError("error reading map end: ", err) |
| 2466 | } |
| 2467 | return nil |
| 2468 | } |
| 2469 | |
| 2470 | func (p *TSOpenSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 2471 | if err := oprot.WriteStructBegin(ctx, "TSOpenSessionResp"); err != nil { |