@Override public void read(org.apache.thrift.protocol.TProtocol prot, MsgIdList struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList( org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.msgIdList = new ArrayList<Long>(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { long _elem15; _elem15 = iprot.readI64(); struct.msgIdList.add(_elem15); } } struct.setMsgIdListIsSet(true); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, MsgIdList struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // MSG_ID_LIST if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.msgIdList = new ArrayList<Long>(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { long _elem10; _elem10 = iprot.readI64(); struct.msgIdList.add(_elem10); } iprot.readListEnd(); } struct.setMsgIdListIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }