public void Read(TProtocol iprot) { TField field; TStruct struc = iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { this.io = new IOError(); this.io.Read(iprot); this.__isset.io = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { this.ia = new IllegalArgument(); this.ia.Read(iprot); this.__isset.ia = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { this.exist = new AlreadyExists(); this.exist.Read(iprot); this.__isset.exist = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }