public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { BoolColumn = new List <TBoolValue>(); TList _list18 = iprot.ReadListBegin(); for (int _i19 = 0; _i19 < _list18.Count; ++_i19) { TBoolValue _elem20 = new TBoolValue(); _elem20 = new TBoolValue(); _elem20.Read(iprot); BoolColumn.Add(_elem20); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { ByteColumn = new List <TByteValue>(); TList _list21 = iprot.ReadListBegin(); for (int _i22 = 0; _i22 < _list21.Count; ++_i22) { TByteValue _elem23 = new TByteValue(); _elem23 = new TByteValue(); _elem23.Read(iprot); ByteColumn.Add(_elem23); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { I16Column = new List <TI16Value>(); TList _list24 = iprot.ReadListBegin(); for (int _i25 = 0; _i25 < _list24.Count; ++_i25) { TI16Value _elem26 = new TI16Value(); _elem26 = new TI16Value(); _elem26.Read(iprot); I16Column.Add(_elem26); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.List) { { I32Column = new List <TI32Value>(); TList _list27 = iprot.ReadListBegin(); for (int _i28 = 0; _i28 < _list27.Count; ++_i28) { TI32Value _elem29 = new TI32Value(); _elem29 = new TI32Value(); _elem29.Read(iprot); I32Column.Add(_elem29); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.List) { { I64Column = new List <TI64Value>(); TList _list30 = iprot.ReadListBegin(); for (int _i31 = 0; _i31 < _list30.Count; ++_i31) { TI64Value _elem32 = new TI64Value(); _elem32 = new TI64Value(); _elem32.Read(iprot); I64Column.Add(_elem32); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.List) { { DoubleColumn = new List <TDoubleValue>(); TList _list33 = iprot.ReadListBegin(); for (int _i34 = 0; _i34 < _list33.Count; ++_i34) { TDoubleValue _elem35 = new TDoubleValue(); _elem35 = new TDoubleValue(); _elem35.Read(iprot); DoubleColumn.Add(_elem35); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.List) { { StringColumn = new List <TStringValue>(); TList _list36 = iprot.ReadListBegin(); for (int _i37 = 0; _i37 < _list36.Count; ++_i37) { TStringValue _elem38 = new TStringValue(); _elem38 = new TStringValue(); _elem38.Read(iprot); StringColumn.Add(_elem38); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { BoolVal = new TBoolValue(); BoolVal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { ByteVal = new TByteValue(); ByteVal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { I16Val = new TI16Value(); I16Val.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Struct) { I32Val = new TI32Value(); I32Val.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.Struct) { I64Val = new TI64Value(); I64Val.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Struct) { DoubleVal = new TDoubleValue(); DoubleVal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Struct) { StringVal = new TStringValue(); StringVal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }