@Override
public void read(com.facebook.presto.hive.shaded.org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws com.facebook.presto.hive.shaded.org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.type = LockType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
struct.level = LockLevel.findByValue(iprot.readI32());
struct.setLevelIsSet(true);
struct.dbname = iprot.readString();
struct.setDbnameIsSet(true);
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {