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.Map)
                    {
                        {
                            LimitMap = new Dictionary <int, Config.LimitGroup>();
                            TMap _map0 = iprot.ReadMapBegin();
                            for (int _i1 = 0; _i1 < _map0.Count; ++_i1)
                            {
                                int _key2;
                                Config.LimitGroup _val3;
                                _key2 = iprot.ReadI32();
                                _val3 = new Config.LimitGroup();
                                _val3.Read(iprot);
                                LimitMap[_key2] = _val3;
                            }
                            iprot.ReadMapEnd();
                        }
                    }
                    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.Map) {
           {
             LimitMap = new Dictionary<int, Config.LimitGroup>();
             TMap _map0 = iprot.ReadMapBegin();
             for( int _i1 = 0; _i1 < _map0.Count; ++_i1)
             {
               int _key2;
               Config.LimitGroup _val3;
               _key2 = iprot.ReadI32();
               _val3 = new Config.LimitGroup();
               _val3.Read(iprot);
               LimitMap[_key2] = _val3;
             }
             iprot.ReadMapEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }