Apache.Hadoop.Hbase.Thrift.Hbase.getVer_result.Read C# (CSharp) Method

Read() public method

public Read ( TProtocol iprot ) : void
iprot Thrift.Protocol.TProtocol
return void
            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<TCell>();
                  TList _list26 = iprot.ReadListBegin();
                  for( int _i27 = 0; _i27 < _list26.Count; ++_i27)
                  {
                    TCell _elem28 = new TCell();
                    _elem28 = new TCell();
                    _elem28.Read(iprot);
                    this.success.Add(_elem28);
                  }
                  iprot.ReadListEnd();
                }
                this.__isset.success = true;
                  } else {
                TProtocolUtil.Skip(iprot, field.Type);
                  }
                  break;
                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.nf = new NotFound();
                this.nf.Read(iprot);
                this.__isset.nf = true;
                  } else {
                TProtocolUtil.Skip(iprot, field.Type);
                  }
                  break;
                default:
                  TProtocolUtil.Skip(iprot, field.Type);
                  break;
                  }
                  iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }