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.String) { this.name = iprot.ReadString(); this.__isset.name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.List) { { this.columns = new List<column_t>(); TList _list9 = iprot.ReadListBegin(); for( int _i10 = 0; _i10 < _list9.Count; ++_i10) { column_t _elem11 = new column_t(); _elem11 = new column_t(); _elem11.Read(iprot); this.columns.Add(_elem11); } iprot.ReadListEnd(); } this.__isset.columns = true; } 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; TStruct struc = iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.List) { { this.success = new List<column_t>(); TList _list22 = iprot.ReadListBegin(); for( int _i23 = 0; _i23 < _list22.Count; ++_i23) { column_t _elem24 = new column_t(); _elem24 = new column_t(); _elem24.Read(iprot); this.success.Add(_elem24); } iprot.ReadListEnd(); } this.__isset.success = true; } 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; TStruct struc = iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { this.table = iprot.ReadString(); this.__isset.table = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { this.key = iprot.ReadString(); this.__isset.key = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Map) { { this.cfmap = new Dictionary<string, List<column_t>>(); TMap _map0 = iprot.ReadMapBegin(); for( int _i1 = 0; _i1 < _map0.Count; ++_i1) { string _key2; List<column_t> _val3; _key2 = iprot.ReadString(); { _val3 = new List<column_t>(); TList _list4 = iprot.ReadListBegin(); for( int _i5 = 0; _i5 < _list4.Count; ++_i5) { column_t _elem6 = new column_t(); _elem6 = new column_t(); _elem6.Read(iprot); _val3.Add(_elem6); } iprot.ReadListEnd(); } this.cfmap[_key2] = _val3; } iprot.ReadMapEnd(); } this.__isset.cfmap = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }