| 32758 | } |
| 32759 | |
| 32760 | func (p *IClientRPCServiceDeleteStorageGroupsArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { |
| 32761 | _, size, err := iprot.ReadListBegin(ctx) |
| 32762 | if err != nil { |
| 32763 | return thrift.PrependError("error reading list begin: ", err) |
| 32764 | } |
| 32765 | tSlice := make([]string, 0, size) |
| 32766 | p.StorageGroup = tSlice |
| 32767 | for i := 0; i < size; i ++ { |
| 32768 | var _elem407 string |
| 32769 | if v, err := iprot.ReadString(ctx); err != nil { |
| 32770 | return thrift.PrependError("error reading field 0: ", err) |
| 32771 | } else { |
| 32772 | _elem407 = v |
| 32773 | } |
| 32774 | p.StorageGroup = append(p.StorageGroup, _elem407) |
| 32775 | } |
| 32776 | if err := iprot.ReadListEnd(ctx); err != nil { |
| 32777 | return thrift.PrependError("error reading list end: ", err) |
| 32778 | } |
| 32779 | return nil |
| 32780 | } |
| 32781 | |
| 32782 | func (p *IClientRPCServiceDeleteStorageGroupsArgs) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 32783 | if err := oprot.WriteStructBegin(ctx, "deleteStorageGroups_args"); err != nil { |