(ctx context.Context, iprot thrift.TProtocol)
| 5412 | } |
| 5413 | |
| 5414 | func (p *TSFetchResultsResp) Read(ctx context.Context, iprot thrift.TProtocol) error { |
| 5415 | if _, err := iprot.ReadStructBegin(ctx); err != nil { |
| 5416 | return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err) |
| 5417 | } |
| 5418 | |
| 5419 | var issetStatus bool = false; |
| 5420 | var issetHasResultSet bool = false; |
| 5421 | var issetIsAlign bool = false; |
| 5422 | |
| 5423 | for { |
| 5424 | _, fieldTypeId, fieldId, err := iprot.ReadFieldBegin(ctx) |
| 5425 | if err != nil { |
| 5426 | return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err) |
| 5427 | } |
| 5428 | if fieldTypeId == thrift.STOP { break; } |
| 5429 | switch fieldId { |
| 5430 | case 1: |
| 5431 | if fieldTypeId == thrift.STRUCT { |
| 5432 | if err := p.ReadField1(ctx, iprot); err != nil { |
| 5433 | return err |
| 5434 | } |
| 5435 | issetStatus = true |
| 5436 | } else { |
| 5437 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 5438 | return err |
| 5439 | } |
| 5440 | } |
| 5441 | case 2: |
| 5442 | if fieldTypeId == thrift.BOOL { |
| 5443 | if err := p.ReadField2(ctx, iprot); err != nil { |
| 5444 | return err |
| 5445 | } |
| 5446 | issetHasResultSet = true |
| 5447 | } else { |
| 5448 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 5449 | return err |
| 5450 | } |
| 5451 | } |
| 5452 | case 3: |
| 5453 | if fieldTypeId == thrift.BOOL { |
| 5454 | if err := p.ReadField3(ctx, iprot); err != nil { |
| 5455 | return err |
| 5456 | } |
| 5457 | issetIsAlign = true |
| 5458 | } else { |
| 5459 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 5460 | return err |
| 5461 | } |
| 5462 | } |
| 5463 | case 4: |
| 5464 | if fieldTypeId == thrift.STRUCT { |
| 5465 | if err := p.ReadField4(ctx, iprot); err != nil { |
| 5466 | return err |
| 5467 | } |
| 5468 | } else { |
| 5469 | if err := iprot.Skip(ctx, fieldTypeId); err != nil { |
| 5470 | return err |
| 5471 | } |
nothing calls this directly
no test coverage detected